From: "Xiang, Haihao" <haihao.xiang-at-intel.com@ffmpeg.org>
To: "ffmpeg-devel@ffmpeg.org" <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH, v2] lavf/vf_deinterlace_vaapi: flush queued frame for field in DeinterlacingBob
Date: Mon, 10 Jan 2022 06:58:23 +0000
Message-ID: <12caf46ef35665f9ead4ac99746ee789c95f0084.camel@intel.com> (raw)
In-Reply-To: <6427bb4e-b4a0-7cf2-aa7d-829115b166f2@jkqxz.net>
On Sun, 2022-01-09 at 18:32 +0000, Mark Thompson wrote:
> On 29/12/2021 03:45, Xiang, Haihao wrote:
> > > -----Original Message-----
> > > From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of Linjie
> > > Fu
> > > Sent: Wednesday, September 18, 2019 16:20
> > > To: ffmpeg-devel@ffmpeg.org
> > > Cc: Fu, Linjie <linjie.fu@intel.com>
> > > Subject: [FFmpeg-devel] [PATCH, v2] lavf/vf_deinterlace_vaapi: flush
> > > queued
> > > frame for field in DeinterlacingBob
> > >
> > > For DeinterlacingBob mode with rate=field, the frame number of output
> > > should equal 2x input total since only intra deinterlace is used.
> > >
> > > Currently for "backward_ref = 0, rate = field", extra_delay is
> > > introduced. Due to the async without flush, frame number of output is
> > > [expected_number - 2].
> > >
> > > Specifically, if the input only has 1 frame, the output will be empty.
> > >
> > > Add deint_vaapi_request_frame for deinterlace_vaapi, send NULL frame
> > > to flush the queued frame.
> > >
> > > For 1 frame input in Bob mode with rate=field,
> > > before patch: 0 frame;
> > > after patch: 2 frames;
> > >
> > > ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128
> > > -hwaccel_output_format vaapi -i input.h264 -an -vf
> > > deinterlace_vaapi=mode=bob:rate=field -f null -
> >
> > Sorry for picking up the old thread.
> >
> > Hi Mark,
> >
> > Is your issue mentioned in
> > http://ffmpeg.org/pipermail/ffmpeg-devel/2019-September/250080.html
> > fixed by this patch version ? I'd like to apply this patch if it may work
> > for you.
>
> Yep, it now gives the expected number of frames and I do not have any
> segfaults.
>
> I tested drivers with { forward = 0, backward = 0 } (iHD), { forward = 1,
> backward = 0 } (i965) and { forward = 2, backward = 1 } (gallium).
>
> Thanks,
Thanks for confirming it works, and I will apply this patch version if no
objection.
-Haihao
_______________________________________________
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-01-10 6:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1568794798-6615-1-git-send-email-linjie.fu@intel.com>
2021-12-29 3:45 ` Xiang, Haihao
2022-01-09 18:32 ` Mark Thompson
2022-01-10 6:58 ` Xiang, Haihao [this message]
2022-01-12 3:03 ` Xiang, Haihao
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=12caf46ef35665f9ead4ac99746ee789c95f0084.camel@intel.com \
--to=haihao.xiang-at-intel.com@ffmpeg.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