[Live-devel] Decoding h264 from an RTSP stream

Pushkar Pradhan pushkar at ipvideosys.com
Fri Aug 20 09:01:41 PDT 2010


 

________________________________

From: live-devel-bounces at ns.live555.com on behalf of Estelle W. Paus
Sent: Thu 8/19/2010 4:39 PM
To: live-devel at ns.live555.com
Subject: [Live-devel] Decoding h264 from an RTSP stream



Using your live555 libraries and ffmpeg, I am trying to write an h264
player that uses RTSP.  Although I successfully seem to be receiving
the RTP packets, they are not being decoded.  In researching this
problem I have noticed the following:

ffmpeg h264 decoder seems to be looking for 001

When stepping through mplayer code, it finds this 001.
When I look at the stream with Wireshark, I do not see a 001.

My program that uses live555 and ffmpeg can't find 001 in the frame.

Questions:

Is the live555 library adding this 001 and if so where and how do I tell
it to do it?

Hello Estelle,

According to the RFC for H.264 RTP the RTP sender does not have to send the NALU start code prefix (0x000001). Neither does the RTP framing logic on the receiver have to insert this. This is done to save bandwidth. You can easily prefix the start code prefix to the NALU you receive in your sink implementation. You can look at the H264VideoFileSink implementation it must be doing the same, I used my own sink though.

pushkar

 

 

 

 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4151 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100820/7ed52841/attachment.bin>


More information about the live-devel mailing list