On Fri, Nov 22, 2024 at 2:52 PM Terje Hanssen <terjejhanssen@gmail.com> wrote:On 11/22/24 08:45, Andrew Randrianasulu wrote: ---------- Forwarded message --------- От: Wang, Fei W <fei.w.wang-at-intel.com@ffmpeg.org> Date: пт, 22 нояб. 2024 г., 09:10 Subject: Re: [FFmpeg-devel] qsvenc.c & AV_CODEC_FLAG_INTERLACED_DCT To: ffmpeg-devel@ffmpeg.org <ffmpeg-devel@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.htmlAV1 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
HDV --> av1_qsv -global_quality 25is not possible on my legacy KBL i7-8550U Intel UHD Graphics 620
-----------------------------------
ffmpeg -hide_banner -qsv_device /dev/dri/renderD128 -i hdv09_04.m2t -pix_fmt nv12 -c:v av1_qsv -global_quality 25 hdv09_04_av1_qsv_format_nv12_gq25.mp4
ffprobe -hide_banner hdv09_04_av1_qsv_format_nv12_gq25.mp4
Stream #0:0[0x1](und): Video: av1 (libdav1d) (Main) (av01 / 0x31307661), yuv420p(tv, bt709, top coded first (swapped)), 1440x1080, 7902 kb/s, SAR 4:3 DAR 16:9, 24.99 fps, 25 tbr, 12800 tbn (default)
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@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe"._______________________________________________ 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".