[英]Swift - How to get current frame of a m3u8 live stream?
I would like to get an UIImage
of the current image/frame of a m3u8 live stream.我想获取 m3u8 实时流的当前图像/帧的
UIImage
。
I saw of lot of code on forums, ... but they only work for video but not for streams我在论坛上看到了很多代码,...但它们只适用于视频而不适用于流
You can use ffmpag to get frames from live stream video您可以使用ffmpag从直播视频中获取帧
Mobile framework mobile-ffmpeg移动框架mobile-ffmpeg
command :命令 :
ffmpeg -i https://www.radiantmediaplayer.com/media/bbb-360p.mp4 -f image2 -r 1 img%01d.jpg
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.