python - FFMPEG video conversion for pygame -


i making program on python (3) using pygame module. 1 of things need play video in avi format.

from managed understand pygame.movie documentation have use ffmpeg , not program convert video mpeg (i tried nch prism , result quite memorable).

i managed convert file mpg using sample command found in pygame.movie documentation (ffmpeg -i <infile> -vcodec mpeg1video -acodec libmp3lame -intra <outfile.mpg>) video quality dropped much. tried looking @ different cites never had working example...

is there way keep current video quality? don't care file size...

thanks in advance!

there loss of quality, that's unavoidable, can try forcing high bitrate , stepping down while quality remains acceptable. start

ffmpeg -i infile -vcodec mpeg1video -b:v 8192k -acodec libmp3lame -intra outfile.mpg

and work there


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -