Re: [FFmpeg-user] Make white of photo transparant

2022-06-29 Thread Paul B Mahol
On Wed, Jun 29, 2022 at 2:30 PM Bouke / edit 'B  wrote:

> Beledig me niet, lijk met niet in lijn met je princiepes / de Heer, iig
> siert het niemand.
>
> Bouke / edit 'B
>
>
Stop top posting and use English.



> videotoolshed.com
> Van Oldenbarneveltstraat 33
> 6512 AS Nijmegen, the Netherlands
> +31 6 21817248
> If you want to send me large files, please use:
> https://videotoolshed.wetransfer.com/
>
> > On 29 Jun 2022, at 13:45, Cecil Westerhof via ffmpeg-user <
> ffmpeg-user@ffmpeg.org> wrote:
> >
> > Bouke / Videotoolshed  writes:
> >
> >> Pff, make it an option.
> >
> > You probably would tell a homeless person that is hungry and cold:
> > just put on clothes and eat something.
> > (Without providing him anything.)
> >
> > --
> > Cecil Westerhof
> > Senior Software Engineer
> > LinkedIn: http://www.linkedin.com/in/cecilwesterhof
> > ___
> > 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] Make white of photo transparant

2022-06-29 Thread Bouke / edit 'B
Beledig me niet, lijk met niet in lijn met je princiepes / de Heer, iig siert 
het niemand.

Bouke / edit 'B

videotoolshed.com
Van Oldenbarneveltstraat 33
6512 AS Nijmegen, the Netherlands
+31 6 21817248
If you want to send me large files, please use:
https://videotoolshed.wetransfer.com/

> On 29 Jun 2022, at 13:45, Cecil Westerhof via ffmpeg-user 
>  wrote:
> 
> Bouke / Videotoolshed  writes:
> 
>> Pff, make it an option.
> 
> You probably would tell a homeless person that is hungry and cold:
> just put on clothes and eat something.
> (Without providing him anything.)
> 
> -- 
> Cecil Westerhof
> Senior Software Engineer
> LinkedIn: http://www.linkedin.com/in/cecilwesterhof
> ___
> 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] Make white of photo transparant

2022-06-29 Thread Cecil Westerhof via ffmpeg-user
Bouke / Videotoolshed  writes:

> Pff, make it an option.

You probably would tell a homeless person that is hungry and cold:
just put on clothes and eat something.
(Without providing him anything.)

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
___
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] Make white of photo transparant

2022-06-29 Thread Cecil Westerhof via ffmpeg-user
> The problem of merging the two parts is solved:
>  ffmpeg -y -ss 21:50 -to 23:20 -i input.MTS -i Photos/output.jpg  
>   \
> -filter_complex "[0:v][1:v] overlay=10:10:enable='between(t, 5, 
> 85)',   \
> 
> colorkey=0xFF\:0.01[ckout];[0:v][ckout]overlay[out]"\
> -map '[out]'  
>   \
> -pix_fmt yuv420p -c:a:0 copy -vcodec libx264 -preset veryfast 
> -crf 26   \
> -t 30 greenScreen.mp4
>
> How can I get the audio into the output?

Found it. I just need to use:
-map 0:a

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
___
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] Make white of photo transparant

2022-06-29 Thread Cecil Westerhof via ffmpeg-user
Cecil Westerhof via ffmpeg-user  writes:

> Cecil Westerhof via ffmpeg-user  writes:
>
>> Paul B Mahol  writes:
>>
>>> On Wed, Jun 29, 2022 at 10:05 AM Bouke / Videotoolshed <
>>> bo...@videotoolshed.com> wrote:
>>>
 On 29 Jun 2022, at 01:48, Cecil Westerhof via ffmpeg-user <
 ffmpeg-user@ffmpeg.org> wrote:
 >
 >
 > The background of the photo is white. Would it be possible to make
 > that transparent? (So where there is white, I do not see white, but
 > the video.)

 This is called Luma (or Luminance) key.

 Yes, it is possible, yes, it will be ugly unless you know what you are
 doing, and IMHO, FFmpeg is not the tool for this.
 (But someone recently mentioned a GUI for filters, that might help you big
 time on this one.)


