Page 1 of 1

H264 Decoding

Posted: 12 Feb 2009 02:51
by arjunen
I parse the H264 payload from the RTP stream and insert 00000001 delimiter before the payload and save it in a .264 file. I am using VLC to play the .264 file.
Everything works perfectly. I have two RTP streams, I can successfully play the first RTP stream but when I play the second RTP stream VLC plays it really fast.
Is something wrong in the vlc's h264 decoder? I can also upload the pcap capture of the both RTP streams.

Thanks
Arjun

Re: H264 Decoding

Posted: 12 Feb 2009 17:49
by arjunen
Actually, the second RTP streams fps was different from the first one. I think VLC plays all the .264 at 30 fps, which I think is the default.
Is there a way to automatically find the fps from the .264 file?

Re: H264 Decoding

Posted: 16 Oct 2009 19:00
by ripper69
Hello (i'm new)

I am attempting to do the same as above, and am stumped.

A bit of info first:

packetization mode is 1
media format is 96 (h264)
profile level id is 420029

what I am trying to do is get a camera feed streamed over rtp/rtsp and simply pass the rtp payload to the codec...

so here come the questions:

do i prepend the sprop parameter sets with 0x00 0x00 0x00 0x01 and prepend them to the first rtp payload and pass to the codec?

do I need to prepend 0x00 0x00 0x00 0x01 to all subsequent payloads as well?

i.e. 0x00 0x00 0x00 0x01 sps 0x00 0x00 0x00 0x01 pps 0x00 0x00 0x00 0x01 <payload1> 0x00 0x00 0x00 0x01 <payload2>

or

0x00 0x00 0x00 0x01 sps 0x00 0x00 0x00 0x01 pps 0x00 0x00 0x00 0x01 <payload1> <payload2> <payloadn> <rtp marker> 0x00 0x00 0x00 0x01 <payloadn+1> <payloadn+2> etc...

or do I need to prepend the 0x00 0x00 0x00 0x01 to every NAL unit - if this is so how do i identify the nal units in the payload - please do not refer me to rfc 3984 as i have read this about 500 times!

anything would be a great help
thanking you in advance