[Cin] Fwd: [FFmpeg-devel] qsvenc.c & AV_CODEC_FLAG_INTERLACED_DCT

Andrew Randrianasulu randrianasulu at gmail.com
Fri Nov 22 18:41:06 CET 2024


On Fri, Nov 22, 2024 at 2:52 PM Terje Hanssen <terjejhanssen at gmail.com> wrote:
>
>
>
>
> On 11/22/24 08:45, Andrew Randrianasulu wrote:
>
>
>
> ---------- Forwarded message ---------
> От: Wang, Fei W <fei.w.wang-at-intel.com at ffmpeg.org>
> Date: пт, 22 нояб. 2024 г., 09:10
> Subject: Re: [FFmpeg-devel] qsvenc.c & AV_CODEC_FLAG_INTERLACED_DCT
> To: ffmpeg-devel at ffmpeg.org <ffmpeg-devel at ffmpeg.org>
>
>
> On Thu, 2024-11-21 at 11:50 +0300, Andrew Randrianasulu wrote:
> > Hello.
> >
> >
> > Recently I teached cinelerra-gg to use qsv encoders in ffmpeg
> > (libavcodec)
> > and some test were working but some not.
> >
> > We nailed it down to top-field first  material, like HDV files. bff
> > files
> > like consumer version of DV and progressive worked fine.
> >
> > I looked at source and ... I thought condition at
> >
> > http://git.ffmpeg.org/gitweb/ffmpeg.git/blob/HEAD:/libavcodec/qsvenc.c#l852
> >
> >
> > must contain case for bff, but I tried this and it was reportedly not
> > helping?
> >
> >
> > We currently set flags = ildct+ilme on interlaced streams, I hope to
> > avoid
> > special-casing qsv encoders, but may be we have no other choice?
> >
> > I asked user (Terje) to add +ildct flag to his normal system ffmpeg
> > line
> > and it started to fail too:
> >
> > https://lists.cinelerra-gg.org/pipermail/cin/2024-November/009123.html
>
> AV1 doesn't support interlaced frame.
>
>
> We can dual check to transcode hdv to av1_qsv again, as I did with ffmpeg in this post
> https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg08314.html
>
> My issue now currently on Kaby Lake is that I have no hdv.m2t file stored and could not find a download link with example hdv. Suggestion?
>


https://archive.org/download/hdv01

>
>
> You may add deinterlace filter
> before encoder after apply this patch:
> https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=13372
>
> cmd:
> ffmpeg -hide_banner -qsv_device /dev/dri/renderD128 -
> hwaccel_output_format qsv -i input.mp4 -pix_fmt nv12 -vf
> vpp_qsv=deinterlace=advanced -c:v av1_qsv -f null -
>
> Thanks
> Fei
>
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>
>


More information about the Cin mailing list