alternating checkerboard

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

alternating checkerboard

Mark Filipak (ffmpeg)
I don't know the details of the filters that work on pixels ('blend', for example). I hope a
knowledgeable person will respond with suggestions.

I'd like to experiment with a filter that mixes pixels from 2 progressive streams on an alternating
checkerboard pattern. Got any suggestions?
  _________________    _________________    _________________
|# # # # # # # # #   | % % % % % % % %    |#%#%#%#%#%#%#%#%#
| # # # # # # # #    |% % % % % % % % %   |%#%#%#%#%#%#%#%#%
|# # # # # # # # # + | % % % % % % % %  = |#%#%#%#%#%#%#%#%#
| # # # # # # # #    |% % % % % % % % %   |%#%#%#%#%#%#%#%#%
|# # # # # # # # #   | % % % % % % % %    |#%#%#%#%#%#%#%#%#


--
I don't have a dog.
And furthermore, my dog doesn't bite.
And furthermore, you provoked him.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: alternating checkerboard

Michael Koch
Am 09.02.2021 um 04:49 schrieb Mark Filipak (ffmpeg):

> I don't know the details of the filters that work on pixels ('blend',
> for example). I hope a knowledgeable person will respond with
> suggestions.
>
> I'd like to experiment with a filter that mixes pixels from 2
> progressive streams on an alternating checkerboard pattern. Got any
> suggestions?
>  _________________    _________________    _________________
> |# # # # # # # # #   | % % % % % % % %    |#%#%#%#%#%#%#%#%#
> | # # # # # # # #    |% % % % % % % % %   |%#%#%#%#%#%#%#%#%
> |# # # # # # # # # + | % % % % % % % %  = |#%#%#%#%#%#%#%#%#
> | # # # # # # # #    |% % % % % % % % %   |%#%#%#%#%#%#%#%#%
> |# # # # # # # # #   | % % % % % % % %    |#%#%#%#%#%#%#%#%#
>
>

Have a look at the "maskedmerge" filter. In your case the mergemap file
would contain a pattern of 0's and 255's. This file can be generated
with "geq" filter (see the example in chapter 2.107).

Michael

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: alternating checkerboard

Mark Filipak (ffmpeg)
On 02/09/2021 03:14 AM, Michael Koch wrote:

> Am 09.02.2021 um 04:49 schrieb Mark Filipak (ffmpeg):
>> I don't know the details of the filters that work on pixels ('blend', for example). I hope a
>> knowledgeable person will respond with suggestions.
>>
>> I'd like to experiment with a filter that mixes pixels from 2 progressive streams on an
>> alternating checkerboard pattern. Got any suggestions?
>>  _________________    _________________    _________________
>> |# # # # # # # # #   | % % % % % % % %    |#%#%#%#%#%#%#%#%#
>> | # # # # # # # #    |% % % % % % % % %   |%#%#%#%#%#%#%#%#%
>> |# # # # # # # # # + | % % % % % % % %  = |#%#%#%#%#%#%#%#%#
>> | # # # # # # # #    |% % % % % % % % %   |%#%#%#%#%#%#%#%#%
>> |# # # # # # # # #   | % % % % % % % %    |#%#%#%#%#%#%#%#%#
>>
>>
>
> Have a look at the "maskedmerge" filter. In your case the mergemap file would contain a pattern of
> 0's and 255's. This file can be generated with "geq" filter (see the example in chapter 2.107).

Thanks for the suggestion. Actually, it appears that the 'blend' filter does what I want, but I'm
still testing to be sure.
blend=all_expr='if(eq(mod(X,2),mod(Y,2)),TOP,BOTTOM)'
'blend' appears to input 2 frames in 2 streams and output 1 frame (with unknown PTS). 'tblend', on
the other hand, appears to take 2 frames in 1 stream and output 2 frames, not 1 frame, (again, with
unknown PTS). It sure would be nice if these filter functions were adequately documented, especially
regarding how they determine output PTS. But you shouldn't listen to me because, to quote the
authorities: "That makes no sense".

> Michael
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".


--
I don't have a dog.
And furthermore, my dog doesn't bite.
And furthermore, you provoked him.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: alternating checkerboard

