Re: [FFmpeg-user] Requesting colormatrix advice

2023-11-07 Thread Phil Rhodes via ffmpeg-user
 Does anyone else have any idea what Paul's even talking about, at this point?
P
On Tuesday, 7 November 2023 at 18:41:55 GMT, Paul B Mahol 
 wrote:  
 
 On Tue, Nov 7, 2023 at 6:58 PM Carl Zwanzig  wrote:

> On 11/7/2023 10:05 AM, Paul B Mahol wrote:
> > Documentation is there and its 99.99% correct and maintained, but as
> usual
> > you misinterpret it almost always via your logic fallacies.
>
> Tell us what's wrong.
>
>
I never assume anything without sufficient facts and data I can confirm
again and again using proven solutions and procedures.


> z!
> ___
> 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".
>
___
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".
  
___
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] Requesting colormatrix advice

2023-11-07 Thread Nicolas George
Michael Koch (12023-11-07):
> That's a good summary of the current state. I did also try to understand
> this stuff some time ago, without success.

Except for this:

> > Interactions between all of this are not documented anywhere.

This is completely untrue, and Phil has been familiar with FFmpeg for
enough time that we can consider it intentional: it is a lie.

Video manipulation is a difficult topic, there are lots of ways of doing
similar things that will yield subtly different results. The ability to
chose the right one comes with experience and effort.

Unfortunately, both Phil and Mark have repeatedly shown they had no
intention of making any effort themselves, their policy is to expect
somebody to do the job for them gratis and insult the project when that
does not happen.

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] Requesting colormatrix advice

2023-11-07 Thread Paul B Mahol
On Tue, Nov 7, 2023 at 8:01 PM Carl Zwanzig  wrote:

> On 11/7/2023 10:10 AM, Paul B Mahol wrote:
> > I never assume anything without sufficient facts and data I can confirm
> > again and again using proven solutions and procedures.
>
> And yet, you seem to know enough to tell people that they're wrong, and do
> so without telling them exactly what's wrong and how to correct it. Sounds
> like that's being "More extremely lazy".
>

I answered all relevant sane questions. If something is still unclear ask
again.


>
> "but as usual you misinterpret it almost always via your logic fallacies."
> Missing was an explanation of what those supposed logic fallacies are and
> how they're false.
>
> "I can answer it, but I guess OP will listen to your usual misinformation."
> How do you know they will? Is it actually "misinformation" (still not
> answered)? Why didn't you answer it correctly in the first place?
>
>
> Oh, and don't bother again saying that I (or Mark, or Phil, etc) should be
> banned.
>

You are just adding not very useful noise.


>
> z!
> ___
> 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".
>
___
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] Requesting colormatrix advice

2023-11-07 Thread Carl Zwanzig

On 11/7/2023 10:10 AM, Paul B Mahol wrote:

I never assume anything without sufficient facts and data I can confirm
again and again using proven solutions and procedures.


And yet, you seem to know enough to tell people that they're wrong, and do 
so without telling them exactly what's wrong and how to correct it. Sounds 
like that's being "More extremely lazy".


"but as usual you misinterpret it almost always via your logic fallacies."
Missing was an explanation of what those supposed logic fallacies are and 
how they're false.


"I can answer it, but I guess OP will listen to your usual misinformation."
How do you know they will? Is it actually "misinformation" (still not 
answered)? Why didn't you answer it correctly in the first place?



Oh, and don't bother again saying that I (or Mark, or Phil, etc) should be 
banned.


z!
___
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] Requesting colormatrix advice

2023-11-07 Thread Paul B Mahol
On Tue, Nov 7, 2023 at 6:58 PM Carl Zwanzig  wrote:

> On 11/7/2023 10:05 AM, Paul B Mahol wrote:
> > Documentation is there and its 99.99% correct and maintained, but as
> usual
> > you misinterpret it almost always via your logic fallacies.
>
> Tell us what's wrong.
>
>
I never assume anything without sufficient facts and data I can confirm
again and again using proven solutions and procedures.


> z!
> ___
> 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".
>
___
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] Requesting colormatrix advice

2023-11-07 Thread Paul B Mahol
On Tue, Nov 7, 2023 at 6:57 PM  wrote:

> On 11/7/23 12:42, Michael Koch wrote:
> > ... I did also try to understand this stuff some time ago, without
> success.
> >
> > Michael
>
> Well, you're just stupid, Michael. Phil, too. Me, too.
>

More extremely lazy, for not providing small sample(s).


>
> Hahahahaha...BoH
>
> ___
> 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".
>
___
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] Requesting colormatrix advice

2023-11-07 Thread Carl Zwanzig

On 11/7/2023 10:05 AM, Paul B Mahol wrote:

Documentation is there and its 99.99% correct and maintained, but as usual
you misinterpret it almost always via your logic fallacies.


Tell us what's wrong.

z!
___
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] Requesting colormatrix advice

2023-11-07 Thread markfilipak . imdb

On 11/7/23 12:42, Michael Koch wrote:

... I did also try to understand this stuff some time ago, without success.

Michael


Well, you're just stupid, Michael. Phil, too. Me, too.

Hahahahaha...BoH

___
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] Requesting colormatrix advice

2023-11-07 Thread Paul B Mahol
On Tue, Nov 7, 2023 at 6:53 PM Phil Rhodes via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:

