To fix this we create a master playlist that tells the player what renditions are available for the video. This created the media but there’s no way for the player to know what’s available. hls_playlist_type vod -b:v 5000k -maxrate 5350k \ crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 \ vf scale=w=1920:h=1080:force_original_aspect_ratio=decrease \ crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 2800k -maxrate 2996k \ vf scale=w=1280:h=720:force_original_aspect_ratio=decrease \ crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 1400k -maxrate 1498k \ vf scale=w=842:h=480:force_original_aspect_ratio=decrease \ crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 800k -maxrate 856k \ This command will create 4 versions of the video along with a playlist for each: We can create multiple renditions and let the player decide what’s the best one to play at any given time of the playback. You will definitely want more than one to acommoadte both your low-end, low-bandwidth users as well as those who are watching in the latest 4k iMac on fiber connections. HLS Creation: Multiple Renditions And Master PlaylistĪll the work we did in the previous section was for one rendition. The playlist for the video looks like this: #EXTM3U In this case, it produced 34 segments for the video I chose
0 Comments
Leave a Reply. |