Webm encoding/decoding VLC problems

*nix specific usage questions
jongerenchaos
Blank Cone
Blank Cone
Posts: 19
Joined: 31 Jan 2009 17:29

Webm encoding/decoding VLC problems

Postby jongerenchaos » 06 Nov 2011 18:03

I try to use the following command VLC (1.1.15linux) (to transcode the mpeg file into a new Webm format):
cvlc test.mpg --sout "#transcode{vcodec=VP80,vb=800,scale=1,acodec=vorbis,ab=128,channels=2}:std{access=file,mux='ffmpeg{mux=webm}',dst=aVeryNiceMoive.webm}"

But when i use this i get the following error:

Code: Select all

[0x3247b88] avcodec encoder error: cannot find encoder Google/On2's VP8 Video *** Your FFMPEG installation is crippled. *** *** Please check with your FFMPEG packager. *** *** This is NOT a VLC media player issue. *** [0x3247b88] main encoder error: Streaming / Transcoding failed [0x3247b88] main encoder error: It seems your FFMPEG (libavcodec) installation lacks the following encoder: Google/On2's VP8 Video. If you don't know how to fix this, ask for support from your distribution. This is not an error inside VLC media player. Do not contact the VideoLAN project about this issue.
Full log:

Code: Select all

[0root@ubuntu:~# cvlc -vvvv test.mpg --sout "#transcode{vcodec=VP80,vb=800,scale=1,acodec=vorbis,ab=128,channels=2}:std{access=file,mux='ffmpeg{mux=webm}',dst=aVeryNiceMoive.webm}" VLC media player 1.1.12 The Luggage (revision exported) [0x241a288] main libvlc debug: VLC media player - 1.1.12 The Luggage [0x241a288] main libvlc debug: Copyright © 1996-2011 the VideoLAN team [0x241a288] main libvlc debug: revision exported [0x241a288] main libvlc debug: configured with ./configure '--prefix=/usr' '--enable-x11' '--enable-xvideo' '--disable-gtk' '--enable-sdl' '--enable-avcodec' '--enable-avformat' '--enable-swscale' '--enable-mad' '--enable-a52' '--enable-libmpeg2' '--enable-dvdnav' '--enable-faad' '--enable-vorbis' '--enable-ogg' '--enable-theora' '--enable-faac' '--enable-mkv' '--enable-freetype' '--enable-fribidi' '--enable-speex' '--enable-flac' '--enable-caca' '--enable-alsa' '--disable-kde' '--enable-ncurses' '--enable-release' '--enable-debug' '--disable-mozilla' '--disable-nls' '--disable-glx' '--disable-skins2' '--enable-ffmpeg' '--enable-libdvbpsi' '--disable-mad' '--enable-httpd' '--disable-swscale' '--enable-run-as-root' [0x241a288] main libvlc debug: translation test: code is "C" [0x241a288] main libvlc debug: checking plugin modules [0x241a288] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins-04081e-fe8.dat [0x241a288] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins' [0x241a288] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins-04081e-fe8.dat [0x241a288] main libvlc debug: module bank initialized (405 modules) [0x241a288] main libvlc debug: opening config file (/root/.config/vlc/vlcrc) [0x241a288] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU [0x241a288] main libvlc debug: looking for memcpy module: 3 candidates [0x241a288] main libvlc debug: using memcpy module "memcpymmxext" [0x25074c8] main input debug: Creating an input for 'Media Library' [0x25074c8] main input debug: Input is a meta file: disabling unneeded options [0x25074c8] main input debug: using timeshift granularity of 50 MiB [0x25074c8] main input debug: using timeshift path '/tmp' [0x25074c8] main input debug: `file/xspf-open:///root/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/root/.local/share/vlc/ml.xspf' [0x25074c8] main input debug: creating demux: access='file' demux='xspf-open' path='/root/.local/share/vlc/ml.xspf' [0x250d9b8] main demux debug: looking for access_demux module: 2 candidates [0x250d9b8] main demux debug: no access_demux module matching "file" could be loaded [0x250d9b8] main demux debug: TIMER module_need() : 0.406 ms - Total 0.406 ms / 1 intvls (Avg 0.406 ms) [0x25074c8] main input debug: creating access 'file' path='/root/.local/share/vlc/ml.xspf' [0x2510f18] main access debug: looking for access module: 2 candidates [0x2510f18] filesystem access debug: opening file `/root/.local/share/vlc/ml.xspf' [0x2510f18] main access debug: using access module "filesystem" [0x2510f18] main access debug: TIMER module_need() : 0.199 ms - Total 0.199 ms / 1 intvls (Avg 0.199 ms) [0x2520458] main stream debug: Using AStream*Stream [0x2520458] main stream debug: pre buffering [0x2520458] main stream debug: received first data after 0 ms [0x2520458] main stream debug: pre-buffering done 296 bytes in 0s - 36132 KiB/s [0x250f4b8] main stream debug: looking for stream_filter module: 5 candidates [0x250f4b8] main stream debug: no stream_filter module matching "any" could be loaded [0x250f4b8] main stream debug: TIMER module_need() : 0.348 ms - Total 0.348 ms / 1 intvls (Avg 0.348 ms) [0x250f4b8] main stream debug: looking for stream_filter module: 1 candidate [0x250f4b8] main stream debug: using stream_filter module "stream_filter_record" [0x250f4b8] main stream debug: TIMER module_need() : 0.116 ms - Total 0.116 ms / 1 intvls (Avg 0.116 ms) [0x25074c8] main input debug: creating demux: access='file' demux='xspf-open' path='/root/.local/share/vlc/ml.xspf' [0x251fda8] main demux debug: looking for demux module: 1 candidate [0x251fda8] playlist demux debug: using XSPF playlist reader [0x251fda8] main demux debug: using demux module "playlist" [0x251fda8] main demux debug: TIMER module_need() : 0.158 ms - Total 0.158 ms / 1 intvls (Avg 0.158 ms) [0x2520f88] main demux meta debug: looking for meta reader module: 2 candidates [0x2520f88] lua demux meta debug: Trying Lua scripts in /root/.local/share/vlc/lua/meta/reader [0x2520f88] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0x2520f88] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0x2520f88] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0x2520f88] main demux meta debug: no meta reader module matching "any" could be loaded [0x2520f88] main demux meta debug: TIMER module_need() : 2.521 ms - Total 2.521 ms / 1 intvls (Avg 2.521 ms) [0x25074c8] main input debug: `file/xspf-open:///root/.local/share/vlc/ml.xspf' successfully opened [0x2533688] main xml debug: looking for xml module: 2 candidates [0x2533688] main xml debug: using xml module "xml" [0x2533688] main xml debug: TIMER module_need() : 0.389 ms - Total 0.389 ms / 1 intvls (Avg 0.389 ms) [0x251fda8] playlist demux debug: parsed 0 tracks successfully [0x2533688] main xml debug: removing module "xml" [0x25074c8] main input debug: EOF reached [0x251fda8] main demux debug: removing module "playlist" [0x250f4b8] main stream debug: removing module "stream_filter_record" [0x2510f18] main access debug: removing module "filesystem" [0x25074c8] main input debug: Destroying the input for 'Media Library' [0x25074c8] main input debug: TIMER input launching for 'Media Library' : 4.128 ms - Total 4.128 ms / 1 intvls (Avg 4.128 ms) [0x250cf48] main interface debug: looking for interface module: 1 candidate [0x250cf48] main interface debug: using interface module "hotkeys" [0x250cf48] main interface debug: TIMER module_need() : 0.189 ms - Total 0.189 ms / 1 intvls (Avg 0.189 ms) [0x250d758] main interface debug: looking for interface module: 1 candidate Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS") /usr/bin/vlc(unsetenv+0x3e)[0x401a7e] /lib/x86_64-linux-gnu/libdbus-1.so.3(+0x2f1a5)[0x7feb3dc021a5] /lib/x86_64-linux-gnu/libdbus-1.so.3(+0x9f1e)[0x7feb3dbdcf1e] Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE") /usr/bin/vlc(unsetenv+0x3e)[0x401a7e] /lib/x86_64-linux-gnu/libdbus-1.so.3(+0x2f1a5)[0x7feb3dc021a5] /lib/x86_64-linux-gnu/libdbus-1.so.3(+0xa00e)[0x7feb3dbdd00e] [0x250d758] inhibit interface error: Failed to connect to the D-Bus session daemon: //bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed. [0x250d758] main interface debug: no interface module matching "inhibit,none" could be loaded [0x250d758] main interface debug: TIMER module_need() : 1.535 ms - Total 1.535 ms / 1 intvls (Avg 1.535 ms) [0x250d758] main interface error: no suitable interface module [0x25055e8] main playlist debug: Activated [0x25055e8] main playlist debug: adding item `test.mpg' ( file:///root/test.mpg ) [0x252cee8] main interface debug: looking for interface module: 1 candidate [0x252cee8] main interface debug: using interface module "signals" [0x252cee8] main interface debug: TIMER module_need() : 0.686 ms - Total 0.686 ms / 1 intvls (Avg 0.686 ms) [0x250a768] main interface debug: looking for interface module: 1 candidate [0x250a768] main interface debug: no interface module matching "globalhotkeys,none" could be loaded [0x250a768] main interface debug: TIMER module_need() : 0.648 ms - Total 0.648 ms / 1 intvls (Avg 0.648 ms) [0x250a768] main interface error: no suitable interface module [0x241a288] main libvlc error: interface "globalhotkeys,none" initialization failed [0x250a768] main interface debug: looking for interface module: 1 candidate [0x250a768] dummy interface: using the dummy interface module... [0x250a768] main interface debug: using interface module "dummy" [0x250a768] main interface debug: TIMER module_need() : 0.292 ms - Total 0.292 ms / 1 intvls (Avg 0.292 ms) [0x250a458] main input debug: Creating an input for 'test.mpg' [0x25055e8] main playlist debug: rebuilding array of current - root Playlist [0x25055e8] main playlist debug: rebuild done - 1 items, index -1 [0x25055e8] main playlist debug: processing request item null node Playlist skip 0 [0x25055e8] main playlist debug: starting new item [0x25055e8] main playlist debug: creating new input thread [0x315cb58] main input debug: Creating an input for 'test.mpg' [0x315cb58] main input debug: thread (input) created at priority 10 (input/input.c:220) [0x315cb58] main input debug: thread started [0x31627f8] main stream output debug: using sout chain=`transcode{vcodec=VP80,vb=800,scale=1,acodec=vorbis,ab=128,channels=2}:std{access=file,mux='ffmpeg{mux=webm}',dst=aVeryNiceMoive.webm}' [0x31627f8] main stream output debug: stream=`std' [0x3162f38] main stream out debug: looking for sout stream module: 1 candidate [0x3162f38] main stream out debug: set config option: sout-standard-access to file [0x3162f38] main stream out debug: set config option: sout-standard-mux to ffmpeg{mux=webm} [0x3162f38] main stream out debug: set config option: sout-standard-dst to aVeryNiceMoive.webm [0x3162f38] stream_out_standard stream out debug: creating `file/ffmpeg{mux=webm}://aVeryNiceMoive.webm' [0x3162f38] stream_out_standard stream out debug: extension is webm [0x3162f38] stream_out_standard stream out debug: extension -> mux=ffmpeg{mux=webm} [0x3162f38] stream_out_standard stream out debug: using `file/ffmpeg{mux=webm}://aVeryNiceMoive.webm' [0x3165dc8] main access out debug: looking for sout access module: 1 candidate [0x3165dc8] access_output_file access out debug: file access output opened (aVeryNiceMoive.webm) [0x3165dc8] main access out debug: using sout access module "access_output_file" [0x3165dc8] main access out debug: TIMER module_need() : 0.302 ms - Total 0.302 ms / 1 intvls (Avg 0.302 ms) [0x3162f38] stream_out_standard stream out debug: access opened [0x3165f08] main mux debug: looking for sout mux module: 1 candidate [0x3165f08] main mux debug: set config option: ffmpeg-mux to webm [0x3165f08] main mux debug: using sout mux module "avformat" [0x3165f08] main mux debug: TIMER module_need() : 2.666 ms - Total 2.666 ms / 1 intvls (Avg 2.666 ms) [0x3162f38] stream_out_standard stream out debug: mux opened [0x3162f38] main stream out debug: using sout stream module "stream_out_standard" [0x3162f38] main stream out debug: TIMER module_need() : 5.158 ms - Total 5.158 ms / 1 intvls (Avg 5.158 ms) [0x31627f8] main stream output debug: stream=`transcode' [0x316fa68] main stream out debug: looking for sout stream module: 1 candidate [0x316fa68] main stream out debug: set config option: sout-transcode-vcodec to VP80 [0x316fa68] main stream out debug: set config option: sout-transcode-vb to 800 [0x316fa68] main stream out debug: set config option: sout-transcode-scale to 1 [0x316fa68] main stream out debug: set config option: sout-transcode-acodec to vorbis [0x316fa68] main stream out debug: set config option: sout-transcode-ab to 128 [0x316fa68] main stream out debug: set config option: sout-transcode-channels to 2 [0x316fa68] stream_out_transcode stream out debug: codec audio=vorb 0Hz 2 channels 128Kb/s [0x316fa68] stream_out_transcode stream out debug: codec video=VP80 0x0 scaling: 1.000000 800kb/s [0x316fa68] main stream out debug: using sout stream module "stream_out_transcode" [0x316fa68] main stream out debug: TIMER module_need() : 0.336 ms - Total 0.336 ms / 1 intvls (Avg 0.336 ms) [0x315cb58] main input debug: using timeshift granularity of 50 MiB [0x315cb58] main input debug: using timeshift path '/tmp' [0x25055e8] main playlist debug: no fetch required for (null) (art currently (null)) [0x315cb58] main input debug: `file:///root/test.mpg' gives access `file' demux `' path `/root/test.mpg' [0x315cb58] main input debug: creating demux: access='file' demux='' path='/root/test.mpg' [0x252bd88] main demux debug: looking for access_demux module: 2 candidates [0x252bd88] main demux debug: no access_demux module matching "file" could be loaded [0x252bd88] main demux debug: TIMER module_need() : 0.063 ms - Total 0.063 ms / 1 intvls (Avg 0.063 ms) [0x315cb58] main input debug: creating access 'file' path='/root/test.mpg' [0x250f498] main access debug: looking for access module: 2 candidates [0x250f498] filesystem access debug: opening file `/root/test.mpg' [0x250f498] main access debug: using access module "filesystem" [0x250f498] main access debug: TIMER module_need() : 0.081 ms - Total 0.081 ms / 1 intvls (Avg 0.081 ms) [0x250a458] main stream debug: Using AStream*Stream [0x250a458] main stream debug: pre buffering [0x250a458] main stream debug: received first data after 0 ms [0x250a458] main stream debug: pre-buffering done 1024 bytes in 0s - 142857 KiB/s [0x250bc08] main stream debug: looking for stream_filter module: 5 candidates [0x250bc08] main stream debug: no stream_filter module matching "any" could be loaded [0x250bc08] main stream debug: TIMER module_need() : 0.072 ms - Total 0.072 ms / 1 intvls (Avg 0.072 ms) [0x250bc08] main stream debug: looking for stream_filter module: 1 candidate [0x250bc08] main stream debug: using stream_filter module "stream_filter_record" [0x250bc08] main stream debug: TIMER module_need() : 3.151 ms - Total 3.151 ms / 1 intvls (Avg 3.151 ms) [0x315cb58] main input debug: creating demux: access='file' demux='' path='/root/test.mpg' [0x250bfb8] main demux debug: looking for demux module: 53 candidates [0x250bfb8] main demux debug: using demux module "ps" [0x250bfb8] main demux debug: TIMER module_need() : 0.259 ms - Total 0.259 ms / 1 intvls (Avg 0.259 ms) [0x315cb58] main input debug: looking for a subtitle file in /root/ [0x315cb58] main input debug: starting in sync mode [0x250cca8] main demux meta debug: looking for meta reader module: 2 candidates [0x250cca8] lua demux meta debug: Trying Lua scripts in /root/.local/share/vlc/lua/meta/reader [0x250cca8] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0x250cca8] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0x250cca8] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0x250cca8] main demux meta debug: no meta reader module matching "any" could be loaded [0x250cca8] main demux meta debug: TIMER module_need() : 0.588 ms - Total 0.588 ms / 1 intvls (Avg 0.588 ms) [0x315cb58] main input debug: `file:///root/test.mpg' successfully opened [0x250bfb8] ps demux warning: garbage at input, trying to resync... [0x250bfb8] ps demux warning: found sync code [0x250bfb8] ps demux debug: we found a length of: 233586933 [0x315cb58] main input debug: selecting program id=0 [0x252a5f8] main decoder debug: looking for packetizer module: 21 candidates [0x252a5f8] main decoder debug: using packetizer module "mpeg_audio" [0x252a5f8] main decoder debug: TIMER module_need() : 2.306 ms - Total 2.306 ms / 1 intvls (Avg 2.306 ms) [0x252a5f8] main decoder debug: thread (decoder) created at priority 5 (input/decoder.c:301) [0x252a5f8] main decoder debug: thread started [0x31dce08] main decoder debug: looking for packetizer module: 21 candidates [0x31dce08] main decoder debug: using packetizer module "packetizer_mpegvideo" [0x31dce08] main decoder debug: TIMER module_need() : 0.079 ms - Total 0.079 ms / 1 intvls (Avg 0.079 ms) [0x31dce08] main decoder debug: thread (decoder) created at priority 0 (input/decoder.c:301) [0x31dce08] main decoder debug: thread started [0x315cb58] main input debug: Buffering 0% [0x315cb58] main input debug: switching to async mode [0x315cb58] main input debug: Stream buffering done (500 ms in 0 ms) [0x252a5f8] mpeg_audio decoder debug: MPGA channels:2 samplerate:44100 bitrate:128 [0x31627f8] main stream output debug: adding a new sout input (sout_input:0x31ddc90) [0x316fa68] stream_out_transcode stream out debug: creating audio transcoding from fcc=`mpga' to fcc=`vorb' [0x31e3118] main generic debug: looking for decoder module: 34 candidates [0x31e3118] main generic debug: using decoder module "mpeg_audio" [0x31e3118] main generic debug: TIMER module_need() : 1.297 ms - Total 1.297 ms / 1 intvls (Avg 1.297 ms) [0x31dfb28] main encoder debug: looking for encoder module: 11 candidates [0x31dce08] packetizer_mpegvideo decoder debug: size 810x540 fps=24.000 [0x31627f8] main stream output debug: adding a new sout input (sout_input:0x31e4f80) [0x31dfb28] main encoder debug: using encoder module "vorbis" [0x31dfb28] main encoder debug: TIMER module_need() : 9.519 ms - Total 9.519 ms / 1 intvls (Avg 9.519 ms) [0x316fa68] stream_out_transcode stream out debug: Looking for filter (mpga->f32l, channels 2->2, rate 44100->44100) [0x32438e8] main filter debug: looking for audio filter module: 13 candidates [0x32438e8] mpgatofixed32 filter debug: mpga->f32l, bits per sample: 0 [0x32438e8] main filter debug: using audio filter module "mpgatofixed32" [0x32438e8] main filter debug: TIMER module_need() : 0.441 ms - Total 0.441 ms / 1 intvls (Avg 0.441 ms) [0x316fa68] main stream out debug: Filter 'mpgatofixed32' (0x32438e8) appended to chain [0x316fa68] stream_out_transcode stream out debug: Got complete audio filter chain [0x3165f08] main mux debug: adding a new input [0x3165f08] avformat mux debug: adding input [0x316fa68] stream_out_transcode stream out debug: creating video transcoding from fcc=`mpgv' to fcc=`VP80' [0x3247728] main generic debug: looking for decoder module: 34 candidates [0x3247728] avcodec generic debug: libavcodec initialized (interface 0x351500) [0x3247728] avcodec generic debug: trying to use direct rendering codec type or id mismatches [0x3247728] avcodec generic error: cannot open codec (MPEG-1/2 Video) [0x3247728] main generic debug: using decoder module "libmpeg2" [0x3247728] main generic debug: TIMER module_need() : 6.663 ms - Total 6.663 ms / 1 intvls (Avg 6.663 ms) [0x3247b88] main encoder debug: looking for encoder module: 11 candidates [0x3247b88] avcodec encoder debug: libavcodec already initialized [0x3247b88] avcodec encoder error: cannot find encoder Google/On2's VP8 Video *** Your FFMPEG installation is crippled. *** *** Please check with your FFMPEG packager. *** *** This is NOT a VLC media player issue. *** [0x3247b88] main encoder error: Streaming / Transcoding failed [0x3247b88] main encoder error: It seems your FFMPEG (libavcodec) installation lacks the following encoder: Google/On2's VP8 Video. If you don't know how to fix this, ask for support from your distribution. This is not an error inside VLC media player. Do not contact the VideoLAN project about this issue. [0x3247b88] main encoder debug: no encoder module matching "any" could be loaded [0x3247b88] main encoder debug: TIMER module_need() : 0.543 ms - Total 0.543 ms / 1 intvls (Avg 0.543 ms) [0x316fa68] stream_out_transcode stream out error: cannot find video encoder (module:any fourcc:VP80) [0x3247728] main generic debug: removing module "libmpeg2" [0x316fa68] stream_out_transcode stream out error: cannot create video chain [0x31dce08] main decoder error: cannot create packetizer output (mpgv) [0x315cb58] main input debug: Decoder buffering done in 19 ms [0x31e3118] mpeg_audio generic debug: MPGA channels:2 samplerate:44100 bitrate:128 [0x3165f08] avformat mux debug: writing header dimensions not set [0x3165f08] avformat mux error: could not write header
I use the GIT version of ffmpeg (and i can decode and encode webm files without any problem with the command ffmpeg -threads 4 -i input.mpg -s 720x480 -acodec libvorbis -ab 128k -vcodec libvpx -b 256k -re -f webm output.webm):

Code: Select all

root@ubuntu:~# ffmpeg ffmpeg version 0.8.5.git, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 23 2011 11:24:43 with gcc 4.5.2 configuration: --enable-postproc --enable-libvpx --enable-libvorbis --enable-pthreads --prefix=/usr --enable-avfilter libavutil 51. 22. 0 / 51. 22. 0 libavcodec 53. 21. 0 / 53. 21. 0 libavformat 53. 16. 1 / 53. 16. 1 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 44. 0 / 2. 44. 0 libswscale 2. 1. 0 / 2. 1. 0 Hyper fast Audio and Video encoder
Therefore i think there is a problem with the extension. When i launch the VLC with "vcodec=VP80" this will refer to the ffmpeg VP80 video codec extension (and this is changed recently in ffmpeg to -vcodec libvpx).

Is there a relation with https://trac.videolan.org/vlc/ticket/3820 ??

How can i repair/solve this problem?

TypX
Developer
Developer
Posts: 290
Joined: 21 Oct 2011 15:59

Re: Webm encoding/decoding VLC problems

Postby TypX » 07 Nov 2011 11:18

You can try to replace vcodec=VP80 by venc=ffmpeg{codec=libvpx}


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 4 guests