Page 1 of 1

Sending raw H264 with RTP

Posted: 26 May 2015 18:28
by sampsa
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

Re: Sending raw H264 with RTP

Posted: 26 May 2015 20:56
by Jean-Baptiste Kempf
don't specify the mux, then.

Re: Sending raw H264 with RTP

Posted: 26 May 2015 21:39
by RĂ©mi Denis-Courmont
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.

Re: Sending raw H264 with RTP

Posted: 27 May 2015 10:21
by sampsa
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