Convert MP4 File to M3U8(only m3u8 file No ts file) [closed]

I’m a beginner working on a content streaming app(like Netflix) where i want to add feature of quality control of the content(like switch to 480p, 720p, 1080p etc). I’m using Exoplayer for video player and the app is almost ready. But the problem i’ve been facing is that All the files are have are not either mp4, mkv etc file but i need m3u8 file. So I tried converting video using FFmpeg tools which worked but it gives me LOTS OF TS file which i need to upload along with the m3u8 file. After doing some more research i was able to reduce it to 1 m3u8 and 1 TS file. Is it possible to Create only 1 m3u8 file no TS file? Here are what i’ve tried.

ffmpeg -i input.mp4 -c:a aac -strict -2 -c:v libx264 -preset ultrafast -crf 28 -maxrate 2M -bufsize 4M -hls_time 6 -hls_playlist_type vod -hls_flags single_file -f hls output.m3u8
I also thought i will upload all the video in different quality manually, but as a broke 17 Y/O teenager, noobie who don’t know how to use AWS or cloud Servers and also AWS or Google Cloud doesn’t accept Indian Debit Card(Rupay) for free trial.
Please also suggest some where i can store these data for free i guess( i don’t care about where i upload, i just need the link which i can put in my database.)
Thank You 🙂

  • m3u8 is a playlist file. You could create a playlist and without a ts file, but there won’t be any video to play.

    – 

Leave a Comment