[FFmpeg-devel] [PATCH] add a bitstream filter to prepend extradata to output file

Michael Niedermayer michaelni
Tue Feb 19 18:34:41 CET 2008


On Tue, Feb 19, 2008 at 12:21:32PM -0500, Rich Felker wrote:
> On Tue, Feb 19, 2008 at 01:38:47PM +0100, Luca Abeni wrote:
> > Hi Benoit,
> > 
> > Benoit Fouet wrote:
> > > attached is a patch to $subj
> > > 
> > > the reason:
> > > ffmpeg -i somefile.3gp -an -vcodec copy out.m4v
> > > out.m4v is not readable because it lacks extradata
> > 
> > I am not going to comment on the patch, but I think you can
> > fix this problem by using "-vglobal 2" (which seems to be a
> > reasonable thing to do), without the need for any new
> > bitstream filter.
> 
> Is there a way to ensure this occurs automatically? One should not
> need to know magic commandline options to prevent writing invalid
> files!

Muxers have a AVFMT_GLOBALHEADER which clearly indicates global vs. in stream
headers.
remove_extradata_bsf.c and dump_extradata_bsf.c can insert and remove
extradata. These should be used automatically but are not currently, patch
welcome!

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080219/5e2a0db9/attachment.pgp>



More information about the ffmpeg-devel mailing list