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

Andrew Randrianasulu randrianasulu at gmail.com
Fri Nov 22 08:45:09 CET 2024


---------- 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. 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".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20241122/6a0f9aef/attachment.htm>


More information about the Cin mailing list