Unable to convert/transcode to MPEG2

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
goldsmith
Blank Cone
Blank Cone
Posts: 10
Joined: 05 May 2009 16:24

Unable to convert/transcode to MPEG2

Postby goldsmith » 28 Aug 2009 11:11

Hi,

I am having problem with VLC 1.0.1. I am unable to convert/stream divx to MPEG2 TS. Error is VLC could not open encoder.
I used MPEG2+MPGA profile
Here is log:

Code: Select all

qt4 debug: MRL passed to the Sout: C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.avi qt4 warning: Transcode MRL: sout=#transcode{vcodec=mp2v,vb=800,scale=1,acodec=mpga,ab=128,channels=2,samplerate=44100}:duplicate{dst=std{access=file,mux=ts,dst='C:\Documents and Settings\nadir.zlatar\Desktop\ppp.ts'} qt4 debug: Adding option: sout=#transcode{vcodec=mp2v,vb=800,scale=1,acodec=mpga,ab=128,channels=2,samplerate=44100}:duplicate{dst=std{access=file,mux=ts,dst='C:\Documents and Settings\nadir.zlatar\Desktop\ppp.ts'} main debug: adding item `Streaming' ( C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.avi ) main debug: rebuilding array of current - root Playlist main debug: rebuild done - 2 items, index 0 main debug: processing request item Streaming node null skip 0 main debug: resyncing on Streaming main debug: Streaming is at 1 main debug: starting new item main debug: creating new input thread main debug: Creating an input for 'Streaming' main debug: thread (input) created at priority 1 (../.././src/input/input.c:230) qt4 debug: Adding a new MRL to recent ones: C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.avi main debug: thread started 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=ts,dst='C:\Documents and Settings\nadir.zlatar\Desktop\ppp.ts'}' main debug: stream=`std' main debug: looking for sout stream module: 1 candidate main debug: set config option: sout-standard-access to file main debug: set config option: sout-standard-mux to ts main debug: set config option: sout-standard-dst to C:\Documents and Settings\nadir.zlatar\Desktop\ppp.ts stream_out_standard debug: creating `file/ts://C:\Documents and Settings\nadir.zlatar\Desktop\ppp.ts' stream_out_standard debug: extension is ts stream_out_standard debug: extension -> mux=ts stream_out_standard debug: using `file/ts://C:\Documents and Settings\nadir.zlatar\Desktop\ppp.ts' main debug: looking for sout access module: 1 candidate access_output_file debug: file access output opened (C:\Documents and Settings\nadir.zlatar\Desktop\ppp.ts) main debug: using sout access module "access_output_file" main debug: TIMER module_need() : 89.629 ms - Total 89.629 ms / 1 intvls (Avg 89.629 ms) stream_out_standard debug: access opened main debug: looking for sout mux module: 1 candidate mux_ts debug: shaping=200000 pcr=70000 dts_delay=400000 main debug: using sout mux module "mux_ts" main debug: TIMER module_need() : 5.655 ms - Total 5.655 ms / 1 intvls (Avg 5.655 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() : 99.033 ms - Total 99.033 ms / 1 intvls (Avg 99.033 ms) main debug: using sout stream module "stream_out_duplicate" main debug: TIMER module_need() : 100.248 ms - Total 100.248 ms / 1 intvls (Avg 100.248 ms) 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-scale to 1 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 0x0 scaling: 1.000000 800kb/s main debug: using sout stream module "stream_out_transcode" main debug: TIMER module_need() : 107.982 ms - Total 107.982 ms / 1 intvls (Avg 107.982 ms) main debug: using timeshift granularity of 50 MBytes main debug: using timeshift path 'C:\DOCUME~1\NADIR~1.ZLA\LOCALS~1\Temp' main debug: `C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.avi' gives access `' demux `' path `C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.avi' main debug: creating demux: access='' demux='' path='C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.avi' main debug: looking for access_demux module: 3 candidates main debug: TIMER module_need() : 0.654 ms - Total 0.654 ms / 1 intvls (Avg 0.654 ms) main debug: creating access '' path='C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.avi' main debug: looking for access module: 5 candidates vcd debug: trying .cue file: C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.cue vcd debug: could not find .cue file access_file debug: opening file `C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.avi' main debug: using access module "access_file" main debug: TIMER module_need() : 1.066 ms - Total 1.066 ms / 1 intvls (Avg 1.066 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 - 26315 kbytes/s main debug: looking for stream_filter module: 2 candidates main debug: TIMER module_need() : 0.143 ms - Total 0.143 ms / 1 intvls (Avg 0.143 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.156 ms - Total 0.156 ms / 1 intvls (Avg 0.156 ms) main debug: creating demux: access='' demux='' path='C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.avi' main debug: looking for demux module: 50 candidates avi debug: found Chunk fourcc:46464952 (RIFF) size:730718328 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 608x336 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 608x336 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 158kb/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:56 pos:8850 avi debug: found LIST chunk: 'INFO' avi debug: <list 'INFO'> avi debug: found Chunk fourcc:54465349 (ISFT) size:44 pos:8862 avi debug: ISFT: software : VirtualDubMod 1.5.10.2 (build 2540/release) avi debug: </list 'INFO'> avi debug: found Chunk fourcc:4b4e554a (JUNK) size:1318 pos:8914 avi debug: found Chunk fourcc:5453494c (LIST) size:724447392 pos:10240 avi debug: skipping movi chunk avi debug: found Chunk fourcc:31786469 (idx1) size:6260688 pos:724457640 avi debug: idx1: index entry:391293 avi debug: </list 'AVI '> avi debug: found Chunk fourcc:4b4e554a (JUNK) size:1912 pos:730718336 avi debug: * LIST-root size:730720256 pos:0 avi debug: + RIFF-AVI size:730718328 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:56 pos:8850 avi debug: | | + ISFT size:44 pos:8862 avi debug: | + JUNK size:1318 pos:8914 avi debug: | + LIST-movi size:724447392 pos:10240 avi debug: | + idx1 size:6260688 pos:724457640 avi debug: + JUNK size:1912 pos:730718336 avi debug: AVIH: 2 stream, flags HAS_INDEX IS_INTERLEAVED avi debug: stream[0] rate:2997 scale:125 samplesize:0 avi debug: stream[0] video(XVID) 608x336 12bpp 23.976000fps 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 142920 index entries avi debug: stream[1] created 248373 index entries avi debug: stream[0] length:5960 (based on index) avi debug: stream[1] length:5960 (based on index) main debug: using demux module "avi" main debug: TIMER module_need() : 298.764 ms - Total 298.764 ms / 1 intvls (Avg 298.764 ms) main debug: looking for a subtitle file in C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\ main debug: autodetected subtitle: C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.srt with priority 4 main debug: `C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.srt' gives access `' demux `' path `C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.srt' main debug: creating demux: access='' demux='subtitle' path='C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.srt' main debug: looking for access_demux module: 3 candidates main debug: TIMER module_need() : 0.594 ms - Total 0.594 ms / 1 intvls (Avg 0.594 ms) main debug: creating access '' path='C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.srt' main debug: looking for access module: 5 candidates vcd debug: trying .cue file: C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.cue vcd debug: could not find .cue file access_file debug: opening file `C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.srt' main debug: using access module "access_file" main debug: TIMER module_need() : 1.146 ms - Total 1.146 ms / 1 intvls (Avg 1.146 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 - 16666 kbytes/s main debug: looking for stream_filter module: 2 candidates main debug: TIMER module_need() : 0.149 ms - Total 0.149 ms / 1 intvls (Avg 0.149 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.152 ms - Total 0.152 ms / 1 intvls (Avg 0.152 ms) main debug: creating demux: access='' demux='subtitle' path='C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.srt' main debug: looking for demux module: 3 candidates vobsub debug: this doesn't seem to be a vobsub file subtitle debug: Movie fps: 23.976000 subtitle debug: autodetecting subtitle format subtitle debug: detected SubRIP format subtitle debug: loading all subtitles... subtitle debug: loaded 723 subtitles main debug: using demux module "subtitle" main debug: TIMER module_need() : 15.232 ms - Total 15.232 ms / 1 intvls (Avg 15.232 ms) main debug: looking for packetizer module: 21 candidates main debug: using packetizer module "packetizer_mpeg4video" main debug: TIMER module_need() : 0.611 ms - Total 0.611 ms / 1 intvls (Avg 0.611 ms) main debug: thread (decoder) created at priority 0 (../.././src/input/decoder.c:315) qt4 debug: IM: Setting an input main debug: thread started main debug: looking for packetizer module: 21 candidates main debug: using packetizer module "mpeg_audio" main debug: TIMER module_need() : 0.670 ms - Total 0.670 ms / 1 intvls (Avg 0.670 ms) main debug: thread (decoder) created at priority 2 (../.././src/input/decoder.c:315) main debug: thread started main debug: looking for packetizer module: 21 candidates main debug: using packetizer module "packetizer_copy" main debug: TIMER module_need() : 0.315 ms - Total 0.315 ms / 1 intvls (Avg 0.315 ms) main debug: thread (decoder) created at priority 0 (../.././src/input/decoder.c:315) qt4 debug: Updating the geometry qt4 debug: Updating the geometry main debug: thread started main debug: starting in sync mode main debug: `C:\Documents and Settings\nadir.zlatar\Desktop\The Invasion\The Invasion.avi' successfully opened main debug: Buffering 0% main debug: switching to async mode main debug: Buffering 8% mpeg_audio debug: MPGA channels:2 samplerate:48000 bitrate:32 main debug: adding a new sout input (sout_input:0x1e6e830) stream_out_transcode debug: creating audio transcoding from fcc=`mpga' to fcc=`mpga' main debug: looking for decoder module: 36 candidates main debug: using decoder module "mpeg_audio" main debug: TIMER module_need() : 0.882 ms - Total 0.882 ms / 1 intvls (Avg 0.882 ms) main debug: looking for encoder module: 12 candidates avcodec debug: libavcodec already initialized avcodec debug: found encoder MPEG Audio layer 1/2 main debug: using encoder module "avcodec" main debug: TIMER module_need() : 7.759 ms - Total 7.759 ms / 1 intvls (Avg 7.759 ms) stream_out_transcode debug: Looking for filter (mpga->s16l, channels 2->2, rate 48000->44100) main debug: looking for audio filter2 module: 8 candidates mpgatofixed32 debug: mpga->fl32, bits per sample: 0 main debug: using audio filter2 module "mpgatofixed32" main debug: TIMER module_need() : 0.178 ms - Total 0.178 ms / 1 intvls (Avg 0.178 ms) main debug: Filter 'mpgatofixed32' (0xe3267c) appended to chain main debug: looking for audio filter2 module: 8 candidates bandlimited_resampler debug: fl32/48000KHz/2->fl32/44100KHz/2 main debug: using audio filter2 module "bandlimited_resampler" main debug: TIMER module_need() : 0.310 ms - Total 0.310 ms / 1 intvls (Avg 0.310 ms) main debug: Filter 'bandlimited_resampler' (0x1eac414) appended to chain main debug: looking for audio filter2 module: 8 candidates audio_format debug: fl32->s16l, bits per sample: 32->16 main debug: using audio filter2 module "audio_format" main debug: TIMER module_need() : 0.179 ms - Total 0.179 ms / 1 intvls (Avg 0.179 ms) main debug: Filter 'audio_format' (0x6911cfc) appended to chain stream_out_transcode debug: Got complete audio filter chain stream_out_duplicate debug: duplicated a new stream codec=mpga (es=1 group=0) main debug: adding a new input mux_ts debug: adding input codec=mpga pid=68 mux_ts debug: new PCR PID is 68 stream_out_duplicate debug: - added for output 0 packetizer_mpeg4video warning: waiting for VOL packetizer_mpeg4video warning: waiting for VOL main debug: Buffering 16% main debug: Buffering 25% main debug: adding a new sout input (sout_input:0x1f484b8) stream_out_transcode debug: creating video transcoding from fcc=`mp4v' to fcc=`mp2v' main debug: looking for decoder module: 36 candidates avcodec debug: libavcodec already initialized avcodec debug: using direct rendering avcodec debug: ffmpeg codec (MPEG-4 Video) started main debug: using decoder module "avcodec" main debug: TIMER module_need() : 2.940 ms - Total 2.940 ms / 1 intvls (Avg 2.940 ms) main debug: looking for encoder module: 12 candidates avcodec debug: libavcodec already initialized avcodec debug: found encoder MPEG-2 Video main debug: using encoder module "avcodec" main debug: TIMER module_need() : 7.998 ms - Total 7.998 ms / 1 intvls (Avg 7.998 ms) main debug: removing module "avcodec" main debug: Buffering 33% main debug: Buffering 41% main debug: Buffering 50% main debug: Buffering 58% main debug: Buffering 66% main debug: Buffering 75% main debug: Buffering 83% main debug: Buffering 91% main debug: Buffering 100% main debug: Stream buffering done (325 ms in 23 ms) main debug: Decoder buffering done in 0 ms stream_out_transcode debug: decoder aspect is 781714:432000 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 608x336, destination 608x336 stream_out_transcode debug: encoder aspect is 781714:432000 stream_out_transcode debug: destination (after video filters) 608x336 main debug: looking for encoder module: 12 candidates avcodec debug: libavcodec already initialized [b]avcodec error: cannot open encoder[/b] main debug: TIMER module_need() : 65.976 ms - Total 65.976 ms / 1 intvls (Avg 65.976 ms) stream_out_transcode error: cannot find video encoder (module:any fourcc:mp2v) avcodec debug: ffmpeg codec (MPEG-4 Video) stopped main debug: removing module "avcodec" mpeg_audio debug: MPGA channels:2 samplerate:48000 bitrate:32 main debug: adding a new sout input (sout_input:0x1ef4160) stream_out_transcode debug: not transcoding a stream (fcc=`subt') stream_out_duplicate debug: duplicated a new stream codec=subt (es=2 group=0) main debug: adding a new input mux_ts debug: adding input codec=subt pid=69 stream_out_duplicate debug: - added for output 0 mux_ts debug: adjusting rate at -3600549/208971 (3/26) mux_ts debug: adjusting rate at -4595656/208970 (3/26) mux_ts debug: adjusting rate at -3647075/208994 (3/26) mux_ts debug: adjusting rate at -1865443/208993 (3/26) mux_ts debug: adjusting rate at -3352803/208962 (3/26) mux_ts debug: adjusting rate at -4840962/208984 (3/26) qt4 debug: Updating the geometry qt4 debug: Updating the geometry qt4 debug: New caching: 100 qt4 debug: New caching: 100 mux_ts debug: adjusting rate at -4396885/208961 (3/26) mux_ts debug: adjusting rate at -7556472/208971 (3/26) mux_ts debug: adjusting rate at -10238917/208970 (3/26) mux_ts debug: adjusting rate at -4601765/208993 (3/26) mux_ts debug: adjusting rate at -11560545/208984 (3/26) mux_ts debug: adjusting rate at -4155867/208993 (3/26) mux_ts debug: adjusting rate at -4818917/208970 (3/26) main debug: incoming request - stopping current input main debug: dying input main debug: control type=0 main debug: control: stopping input main debug: dying input main debug: thread times: real 0m39.127432s, kernel 0m0.020028s, user 0m0.300432s main debug: removing module "packetizer_mpeg4video" main debug: killing decoder fourcc `XVID', 0 PES in FIFO main debug: removing a sout input (sout_input:0x1f484b8) main debug: thread times: real 0m39.067344s, kernel 0m0.550792s, user 0m35.360846s main debug: removing module "mpeg_audio" main debug: killing decoder fourcc `mpga', 0 PES in FIFO main debug: removing a sout input (sout_input:0x1e6e830) main debug: TIMER encoding audio frame : 0.193 ms - Total 4320.626 ms / 26392 intvls (Avg 0.164 ms) main debug: removing module "mpeg_audio" main debug: removing module "avcodec" main debug: Filter 'mpgatofixed32' (0xe3267c) removed from chain main debug: removing module "mpgatofixed32" main debug: Filter 'bandlimited_resampler' (0x1eac414) removed from chain main debug: removing module "bandlimited_resampler" main debug: Filter 'audio_format' (0x6911cfc) removed from chain main debug: removing module "audio_format" mux_ts debug: removing input pid=68 mux_ts debug: new PCR PID is 8191 main debug: thread times: real 0m39.057330s, kernel 0m0.000000s, user 0m0.000000s main debug: removing module "packetizer_copy" main debug: killing decoder fourcc `subt', 0 PES in FIFO main debug: removing a sout input (sout_input:0x1ef4160) mux_ts debug: removing input pid=69 main warning: no more input streams for this mux avi debug: free chunk avih avi debug: free chunk strh avi debug: free chunk strf avi debug: free chunk JUNK avi debug: free chunk LIST avi debug: free chunk strh avi debug: free chunk strf avi debug: free chunk JUNK avi debug: free chunk LIST avi warning: unknown chunk (not unloaded) avi debug: free chunk LIST avi debug: free chunk LIST avi debug: free chunk ISFT avi debug: free chunk LIST avi debug: free chunk JUNK avi debug: free chunk LIST avi debug: free chunk idx1 avi debug: free chunk RIFF avi debug: free chunk JUNK avi debug: free chunk LIST main debug: removing module "avi" main debug: removing module "stream_filter_record" main debug: removing module "access_file" main debug: removing module "subtitle" main debug: removing module "stream_filter_record" main debug: removing module "access_file" main debug: Program doesn't contain anymore ES main debug: dead input main debug: destroying useless sout main debug: destroying chain... (name=transcode) main debug: destroying chain... (name=duplicate) stream_out_duplicate debug: closing a duplication main debug: destroying chain... (name=std) main debug: removing module "mux_ts" main debug: thread ended 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: removing module "stream_out_duplicate" main debug: destroying chain done main debug: removing module "stream_out_transcode" main debug: destroying chain done main debug: thread times: real 0m39.568079s, kernel 0m0.701008s, user 0m0.680979s qt4 debug: IM: Deleting the input qt4 debug: Updating the geometry qt4 debug: Updating the geometry main debug: TIMER input launching for 'Streaming' : 591.495 ms - Total 591.495 ms / 1 intvls (Avg 591.495 ms)
thanks
Last edited by goldsmith on 28 Aug 2009 11:16, edited 1 time in total.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Unable to convert/transcode to MPEG2

