[FFmpeg-devel] [RFC] flvenc: missing aac extradata

Björn Axelsson bjorn.axelsson at intinor.se
Thu Dec 13 14:54:56 CET 2012

Problem found when remuxing mpegts (h264 + aac) to flv across pipes,
like this:
ffmpeg -f mpegts -i - -absf aac_adtstoasc -acodec copy -vcodec copy -f flv -

The AAC extradata is needed for the FLV header in flv_write_header(),
but is not available at that time. This results in unusable audio in the
resulting FLV stream.

We currently use something like the attached patch as a workaround, but
I'm sure someone can point me towards a better solution.

Björn Axelsson                    Phone: +46-(0)90-349 39 02
Intinor AB                          Fax: +46-(0)90-349 39 04
www.intinor.se                   Mobile: +46-(0)70-397 04 17
Broadcast Video & Digital Media Distribution
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flvenc_aac_extradata.diff
Type: text/x-patch
Size: 2615 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121213/027f2dee/attachment.bin>

More information about the ffmpeg-devel mailing list