Both sides previous revision Previous revision Next revision | Previous revision |
linux:ffmpeg [2024/03/31 12:11] – [Ffmpeg support QSV] admin | linux:ffmpeg [2024/06/09 13:39] (current) – admin |
---|
====== FFmpeg ====== | ====== FFmpeg ====== |
| |
| * examples https://jeremyrouet.medium.com/simple-commands-to-learn-ffmpeg-in-real-use-case-a53f4360efa7 |
* qsv params [[https://gist.github.com/nico-lab/58ac62e359bd63feed36af64db3e4406|gist]] \\ | * qsv params [[https://gist.github.com/nico-lab/58ac62e359bd63feed36af64db3e4406|gist]] \\ |
* install ffmep qsv https://gist.github.com/Brainiarc7/4f831867f8e55d35cbcb527e15f9f116 \\ | * install ffmep qsv https://gist.github.com/Brainiarc7/4f831867f8e55d35cbcb527e15f9f116 \\ |
[[https://jellyfin.org/docs/general/administration/hardware-acceleration/intel|jellyfin configure QSV on intel]] [[https://trac.ffmpeg.org/wiki/Hardware/VAAPI|off wiki ffmpeg vaapi]] [[https://trac.ffmpeg.org/wiki/Hardware/QuickSync|off wiki QSV quick sync]] \\ | [[https://jellyfin.org/docs/general/administration/hardware-acceleration/intel|jellyfin configure QSV on intel]] [[https://trac.ffmpeg.org/wiki/Hardware/VAAPI|off wiki ffmpeg vaapi]] [[https://trac.ffmpeg.org/wiki/Hardware/QuickSync|off wiki QSV quick sync]] \\ |
[[https://github.com/intel/media-driver?tab=readme-ov-file#decodingencoding-features| intel decoding/encoding features ]] \\ | [[https://github.com/intel/media-driver?tab=readme-ov-file#decodingencoding-features| intel decoding/encoding features ]] \\ |
| :!:[[https://www.reddit.com/r/Proxmox/comments/14c8bpj/igpu_passthrough_for_intel_quick_sync/|igpu_passthrough_for_intel_quick_sync]] |
| |
* on proxmox see in [[linux:proxmox|Linux.proxmox]] install [[https://www.derekseaman.com/2023/11/proxmox-ve-8-1-windows-11-vgpu-vt-d-passthrough-with-intel-alder-lake.html| alderlake ]] | === Proxmox install === |
* in lxc container(CT) configure like [[https://www.michaelstinkerings.org/gpu-virtualization-with-intel-12th-gen-igpu-uhd-730/| configure qsv 12th gen on proxmox lxc ]] | - on proxmox see in [[linux:proxmox|Linux.proxmox]] install [[https://www.derekseaman.com/2023/11/proxmox-ve-8-1-windows-11-vgpu-vt-d-passthrough-with-intel-alder-lake.html| alderlake ]] |
* inside CT upgrade and add jellifin repository and install jellyfin ffmpeg | - in lxc container(CT) configure like [[https://www.michaelstinkerings.org/gpu-virtualization-with-intel-12th-gen-igpu-uhd-730/| configure qsv 12th gen on proxmox lxc ]] |
| - inside CT upgrade and add jellifin repository and install jellyfin ffmpeg |
| |
<code bash [enable_line_numbers="true"]> | <code bash [enable_line_numbers="true"]> |
ffmpeg -init_hw_device vaapi=foo:/dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device foo -i input.mp4 -filter_hw_device foo -vf 'format=nv12|vaapi,hwupload' -c:v h264_vaapi output.mp4 | ffmpeg -init_hw_device vaapi=foo:/dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device foo -i input.mp4 -filter_hw_device foo -vf 'format=nv12|vaapi,hwupload' -c:v h264_vaapi output.mp4 |
# frame= 6348 fps=248 q=-0.0 size= 87040kB time=00:04:24.68 bitrate=2693.9kbits/s speed=10.3x | # frame= 6348 fps=248 q=-0.0 size= 87040kB time=00:04:24.68 bitrate=2693.9kbits/s speed=10.3x |
| |
| # codecs param |
| ffmpeg -help encoder=h264_vaapi |
| |
| |