How to publish live stream to MediaPackage using FFmpeg?

0

I want to push the stream to MediaPackage with FFmpeg instead of pushing to MediaLIve. I try the command

ffmpeg -re -stream_loop -1 -i input.mp4 -c copy -f hls 'https://username:password@mypackage_domain.com/xxx/channel/main.m3u8'

It seems that I push the stream succeed, but I can't play the stream with the endpoint, and there are no metrics about ingress items.

질문됨 2년 전758회 조회
1개 답변
0

When pushing inputs to MediaPackage they need to be in HLS protocol, it does not accept MP4s directly. MediaLive has the ability to take MP4 files as a source input and convert to HLS that can be pushed to MediaPackage. This would be considered a 'live streaming' scenario.

With the VOD scenario, MediaPackage can 'ingest' MP4 assets from S3 storage, yet requires a .smil file to detail all the renditions. There will need to be an MP4 file for each rendition and the .smil. MediaPackage does not have the ability to create multiple renditions from a single MP4. Keep in mind that MediaPackage is a Just-in-Time packaging/origin server. Once MP is made aware of a VOD asset (ingest process) it will pull the associated MP4 renditions only when requested from a CDN.

AWS
Mike-ME
답변함 2년 전
  • Thanks for your reply. The FFmpeg command will remux mp4 to mpegts segment, but it doesn't work well.

  • Thanks for your reply. I prefer using only MediaPackage and not MediaLive. However, the available documentation for MediaPackage does not provide instructions on how to stream to the input URL, such as using FFmpeg, OBS, or similar software.

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

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

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

관련 콘텐츠