[FFmpeg-devel] [PATCH]Add -absf and -vbsf as compatibility options
Michael Niedermayer
michaelni at gmx.at
Sun Sep 11 01:25:49 CEST 2011
On Sat, Sep 10, 2011 at 10:52:09PM +0000, Carl Eugen Hoyos wrote:
> Michael Niedermayer <michaelni <at> gmx.at> writes:
>
> > > { "bsf", HAS_ARG | OPT_STRING | OPT_SPEC, {.off =
> > > OFFSET(bitstream_filters)}, "A comma-separated list
> > of bitstream filters", "bitstream_filters" },
> > > + { "absf", HAS_ARG | OPT_STRING | OPT_SPEC, {.off =
> > > OFFSET(bitstream_filters)}, "deprecated",
> > "bitstream_filters" },
> > > + { "vbsf", HAS_ARG | OPT_STRING | OPT_SPEC, {.off =
> > > OFFSET(bitstream_filters)}, "deprecated",
> > "bitstream_filters" },
> >
> > does this work?
> > or does this use the -absf also for video and -vbsf for audio ?
>
> The following command works fine with the patch (with and without --vcodec copy)
> for an input file containing aac and mpeg2video:
> ffmpeg -i out.ts -acodec copy -absf aac_adtstoasc -vcodec copy out.mp4
locally fixed, will push soon
note: to test which streams use a bitstream filter:
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -773,6 +773,7 @@ static void write_frame(AVFormatContext *s, AVPacket *pkt, AVCodecContext *avctx
while(bsfc){
AVPacket new_pkt= *pkt;
+av_log(0,0, "%d ", pkt->stream_index);
int a= av_bitstream_filter_filter(bsfc, avctx, NULL,
&new_pkt.data, &new_pkt.size,
pkt->data, pkt->size,
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The educated differ from the uneducated as much as the living from the
dead. -- Aristotle
-------------- 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/20110911/c24490e6/attachment.asc>
More information about the ffmpeg-devel
mailing list