Page 1 of 1

Unable to Convert H.264 to MPEG2

Posted: 25 Nov 2010 15:56
by tuaris
I am unable to convert an H.264 MTS video from my camcorder to MPEG2 format, all I get is a video file with only the first frame. I am using the latest version of VLC on Windows XP SP3.

See log Below:

Code: Select all

qt4 debug: MRL passed to the Sout: F:\My Documents\My Videos\00000.MTS qt4 warning: Transcode MRL: sout=#transcode{vcodec=mp2v,vb=800,height=480,acodec=mpga,ab=128,channels=2,samplerate=44100}:file{dst='C:\Documents and Settings\Danny\Desktop\test.mpg'} qt4 debug: Adding option: file-caching=300 qt4 debug: Adding option: sout=#transcode{vcodec=mp2v,vb=800,height=480,acodec=mpga,ab=128,channels=2,samplerate=44100}:file{dst='C:\Documents and Settings\Danny\Desktop\test.mpg'} main debug: adding item `Streaming' ( F:\My Documents\My Videos\00000.MTS ) main debug: Creating an input for 'Streaming' main debug: rebuilding array of current - root Playlist main debug: rebuild done - 1 items, index -1 main debug: processing request item Streaming node null skip 0 main debug: resyncing on Streaming main debug: Streaming is at 0 main debug: starting new item main debug: creating new input thread main debug: Creating an input for 'Streaming' qt4 debug: Adding a new MRL to recent ones: F:\My Documents\My Videos\00000.MTS main debug: thread (input) created at priority 1 (../.././src/input/input.c:214) main debug: thread started main debug: using sout chain=`transcode{vcodec=mp2v,vb=800,height=480,acodec=mpga,ab=128,channels=2,samplerate=44100}:file{dst='C:\Documents and Settings\Danny\Desktop\test.mpg'}' main debug: stream=`file' main debug: looking for sout stream module: 1 candidate main debug: set config option: sout-standard-dst to C:\Documents and Settings\Danny\Desktop\test.mpg stream_out_standard debug: creating `file/(null)://C:\Documents and Settings\Danny\Desktop\test.mpg' stream_out_standard debug: extension is mpg stream_out_standard debug: extension -> mux=ps stream_out_standard debug: using `file/ps://C:\Documents and Settings\Danny\Desktop\test.mpg' main debug: looking for sout access module: 1 candidate access_output_file debug: file access output opened (C:\Documents and Settings\Danny\Desktop\test.mpg) main debug: using sout access module "access_output_file" main debug: TIMER module_need() : 0.930 ms - Total 0.930 ms / 1 intvls (Avg 0.930 ms) stream_out_standard debug: access opened main debug: looking for sout mux module: 1 candidate mux_ps info: Open main debug: using sout mux module "mux_ps" main debug: TIMER module_need() : 0.755 ms - Total 0.755 ms / 1 intvls (Avg 0.755 ms) main debug: muxer support adding stream at any time main debug: muxer prefers to wait for all ES before starting to mux stream_out_standard debug: mux opened main debug: using sout stream module "stream_out_standard" main debug: TIMER module_need() : 2.601 ms - Total 2.601 ms / 1 intvls (Avg 2.601 ms) main debug: stream=`transcode' main debug: looking for sout stream module: 1 candidate main debug: set config option: sout-transcode-vcodec to mp2v main debug: set config option: sout-transcode-vb to 800 main debug: set config option: sout-transcode-height to 480 main debug: set config option: sout-transcode-acodec to mpga main debug: set config option: sout-transcode-ab to 128 main debug: set config option: sout-transcode-channels to 2 main debug: set config option: sout-transcode-samplerate to 44100 stream_out_transcode debug: codec audio=mpga 44100Hz 2 channels 128Kb/s stream_out_transcode debug: codec video=mp2v 0x480 scaling: 0.000000 800kb/s main debug: using sout stream module "stream_out_transcode" main debug: TIMER module_need() : 0.670 ms - Total 0.670 ms / 1 intvls (Avg 0.670 ms) main debug: using timeshift granularity of 50 MiB main debug: using timeshift path 'C:\DOCUME~1\Danny\LOCALS~1\Temp' main debug: `F:\My Documents\My Videos\00000.MTS' gives access `' demux `' path `F:\My Documents\My Videos\00000.MTS' main debug: creating demux: access='' demux='' path='F:\My Documents\My Videos\00000.MTS' main debug: looking for access_demux module: 4 candidates main debug: no access_demux module matching "any" could be loaded main debug: TIMER module_need() : 0.439 ms - Total 0.439 ms / 1 intvls (Avg 0.439 ms) main debug: creating access '' path='F:\My Documents\My Videos\00000.MTS' main debug: looking for access module: 5 candidates vcd debug: trying .cue file: F:\My Documents\My Videos\00000.cue vcd debug: could not find .cue file filesystem debug: opening file `F:\My Documents\My Videos\00000.MTS' main debug: using access module "filesystem" main debug: TIMER module_need() : 0.416 ms - Total 0.416 ms / 1 intvls (Avg 0.416 ms) main debug: Using AStream*Stream main debug: pre buffering main debug: received first data after 0 ms main debug: pre-buffering done 1024 bytes in 0s - 32258 KiB/s main debug: looking for stream_filter module: 2 candidates main debug: no stream_filter module matching "any" could be loaded main debug: TIMER module_need() : 0.078 ms - Total 0.078 ms / 1 intvls (Avg 0.078 ms) main debug: looking for stream_filter module: 1 candidate main debug: using stream_filter module "stream_filter_record" main debug: TIMER module_need() : 0.073 ms - Total 0.073 ms / 1 intvls (Avg 0.073 ms) main debug: creating demux: access='' demux='' path='F:\My Documents\My Videos\00000.MTS' main debug: looking for demux module: 51 candidates ts warning: lost synchro ts debug: skipping 4 bytes of garbage ts debug: pid[256] unknown ts debug: pid[31] unknown ts debug: pid[4097] unknown ts debug: pid[4113] unknown ts debug: PATCallBack called ts debug: new PAT ts_id=1 version=0 current_next=1 ts debug: * number=0 pid=31 ts debug: * number=1 pid=256 ts debug: PMTCallBack called ts debug: new PMT program number=1 version=1 pid_pcr=4097 ts debug: * descriptor : registration HDMV ts debug: * descriptor : unknown (0x88) ts debug: * es pid=4113 type=27 dr->i_tag=0x5 ts debug: * es pid=4113 type=27 fcc=h264 main debug: selecting program id=1 ts debug: * es pid=4352 type=129 dr->i_tag=0x5 ts debug: * es pid=4352 type=129 dr->i_tag=0x81 ts debug: * es pid=4352 type=129 fcc=a52 ts debug: * es pid=4608 type=144 fcc=bdpg filesystem warning: unimplemented query 4097 in control main debug: using demux module "ts" main debug: TIMER module_need() : 5.455 ms - Total 5.455 ms / 1 intvls (Avg 5.455 ms) main debug: looking for packetizer module: 21 candidates main debug: using packetizer module "packetizer_h264" main debug: TIMER module_need() : 3.788 ms - Total 3.788 ms / 1 intvls (Avg 3.788 ms) main debug: thread started main debug: thread (decoder) created at priority 0 (../.././src/input/decoder.c:301) main debug: looking for packetizer module: 21 candidates main debug: meta ok for (null), need to fetch art main debug: using packetizer module "a52" main debug: TIMER module_need() : 2.620 ms - Total 2.620 ms / 1 intvls (Avg 2.620 ms) main debug: thread (decoder) created at priority 2 (../.././src/input/decoder.c:301) main debug: looking for meta fetcher module: 1 candidate lua debug: Trying Lua scripts in C:\Documents and Settings\Danny\Application Data\vlc\lua\meta\fetcher main debug: thread started lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\fetcher ts debug: DEMUX_SET_GROUP 0 00000000 lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\fetcher\tvrage.lua main debug: starting in sync mode main debug: looking for meta reader module: 2 candidates lua debug: Trying Lua scripts in C:\Documents and Settings\Danny\Application Data\vlc\lua\meta\reader lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\reader lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\reader\filename.lua main debug: using meta fetcher module "lua" main debug: TIMER module_need() : 1.065 ms - Total 1.065 ms / 1 intvls (Avg 1.065 ms) main debug: removing module "lua" main debug: searching art for Streaming main debug: looking for art finder module: 2 candidates main debug: no meta reader module matching "any" could be loaded main debug: TIMER module_need() : 1.089 ms - Total 1.089 ms / 1 intvls (Avg 1.089 ms) main debug: `F:\My Documents\My Videos\00000.MTS' successfully opened lua debug: Trying Lua scripts in C:\Documents and Settings\Danny\Application Data\vlc\lua\meta\art ts warning: first packet for pid=4113 cc=0xe lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\art lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.lua main debug: Buffering 0% lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.lua main debug: switching to async mode packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.lua qt4 debug: IM: Setting an input packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS main debug: Buffering 28% packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS main debug: Buffering 56% packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS main debug: Buffering 84% packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS main debug: Stream buffering done (336 ms in 11 ms) packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS main debug: Decoder buffering done in 0 ms lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\04_musicbrainz.lua main debug: no art finder module matching "any" could be loaded main debug: TIMER module_need() : 15.853 ms - Total 15.853 ms / 1 intvls (Avg 15.853 ms) main debug: art not found for Streaming packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 debug: found NAL_SPS (sps_id=0) packetizer_h264 debug: found NAL_PPS (pps_id=0 sps_id=0) main debug: adding a new sout input (sout_input:01783e30) stream_out_transcode debug: creating video transcoding from fcc=`h264' to fcc=`mp2v' main debug: looking for decoder module: 34 candidates a52 debug: A/52 channels:2 samplerate:48000 bitrate:256000 main debug: adding a new sout input (sout_input:0176f720) avcodec debug: libavcodec initialized (interface 0x345d00) avcodec debug: trying to use direct rendering avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) started main debug: using decoder module "avcodec" main debug: TIMER module_need() : 18.787 ms - Total 18.787 ms / 1 intvls (Avg 18.787 ms) main debug: looking for encoder module: 12 candidates avcodec debug: libavcodec already initialized avcodec debug: found encoder MPEG-1/2 Video main debug: using encoder module "avcodec" main debug: TIMER module_need() : 3.808 ms - Total 3.808 ms / 1 intvls (Avg 3.808 ms) main debug: removing module "avcodec" stream_out_transcode debug: creating audio transcoding from fcc=`a52 ' to fcc=`mpga' main debug: looking for decoder module: 34 candidates main debug: using decoder module "a52" main debug: TIMER module_need() : 0.342 ms - Total 0.342 ms / 1 intvls (Avg 0.342 ms) main debug: looking for encoder module: 12 candidates avcodec debug: libavcodec already initialized avcodec debug: found encoder MPEG Audio layer 1/2/3 main debug: using encoder module "avcodec" main debug: TIMER module_need() : 4.571 ms - Total 4.571 ms / 1 intvls (Avg 4.571 ms) stream_out_transcode debug: Looking for filter (a52 ->s16l, channels 2->2, rate 48000->44100) main debug: looking for audio filter module: 14 candidates main debug: using audio filter module "a52tofloat32" main debug: TIMER module_need() : 1.437 ms - Total 1.437 ms / 1 intvls (Avg 1.437 ms) main debug: Filter 'A/52' (016221f4) appended to chain main debug: looking for audio filter module: 14 candidates bandlimited_resampler debug: f32l/48000KHz/2->f32l/44100KHz/2 main debug: using audio filter module "bandlimited_resampler" main debug: TIMER module_need() : 0.345 ms - Total 0.345 ms / 1 intvls (Avg 0.345 ms) main debug: Filter 'bandlimited_resampler' (01621a5c) appended to chain main debug: looking for audio filter module: 14 candidates audio_format debug: f32l->s16l, bits per sample: 32->16 main debug: using audio filter module "audio_format" main debug: TIMER module_need() : 2.335 ms - Total 2.335 ms / 1 intvls (Avg 2.335 ms) main debug: Filter 'audio_format' (0179214c) appended to chain stream_out_transcode debug: Got complete audio filter chain main debug: adding a new input mux_ps debug: adding input codec=mpga avcodec debug: Available decoder output format 61 (PIX_FMT_DXVA2_VLD) avcodec debug: Trying DXVA2 avcodec warning: cannot load dxva2.dll avcodec warning: Failed to open DXVA2 avcodec debug: Available decoder output format 53 (PIX_FMT_VAAPI_VLD) avcodec debug: Available decoder output format 0 (PIX_FMT_YUV420P) avcodec debug: using direct rendering a52 debug: A/52 channels:2 samplerate:48000 bitrate:256000 stream_out_transcode debug: decoder aspect is 1.777778:1 stream_out_transcode debug: source pixel aspect is 1.000000:1 stream_out_transcode debug: scaled pixel aspect is 1.000000:1 stream_out_transcode debug: source 1920x1080, destination 854x480 stream_out_transcode debug: encoder aspect is 854:480 main debug: looking for video filter2 module: 18 candidates swscale debug: 1920x1080 chroma: I420 -> 854x480 chroma: I420 with scaling using Bicubic (good quality) main debug: using video filter2 module "swscale" main debug: TIMER module_need() : 5.892 ms - Total 5.892 ms / 1 intvls (Avg 5.892 ms) main debug: Filter 'Swscale' (04a8a074) appended to chain stream_out_transcode debug: destination (after video filters) 854x480 main debug: looking for encoder module: 12 candidates avcodec debug: libavcodec already initialized avcodec debug: found encoder MPEG-1/2 Video main debug: using encoder module "avcodec" main debug: TIMER module_need() : 1.357 ms - Total 1.357 ms / 1 intvls (Avg 1.357 ms) main debug: adding a new input mux_ps debug: adding input codec=mpgv main warning: trying to send non-dated packet to stream output! main warning: trying to send non-dated packet to stream output! main warning: trying to send non-dated packet to stream output! main warning: trying to send non-dated packet to stream output! main warning: trying to send non-dated packet to stream output! main warning: trying to send non-dated packet to stream output! main warning: trying to send non-dated packet to stream output! main warning: trying to send non-dated packet to stream output! main warning: trying to send non-dated packet to stream output! ... main warning: trying to send non-dated packet to stream output! main warning: trying to send non-dated packet to stream output! main warning: trying to send non-dated packet to stream output! main warning: trying to send non-dated packet to stream output! main warning: trying to send non-dated packet to stream output! main warning: trying to send non-dated packet to stream output! main warning: trying to send non-dated packet to stream output! main warning: can't get output picture avcodec warning: disabling direct rendering main warning: trying to send non-dated packet to stream output! main warning: can't get output picture main warning: trying to send non-dated packet to stream output! main warning: can't get output picture ... main warning: trying to send non-dated packet to stream output! main warning: can't get output picture main warning: trying to send non-dated packet to stream output! main warning: can't get output picture main warning: trying to send non-dated packet to stream output! main warning: can't get output picture ts debug: eof ? main debug: EOF reached main debug: waiting decoder fifos to empty main warning: trying to send non-dated packet to stream output! main warning: can't get output picture main warning: trying to send non-dated packet to stream output! main warning: can't get output picture main warning: trying to send non-dated packet to stream output! main warning: can't get output picture main warning: trying to send non-dated packet to stream output! main warning: can't get output picture main debug: waiting decoder fifos to empty main warning: trying to send non-dated packet to stream output! main warning: can't get output picture main warning: trying to send non-dated packet to stream output! main warning: can't get output picture main warning: trying to send non-dated packet to stream output! main warning: can't get output picture main warning: trying to send non-dated packet to stream output! main warning: can't get output picture main debug: waiting decoder fifos to empty main warning: trying to send non-dated packet to stream output! main warning: can't get output picture main warning: trying to send non-dated packet to stream output! main warning: can't get output picture main warning: trying to send non-dated packet to stream output! main warning: can't get output picture main debug: finished input main debug: thread times: real 0m58.269512s, kernel 0m0.875000s, user 0m50.625000s main debug: removing module "packetizer_h264" main debug: killing decoder fourcc `h264', 0 PES in FIFO main debug: removing a sout input (sout_input:01783e30) main debug: TIMER encoding video frame : 7.796 ms - Total 7.796 ms / 1 intvls (Avg 7.796 ms) avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) stopped main debug: removing module "avcodec" main debug: removing module "avcodec" main debug: Filter 04a8a074 removed from chain main debug: removing module "swscale" mux_ps debug: removing input main debug: thread times: real 0m58.269512s, kernel 0m0.031250s, user 0m6.125000s main debug: removing module "a52" main debug: killing decoder fourcc `a52 ', 0 PES in FIFO main debug: removing a sout input (sout_input:0176f720) main debug: TIMER encoding audio frame : 1.165 ms - Total 3656.637 ms / 2438 intvls (Avg 1.500 ms) main debug: removing module "a52" main debug: removing module "avcodec" main debug: Filter 016221f4 removed from chain main debug: removing module "a52tofloat32" main debug: Filter 01621a5c removed from chain main debug: removing module "bandlimited_resampler" main debug: Filter 0179214c removed from chain main debug: removing module "audio_format" mux_ps debug: removing input main warning: no more input streams for this mux ts debug: pid list: ts debug: - pid[0] seen ts debug: - pid[31] seen ts debug: - pid[256] seen ts debug: - pid[4097] seen ts debug: - pid[4113] seen ts debug: - pid[4352] seen main debug: Program doesn't contain anymore ES ts debug: - pid[4608] seen ts debug: - pid[8191] seen main debug: removing module "ts" main debug: removing module "stream_filter_record" main debug: removing module "filesystem" main debug: dead input main debug: destroying useless sout main debug: destroying chain... (name=transcode) main debug: removing module "stream_out_transcode" main debug: destroying chain done main debug: destroying chain... (name=file) mux_ps info: Close main debug: removing module "mux_ps" access_output_file debug: file access output closed main debug: removing module "access_output_file" main debug: removing module "stream_out_standard" main debug: destroying chain done main debug: thread ended main debug: thread times: real 0m58.285138s, kernel 0m0.531250s, user 0m0.671875s main debug: changing item without a request (current 0/1) main debug: nothing to play qt4 debug: IM: Deleting the input main debug: TIMER input launching for 'Streaming' : 21.448 ms - Total 21.448 ms / 1 intvls (Avg 21.448 ms)