如何在 iOS 上使用 ffmpeg? [英] How to use ffmpeg on iOS?
问题描述
我必须对 ffmpeg 使用以下命令
I have to use the following command for ffmpeg
ffmpeg -i "Video.mp4" -map 0:1 "AudioWithVocalfromStreamOne.mp3" -map 0:2 "AudioWithoutVocalfromStreamTwo.mp3"
我已经在我的 mac 上成功安装了 ffmpeg.我尝试使用 FFMPEGWrapper,但它似乎没有采用任何此类参数来使用map".
I have successfully installed ffmpeg on my mac. I tried using FFMPEGWrapper, but it doesn't seem to take any such parameters for using "map".
我需要知道如何从视频中提取流.我已经可以访问这些流,因为服务器端在他们的末尾使用 ffprobe 将它提供给我.
I need to know how to extract the streams from a video. I already have access to the streams, as server side is providing it to me using ffprobe at their end.
推荐答案
在 IOS 中使用 FFMpeg 的最佳方法是 MobileFFMpeg 库.
Best method of using FFMpeg for IOS is the MobileFFMpeg Library.
这是来源:https://github.com/tanersener/mobile-ffmpeg
它可以作为吊舱使用pod 'mobile-ffmpeg-full', '~> 4.3'
It is available as a pod pod 'mobile-ffmpeg-full', '~> 4.3'
确保获得适当的 FFMpeg 许可证.不同的许可证有不同的库
Make sure to get appropriate FFMpeg license. Different licenses have different libs
可供选择的许可证:分钟最小-gplhttpshttps-gpl声音的视频满的全gpl
License to choose from: min min-gpl https https-gpl audio video full full-gpl
这篇关于如何在 iOS 上使用 ffmpeg?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!