>  On Tuesday, 7 November 2023 at 17:28:58 GMT, Paul B Mahol <
> one...@gmail.com> wrote:
>
> > You are deeply confused, and make assumptions from no knowledge and from
> no> actual facts at all.
> Oh, okay - are you telling us the options I listed aren't part of ffmpeg?

They're all listed in the documentation, on pages such as
> https://trac.ffmpeg.org/wiki/colorspace and
> https://ffmpeg.org/ffmpeg-filters.html
> Perhaps the documentation is incorrect?
>

Documentation is there and its 99.99% correct and maintained, but as usual
you misinterpret it almost always via your logic fallacies.


> - P
> ___
> 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".
>
___
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] Requesting colormatrix advice

2023-11-07 Thread Phil Rhodes via ffmpeg-user
 On Tuesday, 7 November 2023 at 17:28:58 GMT, Paul B Mahol  
wrote:
 
> You are deeply confused, and make assumptions from no knowledge and from no> 
> actual facts at all.
Oh, okay - are you telling us the options I listed aren't part of ffmpeg?
They're all listed in the documentation, on pages such as 
https://trac.ffmpeg.org/wiki/colorspace and 
https://ffmpeg.org/ffmpeg-filters.html
Perhaps the documentation is incorrect?
- P  
___
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] Requesting colormatrix advice

2023-11-07 Thread Michael Koch

Am 07.11.2023 um 18:23 schrieb Phil Rhodes via ffmpeg-user:

  So let me get this straight.
There's a command line option called colorspace.
There's a filter called colorspace which has options including "space," "trc" (meaning 
"transfer characteristics") and "primaries," as well as several other options which do not actually 
have anything to do with colourspace.
There's a filter called setparams which has options including 
“color_primaries,” “color_trc” (meaning “colour transform” this time) and 
“colorspace.” This filter is known to be buggy.
Several other filters (including scale and zscale) have options to set input 
and output colour spaces, which might complicate things further.
Interactions between all of this are not documented anywhere.
Has it occurred to anyone that this is getting a bit out of hand, and 
regardless the knowledge level of the user, it creates a situation where things 
are likely to be the wrong colour?


That's a good summary of the current state. I did also try to understand 
this stuff some time ago, without success.


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] Requesting colormatrix advice

2023-11-07 Thread Paul B Mahol
On Tue, Nov 7, 2023 at 6:24 PM Phil Rhodes via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:

>  So let me get this straight.
> There's a command line option called colorspace.
> There's a filter called colorspace which has options including "space,"
> "trc" (meaning "transfer characteristics") and "primaries," as well as
> several other options which do not actually have anything to do with
> colourspace.
> There's a filter called setparams which has options
> including “color_primaries,” “color_trc” (meaning “colour transform” this
> time) and “colorspace.” This filter is known to be buggy.
> Several other filters (including scale and zscale) have options to set
> input and output colour spaces, which might complicate things further.
> Interactions between all of this are not documented anywhere.
> Has it occurred to anyone that this is getting a bit out of hand, and
> regardless the knowledge level of the user, it creates a situation where
> things are likely to be the wrong colour?
>

You are deeply confused, and make assumptions from no knowledge and from no
actual facts at all.
setparams filter only changes metadata fields which is obvious from its
name, it does not change actual pixels at all and is not buggy.


> - Phil
> ___
> 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".
>
___
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] Requesting colormatrix advice

2023-11-07 Thread Phil Rhodes via ffmpeg-user
 So let me get this straight.
There's a command line option called colorspace.
There's a filter called colorspace which has options including "space," "trc" 
(meaning "transfer characteristics") and "primaries," as well as several other 
options which do not actually have anything to do with colourspace.
There's a filter called setparams which has options including 
“color_primaries,” “color_trc” (meaning “colour transform” this time) and 
“colorspace.” This filter is known to be buggy.
Several other filters (including scale and zscale) have options to set input 
and output colour spaces, which might complicate things further.
Interactions between all of this are not documented anywhere.
Has it occurred to anyone that this is getting a bit out of hand, and 
regardless the knowledge level of the user, it creates a situation where things 
are likely to be the wrong colour?
- Phil
___
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] Requesting colormatrix advice

2023-11-07 Thread Paul B Mahol
On Tue, Nov 7, 2023 at 5:03 PM  wrote:

