h264 over RTP, what do i need?

This forum is about all development around libVLC.
cgillopez
New Cone
New Cone
Posts: 3
Joined: 23 Dec 2009 15:49

h264 over RTP, what do i need?

Postby cgillopez » 23 Dec 2009 17:38

Hello,

Im trying to decode an image coming from a camera with H.264 over HTTP, ive been learning from RFC3984 and so on..

I get from the DESCRIBE menssage both "packetization-mode=1" and "sprop-parameter-sets=Z0IAMuKQFAey, aM48gA==" parameters.

After SETUP message to get RTSP Session ID, i get the frame from the PLAY message, then:
- Read 1 char to identify "$"
- Read 1 byte to get the RTP packet size
- Read 2 bytes to identify the of the RTP

- Read the bytes of the packet size and then, its read the 12 bytes of the RTP header, so i can have the h264 frame and store it in a file.

But the file can not be played in any player (i try vlc, quicktime and WMPlayer). So i think im not getting the frame correctly or i need to do store the "packetization-mode=1" and "sprop-parameter-sets=Z0IAMuKQFAey, aM48gA==" parameters.

When is the sprop-parameter necessary? Where?

As vlc can read directly from the RTSP server, i tried reading vlc libraries but itsnt very easy for me beacause im not very good C programmer. I hope you can give some information about which libraries i need (im programming in vb.net) and if im getting the h264 stream correctly.

Thanks for your help!!!

cgillopez
New Cone
New Cone
Posts: 3
Joined: 23 Dec 2009 15:49

Re: h264 over RTP, what do i need?

Postby cgillopez » 12 Jan 2010 17:13

I find out many things... I could play the file i get from streaming beacuse it needs a container, and the sprop-parameter contains the SPS and PPS information need at the decoding.

But now im stucked. How can i decode the file so i can play it?

Can i use libVLC to do it? How?

Thanks!!


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 30 guests