You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


ffmpeg in container

root@immich-server:/usr/src/app# ffmpeg -codecs |grep -e 265 -e 264
ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14)

 DEV.LS h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_v4l2m2m h264_qsv h264_cuvid) (encoders: libx264 libx264rgb h264_amf h264_nvenc h264_qsv h264_v4l2m2m h264_vaapi)
 DEV.L. hevc                 H.265 / HEVC (High Efficiency Video Coding) (decoders: hevc hevc_qsv hevc_v4l2m2m hevc_cuvid) (encoders: libx265 hevc_amf hevc_nvenc hevc_qsv hevc_v4l2m2m hevc_vaapi)


SW transcoding to 720p ultrafast

/usr/bin/ffmpeg 
-i /mnt/storage2/file.MOV 
-y 
-c:v h264 
-c:a copy 
-movflags faststart 
-fps_mode passthrough 
-map 0:0 
-map 0:1 
-v verbose 
-vf scale=-2:720,tonemapx=tonemap=hable:desat=0:p=bt709:t=bt709:m=bt709:r=pc:peak=100:format=yuv420p 
-preset ultrafast 
-crf 23 
upload/encoded-video/c83..94b.mp4
root@storage2:~# ls -hla /mnt/storage2/file.MOV
-rwxr-xr-x 1 nobody nogroup 1.2G Dec 24  2023 /mnt/storage2/file.MOV

root@storage2:~# ls -hla /mnt/nvme/immich/immich/encoded-video/c833618c-e6a7-43b5-a3a0-404d56422c7a/36/7a/367a6ac5-c01c-426b-9152-7edfe296c94b.mp4
-rw-r--r-- 1 root root 419M Nov 12 19:10 /mnt/nvme/immich/immich/encoded-video/c833618c-e6a7-43b5-a3a0-404d56422c7a/36/7a/367a6ac5-c01c-426b-9152-7edfe296c94b.mp4


HW QSV transcoding to 720p ultrafast

/usr/bin/ffmpeg 
-hwaccel qsv 
-hwaccel_output_format qsv 
-async_depth 4 
-noautorotate 
-threads 1 
-i /mnt/storage2/file2.MOV 
-y 
-c:v h264_qsv 
-c:a copy 
-movflags faststart 
-fps_mode passthrough 
-map 0:0 
-map 0:1 
-bf 7 
-refs 5 
-g 256 
-v verbose 
-vf scale_qsv=-1:720:async_depth=4:mode=hq,hwmap=derive_device=opencl,tonemap_opencl=desat=0:format=nv12:matrix=bt709:primaries=bt709:transfer=bt709:range=pc:tonemap=hable:tonemap_mode=lum:peak=100,hwmap=derive_device=qsv:reverse=1,format=qsv 
-preset 7 
-global_quality:v 23 
upload/encoded-video/c83..f4.mp4



  • No labels