> On 11/7/23 10:27, Paul B Mahol wrote:
> > On Tue, Nov 7, 2023 at 3:09 PM  wrote:
> >
> >> On 11/7/23 08:39, Paul B Mahol wrote:
> >>> On Tue, Nov 7, 2023 at 2:22 PM  wrote:
> >>>
>  On 11/7/23 06:55, Phil Rhodes via ffmpeg-user wrote:
> > On Tuesday, 7 November 2023 at 11:48:24 GMT, <
>  markfilipak.i...@gmail.com> wrote:
> >
> >> I think it sets the color tags on the _input_
> > I'm not so sure ...
> 
>  I tried it. The saturation was still there.
> 
>  What exactly you tried?
> >>
> >> set ARGS=-map 0:v -map 0:a:1 -map 0:a:0 -vf
> >>
> setparams=range=tv:color_primaries=smpte170m:color_trc=smpte170m:colorspace=smpte170m,separatefields,setdar=16/9
> >>
> >> -c:v libx265 -x265-params crf=18 -c:a copy
> >> ffmpeg -ss 10:37.846 -to 11:09.335 -i "%SOURCE%" %ARGS% "%TARGET%"
> >>
> >> It seems to me that if 'setparams' is marking tags in the SOURCE instead
> >> of the encoder, it would
> >> not be in '-vf' and would not require transcoding. It would be a
> '-bsf:v'.
> >> So, I don't know what
> >> 'setparams' does. Apparently nothing.
> >>
> >
> > That is a bug.
>
> What is a bug, Paul? Is it a bug that '-vf
> setparams==smpte170m' doesn't affect the
> encoder? Or, on the other hand, is it a bug that '-vf
> setparams==smpte170m' doesn't
> affect the decoded stream as though it was in the source's colormatrix? As
> Phil pointed out, the
> documentation is ambiguous regarding whether it applies to the source or
> to the encoding, so the bug
> is also ambiguous, eh?
>
> > Workaround is to use: -colorspace -color_range etc output options
> directly.
>
> As I pointed out, libx265 can't do anything with colormatrix values of
> 'unknown'. In the face of
> 'unknown', it can only encode to bt709 without changing the chroma because
> it can't convert from
> 'unknown', eh? In other words, I need a way of tricking libx265 into
> thinking that the source is
> 'smpte170m' so it will convert it to bt709. Is '-vf
> setparams==smpte170m' supposed
> to do that? Who knows? For sure, -colorspace -color_range etc. don't do
> that. They affect only the
> encoder. They are not workarounds. libx265 can't convert 'unknown' to
> anything. It can only follow
> the rules of Blu-ray. So I can't do an is-this-source-actually-smpte170m
> test. Do you get it my friend?
>
>
You are deeply confused. To tag input or output you need to use
"-colorspace bt601" and similar as input or output option,
here input option means option goes before input and output option means it
goes after encoder selection and before output file name.

setparams filter is only currently useful if you want to convert/transcode
it from bt601 to bt709 in which case you than tag it with that filter.
If you do not want to transcode than there are bitstream filters for
h264/hevc/prores/etc to set some metadata too including colour primaries.

colormatrix filter is not recommended for usage at all.


> Regards -- Mark.
> ___
> 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".
>
___
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] Requesting colormatrix advice

2023-11-07 Thread markfilipak . imdb

On 11/7/23 10:27, Paul B Mahol wrote:

On Tue, Nov 7, 2023 at 3:09 PM  wrote:


On 11/7/23 08:39, Paul B Mahol wrote:

On Tue, Nov 7, 2023 at 2:22 PM  wrote:


On 11/7/23 06:55, Phil Rhodes via ffmpeg-user wrote:

On Tuesday, 7 November 2023 at 11:48:24 GMT, <

markfilipak.i...@gmail.com> wrote:



I think it sets the color tags on the _input_

I'm not so sure ...


I tried it. The saturation was still there.

What exactly you tried?


set ARGS=-map 0:v -map 0:a:1 -map 0:a:0 -vf
setparams=range=tv:color_primaries=smpte170m:color_trc=smpte170m:colorspace=smpte170m,separatefields,setdar=16/9

-c:v libx265 -x265-params crf=18 -c:a copy
ffmpeg -ss 10:37.846 -to 11:09.335 -i "%SOURCE%" %ARGS% "%TARGET%"

It seems to me that if 'setparams' is marking tags in the SOURCE instead
of the encoder, it would
not be in '-vf' and would not require transcoding. It would be a '-bsf:v'.
So, I don't know what
'setparams' does. Apparently nothing.



That is a bug.


What is a bug, Paul? Is it a bug that '-vf setparams==smpte170m' doesn't affect the 
encoder? Or, on the other hand, is it a bug that '-vf setparams==smpte170m' doesn't 
affect the decoded stream as though it was in the source's colormatrix? As Phil pointed out, the 
documentation is ambiguous regarding whether it applies to the source or to the encoding, so the bug 
is also ambiguous, eh?



Workaround is to use: -colorspace -color_range etc output options directly.


As I pointed out, libx265 can't do anything with colormatrix values of 'unknown'. In the face of 
'unknown', it can only encode to bt709 without changing the chroma because it can't convert from 
'unknown', eh? In other words, I need a way of tricking libx265 into thinking that the source is 
'smpte170m' so it will convert it to bt709. Is '-vf setparams==smpte170m' supposed 
to do that? Who knows? For sure, -colorspace -color_range etc. don't do that. They affect only the 
encoder. They are not workarounds. libx265 can't convert 'unknown' to anything. It can only follow 
the rules of Blu-ray. So I can't do an is-this-source-actually-smpte170m test. Do you get it my friend?


Regards -- Mark.
___
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] Requesting colormatrix advice

2023-11-07 Thread Paul B Mahol
On Tue, Nov 7, 2023 at 3:09 PM  wrote:

> On 11/7/23 08:39, Paul B Mahol wrote:
> > On Tue, Nov 7, 2023 at 2:22 PM  wrote:
> >
> >> On 11/7/23 06:55, Phil Rhodes via ffmpeg-user wrote:
> >>>On Tuesday, 7 November 2023 at 11:48:24 GMT, <
> >> markfilipak.i...@gmail.com> wrote:
> >>>
> I think it sets the color tags on the _input_
> >>> I'm not so sure ...
> >>
> >> I tried it. The saturation was still there.
> >>
> >> What exactly you tried?
>
> set ARGS=-map 0:v -map 0:a:1 -map 0:a:0 -vf
> setparams=range=tv:color_primaries=smpte170m:color_trc=smpte170m:colorspace=smpte170m,separatefields,setdar=16/9
>
> -c:v libx265 -x265-params crf=18 -c:a copy
> ffmpeg -ss 10:37.846 -to 11:09.335 -i "%SOURCE%" %ARGS% "%TARGET%"
>
> It seems to me that if 'setparams' is marking tags in the SOURCE instead
> of the encoder, it would
> not be in '-vf' and would not require transcoding. It would be a '-bsf:v'.
> So, I don't know what
> 'setparams' does. Apparently nothing.
>

