H264 Decoding

About encoding, codec settings, muxers and filter usage
arjunen
New Cone
New Cone
Posts: 8
Joined: 11 Jan 2009 21:25

H264 Decoding

Postby arjunen » 12 Feb 2009 02:51

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

arjunen
New Cone
New Cone
Posts: 8
Joined: 11 Jan 2009 21:25

Re: H264 Decoding

Postby arjunen » 12 Feb 2009 17:49

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?

ripper69
New Cone
New Cone
Posts: 1
Joined: 16 Oct 2009 18:52

Re: H264 Decoding

Postby ripper69 » 16 Oct 2009 19:00

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


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 13 guests