Page 1 of 1
How to use VLC 0.8.6-test1 to stream H264 over RTP (rfc3984)
Posted: 10 Nov 2006 14:31
by AvcRtp
Hi, I am interested in streaming H264 contents over RTP using VLC through the GUI. But looks like the module is not enabled ( stream_out_rtp ) by default. Is there a way to enable it?
I downloaded the source code and compiled it on my redhad linux machine. The VLC I am running is build locally. I am using H264 transport stream file as the source and trying to stream RTP out. I added some debug messages in the rtp.c file (rtp_packetize_264 function) but seems the code is not getting accessed during the process. Would someone help me on this issue? Is there a special flag I should turn on or I can only use command line? (if so, would someone provide the command line ?)
Posted: 10 Nov 2006 17:35
by Jerrie85
Heyy Avc,
i personally dont know how to activate that rtp packetizer function, but i can certainly say VLC can play back elementary stream H264 RTP streams..i'm doing so myself right now from my custom streamer..DJ should be able to help you out; in the mean time, try to look at the source code and see if you can trace back that packetizer function call
Posted: 13 Nov 2006 20:43
by AvcRtp
If I use vlc H264.mpg --sout '#rtp{dst=xx.xx.xx.xx port=1234 mux=ts}' the function rtp_packetize_h264 can get invoked but looks like the stream only sends out to port 1232 which don't have a valid ip address.
If I use vlc h264.mpg --sout '#rtp{dst=xx.xx.xx.xx,port=1234}' then function rtp_packetize_h264 can not get invoked.
I am trying to dig through the code to figure out the correct command line parameters but could someone give me a clue??
Posted: 14 Nov 2006 17:30
by AvcRtp
Now I have the code from vlc/trunk. I used vlc -vv h265.mpg '#rtp{dst=10.0.0.1,port=1234,ttl=1000}' to create the streams. On the output messages, I saw lots of "access_output_udp private warning: send error: Connection refused" message.
I then used ethereal trying to catch the traffic and see streams being sent out to 10.0.0.1:1230 and 10.0.0.1:1232 and also there are lots of ICMP packets.
Anyone knows what are those and why?
Posted: 14 Nov 2006 21:18
by AvcRtp
Jerry
Which command you were using to let VLC receiving H264 over RTP?
Thanks
AVC
Posted: 15 Nov 2006 03:31
by AvcRtp
Looks like no one can give me some suggestions on what to do.. anyway, I keep posting my progress and hope it will help some new commers...
After I specified the port_video and port_audio, the connection refused message is less.
Here are my problems.
1. When I use VLC to listen to the input stream using UDP/RTP on the video port, the messages say garbage input...
2. I captured the stream packets and decoded them as RTP. I found that the timestamps are the same value ( no matter what ). The sequence number is increasing as excepted...
The H264 content I am using can be played on VLC and can be streamed out as TS stream to another VLC....
Any ideas.. suggestions..
Posted: 15 Nov 2006 20:54
by AvcRtp
Well I have to make vlc as a VOD server and use rtsp from vlc client to get the H264 over RTP working. Is there a way that can can catch live H264 streams and stream it out using H264/RTP ?