[Live-devel] Using FFmpeg to write H.264 Framer

Brian Marete bgmarete at gmail.com
Thu Jun 26 05:03:51 PDT 2008


Hello,

Please see attached files to see how you can use FFmpeg's libavformat
library to write a framer for H264 video. The code has been tested
with .mp4 files, and with a tweak or two, will work for any other
container format. It assumes that the nal_length_size is 4, but one
can change this so that the nal_length_size is dynamically derived
from what libavformat knows it is. One nice thing about libavformat is
that it will parse the video stream for you and always give you a full
video frame on av_read_frame. (An access unit).

Regards,
-- 
B. Gitonga Marete
Tel: +254-722-151-590
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LavfH264StreamFramer.cpp
Type: text/x-c++src
Size: 3481 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080626/0aac10f3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LavfH264StreamFramer.hh
Type: text/x-c++hdr
Size: 762 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080626/0aac10f3/attachment-0001.bin>


More information about the live-devel mailing list