That is a bug.
Workaround is to use: -colorspace -color_range etc output options directly.


>
> ___
> 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".
>
___
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] Requesting colormatrix advice

2023-11-07 Thread markfilipak . imdb

On 11/7/23 08:39, Paul B Mahol wrote:

On Tue, Nov 7, 2023 at 2:22 PM  wrote:


On 11/7/23 06:55, Phil Rhodes via ffmpeg-user wrote:

   On Tuesday, 7 November 2023 at 11:48:24 GMT, <

markfilipak.i...@gmail.com> wrote:



   I think it sets the color tags on the _input_

I'm not so sure ...


I tried it. The saturation was still there.

What exactly you tried?


set ARGS=-map 0:v -map 0:a:1 -map 0:a:0 -vf 
setparams=range=tv:color_primaries=smpte170m:color_trc=smpte170m:colorspace=smpte170m,separatefields,setdar=16/9 
-c:v libx265 -x265-params crf=18 -c:a copy

ffmpeg -ss 10:37.846 -to 11:09.335 -i "%SOURCE%" %ARGS% "%TARGET%"

It seems to me that if 'setparams' is marking tags in the SOURCE instead of the encoder, it would 
not be in '-vf' and would not require transcoding. It would be a '-bsf:v'. So, I don't know what 
'setparams' does. Apparently nothing.


___
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] Requesting colormatrix advice

2023-11-07 Thread Paul B Mahol
On Tue, Nov 7, 2023 at 2:22 PM  wrote:

> On 11/7/23 06:55, Phil Rhodes via ffmpeg-user wrote:
> >   On Tuesday, 7 November 2023 at 11:48:24 GMT, <
> markfilipak.i...@gmail.com> wrote:
> >
> >>   I think it sets the color tags on the _input_
> > I'm not so sure ...
>
> I tried it. The saturation was still there.
>
> What exactly you tried?


> Giving up for lack of information.
>
> Thanks folks -- Mark.
>
> ___
> 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".
>
___
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] Requesting colormatrix advice

2023-11-07 Thread markfilipak . imdb

On 11/7/23 06:55, Phil Rhodes via ffmpeg-user wrote:

  On Tuesday, 7 November 2023 at 11:48:24 GMT,  
wrote:
  

  I think it sets the color tags on the _input_

I'm not so sure ...


I tried it. The saturation was still there.

Giving up for lack of information.

Thanks folks -- Mark.

___
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] Requesting colormatrix advice

2023-11-07 Thread Phil Rhodes via ffmpeg-user
 I don't think you need to do this for a second - what's on the disc will be 
709. That's how blu-rays work, unless they're the oddball Sony 4K thing.
The whole purpose of colour grading is to put whatever comes off the film 
scanner into 709.
P
On Tuesday, 7 November 2023 at 12:04:34 GMT, Rob Hallam 
 wrote:  
 
 On Mon, 6 Nov 2023 at 03:42,  wrote:
> The Question:
> Do you have any advice regarding colormatrix?
> Thanks for any advice for relieving a headache
> --Mark.

If you haven't already, it might be worth tackling this from another
direction. Look at the credits for the remaster, figure out who was
involved* in doing the actual work, and shoot them an email or
message?

"Hi, I have a copy of the {WHICHEVER} bluray, can I pick your brain
about the colorspace / film digitizing† process you used? (if it
wasn't you, who would you recommend I ask)"

Their answers might make it easier to figure out which dials and
levers to adjust, colorspace or otherwise, if your 601-to-709
experiment doesn't produce acceptable results. They might be
interesting from a process perspective regardless.

Cheers,
Rob

*†: I can think of a case of a 90s Paramount series that was shot on
film, but which also used a modest amount of CGI to augment the
remastering of VFX- whatever CGI they used presumably was done to
match the film in color-grading terms. If this case is the same as
your case, perhaps Wade Felker or Dylan Hucklesby might be good places
to start. Good luck!
___
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".
  
___
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] Requesting colormatrix advice

2023-11-07 Thread Rob Hallam
On Mon, 6 Nov 2023 at 03:42,  wrote:
> The Question:
> Do you have any advice regarding colormatrix?
> Thanks for any advice for relieving a headache
> --Mark.

If you haven't already, it might be worth tackling this from another
direction. Look at the credits for the remaster, figure out who was
involved* in doing the actual work, and shoot them an email or
message?

"Hi, I have a copy of the {WHICHEVER} bluray, can I pick your brain
about the colorspace / film digitizing† process you used? (if it
wasn't you, who would you recommend I ask)"

Their answers might make it easier to figure out which dials and
levers to adjust, colorspace or otherwise, if your 601-to-709
experiment doesn't produce acceptable results. They might be
interesting from a process perspective regardless.

Cheers,
Rob

*†: I can think of a case of a 90s Paramount series that was shot on
film, but which also used a modest amount of CGI to augment the
remastering of VFX- whatever CGI they used presumably was done to
match the film in color-grading terms. If this case is the same as
your case, perhaps Wade Felker or Dylan Hucklesby might be good places
to start. Good luck!
___
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] Requesting colormatrix advice

