[Libav-user] H264+AAC output mp4 file.

Alex Cohn alexcohn at netvision.net.il
Sat Sep 24 21:47:13 CEST 2011


If your h264 encoder produces "annex B" style packets (with 00000001
prefix), you must replace them for packing into mp4.
On Sep 20, 2011 3:45 PM, "psychesnet" <psychesnet at gmail.com> wrote:
> Dear All,
>
> I have some question about ffmpeg. In my code, I do not use encode and
> decode function.
> My data source has been encoded by hardware.
> 1. If I use ffmpeg to output mp4 file. Audio is AAC, 8000Hz, 1 channel,
> 16kbps.
> -> Do I need to insert extradata{0x15, 0x88} for AAC ?
>
> 2. If I use ffmpeg to output mp4 file. Video is H264, the h264 frame have
> nal header(SPS+PPS).
> -> Do I need to remove the nal header and insert 4 bytes(frame length
> description) before h264 frame ?
> -> Do I need to insert extradata{avcc} for H264 ?
>
> Anyone has ideal !!! Please help me, thanks a lot.
>
> --
> View this message in context:
http://libav-users.943685.n4.nabble.com/H264-AAC-output-mp4-file-tp3826859p3826859.html
> Sent from the libav-users mailing list archive at Nabble.com.
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20110924/bffd975e/attachment.html>


More information about the Libav-user mailing list