Postby Jean-Baptiste Kempf » 28 Aug 2009 11:13

Waouw, "avcodec error: cannot open encoder" doesn't help a lot...
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

goldsmith
Blank Cone
Blank Cone
Posts: 10
Joined: 05 May 2009 16:24

Re: Unable to convert/transcode to MPEG2

Postby goldsmith » 28 Aug 2009 11:21

I tried to convert XVID with H264 and it works OK. This is maximum messages I can get?

Also I tried to convert some different file that is not XVID or DIVX to mpeg 2 and it works. So problem is with XVID/DIVX conversion. Any tips?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Unable to convert/transcode to MPEG2

Postby Jean-Baptiste Kempf » 28 Aug 2009 12:38

Maybe the aspect ratio?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

goldsmith
Blank Cone
Blank Cone
Posts: 10
Joined: 05 May 2009 16:24

Re: Unable to convert/transcode to MPEG2

Postby goldsmith » 28 Aug 2009 14:52

Maybe the aspect ratio?
It might be, I tried with another DIV X and suceed, but few XVID with 16:9 aspect ratio I could not convert.

TinyTuna
New Cone
New Cone
Posts: 7
Joined: 28 Aug 2009 17:07
VLC version: 1.0.1
Operating System: WindowsXP

Re: Unable to convert/transcode to MPEG2