2023-11-07 Thread Phil Rhodes via ffmpeg-user
 On Tuesday, 7 November 2023 at 11:48:24 GMT,  
wrote:
 
> I think it sets the color tags on the _input_
I'm not so sure, it specifically says "marks interlace and color range for the 
output frames."
It then goes on to imply the filter does a bit more than set just interlacing 
and colour range flags, since it seems to support at least three different 
types of colour primary specification, but we're forced to guess.
P  
___
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] Requesting colormatrix advice

2023-11-07 Thread markfilipak . imdb

On 11/7/23 06:29, Phil Rhodes via ffmpeg-user wrote:

  Well, yeah, but we've been discussing x265, too, so it seemed worth asking.
I presume you're talking about this setparams filter:
https://ffmpeg.org/ffmpeg-filters.html#setparams-1

There aren't any examples of usage there, but it seems to do nothing but set 
the flags on the output data.


I think it sets the color tags on the _input_. That gives a starting point for ffmpeg to convert 
from -- convert from BT601 to BT709. That has to be better than convert from unknown to BT709, eh?


I'll give it a try on my saturated video.

Thank you, Paul. -- Mark.

___
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] Requesting colormatrix advice

2023-11-07 Thread Phil Rhodes via ffmpeg-user
 Well, yeah, but we've been discussing x265, too, so it seemed worth asking.
I presume you're talking about this setparams filter:
https://ffmpeg.org/ffmpeg-filters.html#setparams-1

There aren't any examples of usage there, but it seems to do nothing but set 
the flags on the output data. I'm not sure how that would work out with various 
output file formats and codecs, which may have various different ways of 
including that information.
I'm not clear what the function of "color transfer," "color primaries" and 
"colorspace" is in that case.
P
On Tuesday, 7 November 2023 at 10:52:53 GMT, Paul B Mahol 
 wrote:  
 
 On Tue, Nov 7, 2023 at 11:40 AM Phil Rhodes via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:

>
>
>    On Tuesday, 7 November 2023 at 10:30:33 GMT, Paul B Mahol <
> one...@gmail.com> wrote:
>  > Use setparams filter to properly tag inputs colorspace related metadata.
>
> Y'know, I've been dealing with this stuff for twenty-plus years, and I'm
> not very clear on exactly what you're trying to suggest Mark does here.
> What software are you referring to? Is it documented anywhere? Are there
> examples?
>

This is mailing list about FFmpeg software.


> P
> ___
> 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".
>
___
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".
  
___
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] Requesting colormatrix advice

2023-11-07 Thread Paul B Mahol
On Tue, Nov 7, 2023 at 11:40 AM Phil Rhodes via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:

>
>
> On Tuesday, 7 November 2023 at 10:30:33 GMT, Paul B Mahol <
> one...@gmail.com> wrote:
>  > Use setparams filter to properly tag inputs colorspace related metadata.
>
> Y'know, I've been dealing with this stuff for twenty-plus years, and I'm
> not very clear on exactly what you're trying to suggest Mark does here.
> What software are you referring to? Is it documented anywhere? Are there
> examples?
>

This is mailing list about FFmpeg software.


> P
> ___
> 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".
>
___
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] Requesting colormatrix advice

2023-11-07 Thread Phil Rhodes via ffmpeg-user
 

On Tuesday, 7 November 2023 at 10:30:33 GMT, Paul B Mahol 
 wrote:  
 > Use setparams filter to properly tag inputs colorspace related metadata.

Y'know, I've been dealing with this stuff for twenty-plus years, and I'm not 
very clear on exactly what you're trying to suggest Mark does here.
What software are you referring to? Is it documented anywhere? Are there 
examples?
P  
___
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] Requesting colormatrix advice

2023-11-07 Thread Paul B Mahol
On Tue, Nov 7, 2023 at 11:21 AM  wrote:

> On 11/7/23 04:08, Phil Rhodes via ffmpeg-user wrote:
> >   I have no idea how colour handling in x265 works so I can't really
> advise on specifically how to set it up. Possibly it's documented
> somewhere. One of the problems with this (which comes up in some high end
> post production software quite often) is that it's sometimes not very clear
> whether we're specifying what we expect the input data to be, or what we
> expect it to be converted to.
>
> I thought only I had that problem. :-)
>
> > For instance, I'm not sure what's meant by "transfer" in this context.
>
> Perfect example.
>
> >> It's 1920x1080. I 'heard' of "studio swing". What is it relative to
> what x265 expects (above)? Do you know?
> > I'm possibly guilty of indulging in jargon here; by "studio swing" I'm
> referring to a reduced data range often from 16-235 for the luminance
> channel.
>
> The preferred term appears to be 'limited range'.
>
> >>   I feel a headache coming on. Let's assume ffprobe is correct and
> colormatrix is undefined on the discs
> > What's on the disc will be in Rec. 709.
>
> I don't think so. If that were true, then what's on disc and what's in the
> MP4 would both play
> accurately and without saturation. I'm pretty sure they're not BT709.
>
> > I honestly don't know what data ranges blu-rays use.
>
> Limited. It's silly -- more legacy analog TV hangover -- but it's limited.
> The MPEG folks just can't
> seem to wean themselves away from TV-on-disc.
>
> > It's often fairly clear if you can look at it and it looks all lifted,
> that'll be why.
>
> "lifted"?
>
> > Unfortunately there are a lot of moving parts here.
>
> I may be naive but I don't think so. X265 has presets that appear to cover
> all commercial media. How
> it covers is apparently a matter of some conjecture. But really, all that
> color adaptation stuff,
> like to accommodate phosphors in CRTs, needs to be done BY THE TV, not by
> the media. There should be
> one set of colors and they should be RGB full range with unlimited gamut.
> The TV makers know what
> the TVs are capable of and can do dot-by-dot fix up.
>
> You're off the hook, Phil. Thanks for your thoughts. I appreciate them. --
> Mark.
>