>>> Use colorkey filter, and set color as white.
>>
>> I will look it up.
>> I realise that I have a problem, because in some photos not only the
>> background is white. :'-(
>
> I tried the following:
>  ffmpeg -y -ss 21:50 -to 23:20 -i 7-00010.MTS -i Photos/output.jpg
>   \
> -filter_complex 
> '[1:v]colorkey=0xFF\:0.01[ckout];[0:v][ckout]overlay[out]'  \
> -map '[out]'  
>   \
> -pix_fmt yuv420p -acodec copy -vcodec libx264 -preset veryfast 
> -crf 26  \
> -t 30 greenScreen.mp4
>
> It really does not look that bad. (But in this photo there is no
> white.)
> It does take some time to be generated,
>
> I have two challenges:
> - There is no audio.
> - How do I merge the two filters? (The picture should only displayed
>   for a short while.)

The problem of merging the two parts is solved:
 ffmpeg -y -ss 21:50 -to 23:20 -i input.MTS -i Photos/output.jpg
\
-filter_complex "[0:v][1:v] overlay=10:10:enable='between(t, 5, 
85)',   \

colorkey=0xFF\:0.01[ckout];[0:v][ckout]overlay[out]"\
-map '[out]'
\
-pix_fmt yuv420p -c:a:0 copy -vcodec libx264 -preset veryfast -crf 
26   \
-t 30 greenScreen.mp4

How can I get the audio into the output?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
___
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] Make white of photo transparant

2022-06-29 Thread Bouke / Videotoolshed
Pff, make it an option. 
Finding someone who knows this stuff is less work than this shit, including the 
top post flaming.


Boukee use:
https://videotoolshed.wetransfer.com/

> On 29 Jun 2022, at 13:19, Cecil Westerhof via ffmpeg-user 
>  wrote:
> 
> Bouke / Videotoolshed  > writes:
> 
>>> On 29 Jun 2022, at 12:54, Cecil Westerhof via ffmpeg-user 
>>>  wrote:
>>> 
>>> Bouke / Videotoolshed  writes:
>>> 
 No, sorry. But, hire an editor / designer to do this for you,
 results will be better / less pain.
 If you want to have it done for free, be my guest, but don’t ask my
 help, do not expect any half decent results.
>>> 
>>> I am doing it for a school (musical) , so I cannot spend money on it.
>> 
>> What do you want me to say? What is your point?
> 
> You tell me to hire an editor/designer. I explain why that is not an
> option.
> 
> -- 
> Cecil Westerhof
> Senior Software Engineer
> LinkedIn: http://www.linkedin.com/in/cecilwesterhof 
> 
> ___
> 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] Make white of photo transparant

2022-06-29 Thread Cecil Westerhof via ffmpeg-user
Bouke / Videotoolshed  writes:

>> On 29 Jun 2022, at 12:54, Cecil Westerhof via ffmpeg-user 
>>  wrote:
>> 
>> Bouke / Videotoolshed  writes:
>> 
>>> No, sorry. But, hire an editor / designer to do this for you,
>>> results will be better / less pain.
>>> If you want to have it done for free, be my guest, but don’t ask my
>>> help, do not expect any half decent results.
>> 
>> I am doing it for a school (musical) , so I cannot spend money on it.
>
> What do you want me to say? What is your point?

You tell me to hire an editor/designer. I explain why that is not an
option.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
___
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] Make white of photo transparant

2022-06-29 Thread Bouke / Videotoolshed


> On 29 Jun 2022, at 12:54, Cecil Westerhof via ffmpeg-user 
>  wrote:
> 
> Bouke / Videotoolshed  writes:
> 
>> No, sorry. But, hire an editor / designer to do this for you,
>> results will be better / less pain.
>> If you want to have it done for free, be my guest, but don’t ask my
>> help, do not expect any half decent results.
> 
> I am doing it for a school (musical) , so I cannot spend money on it.

