-2

I would like to get an UIImage of the current image/frame of a m3u8 live stream.

I saw of lot of code on forums, ... but they only work for video but not for streams

Dávid Pásztor
  • 51,403
  • 9
  • 85
  • 116

1 Answers1

0

You can use ffmpag to get frames from live stream video

Mobile framework mobile-ffmpeg

command :

ffmpeg -i https://www.radiantmediaplayer.com/media/bbb-360p.mp4 -f image2 -r 1 img%01d.jpg

for more information read answer

a.masri
  • 2,439
  • 1
  • 14
  • 32
  • I only mention it in the title, but the code I'm looking for is in Swift not in command :/ – MarcAntony Jan 07 '19 at 14:05
  • you can use this command in swift code :) check this lib https://github.com/tanersener/mobile-ffmpeg – a.masri Jan 07 '19 at 14:07
  • Oh sorry, actually I just understand why the url of mobile-ffmpeg didn't work, and I just see it's possible in Swift :/ Thanks :D – MarcAntony Jan 07 '19 at 14:11