How to convert a UDP stream to HLS using ffmpeg

Asked

Viewed 196 times

1

My doubt and the following, I use the codec ffmpeg for various purposes, and I came up with this problem of converting an udp stream to HLS, I’ve tried several ways, and I’ve read several tutorials, nothing objective, the idea would be to convert a stream udp multicast and transcode it to HLS, if anyone can help thank you.

1 answer

2


Assuming that the video codec of the input is H.264 or H.265 and the audio codec is AAC the command would be:

ffmpeg -i udp://localhost:1234 -c copy -f hls index.m3u8

If the codecs are not the ones mentioned above, you can do Transcoding like this:

ffmpeg -i udp://localhost:1234 -c:v x264 -c:a aac -f hls index.m3u8
  • Thanks, I managed to make Transcoding see the information you gave me, but I get the audio and vieo picotando, locking.

  • https://answall.com/questions/285989/ffmpeg-transcoding-http-para-udp-multicast-audio-e-video-travando I asked another question explaining everything if you would care to thank, hug!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.