DEV Community

Cover image for Transcode video source to HLS playlist format for Video on Demand (VOD) Streaming

Transcode video source to HLS playlist format for Video on Demand (VOD) Streaming

Nodirbek Sharipov on July 28, 2020

INTRO Briefly, we need a Video on Demand (VOD) streaming solution, with Adaptive Bitrate Streaming (ABR). There are two industry standar...
Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
zamoosh profile image
Mohammad Rahimi

@nodir_dev
Super nice article! many thanks to you!
would I ask to explain these arguments to me plz?

ffmpeg 
-i input.mp4
-profile:v baseline        👈
-level 3.0        👈
-s 640x360
-start_number 0 
-hls_time 10 
-hls_list_size 0 
-f hls        👈
360_out.m3u8
Enter fullscreen mode Exit fullscreen mode

Thank you again for the article.
My email: moyi.pary@gmail.com

Collapse
 
rafypichardo profile image
rafypichardo

Great tutorial!

What if I want to add an SRT Subtitle?

Best regards,

Collapse
 
nodir_dev profile image
Nodirbek Sharipov

Thanks, I haven’t tried it with subtitles yet, but that’s good point, will share my findings here once I try it with subtitles

Collapse
 
ilyosdev profile image
Ilyos Olimov

Good job man

Collapse
 
nodir_dev profile image
Nodirbek Sharipov

Thanks a lot 🙃

Collapse
 
abhijithdj007 profile image
abhijithdj007

Nicely explained!!

But just had a small doubt, in point 3 you had mentioned about dividing it into smaller 5-10 seconds chuck. Could not find anything about that in the document.

Collapse
 
nodir_dev profile image
Nodirbek Sharipov

Thak you.
5-10 second chunks are my approximate values for each output video file, not necessarily have to be that long. Length of the chunks represent duration of video which is obtained upon every buffer request. I just made up those numbers based on average video lengths of output files just for general conception

Collapse
 
n1ezer profile image
Yerassyl Zhanymkanov

Thank you, man! Great article.

Collapse
 
64j0 profile image
Vinícius Gajo

Nice post, I'll try to implement something like this.

Collapse
 
okoye-dev profile image
Divine Okoye

I’ve been struggling with how to write the ffmpeg bash script for this, and bro just handed it out.

Thank you so much, man.