Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] avfilter/vf_showinfo: also print chroma loc
@ 2023-10-13 14:21 Niklas Haas
  2023-10-13 20:47 ` Vittorio Giovara
  0 siblings, 1 reply; 2+ messages in thread
From: Niklas Haas @ 2023-10-13 14:21 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Niklas Haas

From: Niklas Haas <git@haasn.dev>

Curiously absent.
---
 libavfilter/vf_showinfo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c
index bf8580bc8d..71869446c6 100644
--- a/libavfilter/vf_showinfo.c
+++ b/libavfilter/vf_showinfo.c
@@ -715,11 +715,11 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
     av_log(ctx, AV_LOG_INFO,
            "n:%4"PRId64" pts:%7s pts_time:%-7s duration:%7"PRId64
            " duration_time:%-7s "
-           "fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c ",
+           "fmt:%s cl:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c ",
            inlink->frame_count_out,
            av_ts2str(frame->pts), av_ts2timestr(frame->pts, &inlink->time_base),
            frame->duration, av_ts2timestr(frame->duration, &inlink->time_base),
-           desc->name,
+           desc->name, av_chroma_location_name(frame->chroma_location),
            frame->sample_aspect_ratio.num, frame->sample_aspect_ratio.den,
            frame->width, frame->height,
            !(frame->flags & AV_FRAME_FLAG_INTERLACED)     ? 'P' :         /* Progressive  */
-- 
2.42.0

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [FFmpeg-devel] [PATCH] avfilter/vf_showinfo: also print chroma loc
  2023-10-13 14:21 [FFmpeg-devel] [PATCH] avfilter/vf_showinfo: also print chroma loc Niklas Haas
@ 2023-10-13 20:47 ` Vittorio Giovara
  0 siblings, 0 replies; 2+ messages in thread
From: Vittorio Giovara @ 2023-10-13 20:47 UTC (permalink / raw)
  To: FFmpeg development discussions and patches; +Cc: Niklas Haas

On Fri, Oct 13, 2023 at 10:21 AM Niklas Haas <ffmpeg@haasn.xyz> wrote:

> From: Niklas Haas <git@haasn.dev>
>
> Curiously absent.
> ---
>  libavfilter/vf_showinfo.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c
> index bf8580bc8d..71869446c6 100644
> --- a/libavfilter/vf_showinfo.c
> +++ b/libavfilter/vf_showinfo.c
> @@ -715,11 +715,11 @@ static int filter_frame(AVFilterLink *inlink,
> AVFrame *frame)
>      av_log(ctx, AV_LOG_INFO,
>             "n:%4"PRId64" pts:%7s pts_time:%-7s duration:%7"PRId64
>             " duration_time:%-7s "
> -           "fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c ",
> +           "fmt:%s cl:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c ",
>             inlink->frame_count_out,
>             av_ts2str(frame->pts), av_ts2timestr(frame->pts,
> &inlink->time_base),
>             frame->duration, av_ts2timestr(frame->duration,
> &inlink->time_base),
> -           desc->name,
> +           desc->name, av_chroma_location_name(frame->chroma_location),
>             frame->sample_aspect_ratio.num, frame->sample_aspect_ratio.den,
>             frame->width, frame->height,
>             !(frame->flags & AV_FRAME_FLAG_INTERLACED)     ? 'P' :
>  /* Progressive  */
> --
>

ok
-- 
Vittorio
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-13 20:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-13 14:21 [FFmpeg-devel] [PATCH] avfilter/vf_showinfo: also print chroma loc Niklas Haas
2023-10-13 20:47 ` Vittorio Giovara

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git