-
-
Notifications
You must be signed in to change notification settings - Fork 167
Description
Possibly missing a pixel format for the odroid xu4? Adding -pix_fmt nv21 to the default jellyfin-ffmpeg line for some reasons works.
Without -pix_fmt nv21
/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -autorotate 0 -i file:"/media/INTHDD1/Content1/Films/lol.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_v4l2m2m -b:v 5085275 -maxrate 5085275 -bufsize 10170550 -level 51 -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,min(1920\,820*a))/64)*64:trunc(min(max(iw/a\,ih)\,min(1920/a\,820))/2)*2,format=yuv420p" -codec:a:0 libfdk_aac -ac 2 -ab 384000 -af "volume=2" -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/a605d70e11ba86c2fc2e82f2f70f4e65%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/var/lib/jellyfin/transcodes/a605d70e11ba86c2fc2e82f2f70f4e65.m3u8"
With -pix_fmt nv21
/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -autorotate 0 -i file:"/media/INTHDD1/Content1/Films/lol.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_v4l2m2m -b:v 5085275 -maxrate 5085275 -bufsize 10170550 -level 51 -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,min(1920\,820*a))/64)*64:trunc(min(max(iw/a\,ih)\,min(1920/a\,820))/2)*2,format=yuv420p" -codec:a:0 libfdk_aac -ac 2 -ab 384000 -af "volume=2" -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/a605d70e11ba86c2fc2e82f2f70f4e65%d.ts" -hls_playlist_type vod -hls_list_size 0 -y -pix_fmt nv21 "/var/lib/jellyfin/transcodes/a605d70e11ba86c2fc2e82f2f70f4e65.m3u8"
EDIT: Kernel version 5.4 on armbian