FFMPEG create multi bitrate HLS VOD playlist

Questions involving a Windows version of FFmpeg.
Post Reply
Posts: 1
Joined: Wed Jun 05, 2019 1:10 pm

FFMPEG create multi bitrate HLS VOD playlist

Post by sinjuice » Wed Jun 05, 2019 1:43 pm

Hi, i'm trying to create a multibitrate VOD playlist and i'm having some issues.

I'm new to the ffmpeg command line and I'm trying to learn from examples and the not very easy to understand documentation. I managed to get a version working, but I get Segmentation fault from a known issue(https://trac.ffmpeg.org/ticket/7631), but the patch is no longer applicable to the current repo.

My current command is this, but the only issue is the playlist is not configured as VOD but as EVENT, if I change it to VOD I get Segmentation Fault.

Code: Select all

ffmpeg -hide_banner -y -i video.mkv -master_pl_name master.m3u8 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -filter:v:0 scale=w=640:h=-2  -maxrate:v:0 856k  -bufsize:v:0 1200k -b:a:0 96k -filter:v:1 scale=w=842:h=-2  -maxrate:v:1 1498k -bufsize:v:1 2100k -b:a:1 128k -filter:v:2 scale=w=1280:h=-2 -maxrate:v:2 2996k -bufsize:v:2 4200k -b:a:2 128k -filter:v:3 scale=w=1920:h=-2 -maxrate:v:3 5350k -bufsize:v:3 7500k -b:a:3 192k -var_stream_map "v:0,a:0 v:1,a:1 v:2,a:2 v:3,a:3" -crf 20 -hls_playlist_type event -hls_segment_filename segment_%v_%03d.ts pl_%v.m3u8
Is there any way to get a HLS stream with multiple resolutions and bitrates with a master playlist containing all? Or I am doing anything wrong?

Post Reply