Postby TinyTuna » 28 Aug 2009 17:09

I'm having a very similar problem. I'm trying to read a stream from a video capture card and IP Multicast stream it over the network, but I think the problem I'm having is a transcoding one... It actually works fine if I try to stream (transcode to) H.264, but I get the error if I try to stream MPEG-2 or MPEG-4 (which, unfortunately, for my application I must use one of those two).

So here's my configuration for capturing from the capture card. This is verified to work - if I use the configuration and play the video instead of streaming it, it plays just fine. (Also, like I said, I can stream H.264 no problem).
:dshow-vdev=Hauppauge WinTV PVR PCI II Capture :dshow-adev=none:dshow-caching=200 :dshow-vdev= :dshow-adev= :dshow-size= :dshow-chroma= :dshow-fps=0 :no-dshow-config :no-dshow-tuner :dshow-tuner-channel=98 :dshow-tuner-country=0 :dshow-tuner-input=0 :dshow-video-input=-1 :dshow-video-output=-1 :dshow-audio-input=-1 :dshow-audio-output=-1 :dshow-amtuner-mode=1 :dshow-audio-channels=0 :dshow-audio-samplerate=0 :dshow-audio-bitspersample=0
Now here's my configuration for streaming MPEG-2.
:sout=#transcode{vcodec=mp4v,vb=800,scale=1,acodec=none}:rtp{dst=224.1.1.98,port=1234,mux=ts}
And here is the error message:
Streaming / Transcoding failed:
VLC could not open the encoder.
And lastly, my log (verbosity level 2).