Use setparams filter to properly tag inputs colorspace related metadata.


>
> ___
> 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".
>
___
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] Requesting colormatrix advice

2023-11-07 Thread markfilipak . imdb

On 11/7/23 04:08, Phil Rhodes via ffmpeg-user wrote:

  I have no idea how colour handling in x265 works so I can't really advise on 
specifically how to set it up. Possibly it's documented somewhere. One of the 
problems with this (which comes up in some high end post production software 
quite often) is that it's sometimes not very clear whether we're specifying 
what we expect the input data to be, or what we expect it to be converted to.


I thought only I had that problem. :-)


For instance, I'm not sure what's meant by "transfer" in this context.


Perfect example.


It's 1920x1080. I 'heard' of "studio swing". What is it relative to what x265 
expects (above)? Do you know?

I'm possibly guilty of indulging in jargon here; by "studio swing" I'm 
referring to a reduced data range often from 16-235 for the luminance channel.


The preferred term appears to be 'limited range'.


  I feel a headache coming on. Let's assume ffprobe is correct and colormatrix 
is undefined on the discs

What's on the disc will be in Rec. 709.


I don't think so. If that were true, then what's on disc and what's in the MP4 would both play 
accurately and without saturation. I'm pretty sure they're not BT709.



I honestly don't know what data ranges blu-rays use.


Limited. It's silly -- more legacy analog TV hangover -- but it's limited. The MPEG folks just can't 
seem to wean themselves away from TV-on-disc.



It's often fairly clear if you can look at it and it looks all lifted, that'll 
be why.


"lifted"?


Unfortunately there are a lot of moving parts here.


I may be naive but I don't think so. X265 has presets that appear to cover all commercial media. How 
it covers is apparently a matter of some conjecture. But really, all that color adaptation stuff, 
like to accommodate phosphors in CRTs, needs to be done BY THE TV, not by the media. There should be 
one set of colors and they should be RGB full range with unlimited gamut. The TV makers know what 
the TVs are capable of and can do dot-by-dot fix up.


You're off the hook, Phil. Thanks for your thoughts. I appreciate them. -- Mark.

___
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] Requesting colormatrix advice

2023-11-07 Thread Phil Rhodes via ffmpeg-user
 I have no idea how colour handling in x265 works so I can't really advise on 
specifically how to set it up. Possibly it's documented somewhere. One of the 
problems with this (which comes up in some high end post production software 
quite often) is that it's sometimes not very clear whether we're specifying 
what we expect the input data to be, or what we expect it to be converted to. 
For instance, I'm not sure what's meant by "transfer" in this context.
> It's 1920x1080. I 'heard' of "studio swing". What is it relative to what x265 
> expects (above)? Do you know? 
I'm possibly guilty of indulging in jargon here; by "studio swing" I'm 
referring to a reduced data range often from 16-235 for the luminance channel.
> I feel a headache coming on. Let's assume ffprobe is correct and colormatrix 
>is undefined on the discs
What's on the disc will be in Rec. 709. I honestly don't know what data ranges 
blu-rays use. It's often fairly clear if you can look at it and it looks all 
lifted, that'll be why. Unfortunately there are a lot of moving parts here.
P  
___
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] Requesting colormatrix advice

2023-11-06 Thread markfilipak . imdb

On 11/6/23 11:16, Phil Rhodes via ffmpeg-user wrote:

  A number of potentially complex interactions govern what's going on here. 
FFmpeg has never been particularly smart about how it interprets colour and 
brightness encoding, and it is not very well documented in that regard, but to 
be fair, files are not always (or even often) marked correctly with flags 
indicating what they contain, the flags may be nonstandard, etc. It's tricky.


Hello, Phil, Nice to 'speak' with you again. I agree with you. Color is a 
wilderness.

Below is what x265 expects, so it's what ffmpeg must give it:

--video-signal-type-preset 
Specify combinations of 'colorprim' 'transfer' 'colormatrix' 'range'
& 'chromaloc'.

String format: 
This has higher precedence than individual VUI parameters.
If any individual VUI option is specified together with this, which
changes the values set corresponding to the system or color-volume,
it will be discarded.

