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.

preguntada hace 2 años758 visualizaciones
1 Respuesta
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
respondido hace 2 años
  • 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.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas