Opened 11 years ago

Last modified 11 years ago

#2160 new defect

-of rawaudio works wrong under certain circumstances

Reported by: gggg08@… Owned by: reimar
Priority: normal Component: mencoder
Version: HEAD Severity: major
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description (last modified by reimar)

Sometimes (with some files), command line "mencoder "temp.avi" -ovc frameno -oac copy -o "temp.aac" -mc 0 -noskip -of rawaudio" will result in audio being 510-512ms instead of full duration. This happens, if "temp.avi" is generated with command line "mencoder -demuxer mkv "input_file_path" -o temp.avi -vf ass,scale=480:272,harddup -af channels=2 -srate 44100 -oac faac -faacopts br=128:mpeg=4:object=2 -ovc x264 -ffourcc avc1 -x264encopts me=umh:level_idc=13:keyint=250:frameref=2:bframes=0:threads=auto:profile=main:rc_lookahead=60:crf=20 -aspect 16:9 -mc 0 -ass". However, this will not happen, if you add -noskip to the above command line so that it becomes "mencoder -demuxer mkv "input_file_path" -o temp.avi -vf ass,scale=480:272,harddup -af channels=2 -srate 44100 -oac faac -faacopts br=128:mpeg=4:object=2 -ovc x264 -ffourcc avc1 -x264encopts me=umh:level_idc=13:keyint=250:frameref=2:bframes=0:threads=auto:profile=main:rc_lookahead=60:crf=20 -aspect 16:9 -mc 0 -ass -noskip".
Problem with this approach, is that if I use -noskip, on some files http://bugzilla.mplayerhq.hu/show_bug.cgi?id=2147 will occur. And yeah, I use same command line on lots of files and it works relatively well with exceptions like this and bug 2147
File to test this one:
Seeded torrent http://www.nyaa.se/?page=view&tid=490983

Change History (5)

comment:1 by gggg08@…, 11 years ago

comment:2 by reimar, 11 years ago

I have not checked but I suspect mencoder still has the same issue as MPlayer once had: It finishes once either audio or video is done, and in this case it thinks the video finishes a lot before the audio. -noskip can "fix" that when this happens due to specific issues with the file.

comment:3 by gggg08@…, 11 years ago

Yeah, -noskip can "fix" but then again, http://bugzilla.mplayerhq.hu/show_bug.cgi?id=2147 occurs on some of the files. Would be nice if you checked both this one and 2147.
But since MPlayer had this issue and got fixed, then I assume it shouldn't be hard to fix it in MEncoder.

comment:4 by reimar, 11 years ago

Analyzed by developer: unset
Description: modified (diff)
Reproduced by developer: unset

I believe this one, #2159 and #2169 are all the same issue. I'll try to look into it.

comment:5 by compn, 11 years ago

do not put h264 in avi.

Note: See TracTickets for help on using tickets.