Code: Select all

qt4 debug: :dshow-caching=200 :dshow-vdev= :dshow-adev= :dshow-size= :dshow-chroma= :dshow-fps=0 :no-dshow-config :no-dshow-tuner :dshow-tuner-channel=98 :dshow-tuner-country=0 :dshow-tuner-input=0 :dshow-video-input=-1 :dshow-video-output=-1 :dshow-audio-input=-1 :dshow-audio-output=-1 :dshow-amtuner-mode=1 :dshow-audio-channels=0 :dshow-audio-samplerate=0 :dshow-audio-bitspersample=0 qt4 debug: MRL passed to the Sout: dshow:// qt4 debug: Adding option: dshow-vdev=Hauppauge WinTV PVR PCI II Capture qt4 debug: Adding option: dshow-adev=none:dshow-caching=200 qt4 debug: Adding option: dshow-vdev= qt4 debug: Adding option: dshow-adev= qt4 debug: Adding option: dshow-size= qt4 debug: Adding option: dshow-chroma= qt4 debug: Adding option: dshow-fps=0 qt4 debug: Adding option: no-dshow-config qt4 debug: Adding option: no-dshow-tuner qt4 debug: Adding option: dshow-tuner-channel=98 qt4 debug: Adding option: dshow-tuner-country=0 qt4 debug: Adding option: dshow-tuner-input=0 qt4 debug: Adding option: dshow-video-input=-1 qt4 debug: Adding option: dshow-video-output=-1 qt4 debug: Adding option: dshow-audio-input=-1 qt4 debug: Adding option: dshow-audio-output=-1 qt4 debug: Adding option: dshow-amtuner-mode=1 qt4 debug: Adding option: dshow-audio-channels=0 qt4 debug: Adding option: dshow-audio-samplerate=0 qt4 debug: Adding option: dshow-audio-bitspersample=0 qt4 debug: Adding option: :sout=#transcode{vcodec=mp4v,vb=800,scale=1,acodec=none}:rtp{dst=224.1.1.98,port=1234,mux=ts} main debug: adding item `Streaming' ( dshow:// ) qt4 debug: Adding a new MRL to recent ones: dshow:// main debug: rebuilding array of current - root Playlist main debug: rebuild done - 7 items, index 5 main debug: processing request item Streaming node null skip 0 main debug: resyncing on Streaming main debug: Streaming is at 6 main debug: starting new item main debug: creating new input thread main debug: Creating an input for 'Streaming' main debug: thread (input) created at priority 1 (../.././src/input/input.c:230) main debug: thread started main debug: stream=`transcode' main debug: looking for sout stream module: 1 candidate main debug: stream=`rtp' main debug: looking for sout stream module: 1 candidate main debug: set config option: sout-rtp-dst to 224.1.1.98 main debug: set config option: sout-rtp-port to 1234 main debug: set config option: sout-rtp-mux to ts main debug: looking for sout mux module: 1 candidate qt4 debug: IM: Setting an input qt4 debug: Updating the geometry qt4 debug: Updating the geometry mux_ts debug: shaping=200000 pcr=70000 dts_delay=400000 main debug: using sout mux module "mux_ts" main debug: TIMER module_need() : 4.000 ms - Total 4.000 ms / 1 intvls (Avg 4.000 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_rtp debug: maximum RTP packet size: 1400 bytes main debug: net: connecting to [224.1.1.98]:1234 main debug: net: connecting to [224.1.1.98]:1235 from [192.168.0.2]:1096 main debug: thread (RTP send thread) created at priority 15 (../../.././modules/stream_out/rtp.c:1279) main debug: thread started stream_out_rtp debug: sdp= v=0 o=- 14862570930810388480 14862570930810388480 IN IP4 user-b8ca4c51e0 s=Unnamed i=N/A c=IN IP4 224.1.1.98/255 t=0 0 a=tool:vlc 1.0.1 a=recvonly a=type:broadcast a=charset:UTF-8 m=video 1234 RTP/AVP 33 b=RR:0 a=rtpmap:33 MP2T/90000 main debug: using sout stream module "stream_out_rtp" main debug: TIMER module_need() : 12.000 ms - Total 12.000 ms / 1 intvls (Avg 12.000 ms) main debug: set config option: sout-transcode-vcodec to mp4v main debug: set config option: sout-transcode-vb to 800 main debug: set config option: sout-transcode-scale to 1 main debug: set config option: sout-transcode-acodec to none stream_out_transcode debug: codec audio=none 0Hz 0 channels 0Kb/s stream_out_transcode debug: codec video=mp4v 0x0 scaling: 1.000000 800kb/s main debug: using sout stream module "stream_out_transcode" main debug: TIMER module_need() : 16.000 ms - Total 16.000 ms / 1 intvls (Avg 16.000 ms) main debug: using timeshift granularity of 50 MBytes main debug: using timeshift path 'C:\DOCUME~1\IPTV\LOCALS~1\Temp' main debug: `dshow://' gives access `dshow' demux `' path `' main debug: creating demux: access='dshow' demux='' path='' main debug: looking for access_demux module: 1 candidate dshow debug: dshow-vdev: Hauppauge WinTV PVR PCI II Capture dshow debug: dshow-adev: none:dshow-caching=200 dshow debug: found device: Hauppauge WinTV PVR PCI II Capture dshow debug: found device: Hauppauge WinTV PVR PCI II Capture #1 dshow debug: asking for device: Hauppauge WinTV PVR PCI II Capture qt4 debug: New caching: 0 qt4 debug: New caching: 0 dshow debug: asked for Hauppauge WinTV PVR PCI II Capture, binding to Hauppauge WinTV PVR PCI II Capture dshow debug: using device: Hauppauge WinTV PVR PCI II Capture dshow debug: EnumDeviceCaps: input pin: Analog Video In dshow debug: EnumDeviceCaps: input pin: Analog Audio In dshow debug: EnumDeviceCaps: output pin: Capture dshow debug: EnumDeviceCaps: output pin: Audio Out dshow debug: EnumDeviceCaps: output pin: VBI dshow debug: EnumDeviceCaps: output pin: 656 dshow debug: EnumDeviceCaps: trying pin Capture dshow debug: EnumDeviceCaps: input pin default format configured dshow debug: EnumDeviceCaps: input pin media: unsupported format (video HCW2) dshow debug: EnumDeviceCaps: input pin media: using 'I420' in place of unsupported format 'HCW2' dshow debug: CaptureFilter::JoinFilterGraph dshow debug: connecting filters dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::ConnectedTo [not connected] dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::QueryFilterInfo dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryAccept [media type not supported] dshow debug: CapturePin::ReceiveConnection [media type not accepted] dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryAccept [media type not supported] dshow debug: CapturePin::ReceiveConnection [media type not accepted] dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::ConnectedTo [not connected] dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CapturePin::ConnectedTo [not connected] dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryAccept [media type not supported] dshow debug: CapturePin::ReceiveConnection [media type not accepted] dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryAccept [media type not supported] dshow debug: CapturePin::ReceiveConnection [media type not accepted] dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryAccept [OK] (width=720, height=480, chroma=YUY2, fps=29.970000) dshow debug: CapturePin::ReceiveConnection [OK] dshow debug: CapturePin::GetAllocatorRequirements dshow debug: CapturePin::GetAllocator dshow debug: CapturePin::NotifyAllocator dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::ConnectedTo [OK] dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::ConnectedTo [OK] dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::ConnectedTo [OK] dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::ConnectedTo [OK] dshow debug: CaptureFilter::EnumPins dshow debug: found existing route for output 0 (type Video Decoder) to input 0 (type Video Tuner) dshow debug: crossbar at depth 0, found route for output 0 (type Video Decoder) to input 0 (type Video Tuner) dshow debug: ConnectFilters: graph_builder2 available. dshow debug: filters connected successfully ! dshow debug: tuner config: channel 98, country 0, input type 0 dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::ConnectedTo [OK] dshow debug: MEDIATYPE_Video dshow debug: selected video pin accepts format: YUY2 dshow debug: skipping audio device dshow debug: crossbar at depth 0, routed video output 0 to video input 0 dshow debug: crossbar at depth 0, routed audio output 1 to audio input 1 dshow debug: Playing... dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::ConnectedTo [OK] dshow debug: CaptureFilter::SetSyncSource dshow debug: CaptureFilter::Pause dshow debug: CaptureFilter::Run main debug: selecting program id=0 dshow debug: CaptureFilter::EnumPins qt4 debug: Updating the geometry qt4 debug: Updating the geometry qt4 debug: Updating the geometry qt4 debug: Updating the geometry main debug: using access_demux module "dshow" main debug: TIMER module_need() : 1222.000 ms - Total 1222.000 ms / 1 intvls (Avg 1222.000 ms) qt4 debug: Updating the geometry main debug: looking for a subtitle file in C:\Program Files\VideoLAN\VLC\ main debug: looking for packetizer module: 21 candidates main debug: using packetizer module "rawvideo" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: thread (decoder) created at priority 0 (../.././src/input/decoder.c:315) main debug: thread started main debug: starting in async mode main debug: `dshow://' successfully opened qt4 debug: Updating the geometry qt4 debug: Updating the geometry main debug: Buffering 0% main debug: switching to sync mode main debug: adding a new sout input (sout_input:0x32e60c0) stream_out_transcode debug: creating video transcoding from fcc=`YUY2' to fcc=`mp4v' main debug: looking for decoder module: 36 candidates main debug: using decoder module "rawvideo" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: looking for encoder module: 12 candidates avcodec debug: libavcodec already initialized avcodec debug: found encoder MPEG-4 Video main debug: using encoder module "avcodec" main debug: TIMER module_need() : 5.000 ms - Total 5.000 ms / 1 intvls (Avg 5.000 ms) main debug: removing module "avcodec" main debug: Buffering 16% qt4 debug: New caching: 16 qt4 debug: New caching: 16 main debug: Buffering 33% qt4 debug: New caching: 33 qt4 debug: New caching: 33 main debug: Buffering 50% qt4 debug: New caching: 50 qt4 debug: New caching: 50 main debug: Buffering 66% qt4 debug: New caching: 66 qt4 debug: New caching: 66 main debug: Buffering 83% qt4 debug: New caching: 83 qt4 debug: New caching: 83 main debug: Stream buffering done (201 ms in 201 ms) main debug: Decoder buffering done in 0 ms qt4 debug: New caching: 100 qt4 debug: New caching: 100 stream_out_transcode debug: late picture skipped (41000) stream_out_transcode debug: late picture skipped (7557) stream_out_transcode debug: decoder aspect is 576000:432000 stream_out_transcode debug: source pixel aspect is 0.888889:1 stream_out_transcode debug: scaled pixel aspect is 0.888889:1 stream_out_transcode debug: source 720x480, destination 720x480 stream_out_transcode debug: encoder aspect is 576000:432000 main debug: looking for video filter2 module: 20 candidates swscale debug: 720x480 chroma: YUY2 -> 720x480 chroma: I420 with scaling using Bicubic (good quality) main debug: using video filter2 module "swscale" main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) main debug: Filter 'swscale' (0x2578074) appended to chain stream_out_transcode debug: destination (after video filters) 720x480 main debug: looking for encoder module: 12 candidates avcodec debug: libavcodec already initialized avcodec error: cannot open encoder main debug: TIMER module_need() : 4.000 ms - Total 4.000 ms / 1 intvls (Avg 4.000 ms) stream_out_transcode error: cannot find video encoder (module:any fourcc:mp4v) main debug: removing module "rawvideo" main debug: Filter 'swscale' (0x2578074) removed from chain main debug: removing module "swscale"
Last but not least:
I'm using VLC v1.0.1 on WindowsXP Professional SP3. (I'm running this as a non-administrator, i.e. regular user account, in case that may matter.)

