[FFmpeg-user] -pix_fmt + pixel format conversions

2021-07-29 Thread Green Koopa
My input file is yuvj420p(pc, bt709). My target output is
yuv420p(tv, bt709). I would like to use "-pix_fmt +yuv420p"
to specify the output format, and to force me to be explicit
in my conversions in the filtergraph. How do I achieve
explicit conversions? The format filter appears to trigger
implicit conversions.

"crop=2704:1520:0:0,format=yuv420p,eq=saturation=1.2"
causes error
The filters 'Parsed_crop_0' and 'Parsed_format_1' do not have
a common format and automatic conversion is disabled.

If I go back to relying on implicit conversions, how do I
output these automatically added filters?


ffmpeg version 4.4-essentials_build-www.gyan.dev
on Windows 10
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


Re: [FFmpeg-user] -pix_fmt + pixel format conversions

2021-07-29 Thread Michael Koch

Am 29.07.2021 um 09:12 schrieb Green Koopa:

My input file is yuvj420p(pc, bt709). My target output is
yuv420p(tv, bt709). I would like to use "-pix_fmt +yuv420p"
to specify the output format, and to force me to be explicit
in my conversions in the filtergraph. How do I achieve
explicit conversions? The format filter appears to trigger
implicit conversions.

"crop=2704:1520:0:0,format=yuv420p,eq=saturation=1.2"
causes error
The filters 'Parsed_crop_0' and 'Parsed_format_1' do not have
a common format and automatic conversion is disabled.

If I go back to relying on implicit conversions, how do I
output these automatically added filters?


Add "-v verbose" to your command line and then search for the green 
lines in the console listing.


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


Re: [FFmpeg-user] -pix_fmt + pixel format conversions

2021-07-29 Thread Nicolas George
Green Koopa (12021-07-29):
> My input file is yuvj420p(pc, bt709). My target output is
> yuv420p(tv, bt709). I would like to use "-pix_fmt +yuv420p"
> to specify the output format, and to force me to be explicit
> in my conversions in the filtergraph. How do I achieve
> explicit conversions? The format filter appears to trigger
> implicit conversions.

The format filter does not do the conversions, it only forces the format
at a certain point in the filter graph.

The standard filter for converting between pixel formats is scale. In
certain cases, I hear zscale can be more suited, but I never looked at
the specifics.

Regards,

-- 
  Nicolas George


signature.asc
Description: PGP signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


Re: [FFmpeg-user] -pix_fmt + pixel format conversions

2021-07-30 Thread Green Koopa
Nicolas George (2021-07-29):
>
> Green Koopa (12021-07-29):
> > My input file is yuvj420p(pc, bt709). My target output is
> > yuv420p(tv, bt709). I would like to use "-pix_fmt +yuv420p"
> > to specify the output format, and to force me to be explicit
> > in my conversions in the filtergraph. How do I achieve
> > explicit conversions? The format filter appears to trigger
> > implicit conversions.
>
> The format filter does not do the conversions, it only forces the format
> at a certain point in the filter graph.
>
> The standard filter for converting between pixel formats is scale. In
> certain cases, I hear zscale can be more suited, but I never looked at
> the specifics.
>
> Regards,
>
> --
>   Nicolas George
>

Thank you, that helps my understanding. Is there a way to know what
pix_fmts each filter can accept?
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


Re: [FFmpeg-user] -pix_fmt + pixel format conversions

2021-07-30 Thread Nicolas George
Green Koopa (12021-07-30):
> Thank you, that helps my understanding. Is there a way to know what
> pix_fmts each filter can accept?

Unfortunately, nothing public, unless I am mistaken.

If you have a build tree, you can try running the filtfmts tests, and
then re-run the test program directly to see its output.

Regards,

-- 
  Nicolas George


signature.asc
Description: PGP signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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