Skip to content

Odroid XU4 NV21 #184

@RicardoCst

Description

@RicardoCst

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"

image

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"

image

EDIT: Kernel version 5.4 on armbian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions