command for h264 stream

*nix specific usage questions
tonj
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Jun 2011 10:42

command for h264 stream

Postby tonj » 06 Sep 2013 08:39

I'm running a centos 6.4 server (command line only) with vlc v1.1.3
I've been streaming video from an axis ip camera (with some success) with the following command:
cvlc http://<user>:<password>@<cam-ip-address>/axis-cgi/mjpg/video.cgi? --sout '#transcode{vcodec=FLV1,vb=512,acodec=mpga,ab=64,samplerate=44100}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/stream.flv}'
I would like to try streaming h264 and I've tried modifying the above command but I haven't been able to get it to work. I'm testing the stream using vlc on a windows 7 machine. How would I correctly modify the above command to stream h264?

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: command for h264 stream

Postby Jean-Baptiste Kempf » 10 Sep 2013 00:20

vcodec=x264,vb=1200
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.

tonj
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Jun 2011 10:42

Re: command for h264 stream

Postby tonj » 12 Sep 2013 07:12

thanks for that but it's not working. Maybe I am using the wrong command: I tried the edit you gave but I got:
[libx264 @ 0x7ff90c015d70]broken ffmpeg default settings detected
[libx264 @ 0x7ff90c015d70]use an encoding preset (e.g. -vpre medium)
[libx264 @ 0x7ff90c015d70]preset usage: -vpre <speed> -vpre <profile>
[libx264 @ 0x7ff90c015d70]speed presets are listed in x264 --help
[libx264 @ 0x7ff90c015d70]profile is optional; x264 defaults to high
[0x7ff90c000e08] avcodec encoder error: cannot open encoder
[0x7ff90c000e08] main encoder error: Streaming / Transcoding failed
[0x7ff90c000e08] main encoder error: VLC could not open the encoder.
[0x7ff91c4e7908] stream_out_transcode stream out error: cannot find video encoder (module:any fourcc:x264). Take a look few lines earlier to see possible reason.
[0x7ff91c4e7908] stream_out_transcode stream out error: cannot create video chain
[0x7ff91c4f1ff8] main decoder error: cannot create packetizer output (MJPG)
do other parts of the command need to be altered as well?


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

Who is online

Users browsing this forum: przxqgl and 5 guests