VLC: h264 support encoding and decoding

*nix specific usage questions
erotavlas_turbo
Blank Cone
Blank Cone
Posts: 75
Joined: 26 Nov 2009 10:52

VLC: h264 support encoding and decoding

Postby erotavlas_turbo » 26 Jan 2010 17:41

Hi,

I'm quite newbie of VLC. I use Ubuntu 9.10 with VLC 1.0.2 installed from repository.
I would like to use the following command

Code: Select all

vlc image.jpg --rtsp-caching=12000 --fake-duration 60000 --sout '#transcode{vcodec=H264,vb=800,width=352,height=288}:duplicate{dst=rtp{sdp=rtsp://192.168.0.4:8080/test.sdp}}' vlc://quit
it works well with h263 and h263p but with h264 i get the following error message

Code: Select all

avcodec encoder error: cannot find encoder H264 - MPEG-4 AVC (part 10) *** Your FFMPEG installation is crippled. *** *** Please check with your FFMPEG packager. *** *** This is NOT a VLC media player issue. *** [0x970fa90] stream_out_transcode stream out error: cannot find video encoder (module:any fourcc:H264) [0x970fa90] stream_out_transcode stream out error: cannot create video chain [0x9974b80] main packetizer error: cannot create packetizer output (fake)
can you help me?

Rémi Denis-Courmont
Developer
Developer
Posts: 15231
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLC: h264 support encoding and decoding

Postby Rémi Denis-Courmont » 26 Jan 2010 17:48

The VLC pacakge provided by Ubuntu does not support h264 encoding. You need to recompile yourself.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

erotavlas_turbo
Blank Cone
Blank Cone
Posts: 75
Joined: 26 Nov 2009 10:52

Re: VLC: h264 support encoding and decoding

Postby erotavlas_turbo » 26 Jan 2010 18:54

ok, where can i find a guide to install it?

thank

PS

from repository sudo apt-get install vlc vlc-plugin-pulse mozilla-plugin-vlc and with libavcodec-extra-52 libavutil-extra-49 libopenjpeg2

I get different message

Code: Select all

[0x893ff20] stream_out_rtp stream out error: cannot add this stream (unsupported codec: H264) [0x86f0910] stream_out_transcode stream out error: cannot add this stream
Is h264 support?

erotavlas_turbo
Blank Cone
Blank Cone
Posts: 75
Joined: 26 Nov 2009 10:52

Re: VLC: h264 support encoding and decoding

Postby erotavlas_turbo » 01 Feb 2010 15:30

I have solved :D

The problem is very strange (I think). The error is in case sensitive H264 h264 codec name.

This is the correct procedure to enable h264 support:
1) install x.264 from source
2) install vlc from source

Code: Select all

vlc image.jpg --rtsp-caching=12000 --fake-duration 60000 --sout '#transcode{vcodec=h264,vb=800,width=352,height=288}:duplicate{dst=rtp{sdp=rtsp://192.168.0.4:8080/test.sdp}}' vlc://quit

seshkanuri
New Cone
New Cone
Posts: 1
Joined: 14 Mar 2011 20:47

Re: VLC: h264 support encoding and decoding

Postby seshkanuri » 14 Mar 2011 20:52

Where do I get the X-264 source.
Which version of VLC source is this compatible with?

erotavlas_turbo
Blank Cone
Blank Cone
Posts: 75
Joined: 26 Nov 2009 10:52

Re: VLC: h264 support encoding and decoding

Postby erotavlas_turbo » 15 Mar 2011 14:40

Hi,

I don't remember the exact version. However it was before 1.0...now probably there are a lot of improvements.

undercash
New Cone
New Cone
Posts: 8
Joined: 12 Oct 2011 00:49

Re: VLC: h264 support encoding and decoding

Postby undercash » 21 Jan 2012 20:37

The VLC pacakge provided by Ubuntu does not support h264 encoding. You need to recompile yourself.

is it still true considering the time you posted this? I installed the version for ubuntu 10.0.10 even if I m running 10.0.4lts


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

Who is online

Users browsing this forum: No registered users and 14 guests