[FFmpeg-user] Capturing raw H264 data. Need to convert to YUV with ffmpeg

Joseph Rosensweig jrosensw at gmail.com
Tue Oct 30 03:48:11 CET 2012


Sorry for my vagueness.  Essentially what I did is

#1  Take the RTP packets and extract the payloads.
#2  The first byte is the NAL type so I would get that and for now I just
do the same thing for all codes unless its not a defined NAL type or the
NAL units are fragmented.
#3  I add the 0x0000 00001 header and append the data.

If its fragmented I only add the header with the starting packet, then just
keep appending the fragments.

-JD

On Mon, Oct 29, 2012 at 3:27 PM, Roger Pack <rogerdpack2 at gmail.com> wrote:

> > It looks like I just need to drop some payload data and then append the
> > frames.  The h264 format is pretty simple, its 0x000001 delimited between
> > NAL packets.  After making some changes the decode works for me:
>
> So what was your method preicsely?
> -r
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list