[MEncoder-users] avoid desynchronizations

Sébastien WILLEMIJNS seb at willemijns.com
Wed Mar 13 00:22:48 CET 2013


Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:

> 
> Sébastien WILLEMIJNS <seb <at> willemijns.com> writes:
> 
> > if someone knows the command line for the best method 
> > to convert a good video (with no desync) to another 
> > format whatever the time of process ?
> 
> Do you mean something like the following:
> $ ffmpeg -i input -qscale 2 out.avi
> 
> Or do I misunderstand?
> 
> > i think we can extract video first in a uncompressed 
> > format, and after audio sound still in a wav format 
> > and finally, use audio+video to create the converted
> > file i want...
> 
> With real-world input, this will often lead to A/V desync

since my message i have created this which works well...
extract audio uncompressed, extract video uncompressed, join them 
and convert to the desired format...

very very long... can use 70 GB of HD, 100% CPU but works well !


******************************************* go.bat
set input=original.mkv
set output=file
mplayer %input% -ao pcm:file=\output.wav -vo %output%.wav 

mencoder %input% -ofps 25 -forceidx -ovc raw -nosound -o %output%.avitmp1

mencoder %output%.avitmp1 -ofps 25 -forceidx -ovc raw -oac pcm -audiofile
%output%.wav -o %output%.aviuncompressed

mencoder %output%.aviuncompressed -vf scale=320:240,harddup -of mpeg -mpegopts
format=mpeg1:tsaf:muxrate=2000 -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc
lavc -lavcopts vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2:aspect=4/3 -o
%output%.avi
************************************************



keywords: avoid desync mencoder avoid desynchronization mencoder mplayer
commandline command-line command line 





More information about the MEncoder-users mailing list