Does anyone have any ideas?
(I don't mean to hijack the thread. I just think we may be having the same problem is all...)

-- TT
Tiny Tuna

goldsmith
Blank Cone
Blank Cone
Posts: 10
Joined: 05 May 2009 16:24

Re: Unable to convert/transcode to MPEG2

Postby goldsmith » 30 Aug 2009 11:49

Well probably the problem is with your input stream. I think that Hauppauge already has MPEG2 in hardware so you probably do not need to transcode at all if you want MPEG2. You can just make transport stream out of it. My problem is that only some XVID could not be transcoded to MPEG2, I probably need to change some settings to make it work (set heiht, width or something like that), but I dont know which.

TinyTuna
New Cone
New Cone
Posts: 7
Joined: 28 Aug 2009 17:07
VLC version: 1.0.1
Operating System: WindowsXP

Re: Unable to convert/transcode to MPEG2

Postby TinyTuna » 31 Aug 2009 21:02

I suspect my underlying problem is the same as yours... Although I think you're right, clearly it isn't using the hardware encoders and if it did then that would probably get around the issue for me.
I opened up a new thread (since it's really a different topic) to ask about how to use the hardware encoders. However, I'm still interested to hear the resolution of this issue, if you find one...
Tiny Tuna

mR. bluE
New Cone
New Cone
Posts: 1
Joined: 01 Sep 2009 19:53

Re: Unable to convert/transcode to MPEG2

Postby mR. bluE » 01 Sep 2009 19:56

Maybe the aspect ratio?
It might be, I tried with another DIV X and suceed, but few XVID with 16:9 aspect ratio I could not convert.
any solution for this?
i got exactly the same problem

fcch2000
New Cone
New Cone
Posts: 5
Joined: 03 Sep 2009 07:32

Re: Unable to convert/transcode to MPEG2

Postby fcch2000 » 04 Sep 2009 18:21

Does video "dshow-fps=0" or "dshow-fps=1" work?
I tried it and seems not working at all. I did not make any difference if set the "dshow-fps" to difference numer.

fcch

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Unable to convert/transcode to MPEG2

Postby VLC_help » 05 Sep 2009 09:54

dshow-fps=0 is same as default. dshow-fps=1 might not work at all because VLC doesn't really handle low fps video very well.

TinyTuna
New Cone
New Cone
Posts: 7
Joined: 28 Aug 2009 17:07
VLC version: 1.0.1
Operating System: WindowsXP

Re: Unable to convert/transcode to MPEG2

Postby TinyTuna » 10 Sep 2009 20:31

I seem to have had some luck transcoding to MPEG-2. If I specify a framerate in the range of 24 fps - 60 fps it works fine. If I specify a ramerate <= 23 fps, >= 61 fps, or don't specify a framerate at all then it tells me it can't find the codec.
I'd like to have the option of telling it to preserve the framerate of the original video. However, in my particular case, if I have to force it to transcode to 30 fps (whether or not that was the original video's framerate) then that's an acceptable alternative to me. (I don't know if that will work for everyone though. *shrug*)
Tiny Tuna

