如何在iOS上使用ffmpeg? [英] How to use ffmpeg on iOS?

查看:911
本文介绍了如何在iOS上使用ffmpeg?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须对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 ,但是使用地图"似乎没有任何此类参数.

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.

推荐答案

将FFMpeg用于IOS的最佳方法是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

许可选择: 分 min-gpl https https-gpl 声音的 视频 满的 全gpl

License to choose from: min min-gpl https https-gpl audio video full full-gpl

这篇关于如何在iOS上使用ffmpeg?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