colorprim transfer colormatrix range   chromaloc
=== =  === === =
BT601_525   smpte170m smpte170msmpte170m   limited 0
BT601_626   bt470bg   smpte170mbt470bg limited 0
BT709_YCC   bt709 bt709bt709   limited 0
BT709_RGB   bt709 bt709gbr limited
BT2020_YCC_NCL  bt2020bt2020-10bt709   limited 2
BT2020_RGB  bt2020smpte2084bt2020nclimited
BT2100_HLG_YCC  bt2020arib-std-b67 bt2020nclimited 2
BT2100_HLG_RGB  bt2020arib-std-b67 gbr limited
FR709_RGB   bt709 bt709gbr full
FR2020_RGB  bt2020bt2020-10gbr full
FRP3D65_YCC smpte432  bt709smpte170m   full1

String format: :
The color-volume options can be used only with the system options
BT2100_PQ_YCC, BT2100_PQ_ICTCP, and BT2100_PQ_RGB. It is
incompatible with other options.

colorprim transfer colormatrix range   chromaloc
=== =  === === =
BT2100_PQ_YCC   bt2020smpte2084bt2020nclimited 2
BT2100_PQ_ICTCP bt2020smpte2084ictcp   limited 2
BT2100_PQ_RGB   bt2020smpte2084gbr limited

  master-display
=== 
=
P3D65x1000n0005 
G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(1000,5)
P3D65x4000n005  
G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(4000,50)
BT2100x108n0005 
G(8500,39850)B(6550,2300)R(34000,146000)WP(15635,16450)L(1000,1)

--colorprim 
Specify color primaries to use when converting to RGB. Default
undefined (not signaled)

 0 bt709   3 bt470m   6 smpte240m9 smpte428
 1 unknown 4 bt470bg  7 film10 smpte431
 2 reserved5 smpte170m8 bt2020  11 smpte432

--transfer 
Specify transfer characteristics. Default undefined (not signaled)

 0 bt709   5 smpte170m   10 iec61966-2-4   15 smpte2084
 1 unknown 6 smpte240m   11 bt1361e16 smpte428
 2 reserved7 linear  12 iec61966-2-1   17 arib-std-b67
 3 bt470m  8 log100  13 bt2020-10
 4 bt470bg 9 log316  14 bt2020-12

--colormatrix 
Specify color matrix setting i.e set the matrix coefficients used in
deriving the luma and chroma. Default undefined (not signaled)

 0 gbr 4 fcc  8 ycgco   12 chroma-derived-nc
 1 bt709   5 bt470bg  9 bt2020nc13 chroma-derived-c
 2 unknown 6 smpte170m   10 bt2020c 14 ictcp
 3 reserved7 smpte240m   11 smpte2085



If it's a blu-ray it'll generally be in 709, unless it's one of the Sony 4K 
Blu-Rays which uses xvYCC. It's hard to prove a negative but those are the only 
situations I'm aware of.  Assume what's on the disc will be studio swing 709 
unless it is a 4K blu-ray.


It's 1920x1080. I 'heard' of "studio swing". What is it relative to what x265 expects (above)? Do 
you know?



If it's a blu-ray of a TV show which was shot on film, it will have been 
scanned and electronically colour corrected for the blu-ray.


Film scanned. Yes. So that's a 1st-level coloration. But red could not have saturated during 
scanning. Otherwise, I couldn't pull more detail from the 'saturated' regions.



Oversaturation particularly of reds is one of the issues that will arise from 
mixing up 601 and 709 and scaling issues are another, but there are so many 
ways this can be wrong, and places to change settings, that I hesitate to 
speculate further without further info. You are likely to be facing several 
confounding issues at once.


I feel a headache coming on. Let's assume ffprobe is correct and colormatrix is undefined on the 
discs. That limits things, eh? That limits things a lot.



If you intend to watch the resulting 

Re: [FFmpeg-user] Requesting colormatrix advice

2023-11-06 Thread Phil Rhodes via ffmpeg-user
 A number of potentially complex interactions govern what's going on here. 
FFmpeg has never been particularly smart about how it interprets colour and 
brightness encoding, and it is not very well documented in that regard, but to 
be fair, files are not always (or even often) marked correctly with flags 
indicating what they contain, the flags may be nonstandard, etc. It's tricky.

If it's a blu-ray it'll generally be in 709, unless it's one of the Sony 4K 
Blu-Rays which uses xvYCC. It's hard to prove a negative but those are the only 
situations I'm aware of.  Assume what's on the disc will be studio swing 709 
unless it is a 4K blu-ray.
If it's a blu-ray of a TV show which was shot on film, it will have been 
scanned and electronically colour corrected for the blu-ray.
I'm not sure BT specifically stands for anything in particular, it just refers 
to the series of standards which deals with broadcast TV stuff. In the opening 
page of the standards document, it's annotated "Broadcasting service 
(television)." 
No, that's not an SMPTE standard; that's an ITU standard, from the Radio sector 
of the International Telecommunication Union; hence, the current version is 
properly titled ITU-R BT.709-6. The standard is free to download but it won't 
help you much, probably.
Oversaturation particularly of reds is one of the issues that will arise from 
mixing up 601 and 709 and scaling issues are another, but there are so many 
ways this can be wrong, and places to change settings, that I hesitate to 
speculate further without further info. You are likely to be facing several 
confounding issues at once.
If you intend to watch the resulting file on a computer, you should not need to 
change the colourspace as sRGB and 709 have identical primaries (they do not 
have identical brightness mapping but it should not look wildly wrong). You may 
need to scale the studio swing data to full swing to avoid washed-out shadows 
and dull highlights.
Unfortunately the likelihood is you'll simply have to experiment until you find 
the right solution, although I would expect it should be possible to fix it 
using known scaling and remapping. Really, you should not have to start 
eyeballing colour corrections in this scenario. If you find yourself having to 
apply manually-configured filters I'd suspect you're not doing it right 
somehow, and should step back and look at it again.
-P

