Re: [FFmpeg-devel] [PATCH] lavc/bsf: add a showinfo filter

2024-02-12 Thread Alexander Strasser via ffmpeg-devel
On 2024-01-29 19:42 +0100, Anton Khirnov wrote: [...] > --- a/doc/bitstream_filters.texi > +++ b/doc/bitstream_filters.texi > @@ -887,6 +887,10 @@ For example, to set PTS equal to DTS (not recommended if > B-frames are involved): > ffmpeg -i INPUT -c:a copy -bsf:a setts=pts=DTS out.mkv > @end

Re: [FFmpeg-devel] [PATCH] lavc/bsf: add a showinfo filter

2024-01-30 Thread Anton Khirnov
Quoting James Almer (2024-01-30 13:39:19) > > +av_log(ctx, AV_LOG_INFO, > > + "n:%7"PRIu64" " > > + "size:%7d " > > + "pts:%s pt:%s " > > + "dts:%s dt:%s " > > + "ds:%"PRId64" d:%s " > > Why the trailing space?

Re: [FFmpeg-devel] [PATCH] lavc/bsf: add a showinfo filter

2024-01-30 Thread James Almer
On 1/29/2024 3:42 PM, Anton Khirnov wrote: Analogous to the (a)showinfo lavfi filters, logs basic packet information. Mainly useful for debugging/testing/development. --- Changelog | 1 + doc/bitstream_filters.texi | 4 +++ libavcodec/bitstream_filters.c | 1 +

Re: [FFmpeg-devel] [PATCH] lavc/bsf: add a showinfo filter

2024-01-30 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2024-01-30 08:17:23) > > +#include > > You should use inttypes.h instead -- it provides everything stdint.h > provides and the print directive defines like PRId64. > > > +static int showinfo_filter(AVBSFContext *ctx, AVPacket *pkt) > > +{ > > +ShowinfoContext

Re: [FFmpeg-devel] [PATCH] lavc/bsf: add a showinfo filter

2024-01-29 Thread Andreas Rheinhardt
Anton Khirnov: > Analogous to the (a)showinfo lavfi filters, logs basic packet > information. Mainly useful for debugging/testing/development. > --- > Changelog | 1 + > doc/bitstream_filters.texi | 4 +++ > libavcodec/bitstream_filters.c | 1 + >

[FFmpeg-devel] [PATCH] lavc/bsf: add a showinfo filter

2024-01-29 Thread Anton Khirnov
Analogous to the (a)showinfo lavfi filters, logs basic packet information. Mainly useful for debugging/testing/development. --- Changelog | 1 + doc/bitstream_filters.texi | 4 +++ libavcodec/bitstream_filters.c | 1 + libavcodec/bsf/Makefile| 1 +