Copy audio broken in MEncoder
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? (yes, I know MEncoder is not actively developed but I suspect it needs just a minor fix) Thanks -- Yours truly
On Sun, 13 Apr 2014 15:16:11 +0200 Grozdan <neutrino8@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. -compn
On Sun, Apr 13, 2014 at 10:29 PM, compn <tempn@twmi.rr.com> wrote:
On Sun, 13 Apr 2014 15:16:11 +0200 Grozdan <neutrino8@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
-compn _______________________________________________ MPlayer-dev-eng mailing list MPlayer-dev-eng@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
-- Yours truly
On Sun, Apr 13, 2014 at 10:34:36PM +0200, Grozdan wrote:
On Sun, Apr 13, 2014 at 10:29 PM, compn <tempn@twmi.rr.com> wrote:
On Sun, 13 Apr 2014 15:16:11 +0200 Grozdan <neutrino8@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.
On Mon, Apr 14, 2014 at 10:50 PM, Reimar Döffinger <Reimar.Doeffinger@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@twmi.rr.com> wrote:
On Sun, 13 Apr 2014 15:16:11 +0200 Grozdan <neutrino8@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@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
-- Yours truly
On Mon, Apr 14, 2014 at 10:55:20PM +0200, Grozdan wrote:
On Mon, Apr 14, 2014 at 10:50 PM, Reimar Döffinger <Reimar.Doeffinger@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@twmi.rr.com> wrote:
On Sun, 13 Apr 2014 15:16:11 +0200 Grozdan <neutrino8@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.
Of course I used -oac copy. But I don't have xvid here, so I replaced that one with something else, that's why I only mentioned -ovc.
On Mon, Apr 14, 2014 at 11:32 PM, Reimar Döffinger <Reimar.Doeffinger@gmx.de> wrote:
On Mon, Apr 14, 2014 at 10:55:20PM +0200, Grozdan wrote:
On Mon, Apr 14, 2014 at 10:50 PM, Reimar Döffinger <Reimar.Doeffinger@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@twmi.rr.com> wrote:
On Sun, 13 Apr 2014 15:16:11 +0200 Grozdan <neutrino8@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.
Of course I used -oac copy. But I don't have xvid here, so I replaced that one with something else, that's why I only mentioned -ovc.
hmm, how come I get such duplicates all the time? input is H.264 video + AC-3 audio, command line is: mencoder input.mkv -ovc x264 -x264encopts bitrate=2000 -oac copy -o test.avi when I do this, it duplicates like crazy. It's not just this particular input file but on all others I tested anyways, i'm happy with -mc 0 too :)
_______________________________________________ MPlayer-dev-eng mailing list MPlayer-dev-eng@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
-- Yours truly
On Sun, Apr 13, 2014 at 03:16:11PM +0200, Grozdan 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?
(yes, I know MEncoder is not actively developed but I suspect it needs just a minor fix)
I doubt it, there was never much of a reason for -oac copy to actually work, it requires figuring out the audio timestamps without decoding which I can't see any implementation of. Or in other words, except for chance it never really worked. -mc 0 -noskip should still be a workaround if you don't need any special behaviour that would actually require sync correction.
On Mon, Apr 14, 2014 at 9:55 PM, Reimar Döffinger <Reimar.Doeffinger@gmx.de> wrote:
On Sun, Apr 13, 2014 at 03:16:11PM +0200, Grozdan 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?
(yes, I know MEncoder is not actively developed but I suspect it needs just a minor fix)
I doubt it, there was never much of a reason for -oac copy to actually work, it requires figuring out the audio timestamps without decoding which I can't see any implementation of. Or in other words, except for chance it never really worked. -mc 0 -noskip should still be a workaround if you don't need any special behaviour that would actually require sync correction.
hmm, ok. So how come it used to work correctly in the past? I've used it many times and had always proper sync (not using any -mc 0 -noskip options). Since more than a year it has been behaving like that as described in my original mail
_______________________________________________ MPlayer-dev-eng mailing list MPlayer-dev-eng@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
-- Yours truly
participants (3)
-
compn -
Grozdan -
Reimar Döffinger