gurucbm
New Cone
New Cone
Posts: 3
Joined: 12 Oct 2009 15:22

Re: Unable to convert/transcode to MPEG2

Postby gurucbm » 12 Oct 2009 15:25

I am still getting the same error. Could anyone get a solution. Its urgently needed.
My logs are as follows:
qt4 warning: Input option: dshow-vdev=Hauppauge WinTV-7164 Analog Capture
qt4 warning: Input option: dshow-adev=
main debug: adding item `dshow://' ( dshow:// )
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 2 items, index 0
main debug: processing request item dshow:// node null skip 0
main debug: resyncing on dshow://
main debug: dshow:// is at 1
main debug: starting new item
main debug: creating new input thread
main debug: Creating an input for 'dshow://'
qt4 debug: Adding a new MRL to recent ones: dshow://
main debug: thread started
main debug: using timeshift granularity of 50 MBytes
main debug: using timeshift path 'C:\DOCUME~1\admin\LOCALS~1\Temp'
main debug: thread (input) created at priority 1 (../.././src/input/input.c:230)
main debug: `dshow://' gives access `dshow' demux `' path `'
main debug: creating demux: access='dshow' demux='' path=''
main debug: looking for access_demux module: 1 candidate
dshow debug: dshow-vdev: Hauppauge WinTV-7164 Analog Capture
dshow debug: dshow-adev:
dshow debug: found device: Hauppauge WinTV-7164 Analog Capture
dshow debug: found device: Hauppauge WinTV-7164 Analog Capture #1
dshow debug: found device: Phillips DVR (SAA7134) WDM Video Capture
dshow debug: asking for device: Hauppauge WinTV-7164 Analog Capture
qt4 debug: IM: Setting an input
dshow debug: asked for Hauppauge WinTV-7164 Analog Capture, binding to Hauppauge WinTV-7164 Analog Capture
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
dshow debug: using device: Hauppauge WinTV-7164 Analog Capture
dshow debug: EnumDeviceCaps: output pin: I2S Audio
dshow debug: EnumDeviceCaps: output pin: Analog ITU Video
dshow debug: EnumDeviceCaps: output pin: VBI
dshow debug: EnumDeviceCaps: input pin: Analog Video In
dshow debug: EnumDeviceCaps: input pin: Analog Audio
dshow debug: EnumDeviceCaps: trying pin I2S Audio
dshow debug: EnumDeviceCaps: input pin media: unsupported format (unknown ??6?)
dshow debug: EnumDeviceCaps: trying pin Analog ITU Video
dshow debug: EnumDeviceCaps: input pin media: unsupported format (video ??6?)
dshow debug: EnumDeviceCaps: trying pin VBI
dshow debug: EnumDeviceCaps: input pin media: unsupported format (unknown ?? ?)
dshow debug: EnumDeviceCaps: input pin media: unsupported format (unknown ?? ?)
dshow error: capture device 'Hauppauge WinTV-7164 Analog Capture' does not support required parameters !
dshow error: can't open video device...


