Sending raw H264 with RTP

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
sampsa
Blank Cone
Blank Cone
Posts: 42
Joined: 16 Dec 2014 13:54

Sending raw H264 with RTP

Postby sampsa » 26 May 2015 18:28

Hello,

In VLC, one can encapsulate H264 packets into MPEG2-ts (mux=ts) packets which are encapsulated into RTP packets, i.e. schematically:

(RTP packet (MPEG2-ts packet (H264 packet)))

In VLC, is it possible to do simply?

(RTP packet (H264 packet))

i.e. skip the ts/ps muxing when sending H264 over RTP ?

That is a totally valid and standard way of sending H264, employed by all IP cameras, for example.

In the following command ..

cvlc screen:// --avcodec-hw any -vvv --live-caching 100 --sout-x264-preset veryfast --sout-x264-tune zerolatency --sout-transcode-threads 24 --sout-transcode-high-priority --sout-x264-keyint 5 --sout-x264-min-keyint 5 --sout-x264-lookahead 100 --sout-x264-vbv-maxrate 2048 --sout-x264-vbv-bufsize 4000 --sout-transcode-hurry-up --sout-x264-nf --sout-mux-caching 50 --sout '#transcode{vcodec=h264,acodec=none,vb=2048,fps=5}:rtp{dst=127.0.0.1,raw,late=100,mux=ts,port=50001}

.. I tried to skip the ts/ps muxing with "mux=dummy" but that did not work out. :(

Regards,

Sampsa

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: Sending raw H264 with RTP

Postby Jean-Baptiste Kempf » 26 May 2015 20:56

don't specify the mux, then.
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.

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

Re: Sending raw H264 with RTP

Postby Rémi Denis-Courmont » 26 May 2015 21:39

It is possible (removing mux=ts) but it does not make a lot of sense as is: you did not specify where to write/send the SDP.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

sampsa
Blank Cone
Blank Cone
Posts: 42
Joined: 16 Dec 2014 13:54

Re: Sending raw H264 with RTP

Postby sampsa » 27 May 2015 10:21

Thank you once again for quick reply..! So it is without defining the muxer then..

With regards to sdp, now I have problem in reading the sdp files, but that's another story .. (I sent a new post on this forum on that one).

Regards,

Sampsa


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 25 guests