Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

is not necessary. but just to verify that hardware acceleration is in use

transcoding uses jellyfin-ffmpeg with vaapi on Alder Lake (N200) CPU/GPU 

Code Block
/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -init_hw_device vaapi=va:/dev/dri/renderD128 -filter_hw_device va -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i file:/MEDIA/08_AltBaraban1_Papik_Olena_Oleksandr_Maryna_Eugen.MOV -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -rc_mode VBR -b:v 14271295 -maxrate 14271295 -bufsize 28542590 -force_key_frames:0 expr:gte(t,0+n_forced*3) -vf setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=format=nv12:extra_hw_frames=24 -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename /var/lib/jellyfin/transcodes/6f162565acdd866e6c6f77c907b52c8e%d.ts -hls_playlist_type vod -hls_list_size 0 -y /var/lib/jellyfin/transcodes/6f162565acdd866e6c6f77c907b52c8e.m3u8


Code Block
intel-gpu-top: 8086:46d0 @ /dev/dri/card0 -  749/ 749 MHz;   0% RC6;  0.95/ 4.28 W;      785 irqs/s

         ENGINES     BUSY                                                                                                                                                                       MI_SEMA MI_WAIT
       Render/3D   61.39% |█████████████████████████████████████████████████████████████████████████████████████████████████▉                                                                |      0%      0%
         Blitter    0.00% |                                                                                                                                                                   |      0%      0%
           Video   74.57% |███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎                                      |      0%      0%
    VideoEnhance   38.07% |██████████████████████████████████████████████████████████▏                                                                                                       |      0%      0%

transcoding uses jellyfin-ffmpeg with vaapi on Alder Lake (N200) CPU/GPU 


similar  command on Core i7-10710U (Ububtu 22.0, ffmpeg version 4.4.2-0)

Code Block
ffmpeg -
Code Block

root@n200:~# ps -ef |grep ffmpeg
jellyfin    2977       1  1 14:15 ?        00:01:01 /usr/bin/jellyfin --webdir=/usr/share/jellyfin/web --restartpath=/usr/lib/jellyfin/restart.sh --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg
jellyfin    5763    2977 57 15:32 ?        00:00:14 /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -init_hw_device vaapi=va:/dev/dri/renderD128 -filter_hw_device va -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i file:/MEDIA/2024-04-07_ImproLab_Amador/08_AltBaraban1_Papikmnt/11_Baraban_ArtGallery_Zhenia_Olena_OleksandrSasha_Maryna_EugenKatia.MOV -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -rc_mode VBR -b:v 142712954000000 -maxrate 142712958000000 -bufsize 28542590 -force_key_frames:0 expr:gte(t,0+n_forced*3) -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=format=nv12:extra_hw_frames=24" -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename /var/lib/jellyfin/transcodes/6f162565acdd866e6c6f77c907b52c8e%d.ts -hls_playlist_type vod -hls_list_size 0 -y /var/lib/jellyfin/transcodes/6f162565acdd866e6c6f77c907b52c8e.m3u8 /mnt/11_Baraban_ArtGallery_Zhenia_Olena_Sasha_Katia_jf_vaapi_vbr4_8_nuc.mp4
Code Block
frame=36683 fps=219 q=-0.0 Lsize=  617697kB time=00:20:22.76 bitrate=4138.3kbits/s dup=3 drop=0 speed= 7.3x
video:589765kB audio:26726kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.195641%


Code Block
intel-gpu-top: Intel Cometlake (Gen9) @ /dev/dri/card0 - 1147/1148 MHz;   3% RC6;  6.15/11.22 W;     2646 irqs/s

      IMC reads:     7083 MiB/s
     IMC writes:     3146 MiB/s

         ENGINES     BUSY                                                                         MI_SEMA MI_WAIT
       Render/3D   46.01% |███████████████████████████████▊                                     |      3%      0%
         Blitter    0.00% |                                                                     |      0%      0%
           Video   79.59% |███████████████████████████████████████████████████████              |     20%      0%
    VideoEnhance   23.04% |████████████████                                                     |      0%      0%



to check some VA-API info

...