Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Remove setparams
- /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 3000000 -fflags +igndts -init_hw_device vaapi=va:/dev/dri/renderD128 -filter_hw_device va -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i "http://192.168.1.51:8096/LiveTv/LiveStreamFiles/45079aaa388f4a238d0edd6240a0e891/stream.ts" -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 h264_vaapi -rc_mode VBR -b:v 20000000 -maxrate 20000000 -bufsize 40000000 -profile:v:0 high -force_key_frames:0 "expr:gte(t,n_forced*3)" -vf "deinterlace_vaapi=rate=frame,scale_vaapi=format=nv12" -flags -global_header -vsync cfr -codec:a:0 copy -strict -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_base_url "hls/0563a22eb29ef7f5a63601cdf467cb52/" -hls_segment_filename "/config/transcodes/0563a22eb29ef7f5a63601cdf467cb52%d.ts" -hls_playlist_type event -hls_list_size 0 -y "/config/transcodes/0563a22eb29ef7f5a63601cdf467cb52.m3u8"
- 2. Remove setparams + add hwupload
- /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 3000000 -fflags +igndts -init_hw_device vaapi=va:/dev/dri/renderD128 -filter_hw_device va -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i "http://192.168.1.51:8096/LiveTv/LiveStreamFiles/45079aaa388f4a238d0edd6240a0e891/stream.ts" -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 h264_vaapi -rc_mode VBR -b:v 20000000 -maxrate 20000000 -bufsize 40000000 -profile:v:0 high -force_key_frames:0 "expr:gte(t,n_forced*3)" -vf "format=nv12|vaapi,hwupload,deinterlace_vaapi=rate=frame,scale_vaapi=format=nv12" -flags -global_header -vsync cfr -codec:a:0 copy -strict -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_base_url "hls/0563a22eb29ef7f5a63601cdf467cb52/" -hls_segment_filename "/config/transcodes/0563a22eb29ef7f5a63601cdf467cb52%d.ts" -hls_playlist_type event -hls_list_size 0 -y "/config/transcodes/0563a22eb29ef7f5a63601cdf467cb52.m3u8"
- 3. Remove rc_mode VBR
- /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 3000000 -fflags +igndts -init_hw_device vaapi=va:/dev/dri/renderD128 -filter_hw_device va -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i "http://192.168.1.51:8096/LiveTv/LiveStreamFiles/45079aaa388f4a238d0edd6240a0e891/stream.ts" -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 h264_vaapi -b:v 20000000 -maxrate 20000000 -bufsize 40000000 -profile:v:0 high -force_key_frames:0 "expr:gte(t,n_forced*3)" -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,deinterlace_vaapi=rate=frame,scale_vaapi=format=nv12" -flags -global_header -vsync cfr -codec:a:0 copy -strict -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_base_url "hls/0563a22eb29ef7f5a63601cdf467cb52/" -hls_segment_filename "/config/transcodes/0563a22eb29ef7f5a63601cdf467cb52%d.ts" -hls_playlist_type event -hls_list_size 0 -y "/config/transcodes/0563a22eb29ef7f5a63601cdf467cb52.m3u8"
- 4. Remove rc_mode VBR and add level 41
- /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 3000000 -fflags +igndts -init_hw_device vaapi=va:/dev/dri/renderD128 -filter_hw_device va -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i "http://192.168.1.51:8096/LiveTv/LiveStreamFiles/45079aaa388f4a238d0edd6240a0e891/stream.ts" -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 h264_vaapi -b:v 20000000 -maxrate 20000000 -bufsize 40000000 -profile:v:0 high -level 41 -force_key_frames:0 "expr:gte(t,n_forced*3)" -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,deinterlace_vaapi=rate=frame,scale_vaapi=format=nv12" -flags -global_header -vsync cfr -codec:a:0 copy -strict -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_base_url "hls/0563a22eb29ef7f5a63601cdf467cb52/" -hls_segment_filename "/config/transcodes/0563a22eb29ef7f5a63601cdf467cb52%d.ts" -hls_playlist_type event -hls_list_size 0 -y "/config/transcodes/0563a22eb29ef7f5a63601cdf467cb52.m3u8"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement