2023-08-26, 06:30 PM
(This post was last modified: 2023-08-26, 06:39 PM by TheDreadPirate. Edited 4 times in total.)
Couldn't get the crop filter to work. The resulting crop variable always ended up being null. Here is what I ended up using for a simple QSV recompression. Based on what you posted + using the QSV device parameters from jellyfin ffmpeg logs.
But I will continue experimenting with the crop filter.
Code:
ls *.mkv | while read file ; do
sudo /usr/lib/jellyfin-ffmpeg/ffmpeg -init_hw_device vaapi=va:,driver=iHD,kernel_driver=i915 \
-init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel qsv -hwaccel_output_format qsv -i "$file" -map 0:v -map 0:a \
-map 0:s -map_chapters 0 -c:v hevc_qsv -profile main -preset slow -cq 26 -pix_fmt yuv420p \
-c:a copy -c:s copy "recompressed.mkv" ;
done
But I will continue experimenting with the crop filter.