Page 1 of 1

H.264 ffmpeg muxer options

Posted: 20 Jun 2012 15:54
by Unylon
Hi,

How to add some ffmpeg muxer options to vlc's transcode ? I think I need the muxer to produce a "mp4 fragmented file", i.e. metadata stored every now and then instead of just once at the beginning/end of the file, suitable for H.264 streaming.

Situation:

I am trying to stream a RTSP webcam stream to a web/flash player (jplayer, flowplayer, jwplayer). I had success with jwplayer and flowplayer using FLV1 codec. (I do get some vbv buffer overflow errros, but I can live with that.)

Code: Select all

cvlc -vv rtsp://10.11.12.13:554/live/ch01_0 --sout '#transcode{threads=2,vcodec=FLV1,vb=2000}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:5555/stream.flv}' --rtsp-tcp --clock-jitter=0 --network-caching=1000 --sout-mux-caching=1000
I would like to try to make this work with the H.264 codec. The web/flash players can't take my H.264 stream no matter how hard I try, something like this never works, using either flv or mov muxer..

Code: Select all

cvlc -v rtsp://10.11.12.13:554/live/ch01_0 --sout '#transcode{threads=2,vcodec=h264}:std{access=http{mime=video/x-m4v},mux=ffmpeg{mux=mp4,movflags=frag_keyframe},dst=0.0.0.0:5555/stream.flv}' --rtsp-tcp
The movflags=keyframe option I got from an outdated ffmpeg documentation is unknown.

Re: H.264 ffmpeg muxer options

Posted: 23 Jun 2012 17:03
by Jean-Baptiste Kempf
What are the logs?

Re: H.264 ffmpeg muxer options

Posted: 25 Jul 2012 19:54
by hadge
Hi Guys,
Have you made any progress on this at all? I am trying to do exactly the same as you. I have an IP camera RTSP stream that I want to transcode and serve via HTTP for use with jwplayer.

You mentioned that you had success using FLV1 codec. Even that would be acceptable for me, but I can't get that to work at all either. With VLC 2.1, it simply tells me that "cannot find video encoder (module:any fourcc:FLV1)".

With 2.0.3 I get the following:
[020f80c0] main stream output debug: using sout chain=`standard{mux="",access="'#transcode{threads=2,vcodec=FLV1,vb=2000}",dst="standard{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8001/townhall.flv}'"}'
[020f80c0] main stream output debug: stream=`standard'
[020d0fd8] main stream out debug: looking for sout stream module: 1 candidate
[020d0fd8] main stream out warning: missing value for option mux
[020d0fd8] main stream out debug: set config option: sout-standard-access to '#transcode{threads=2,vcodec=FLV1,vb=2000}
[020d0fd8] main stream out debug: set config option: sout-standard-dst to standard{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8001/townhall.flv}'
[020d0fd8] stream_out_standard stream out error: no mux specified or found by extension
[020d0fd8] main stream out debug: no sout stream module matching "standard" could be loaded
[020d0fd8] main stream out debug: TIMER module_need() : 8.431 ms - Total 8.431 ms / 1 intvls (Avg 8.431 ms)
[020d0fd8] main stream out debug: destroying chain... (name=(null))
[020d0fd8] main stream out debug: destroying chain done

I would be ecstatic to be able to use h264, but flv would be fine for now. Any help would be greatly appreciated!

Re: H.264 ffmpeg muxer options

Posted: 25 Jul 2012 20:20
by RĂ©mi Denis-Courmont
Did you read your own log? Quoting is obviously wrong.