[MPlayer-dev-eng] Copy audio broken in MEncoder

Grozdan neutrino8 at gmail.com
Mon Apr 14 22:55:20 CEST 2014


On Mon, Apr 14, 2014 at 10:50 PM, Reimar Döffinger
<Reimar.Doeffinger at gmx.de> wrote:
> On Sun, Apr 13, 2014 at 10:34:36PM +0200, Grozdan wrote:
>> On Sun, Apr 13, 2014 at 10:29 PM, compn <tempn at twmi.rr.com> wrote:
>> > On Sun, 13 Apr 2014 15:16:11 +0200
>> > Grozdan <neutrino8 at gmail.com> wrote:
>> >
>> >> Copying audio with -oac copy is broken in MEncoder. It duplicates
>> >> frames like crazy and the result is a desync between the video and
>> >> audio. Can this be fixed, please?
>> >
>> > it would be helpful if you gave us an example of what codec and
>> > container are failing. what command line you used etc.
>>
>> Just the basics. Any input will do
>>
>> mencoder <infile> -ovc xvid -xvidencopts bitrate=3000 -oac copy -o output.avi
>>
>> tested with different codecs in the input (ac3, mp3, dts) and behavior
>> is the same. Encoding with a different video codec such as x264 does
>> not make a difference.
>>
>> In fact, this problem has been around for almost a year
>
> Not reproducible for me with any of the input files I have and
> either of -ovc lavc or -ovc copy.

I'm a bit confused. You are copying the video while I was talking
about copying the audio with -oac copy.

Anyways, using -mc 0 seems to fix the issue. Just encoded a whole
movie very fast using -oac copy -mc 0 and the sync is perfect till the
end. Movie has AC-3 audio. It did print a lot of messages about buffer
being full or something but I could get rid of those by using
-msglevel demuxer=-1

> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng



-- 
Yours truly


More information about the MPlayer-dev-eng mailing list