【问题标题】:HTML5 Video OGV conversion on MacMac 上的 HTML5 视频 OGV 转换
【发布时间】:2013-08-29 11:09:30
【问题描述】:

当我尝试使用 Quicktime 或 Screenflow 录制截屏视频,然后转换为 .ogv 以在网络上使用时,我多次收到此错误:

$ ffmpeg2theora test.mov
[audioresample @ 0x7fa903800ee0] Audio sample format conversion failed

生成的test.ogv 文件无法在 VLC 中播放。我可以使用ffmpeg 成功地将mov 转换为mp4。 ffmpeg2theora 是否仅支持某些音频类型? ffmpeg2theora 0.29版

更多输出:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2013-08-26 20:50:37
  Duration: 00:00:07.00, start: 0.000000, bitrate: 1458 kb/s
    Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 90 kb/s
    Metadata:
      creation_time   : 2013-08-26 20:50:37
      handler_name    : Apple Alias Data Handler
    Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1200, 1362 kb/s, 30 fps, 30 tbr, 3k tbn, 6k tbc
    Metadata:
      creation_time   : 2013-08-26 20:50:37
      handler_name    : Apple Alias Data Handler

【问题讨论】:

  • ffmpeg2theora 是否缺少ffmpeg 中的其他功能?为什么不直接使用ffmpeg 来制作ogv? ffmpeg -i input -c:v libtheora -c:a libvorbis -q:v 7 -q:a 5 output.ogvFFmpeg Wiki: Theora and Vorbis Encoding Guide

标签: ffmpeg ogg oggvorbis ogg-theora


【解决方案1】:

您可能对 ffmpeg 解决方案特别感兴趣,但 Miro Video Convertor 是另一个免费的 OS X 选项,非常适合将 mov 转换为 ogg。

【讨论】:

    【解决方案2】:
    brew remove ffmpeg
    brew install --with-theora --with-libvorbis ffmpeg
    ffmpeg -i test.mov -c:v libtheora -c:a libvorbis -q:v 10 -q:a 10 test.ogv
    

    【讨论】:

    • -c:v theora 可能有效,具体取决于您的 ffmpeg 版本,但更典型的是在编码器名称中明确表示,因此应将其更改为 -c:v libtheora
    猜你喜欢
    • 2011-03-13
    • 1970-01-01
    • 1970-01-01
    • 2013-01-26
    • 1970-01-01
    • 1970-01-01
    • 2016-05-01
    • 2012-06-26
    • 2011-06-13
    相关资源
    最近更新 更多