From: Nicolas George <george@nsup.org> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH] libavfilter/f_select: switch to activate and properly handle EOF pts Date: Thu, 15 Sep 2022 11:41:32 +0200 Message-ID: <YyLzTFdKRwO4BkLm@phare.normalesup.org> (raw) In-Reply-To: <CAC1ZW2hxDwn=8cuhHcDNysPKWc2scG0u=kkxycQCv-y9jf-nLA@mail.gmail.com> [-- Attachment #1.1: Type: text/plain, Size: 1021 bytes --] Li-Heng Chen (12022-09-14): > Please allow me to explain again with your example. That's say we have > an input with 20 frames (0-19), and we want to keep prime number frames > with select filter, -vf select='eq(n\,2)+eq(n\,3)+...+eq(n\,13)+eq(n\,17)' > > In the activation function, select->eof_pts is updated to n at n=4, 6, > 8, 12, 14, 18 > However, select->eof_pts is passed into ff_outlink_set_status only at > n=20, since > ff_inlink_acknowledge_status returns 1. I understood that. And I argue it is wrong. > Regardless of my logic, this behavior looks weird to me. In my opinion, > -vf select='eq(n\,24),fps=25/1' should produce the same result as just having > -vf select='eq(n\,24)'. However, select='eq(n\,24),fps=25/1' generates > 22 identical > frames while select='eq(n\,24)' only outputs one frame... Trick question: testsrc=r=25:d=4,select='gte(n\,0)*gte(24\,n)+gte(n\,50)*gte(74\,n)',fps=25 How many frames do you expect on the output? Regards, -- Nicolas George [-- Attachment #1.2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] [-- Attachment #2: Type: text/plain, Size: 251 bytes --] _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2022-09-15 9:41 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-09-13 20:50 Li-Heng Chen 2022-09-14 15:14 ` Nicolas George 2022-09-14 18:03 ` Li-Heng Chen 2022-09-14 18:14 ` Nicolas George 2022-09-14 20:26 ` Li-Heng Chen 2022-09-15 9:41 ` Nicolas George [this message] 2022-09-15 16:42 ` Li-Heng Chen 2022-09-14 19:02 ` [FFmpeg-devel] Unsubscribe Sam Davis
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=YyLzTFdKRwO4BkLm@phare.normalesup.org \ --to=george@nsup.org \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git