【问题标题】:FFMpeg for IOS - Disabling Log LevelsIOS 的 FFMpeg - 禁用日志级别
【发布时间】:2013-11-24 01:28:35
【问题描述】:

我已经为 ios 编译了 ffmpeg。编译配置,我借鉴了kxmovie的Rake文件。

一切正常,但我想禁用解码器在控制台中显示的所有调试消息。

我怎样才能做到这一点。我相信应该是编译了ffmpeg,但不知道该怎么做。任何建议将不胜感激。

配置命令:

./configure --disable-ffmpeg --disable-ffplay --disable-ffserver --disable-ffprobe --disable-doc --disable-bzlib --target-os=darwin --enable-cross-compile --enable-gpl --enable-version3 --assert-level=2 --disable- mmx --arch=i386 --cpu=i386 --extra-ldflags='-arch i386' --extra-cflags='-arch i386' --disable-asm --cc=/Applications/Xcode.app/Contents /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc --as='gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc' --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk --extra-ldflags=-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/lib/system

【问题讨论】:

    标签: ios ffmpeg


    【解决方案1】:

    您可以将-loglevel 设置为安静吗?我不确定是否有编译选项,即使有,它也会使调试变得更加困难,因为您需要不同的 ffmpeg 二进制文件进行调试。

    【讨论】:

    • 嗨 Jeremy,最终我需要禁用调试,一旦我对功能感到满意。没有名为 loglevel 的配置选项,./configure --help | grep 日志返回 --logfile=FILE 日志测试并输出到 FILE [config.log] --disable-logging 不记录配置调试信息
    • 不是配置,运行时。如果您将它用作库,则可以使用 c 函数设置它,如果您正在生成它,则可以使用运行时参数
    • 如果您将其用作库,请参阅 stackoverflow.com/questions/7786802/…
    • 啊,感谢您指出该帖子。我会尝试一下,看看我能做什么。我会尽快更新这个帖子。谢谢杰里米
    • 安静是-8(更好的是 AV_LOG_QUIET),0 是恐慌(应该有很少的输出......)loglevels
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-02
    • 2015-06-23
    • 2016-08-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多