[FFmpeg-devel] How do I specify a bitstream filter using the ffmpeg API

Michael Niedermayer michaelni at gmx.at
Wed Jul 18 16:14:58 CEST 2012

On Wed, Jul 18, 2012 at 02:41:45PM +0100, declan harrison wrote:
> Hi Guys
> I had posted this email to the libav-user email alias a few days back
> but it never showed up at that alias, so I thought the ffmpeg-devel
> alias might be best.
> I have a problem creating MPEG2-TS files when using the ffmpeg API.  I
> get the following error thrown by ffmpeg "H.264 bitstream malformed,no
> startcode found, use the h264_mp4toannexb bitstream filter
> (-bsfh264_mp4toannexb)".
> On the CLI interface I can easily specify the bitstream filter using
> the following : ffmpeg -i INFILE.mp4 -f mpegts -codec copy
> -bsf:vh264_mp4toannexb OUTFILE.ts, and this works well for me on the
> command line only.
> However I cant find away to set the same bit stream filter using the
> API as this option isnt a libav* option that can be passed in via the
> API.  Is there a way of specify a bitstream filter from the API?

see ffmpeg.c search for bitstream. I think its not documented outside
sadly. ...  that also means that improvments for the doxy in avcodec.h
as well as the wiki or others is very welcome!

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 1
"Used only once"    - "Some unspecified defect prevented a second use"
"In good condition" - "Can be repaird by experienced expert"
"As is" - "You wouldnt want it even if you were payed for it, if you knew ..."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120718/e01ae218/attachment.asc>

More information about the ffmpeg-devel mailing list