Video on Demand with MediaPackage, S3 and ffmpeg

0

I successfully converted a .mp4 video into streamable chunks of .ts files, with the master .m3u8 and index file using ffmpeg. Command is:

ffmpeg -i foreword-video.mp4 -hls_list_size 0 -f hls -master_pl_name master.m3u8 video.m3u8

The master.m3u8 file contains this:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=75900,RESOLUTION=1280x720,CODECS="avc1.64001f,mp4a.40.2"
video.m3u8

After uploading everything to S3 I went to MediaPackage and tried ingesting the master.m3u8 file as a new asset, using a packaging configuration that has stream selection enabled from 0 to 2147483647. All went well and I copied the new URL from MediaPackage.

I assumed that once I paste the generated URL from MediaPackage in a HLS video player that the video quality will be possible to change. However, I can only watch the video in the same quality as is uploaded on S3. Is there an option that I'm missing in MediaPackage that will enable changing the video resolution in the player? (1080p, 720p, 360p etc...)

Or will I have to use ffmpeg and create the video files with different resolutions, upload them all to S3, and ingest the asset on MediaPackage with packaging configurations that match the video resolutions?

cilim
已提问 4 年前1182 查看次数
2 回答
1

Hi, Thanks for asking the question in the forum. If you require multiple streams rates the source content must be encoded via Elemental Live, MediaLive or MediaConvert first. Once you have a source with an ABR stack, that will then be ingested into MediaPackage, where it will be available to customers is various output formats - HLS, Dash, MSS Etc. MediaPackage will not re-encode the content, and provide alternative bitrates etc.

Thanks
Richard

AWS
已回答 4 年前
1

Hi Richard,

thank you very much for this information. I assumed that might be the case, but wanted to make sure before starting any implementation.

Regards,
Marko

cilim
已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则