Is this a bug in vlc player? I am using the most recent vlc player 1.0.1 version.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Unable to convert/transcode to MPEG2

Postby VLC_help » 13 Oct 2009 17:19

I am using the most recent vlc player 1.0.1 version.
1.0.1 isn't most recent version, 1.0.2 is.

And you don't have a transcoding but a directshow opening issue.

Doc Brown
New Cone
New Cone
Posts: 5
Joined: 12 Jan 2010 14:12

Re: Unable to convert/transcode to MPEG2

Postby Doc Brown » 12 Jan 2010 14:56

Hope this conversation hasn't gone stale, I just joined up.

I have been using VLC for 2 years for capturing video from my church's morning service to hard disk for the creation of service DVDs. We have an Osprey capture card, I have a batch file set up to start VLC and apply multiple configuration settings. Thus with a double click the sound tech can easily start video recording. I have had, I think, similar problems and I think I may know what the problem is.

If I try recording to an mpeg PS file with MPEG2 video (and whatever choice of audio, usually AC3 or MP2) everything is fine IF I use --sout-transcode-fps=30. But North American DVDs are supposed to be 29.97 fps (and of course that is what my video camera produces). So naturally I want to use --sout-transcode-fps=29.97. This always results in a "VLC could not open the encoder" error and no file. The problem you have would seem to be in the fractional frame rate.