Paul B Mahol
On Tue, Feb 9, 2021 at 9:45 AM Mark Filipak (ffmpeg) <[hidden email]>
wrote:

> On 02/09/2021 03:14 AM, Michael Koch wrote:
> > Am 09.02.2021 um 04:49 schrieb Mark Filipak (ffmpeg):
> >> I don't know the details of the filters that work on pixels ('blend',
> for example). I hope a
> >> knowledgeable person will respond with suggestions.
> >>
> >> I'd like to experiment with a filter that mixes pixels from 2
> progressive streams on an
> >> alternating checkerboard pattern. Got any suggestions?
> >>  _________________    _________________    _________________
> >> |# # # # # # # # #   | % % % % % % % %    |#%#%#%#%#%#%#%#%#
> >> | # # # # # # # #    |% % % % % % % % %   |%#%#%#%#%#%#%#%#%
> >> |# # # # # # # # # + | % % % % % % % %  = |#%#%#%#%#%#%#%#%#
> >> | # # # # # # # #    |% % % % % % % % %   |%#%#%#%#%#%#%#%#%
> >> |# # # # # # # # #   | % % % % % % % %    |#%#%#%#%#%#%#%#%#
> >>
> >>
> >
> > Have a look at the "maskedmerge" filter. In your case the mergemap file
> would contain a pattern of
> > 0's and 255's. This file can be generated with "geq" filter (see the
> example in chapter 2.107).
>
> Thanks for the suggestion. Actually, it appears that the 'blend' filter
> does what I want, but I'm
> still testing to be sure.
> blend=all_expr='if(eq(mod(X,2),mod(Y,2)),TOP,BOTTOM)'
> 'blend' appears to input 2 frames in 2 streams and output 1 frame (with
> unknown PTS). 'tblend', on
> the other hand, appears to take 2 frames in 1 stream and output 2 frames,
> not 1 frame, (again, with
> unknown PTS). It sure would be nice if these filter functions were
> adequately documented, especially
> regarding how they determine output PTS. But you shouldn't listen to me
> because, to quote the
> authorities: "That makes no sense".
>
>
Why you write unknown PTS? What you are talking about, please do not be
dense.

PTS is always deterministic from these filters.



> > Michael
> >
> > _______________________________________________
> > ffmpeg-user mailing list
> > [hidden email]
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > [hidden email] with subject "unsubscribe".
>
>
> --
> I don't have a dog.
> And furthermore, my dog doesn't bite.
> And furthermore, you provoked him.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: alternating checkerboard

Paul B Mahol
Also I wanted to help you, but you constant bullying of project discourages
me.

On Tue, Feb 9, 2021 at 10:02 AM Paul B Mahol <[hidden email]> wrote:

>
>
> On Tue, Feb 9, 2021 at 9:45 AM Mark Filipak (ffmpeg) <[hidden email]>
> wrote:
>
>> On 02/09/2021 03:14 AM, Michael Koch wrote:
>> > Am 09.02.2021 um 04:49 schrieb Mark Filipak (ffmpeg):
>> >> I don't know the details of the filters that work on pixels ('blend',
>> for example). I hope a
>> >> knowledgeable person will respond with suggestions.
>> >>
>> >> I'd like to experiment with a filter that mixes pixels from 2
>> progressive streams on an
>> >> alternating checkerboard pattern. Got any suggestions?
>> >>  _________________    _________________    _________________
>> >> |# # # # # # # # #   | % % % % % % % %    |#%#%#%#%#%#%#%#%#
>> >> | # # # # # # # #    |% % % % % % % % %   |%#%#%#%#%#%#%#%#%
>> >> |# # # # # # # # # + | % % % % % % % %  = |#%#%#%#%#%#%#%#%#
>> >> | # # # # # # # #    |% % % % % % % % %   |%#%#%#%#%#%#%#%#%
>> >> |# # # # # # # # #   | % % % % % % % %    |#%#%#%#%#%#%#%#%#
>> >>
>> >>
>> >
>> > Have a look at the "maskedmerge" filter. In your case the mergemap file
>> would contain a pattern of
>> > 0's and 255's. This file can be generated with "geq" filter (see the
>> example in chapter 2.107).
>>
>> Thanks for the suggestion. Actually, it appears that the 'blend' filter
>> does what I want, but I'm
>> still testing to be sure.
>> blend=all_expr='if(eq(mod(X,2),mod(Y,2)),TOP,BOTTOM)'
>> 'blend' appears to input 2 frames in 2 streams and output 1 frame (with
>> unknown PTS). 'tblend', on
>> the other hand, appears to take 2 frames in 1 stream and output 2 frames,
>> not 1 frame, (again, with
>> unknown PTS). It sure would be nice if these filter functions were
>> adequately documented, especially
>> regarding how they determine output PTS. But you shouldn't listen to me
>> because, to quote the
>> authorities: "That makes no sense".
>>
>>
> Why you write unknown PTS? What you are talking about, please do not be
> dense.
>
> PTS is always deterministic from these filters.
>
>
>
>> > Michael
>> >
>> > _______________________________________________
>> > ffmpeg-user mailing list
>> > [hidden email]
>> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> >
>> > To unsubscribe, visit link above, or email
>> > [hidden email] with subject "unsubscribe".
>>
>>
>> --
>> I don't have a dog.
>> And furthermore, my dog doesn't bite.
>> And furthermore, you provoked him.
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
>
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

