H.264 ffmpeg muxer options

About encoding, codec settings, muxers and filter usage
Unylon
New Cone
New Cone
Posts: 2
Joined: 20 Jun 2012 15:39

H.264 ffmpeg muxer options

Postby Unylon » 20 Jun 2012 15:54

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.

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: H.264 ffmpeg muxer options

Postby Jean-Baptiste Kempf » 23 Jun 2012 17:03

What are the logs?
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.

hadge
New Cone
New Cone
Posts: 1
Joined: 25 Jul 2012 19:47

Re: H.264 ffmpeg muxer options

Postby hadge » 25 Jul 2012 19:54

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!

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

Re: H.264 ffmpeg muxer options

Postby Rémi Denis-Courmont » 25 Jul 2012 20:20

Did you read your own log? Quoting is obviously wrong.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 7 guests