What is especially interesting is that I recently have switched to using the mp4v codec instead of mp2v, but still in a PS container. Now I CAN use --sout-transcode-fps=29.97 and I get a PS file that has the correct container frame rate but when I convert it to mpeg2 (using ffmpeg), ffmpeg warns me that "Seems stream 1 codec frame rate differs from container frame rate: 2997.00 (2997/1) -> 29.97 (30000/1001)."

So it appears to me that VLC is choking on the decimal point somehow. Like leaving it out. And the mp4 encoder can deal with the missing decimal point by writing 2997 fps into the file (fortunately ffmpeg is smart enough to trust the container rate of 29.97). It seems likely that the mp2v encoder is getting the same wrong fps request of 2997 but this causes it to barf an error message.

Incidentally, this (mis)behaviour seems to exist on my linux box, too. Although I can't video capture (not having a capture card in it), if I try to stream an existing video file using the same encoding parameters I get the same results. So maybe I should be posting this in the general troubleshooting section. I see that it has (maybe) been posted there before (ages ago), see:

viewtopic.php?f=2&t=13567&p=41729&hilit ... ate#p41729

Note that the wiki suggests the following for capturing for DVD creation:

vlc "C:\Movies\Your File.asf" :sout=#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2}:std{access=file,mux=ps,url="C:\Movies\Your File Output.ps.mpg"} --aspect-ratio="4:3" --sout-transcode-width=720 --sout-transcode-height=480 --sout-transcode-fps=29.97 --sout-ffmpeg-keyint=16 --sout-ffmpeg-strict-rc --stop-time=20

This was, naturally, my starting point. And with 29.97 fps it does not work :)

If my guesses are correct, I would think that this would be a pretty easy bug to fix. Is there somewhere (besides here) that I should point this issue out?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Unable to convert/transcode to MPEG2

Postby VLC_help » 13 Jan 2010 12:34

It is the MPEG-2 encoder that complains about certain options (resolution and FPS at least).

Doc Brown
New Cone
New Cone
Posts: 5
Joined: 12 Jan 2010 14:12

Re: Unable to convert/transcode to MPEG2

Postby Doc Brown » 13 Jan 2010 14:00

The MPEG2 encoder (presumably) is the one that pops up the "Cannot open encoder" error message in VLC if you try to use 29.97 fps. But works fine with 30 fps and all other settings unchanged. I haven't tried any other frame rates, but other folks use 25 without trouble. The behaviour is the same whether I choose the frame rate from the GUI or from --sout-transcode-fps=29.97 on the command line.

The MPEG4 encoder doesn't pop up any error messages at 29.97 fps, but the resulting video file is parsed by ffmpeg with a warning that the codec frame rate is 2997 (no decimal) while the container rate is 29.97 (30000/1001). FFmpeg plays it fine (well, that's not entirely true, I usually get a warning that the 1st frame is no keyframe) but other than that ffmpeg can happily convert the resulting file to something that I can burn to DVD.

I haven't tried any resolutions other than 480x720.

Not being familiar with the source code, but being familiar with the sort of bugs that I would write in any code of my own, I guess that the decimal point is being lost and the resulting 2997 is passed to whichever codec has been asked for. MPEG2 realizes this is a stupid frame rate and dies noisily, while the MPEG4 peacefully uses it. The multiplexer (PS in both cases) gets the right rate, I guess. At least it gets the right rate in case 2, in case 1 there is no output file so who knows.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Unable to convert/transcode to MPEG2

Postby VLC_help » 14 Jan 2010 19:15

Not being familiar with the source code, but being familiar with the sort of bugs that I would write in any code of my own, I guess that the decimal point is being lost and the resulting 2997 is passed to whichever codec has been asked for. MPEG2 realizes this is a stupid frame rate and dies noisily, while the MPEG4 peacefully uses it. The multiplexer (PS in both cases) gets the right rate, I guess. At least it gets the right rate in case 2, in case 1 there is no output file so who knows.
http://git.videolan.org/?p=vlc.git;a=co ... 370f011c50 it used to be like that in 2005. Nowadays it is different
http://git.videolan.org/?p=vlc.git;a=bl ... a1;hb=HEAD
http://git.videolan.org/?p=vlc.git;a=bl ... bc;hb=HEAD

Doc Brown
New Cone
New Cone
Posts: 5
Joined: 12 Jan 2010 14:12

Re: Unable to convert/transcode to MPEG2

Postby Doc Brown » 15 Jan 2010 14:26

http://git.videolan.org/?p=vlc.git;a=co ... 370f011c50 it used to be like that in 2005. Nowadays it is different
Be that as it may, it's broken nonetheless :)
I see there's some multiplying by 1000 to take care of the decimal going on there.... is it possible that somewhere else the divide by 1000 is missing? Only it's a factor of 100....

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Unable to convert/transcode to MPEG2

Postby VLC_help » 15 Jan 2010 18:00

Code: Select all

is it possible that somewhere else the divide by 1000 is missing?
It is.

Doc Brown
New Cone
New Cone
Posts: 5
Joined: 12 Jan 2010 14:12

Re: Unable to convert/transcode to MPEG2

Postby Doc Brown » 15 Jan 2010 19:20

So does that mean the probability of it being fixed in an upcoming release is greater than zero? ;)

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Unable to convert/transcode to MPEG2

Postby VLC_help » 16 Jan 2010 15:40

So does that mean the probability of it being fixed in an upcoming release is greater than zero? ;)
I cannot promise anything :)

Doc Brown
New Cone
New Cone
Posts: 5
Joined: 12 Jan 2010 14:12

Re: Unable to convert/transcode to MPEG2

Postby Doc Brown » 24 Jan 2010 02:56

Would it improve the odds if I filed a bug in trac?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Unable to convert/transcode to MPEG2

Postby VLC_help » 24 Jan 2010 19:01

Yep, but there might already be one.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 70 guests