List etiquette [was: Re: alternating checkerboard]

Jim DeLaHunt-2
On 2021-02-09 01:04, Paul B Mahol wrote:

> Also I wanted to help you, but you constant bullying of project discourages
> me.
>
> On Tue, Feb 9, 2021 at 10:02 AM Paul B Mahol <[hidden email]> wrote:
>
>>
>> On Tue, Feb 9, 2021 at 9:45 AM Mark Filipak (ffmpeg) <[hidden email]>
>> wrote:

… [snip] …

Please learn what top-posting is, and do not do it here.

:-) Sorry, I couldn't resist.

      —Jim "I too have experienced discouragement here" DeLaHunt


_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: List etiquette [was: Re: alternating checkerboard]

Paul B Mahol
Top posting is allowed and is healthy habit.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: alternating checkerboard

Paul B Mahol
In reply to this post by Paul B Mahol
On Tue, Feb 9, 2021 at 10:02 AM Paul B Mahol <[hidden email]> wrote:

>
>
> On Tue, Feb 9, 2021 at 9:45 AM Mark Filipak (ffmpeg) <[hidden email]>
> wrote:
>
>> On 02/09/2021 03:14 AM, Michael Koch wrote:
>> > Am 09.02.2021 um 04:49 schrieb Mark Filipak (ffmpeg):
>> >> I don't know the details of the filters that work on pixels ('blend',
>> for example). I hope a
>> >> knowledgeable person will respond with suggestions.
>> >>
>> >> I'd like to experiment with a filter that mixes pixels from 2
>> progressive streams on an
>> >> alternating checkerboard pattern. Got any suggestions?
>> >>  _________________    _________________    _________________
>> >> |# # # # # # # # #   | % % % % % % % %    |#%#%#%#%#%#%#%#%#
>> >> | # # # # # # # #    |% % % % % % % % %   |%#%#%#%#%#%#%#%#%
>> >> |# # # # # # # # # + | % % % % % % % %  = |#%#%#%#%#%#%#%#%#
>> >> | # # # # # # # #    |% % % % % % % % %   |%#%#%#%#%#%#%#%#%
>> >> |# # # # # # # # #   | % % % % % % % %    |#%#%#%#%#%#%#%#%#
>> >>
>> >>
>> >
>> > Have a look at the "maskedmerge" filter. In your case the mergemap file
>> would contain a pattern of
>> > 0's and 255's. This file can be generated with "geq" filter (see the
>> example in chapter 2.107).
>>
>> Thanks for the suggestion. Actually, it appears that the 'blend' filter
>> does what I want, but I'm
>> still testing to be sure.
>> blend=all_expr='if(eq(mod(X,2),mod(Y,2)),TOP,BOTTOM)'
>> 'blend' appears to input 2 frames in 2 streams and output 1 frame (with
>> unknown PTS). 'tblend', on
>> the other hand, appears to take 2 frames in 1 stream and output 2 frames,
>> not 1 frame, (again, with
>> unknown PTS). It sure would be nice if these filter functions were
>> adequately documented, especially
>> regarding how they determine output PTS. But you shouldn't listen to me
>> because, to quote the
>> authorities: "That makes no sense".
>>
>>
> Why you write unknown PTS? What you are talking about, please do not be
> dense.
>
> PTS is always deterministic from these filters.
>

