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!!!