FFMpeg Command - realx94/Common GitHub Wiki
Transcoder 1080p
-i \"{0}\" -vf scale=w=1920:h=1080:force_original_aspect_ratio=decrease
-c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48
-keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 5000k -maxrate 5350k
-bufsize 7500k -b:a 192k -hls_segment_filename " + fileOutput + "1080p_%d.ts "
+ fileOutput + "1080p.m3u8
Transcoder 720p
-i \"{0}\" -vf scale=w=1280:h=720:force_original_aspect_ratio=decrease
-c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48
-hls_time 4 -hls_playlist_type vod -b:v 2800k -maxrate 2996k -bufsize 4200k -b:a 128k
-hls_segment_filename " + fileOutput + "720p_%d.ts "
+ fileOutput + "720p.m3u8
Transcoder 480p
-i \"{0}\" -vf scale=w=842:h=480:force_original_aspect_ratio=decrease
-c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48
-keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 1400k -maxrate 1498k
-bufsize 2100k -b:a 128k -hls_segment_filename " + fileOutput + "480p_%d.ts "
+ fileOutput + "480p.m3u8
Transcoder 360p
" -i \"{0}\" -vf scale=w=640:h=360:force_original_aspect_ratio=decrease
-c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48
-keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 800k -maxrate 856k
-bufsize 1200k -b:a 96k -hls_segment_filename " + fileOutput + "360p_%d.ts "
+ fileOutput + "360p.m3u8"
Transcoder 240p
" -i \"{0}\" -vf scale=w=426:h=240:force_original_aspect_ratio=decrease
-c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48
-keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 240k -maxrate 240k
-bufsize 480k -b:a 64k -hls_segment_filename " + fileOutput + "240p_%d.ts "
+ fileOutput + "240p.m3u8"