ffmpeg -i ~/Videos/red-leaf-tips.avi -i ~/Videos/musical-box.avi -lavfi
format=yuv444p,framepack=format=frameseq,stereo3d=in=al:out=chl,setsar=1/2
-f nut -c:v rawvideo -|mpv -

It is not exactly what you want, as this variant do not discard data. But
you get an idea.

>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: List etiquette [was: Re: alternating checkerboard]

Carl Zwanzig
In reply to this post by Paul B Mahol
On 2/9/2021 1:14 AM, Paul B Mahol wrote:
> Top posting is allowed and is healthy habit.
(I could call that "invalid".)


https://ffmpeg.org/mailing-list-faq.html#toc-What-are-the-rules-and-the-proper-etiquette_003f
(5th bullet down)
Avoid top-posting. Also see What is top-posting?


And from
https://ffmpeg.org/mailing-list-faq.html#toc-What-is-top_002dposting_003f-1
5.2 What is top-posting?
See https://en.wikipedia.org/wiki/Posting_style#Top-posting.
Instead, use trimmed interleaved/inline replies (example).


I can't think of anyone who considers it a "healthy habit". Anyway, you've
been around long enough to see that.

z!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: List etiquette [was: Re: alternating checkerboard]

Carl Eugen Hoyos-2
Am Di., 9. Feb. 2021 um 18:06 Uhr schrieb Carl Zwanzig <[hidden email]>:

[...]

Please stop this.

Thank you, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: List etiquette [was: Re: alternating checkerboard]

Reino Wijnsma
On 2021-02-09T18:19:27+0100, Carl Eugen Hoyos <[hidden email]> wrote:
> Am Di., 9. Feb. 2021 um 18:06 Uhr schrieb Carl Zwanzig <[hidden email]>:
>
> [...]
>
> Please stop this.
Double standards, Carl?

You're always quick to warn people to not top-post on this mailing list (and rightly so!), but now that it concerns a developer here it's not important that also he respects the rules/etiquette? I'm baffled!

I fully agree with Carl Zwanzig. The rules apply to all users.

--
Reino

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: List etiquette [was: Re: alternating checkerboard]

Paul B Mahol
On Wed, Feb 10, 2021 at 1:26 AM Reino Wijnsma <[hidden email]> wrote:

> On 2021-02-09T18:19:27+0100, Carl Eugen Hoyos <[hidden email]> wrote:
> > Am Di., 9. Feb. 2021 um 18:06 Uhr schrieb Carl Zwanzig <[hidden email]>:
> >
> > [...]
> >
> > Please stop this.
> Double standards, Carl?
>
> You're always quick to warn people to not top-post on this mailing list
> (and rightly so!), but now that it concerns a developer here it's not
> important that also he respects the rules/etiquette? I'm baffled!
>
> I fully agree with Carl Zwanzig. The rules apply to all users.
>

I'm not user.


> --
> Reino
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: List etiquette [was: Re: alternating checkerboard]

Reindl Harald


Am 10.02.21 um 10:55 schrieb Paul B Mahol:

> On Wed, Feb 10, 2021 at 1:26 AM Reino Wijnsma <[hidden email]> wrote:
>
>> On 2021-02-09T18:19:27+0100, Carl Eugen Hoyos <[hidden email]> wrote:
>>> Am Di., 9. Feb. 2021 um 18:06 Uhr schrieb Carl Zwanzig <[hidden email]>:
>>>
>>> [...]
>>>
>>> Please stop this.
>> Double standards, Carl?
>>
>> You're always quick to warn people to not top-post on this mailing list
>> (and rightly so!), but now that it concerns a developer here it's not
>> important that also he respects the rules/etiquette? I'm baffled!
>>
>> I fully agree with Carl Zwanzig. The rules apply to all users.
>>
>
> I'm not user

are you drunken?
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".