【问题标题】:ffmpeg Unable to find a suitable output format for 'ffmpeg -i ' [duplicate]ffmpeg 无法为“ffmpeg -i”找到合适的输出格式 [重复]
【发布时间】:2017-05-20 14:47:40
【问题描述】:

大家好,我尝试镜像我的视频文件,我将此库用于 ffmpeg

编译'com.writingminds:FFmpegAndroid:0.3.2'

这是我的命令:

uriPathOut = getInternalDirectoryPath() + "/Movies/3.mp4"; uriPathIn = getInternalDirectoryPath() + "/Movies/1.mp4";

cmd = new String[]{"ffmpeg -i",uriPathIn," -vf \"vflip\" -metadata:s:v rotate=180 ",uriPathOut};

我总是得到这个错误:

'[NULL @ 0xb84192d0] 无法为 'ffmpeg -i' 找到合适的输出格式 ffmpeg -i: 无效参数'

请问有什么解决办法吗?

【问题讨论】:

    标签: android ffmpeg


    【解决方案1】:

    没有名为“ffmpeg -i”的命令。您需要使用单独的“-i”和其他参数运行“ffmpeg”。

    cmd = new String[] {
        "ffmpeg",
        "-i", uriPathIn,
        "-vf", "vflip",
        "-metadata:s:v", "rotate=180",
        uriPathOut
    };
    

    【讨论】:

    • 我刚刚删除了“ffmpeg”,它可以工作了,非常感谢你的短暂
    • 很好的解决方案@ephemient
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-12-19
    • 2019-06-21
    • 2014-07-04
    • 2019-03-24
    • 2023-04-04
    • 1970-01-01
    相关资源
    最近更新 更多