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년 전1184회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