Opened 11 years ago

#2193 new defect

mencoder breaks ffv1 avi on remux

Reported by: 4Selur@… Owned by:
Priority: normal Component: undetermined
Version: unspecified Severity: blocker
Keywords: mencoder ffv1 remux Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

When remuxing an avi file with ffv1 in it which is > 1GB, mencoder breaks the output. :(

Since mencoder itself can't create ffv1 (see: https://trac.mplayerhq.hu/ticket/2192#ticket) content atm. I used:

mencoder -ovc raw -noskip -vf scale,format=i420 -forcedsubsonly -nosub -nosound -lavdopts threads=8 -really-quiet -ofps 25 -of rawvideo -o - -dvd-device "F:\TestClips&Co\DVDs\ElephantsDream\VIDEO_TS" dvd://1 | ffmpeg -threads 8 -an -sn -r 25 -pix_fmt yuv420p -s 720x576 -f rawvideo -i - -r 25 -pix_fmt yuv420p -vcodec ffv1 -coder 0 -context 0 -g 1 -level 1 "H:\Output\test1_11_38_44_4010_01.avi"

to create an ffv1 avi file (file plays fine; size: 1.94GB), then I used:

mencoder -ovc copy -nosound "H:\Output\test1_11_38_44_4010_01.avi" -force-avi-aspect 1.77778 -info copyright="Hybrid 2014.06.10.1" -ofps 25 -of avi -o "H:\Output\test1.avi"

to remux the file, add copyright info and aspect ratio and the output is broken. (neither mplayer/ffplay or mpc-hc can play the file properly)

Console output during from the second call:

mencoder -ovc copy -nosound "H:\Output\test1_11_38_44_4010_01.avi" -force-avi-aspect 1.77778 -info copyright="Hybrid 2014.06.10.1" -ofps 25 -of avi -o "H:\Output\test1.avi"
MEncoder SVN-r37224-4.9.0 (C) 2000-2014 MPlayer Team
success: format: 0 data: 0x0 - 0x7c414c0a
libavformat version 55.43.100 (internal)
AVI file format detected.
[aviheader] Video stream found, -vid 0
AVI: ODML: Building ODML index (1 superindexchunks).
VIDEO: [FFV1] 720x576 24bpp 25.000 fps 26194.1 kbps (3197.5 kbyte/s)
[V] filefmt:3 fourcc:0x31564646 size:720x576 fps:25.000 ftime:=0.0400
videocodec: framecopy (720x576 24bpp fourcc=31564646)
Writing header...
ODML: vprp aspect is 16:9.
Writing header...
ODML: vprp aspect is 16:9.
Pos: 277.2s 6932f (25%) 411.10fps Trem: 0min 3973mb A-V:0.000 [30973:0]
ODML: Starting new RIFF chunk at 1023MB.
Pos: 636.0s 15900f (51%) 417.40fps Trem: 0min 3858mb A-V:0.000 [26208:0]

Badly interleaved AVI file detected - switching to -ni mode...
Pos: 636.0s 15901f (51%) 417.38fps Trem: 0min 3831mb A-V:0.000 [26208:0]
Writing index...
Writing header...
ODML: vprp aspect is 16:9.

Video stream: 26207.295 kbit/s (3275911 B/s) size: 2083610996 bytes 636.040 secs 15901 frames

when only encoding a specific chapter using:

mencoder -chapter 5-5 -ovc raw -noskip -vf scale,format=i420 -forcedsubsonly -nosub -nosound -lavdopts threads=8 -really-quiet -ofps 25 -of rawvideo -o - -dvd-device "F:\TestClips&Co\DVDs\ElephantsDream\VIDEO_TS" dvd://1 | ffmpeg -threads 8 -an -sn -r 25 -pix_fmt yuv420p -s 720x576 -f rawvideo -i - -r 25 -pix_fmt yuv420p -vcodec ffv1 -coder 0 -context 0 -g 1 -level 1 "H:\Temp\test2_11_27_49_9210_01.avi"

(basically the same as the first call plus '-chatper 5-5') the output is still fine and running, and

mencoder -ovc copy -nosound "H:\Temp\test2_11_27_49_9210_01.avi" -force-avi-aspect 1.77778 -info copyright="Hybrid 2014.06.10.1" -ofps 25 -of avi -o "H:\Output\test2.avi"

also produces a playable output.

Change History (0)

Note: See TracTickets for help on using tickets.