What do you want me to say? What is your point?


___
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] Make white of photo transparant

2022-06-29 Thread Cecil Westerhof via ffmpeg-user
Cecil Westerhof via ffmpeg-user  writes:

> Paul B Mahol  writes:
>
>> On Wed, Jun 29, 2022 at 10:05 AM Bouke / Videotoolshed <
>> bo...@videotoolshed.com> wrote:
>>
>>> On 29 Jun 2022, at 01:48, Cecil Westerhof via ffmpeg-user <
>>> ffmpeg-user@ffmpeg.org> wrote:
>>> >
>>> >
>>> > The background of the photo is white. Would it be possible to make
>>> > that transparent? (So where there is white, I do not see white, but
>>> > the video.)
>>>
>>> This is called Luma (or Luminance) key.
>>>
>>> Yes, it is possible, yes, it will be ugly unless you know what you are
>>> doing, and IMHO, FFmpeg is not the tool for this.
>>> (But someone recently mentioned a GUI for filters, that might help you big
>>> time on this one.)
>>>
>>>
>> Use colorkey filter, and set color as white.
>
> I will look it up.
> I realise that I have a problem, because in some photos not only the
> background is white. :'-(

I tried the following:
 ffmpeg -y -ss 21:50 -to 23:20 -i 7-00010.MTS -i Photos/output.jpg  
\
-filter_complex 
'[1:v]colorkey=0xFF\:0.01[ckout];[0:v][ckout]overlay[out]'  \
-map '[out]'
\
-pix_fmt yuv420p -acodec copy -vcodec libx264 -preset veryfast -crf 
26  \
-t 30 greenScreen.mp4

It really does not look that bad. (But in this photo there is no
white.)
It does take some time to be generated,

I have two challenges:
- There is no audio.
- How do I merge the two filters? (The picture should only displayed
  for a short while.)

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
___
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] Make white of photo transparant

2022-06-29 Thread Cecil Westerhof via ffmpeg-user
Bouke / Videotoolshed  writes:

> No, sorry. But, hire an editor / designer to do this for you,
> results will be better / less pain.
> If you want to have it done for free, be my guest, but don’t ask my
> help, do not expect any half decent results.

I am doing it for a school (musical) , so I cannot spend money on it.


But I got a bit farther. While not perfect, it certainly is not bad.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
___
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] Make white of photo transparant

2022-06-29 Thread Paul B Mahol
On Wed, Jun 29, 2022 at 11:37 AM Cecil Westerhof via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:

> Bouke / Videotoolshed  writes:
>
> > On 29 Jun 2022, at 01:48, Cecil Westerhof via ffmpeg-user <
> ffmpeg-user@ffmpeg.org> wrote:
> >>
> >>
> >> The background of the photo is white. Would it be possible to make
> >> that transparent? (So where there is white, I do not see white, but
> >> the video.)
> >
> > This is called Luma (or Luminance) key.
> >
> > Yes, it is possible, yes, it will be ugly unless you know what you are
> > doing, and IMHO, FFmpeg is not the tool for this.
>
> A long time ago I tried to work with GUI programs, but I found them to
> bothersome. Ffmpeg was in my case easier. Maybe because I do not edit
> videos often enough. ;-)
>
>
> > (But someone recently mentioned a GUI for filters, that might help you
> big time on this one.)
>
> Do you remember the GUI?
>

https://github.com/richardpl/lavfi-preview


>
> --
> Cecil Westerhof
> Senior Software Engineer
> LinkedIn: http://www.linkedin.com/in/cecilwesterhof
> ___
> 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] Make white of photo transparant

2022-06-29 Thread Bouke / Videotoolshed

>> doing, and IMHO, FFmpeg is not the tool for this.
> 
> A long time ago I tried to work with GUI programs, but I found them to
> bothersome. 