On Monday, 6 November 2023 at 15:23:41 GMT, markfilipak.i...@gmail.com 
 wrote:  
 
 On 11/6/23 09:16, Devin Heitmueller wrote:
> On Sun, Nov 5, 2023 at 10:42 PM  wrote:
>>
>> Hello All,
>>
>> I have a 1990s TV show -- called 'SOURCE' here -- made by Paramount. The 
>> show was renowned for its
>> production values. It's on Blu-ray from Paramount. The Blu-ray was made in 
>> 2012 (may be a clue to a
>> colorspace variant used).
> 
> If it is standard definition and from the 1990's then the original content is 
> almost certainly in BT.601. 

Thanks, Devin,
To add to the fun/mystery, though it was a TV show, Paramount shot it on film, 
so maybe it was color 
graded on film(?), whatever 'BT' that would be (probably not SMPTE). It looks 
like too big a color 
shift to simply be BT601 rendered via BT709. It's the saturation that clues me 
to that. The reds are 
saturated in play and in the ffmpeg HEVC encoding but they can't actually be 
saturated on disc 
because I can draw detail out of them. I think there's a 'limited' versus 
'full' range thing going on.

I'm currently transcoding it with this:
-vf colorcorrect=saturation=0.85:rh=-0.06:bh=-0.1
It looks good, but that's to my eyes, on my laptop, with my laptop's video 
settings. I'm out of my 
depth with no oars. (Attenuating the blue bothers me, but hey, to my eyes the 
discs have a blue cast 
in addition to saturated reds.)

Paramount has done this to other TV shows. I'm hoping someone with experience 
of Paramount's 
film-to-TV-to-disc work will offer advice.

> Now if you're referring to the
> BluRay remaster, then who knows what they did.  If done properly I
> would expect them to convert the colorspace to BT.709 ...

How convert? According to ffprobe, the discs have no colormatrix. So, I think, 
ffmpeg has no choice 
other than to accept it as BT709 -- 'conversion' not possible. I don't know how 
to parse M2TS, so I 
can't check on whether ffprobe is being truthful. Any parsing ideas would be 
welcome.

___
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".
  
___
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] Requesting colormatrix advice

2023-11-06 Thread markfilipak . imdb

On 11/6/23 09:16, Devin Heitmueller wrote:

On Sun, Nov 5, 2023 at 10:42 PM  wrote:


Hello All,

I have a 1990s TV show -- called 'SOURCE' here -- made by Paramount. The show 
was renowned for its
production values. It's on Blu-ray from Paramount. The Blu-ray was made in 2012 
(may be a clue to a
colorspace variant used).


If it is standard definition and from the 1990's then the original content is almost certainly in BT.601. 


Thanks, Devin,
To add to the fun/mystery, though it was a TV show, Paramount shot it on film, so maybe it was color 
graded on film(?), whatever 'BT' that would be (probably not SMPTE). It looks like too big a color 
shift to simply be BT601 rendered via BT709. It's the saturation that clues me to that. The reds are 
saturated in play and in the ffmpeg HEVC encoding but they can't actually be saturated on disc 
because I can draw detail out of them. I think there's a 'limited' versus 'full' range thing going on.


I'm currently transcoding it with this:
-vf colorcorrect=saturation=0.85:rh=-0.06:bh=-0.1
It looks good, but that's to my eyes, on my laptop, with my laptop's video settings. I'm out of my 
depth with no oars. (Attenuating the blue bothers me, but hey, to my eyes the discs have a blue cast 
in addition to saturated reds.)


Paramount has done this to other TV shows. I'm hoping someone with experience of Paramount's 
film-to-TV-to-disc work will offer advice.



Now if you're referring to the
BluRay remaster, then who knows what they did.  If done properly I
would expect them to convert the colorspace to BT.709 ...


How convert? According to ffprobe, the discs have no colormatrix. So, I think, ffmpeg has no choice 
other than to accept it as BT709 -- 'conversion' not possible. I don't know how to parse M2TS, so I 
can't check on whether ffprobe is being truthful. Any parsing ideas would be welcome.


___
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] Requesting colormatrix advice

2023-11-06 Thread Devin Heitmueller
On Sun, Nov 5, 2023 at 10:42 PM  wrote:
>
> Hello All,
>
> I have a 1990s TV show -- called 'SOURCE' here -- made by Paramount. The show 
> was renowned for its
> production values. It's on Blu-ray from Paramount. The Blu-ray was made in 
> 2012 (may be a clue to a
> colorspace variant used).

If it is standard definition and from the 1990's then the original
content is almost certainly in BT.601.  Now if you're referring to the
BluRay remaster, then who knows what they did.  If done properly I
would expect them to convert the colorspace to BT.709, but it's
possible they simply upscaled it without any colorspace conversion.

Because you don't have any reference pattern in the video (e.g. SMPTE
colorbars), you'll likely just have to render it in a couple of
different combinations, put them side-by-side, and pick the one that
looks the best.

Devin

-- 
Devin Heitmueller, Senior Software Engineer
LTN Global Communications
o: +1 (301) 363-1001
w: https://ltnglobal.com  e: devin.heitmuel...@ltnglobal.com
___
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".