VLC transcoded files cause error in Quicktime
Posted: 04 Dec 2006 05:55
I am trying to transcode an avi file (xvid/mpga), resolution 640x272, to a mp4 file (mp4v and mp4a) at the same resolution. However, when I try to play the transcoded file in Quicktime, I get a dialog box with "Error -2010: the movie contains some invalid data".
The VLC log during transcode:
Anyone know what's wrong? I am using VLC 0.8.5 by the way.
The VLC log during transcode:
Code: Select all
main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 5508 (input) created at priority 1 (input/input.c:261)
main debug: stream=`transcode'
main debug: looking for sout stream module: 1 candidate
main debug: stream=`duplicate'
main debug: looking for sout stream module: 1 candidate
stream_out_duplicate debug: creating 'duplicate'
stream_out_duplicate debug: * adding `std{access=file,mux=mp4,dst=C:\Documents and Settings\Benjamin Xiao\Desktop\Test.mp4}'
main debug: stream=`std'
main debug: looking for sout stream module: 1 candidate
main debug: set sout option: sout-standard-access to file
main debug: set sout option: sout-standard-mux to mp4
main debug: set sout option: sout-standard-dst to C:\Documents and Settings\Benjamin Xiao\Desktop\Test.mp4
stream_out_standard debug: creating `file/mp4://C:\Documents and Settings\Benjamin Xiao\Desktop\Test.mp4'
stream_out_standard debug: extension is mp4
stream_out_standard debug: extension -> mux=mp4
stream_out_standard debug: using `file/mp4://C:\Documents and Settings\Benjamin Xiao\Desktop\Test.mp4'
main debug: looking for sout access module: 1 candidate
access_output_file debug: file access output opened (`C:\Documents and Settings\Benjamin Xiao\Desktop\Test.mp4')
main debug: using sout access module "access_output_file"
stream_out_standard debug: access opened
main debug: looking for sout mux module: 1 candidate
mux_mp4 debug: Mp4 muxer opend
main debug: using sout mux module "mux_mp4"
stream_out_standard debug: mux opened
main debug: using sout stream module "stream_out_standard"
main debug: using sout stream module "stream_out_duplicate"
main debug: set sout option: sout-transcode-vcodec to mp4v
main debug: set sout option: sout-transcode-vb to 2048
main debug: set sout option: sout-transcode-scale to 1
main debug: set sout option: sout-transcode-acodec to mp4a
main debug: set sout option: sout-transcode-ab to 192
main debug: set sout option: sout-transcode-channels to 2
stream_out_transcode debug: codec audio=mp4a 0Hz 2 channels 192Kb/s
stream_out_transcode warning: bad aspect ratio
stream_out_transcode debug: codec video=mp4v 640x272 scaling: 1.000000 2048kb/s
main debug: using sout stream module "stream_out_transcode"
main warning: drive letter C: found in source
main debug: `C:\Documents and Settings\Benjamin Xiao\My Documents\My Videos\The Da Vinci Code (2006).avi' gives access `' demux `' path `C:\Documents and Settings\Benjamin Xiao\My Documents\My Videos\The Da Vinci Code (2006).avi'
main debug: creating demux: access='' demux='' path='C:\Documents and Settings\Benjamin Xiao\My Documents\My Videos\The Da Vinci Code (2006).avi'
main debug: looking for access_demux module: 1 candidate
main debug: creating access '' path='C:\Documents and Settings\Benjamin Xiao\My Documents\My Videos\The Da Vinci Code (2006).avi'
main debug: looking for access2 module: 5 candidates
vcd debug: trying .cue file: C:\Documents and Settings\Benjamin Xiao\My Documents\My Videos\The Da Vinci Code (2006).cue
access_file debug: opening file `C:\Documents and Settings\Benjamin Xiao\My Documents\My Videos\The Da Vinci Code (2006).avi'
main debug: using access2 module "access_file"
main debug: pre-buffering...
main debug: received first data for our buffer
main debug: pre-buffering done 1408981 bytes in 0s - 279552 kbytes/s
main debug: creating demux: access='' demux='' path='C:\Documents and Settings\Benjamin Xiao\My Documents\My Videos\The Da Vinci Code (2006).avi'
main debug: looking for demux2 module: 44 candidates
avi debug: found Chunk fourcc:46464952 (RIFF) size:735938174 pos:0
avi debug: found LIST chunk: 'AVI '
avi debug: <list 'AVI '>
avi debug: found Chunk fourcc:5453494c (LIST) size:8830 pos:12
avi debug: found LIST chunk: 'hdrl'
avi debug: <list 'hdrl'>
avi debug: found Chunk fourcc:68697661 (avih) size:56 pos:24
avi debug: avih: streams:2 flags: HAS_INDEX IS_INTERLEAVED 640x272
avi debug: found Chunk fourcc:5453494c (LIST) size:4244 pos:88
avi debug: found LIST chunk: 'strl'
avi debug: <list 'strl'>
avi debug: found Chunk fourcc:68727473 (strh) size:56 pos:100
avi debug: strh: type:vids handler:0x64697678 samplesize:0 23.98fps
avi debug: found Chunk fourcc:66727473 (strf) size:40 pos:164
avi debug: strf: video:XVID 640x272 planes:1 12bpp
avi debug: found Chunk fourcc:4b4e554a (JUNK) size:4120 pos:212
avi debug: </list 'strl'>
avi debug: found Chunk fourcc:5453494c (LIST) size:4234 pos:4340
avi debug: found LIST chunk: 'strl'
avi debug: <list 'strl'>
avi debug: found Chunk fourcc:68727473 (strh) size:56 pos:4352
avi debug: strh: type:auds handler:0x00000000 samplesize:0 41.67fps
avi debug: found Chunk fourcc:66727473 (strf) size:30 pos:4416
avi debug: strf: audio:0x0055 channels:2 48000Hz 0bits/sample 111kb/s
avi debug: found Chunk fourcc:4b4e554a (JUNK) size:4120 pos:4454
avi debug: </list 'strl'>
avi debug: found Chunk fourcc:5453494c (LIST) size:260 pos:8582
avi debug: found LIST chunk: 'odml'
avi debug: <list 'odml'>
avi debug: found Chunk fourcc:686c6d64 (dmlh) size:248 pos:8594
avi warning: unknown chunk (not loaded)
avi debug: </list 'odml'>
avi debug: </list 'hdrl'>
avi debug: found Chunk fourcc:5453494c (LIST) size:72 pos:8850
avi debug: found LIST chunk: 'INFO'
avi debug: <list 'INFO'>
avi debug: found Chunk fourcc:54465349 (ISFT) size:43 pos:8862
avi debug: ISFT: software : VirtualDubMod 1.5.4.1 (build 2178/release)
avi debug: found Chunk fourcc:31534149 (IAS1) size:8 pos:8914
avi warning: unknown chunk (not loaded)
avi debug: </list 'INFO'>
avi debug: found Chunk fourcc:4b4e554a (JUNK) size:1302 pos:8930
avi debug: found Chunk fourcc:5453494c (LIST) size:726550998 pos:10240
avi debug: skipping movi chunk
avi debug: found Chunk fourcc:31786469 (idx1) size:9376928 pos:726561246
avi debug: idx1: index entry:586058
avi debug: </list 'AVI '>
avi debug: found Chunk fourcc:4b4e554a (JUNK) size:370 pos:735938182
avi debug: * LIST-root size:735938560 pos:0
avi debug: + RIFF-AVI size:735938174 pos:0
avi debug: | + LIST-hdrl size:8830 pos:12
avi debug: | | + avih size:56 pos:24
avi debug: | | + LIST-strl size:4244 pos:88
avi debug: | | | + strh size:56 pos:100
avi debug: | | | + strf size:40 pos:164
avi debug: | | | + JUNK size:4120 pos:212
avi debug: | | + LIST-strl size:4234 pos:4340
avi debug: | | | + strh size:56 pos:4352
avi debug: | | | + strf size:30 pos:4416
avi debug: | | | + JUNK size:4120 pos:4454
avi debug: | | + LIST-odml size:260 pos:8582
avi debug: | | | + dmlh size:248 pos:8594
avi debug: | + LIST-INFO size:72 pos:8850
avi debug: | | + ISFT size:43 pos:8862
avi debug: | | + IAS1 size:8 pos:8914
avi debug: | + JUNK size:1302 pos:8930
avi debug: | + LIST-movi size:726550998 pos:10240
avi debug: | + idx1 size:9376928 pos:726561246
avi debug: + JUNK size:370 pos:735938182
avi debug: AVIH: 2 stream, flags HAS_INDEX IS_INTERLEAVED
avi debug: stream[0] rate:24000 scale:1001 samplesize:0
avi debug: stream[0] video(XVID) 640x272 12bpp 23.976024fps
main debug: selecting program id=0
avi debug: stream[1] rate:48000 scale:1152 samplesize:0
avi debug: stream[1] audio(0x55) 2 channels 48000Hz 0bits
avi debug: stream[0] created 214058 index entries
avi debug: stream[1] created 372000 index entries
avi debug: stream[0] length:8928 (based on index)
avi debug: stream[1] length:8928 (based on index)
main debug: using demux2 module "avi"
main debug: looking for a subtitle file in C:\Documents and Settings\Benjamin Xiao\My Documents\My Videos\
main debug: looking for packetizer module: 17 candidates
main debug: using packetizer module "packetizer_mpeg4video"
main debug: stream out mode -> no decoder thread
main debug: looking for packetizer module: 17 candidates
main debug: using packetizer module "mpeg_audio"
main debug: stream out mode -> no decoder thread
main debug: starting in asynch mode
main debug: meta information:
main debug: - 'Setting' = ' HAS_INDEX IS_INTERLEAVED'
main debug: `C:\Documents and Settings\Benjamin Xiao\My Documents\My Videos\The Da Vinci Code (2006).avi' successfully opened
avi debug: old:0 < new 0
avi debug: old:0 < new 0
main debug: adding a new input
stream_out_transcode debug: creating video transcoding from fcc=`mp4v' to fcc=`mp4v'
main debug: looking for decoder module: 27 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: postprocessing disabled
ffmpeg debug: using direct rendering
ffmpeg debug: ffmpeg codec (MPEG-4 Video) started
main debug: using decoder module "ffmpeg"
main debug: looking for encoder module: 10 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: found encoder MPEG-4 Video
main debug: using encoder module "ffmpeg"
main debug: removing module "ffmpeg"
mpeg_audio debug: MPGA channels:2 samplerate:48000 bitrate:32
main debug: adding a new input
stream_out_transcode debug: creating audio transcoding from fcc=`mpga' to fcc=`mp4a'
main debug: looking for decoder module: 27 candidates
main debug: using decoder module "mpeg_audio"
main debug: looking for encoder module: 10 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: found encoder MPEG AAC Audio
main debug: using encoder module "ffmpeg"
main debug: looking for audio filter2 module: 5 candidates
mpgatofixed32 debug: mpga->fl32, bits per sample: 0
main debug: using audio filter2 module "mpgatofixed32"
main debug: looking for audio filter2 module: 5 candidates
audio_format debug: fl32->s16l, bits per sample: 32
main debug: using audio filter2 module "audio_format"
stream_out_duplicate debug: duplicated a new stream codec=mp4a (es=1 group=0)
main debug: adding a new input
mux_mp4 debug: adding input
stream_out_duplicate debug: - added for output 0
stream_out_transcode debug: decoder aspect is 1016470:432000
stream_out_transcode debug: source pixel aspect is 0.999999:1
stream_out_transcode debug: scaled pixel aspect is 0.999999:1
stream_out_transcode debug: source 640x272, crop 640x272, destination 640x272, padding 640x272
stream_out_transcode debug: encoder aspect is 1016470:432000
main debug: looking for encoder module: 10 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: found encoder MPEG-4 Video
main debug: using encoder module "ffmpeg"
stream_out_duplicate debug: duplicated a new stream codec=mp4v (es=0 group=0)
main debug: adding a new input
mux_mp4 debug: adding input
stream_out_duplicate debug: - added for output 0
mpeg_audio debug: MPGA channels:2 samplerate:48000 bitrate:32
mpgatofixed32 debug: libmad error: bad main_data_begin pointer
mpgatofixed32 debug: libmad error: bad main_data_begin pointer
mpgatofixed32 debug: libmad error: bad main_data_begin pointer
ffmpeg warning: almost fed libavcodec with a frame in the past (current: 13846441373, last: 13846483084)
mpgatofixed32 debug: libmad error: bad main_data_begin pointer
mpgatofixed32 debug: libmad error: bad main_data_begin pointer
mpgatofixed32 debug: libmad error: bad main_data_begin pointer
mpgatofixed32 debug: libmad error: bad main_data_begin pointer
mpgatofixed32 debug: libmad error: bad main_data_begin pointer
mpgatofixed32 debug: libmad error: bad main_data_begin pointer