Any half decent video editor / designer works with a GUI, WYSIWYG has been 
invented for a reason.
Doing this without feedback only works in lab circumstances, and I think less 
than 0.01 % of the FFmpeg users have that situation.

>> (But someone recently mentioned a GUI for filters, that might help you big 
>> time on this one.)
> 
> Do you remember the GUI?


No, sorry. But, hire an editor / designer to do this for you, results will be 
better / less pain.
If you want to have it done for free, be my guest, but don’t ask my help, do 
not expect any half decent results.


Bouke

___
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] Make white of photo transparant

2022-06-29 Thread Cecil Westerhof via ffmpeg-user
Paul B Mahol  writes:

> On Wed, Jun 29, 2022 at 10:05 AM Bouke / Videotoolshed <
> bo...@videotoolshed.com> wrote:
>
>> On 29 Jun 2022, at 01:48, Cecil Westerhof via ffmpeg-user <
>> ffmpeg-user@ffmpeg.org> wrote:
>> >
>> >
>> > The background of the photo is white. Would it be possible to make
>> > that transparent? (So where there is white, I do not see white, but
>> > the video.)
>>
>> This is called Luma (or Luminance) key.
>>
>> Yes, it is possible, yes, it will be ugly unless you know what you are
>> doing, and IMHO, FFmpeg is not the tool for this.
>> (But someone recently mentioned a GUI for filters, that might help you big
>> time on this one.)
>>
>>
> Use colorkey filter, and set color as white.

I will look it up.
I realise that I have a problem, because in some photos not only the
background is white. :'-(

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
___
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] Make white of photo transparant

2022-06-29 Thread Cecil Westerhof via ffmpeg-user
Bouke / Videotoolshed  writes:

> On 29 Jun 2022, at 01:48, Cecil Westerhof via ffmpeg-user 
>  wrote:
>> 
>> 
>> The background of the photo is white. Would it be possible to make
>> that transparent? (So where there is white, I do not see white, but
>> the video.)
>
> This is called Luma (or Luminance) key.
>
> Yes, it is possible, yes, it will be ugly unless you know what you are
> doing, and IMHO, FFmpeg is not the tool for this.

A long time ago I tried to work with GUI programs, but I found them to
bothersome. Ffmpeg was in my case easier. Maybe because I do not edit
videos often enough. ;-)


> (But someone recently mentioned a GUI for filters, that might help you big 
> time on this one.)

Do you remember the GUI?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
___
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] Make white of photo transparant

2022-06-29 Thread Paul B Mahol
On Wed, Jun 29, 2022 at 10:05 AM Bouke / Videotoolshed <
bo...@videotoolshed.com> wrote:

> On 29 Jun 2022, at 01:48, Cecil Westerhof via ffmpeg-user <
> ffmpeg-user@ffmpeg.org> wrote:
> >
> >
> > The background of the photo is white. Would it be possible to make
> > that transparent? (So where there is white, I do not see white, but
> > the video.)
>
> This is called Luma (or Luminance) key.
>
> Yes, it is possible, yes, it will be ugly unless you know what you are
> doing, and IMHO, FFmpeg is not the tool for this.
> (But someone recently mentioned a GUI for filters, that might help you big
> time on this one.)
>
>
Use colorkey filter, and set color as white.


> Bouke
>
>
>
> ___
> 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] Make white of photo transparant

2022-06-29 Thread Bouke / Videotoolshed
On 29 Jun 2022, at 01:48, Cecil Westerhof via ffmpeg-user 
 wrote:
> 
> 
> The background of the photo is white. Would it be possible to make
> that transparent? (So where there is white, I do not see white, but
> the video.)

This is called Luma (or Luminance) key.

Yes, it is possible, yes, it will be ugly unless you know what you are doing, 
and IMHO, FFmpeg is not the tool for this.
(But someone recently mentioned a GUI for filters, that might help you big time 
on this one.)

Bouke



___
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".