[FFmpeg-devel] [RFC] Sending H.264 stream to multiple containers
Peng
howtofly at gmail.com
Tue Jul 16 14:24:08 CEST 2013
> The solution I found is the following:
> ffmpeg -i INPUT -map 0 -flags +global_header -c:v libx264 -bsf:v dump_extra -y out.ts
>
> This tells the encoder to write the extradata, but at the same time
> will not write the generated metadata in the packet headers, which is
> obviated with the use of the dump_extra filter (which just takes the
> extradata - in this case the Annex B header generated by the libx264
> wrapper - and dump it at the beginning of each packet).
>
> This translates into the tee command:
> ffmpeg -i INPUT -map 0 -flags +global_header -c:v libx264 -c:a aac -strict experimental -t 10 -f tee -tee_bsfs "dump_extra:v" "out.ts|[movflags=+faststart]out.mp4" -loglevel verbose
>
> which allows to generate valid MP4 and MPEG-TS output at the same
> time.
>
> I'll send some documentation patches to make more apparent this
> scenario in a while.
>
> [...]
>
> Thank you for the heads up which led me to find a solution to this
> problem! :)
Nice work, which would also be very useful to me.
It seems that I should begin educating myself of the current filter
system now. :)
--
Peng
More information about the ffmpeg-devel
mailing list