首页 > 解决方案 > 为什么 ffmpeg 不按应有的方式对我的 .mp4 视频进行切片?

问题描述

[mov,mp4,m4a,3gp,3g2,mj2 @ 0xcf5480] Could not find codec parameters for stream 0 (Video: none (avc3 / 0x33637661), none, 704x396, 1541 kb/s): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
/home/elias/testing_vid.mp4: could not find codec parameters
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/user/testing_vid.mp4':
  Metadata:
    major_brand     : iso6
    minor_version   : 0
    compatible_brands: iso6dash
  Duration: 00:00:59.76, start: 0.020000, bitrate: 1544 kb/s
    Stream #0:0(und): Video: none (avc3 / 0x33637661), none, 704x396, 1541 kb/s, 50 fps, 50 tbr, 50k tbn, 50k tbc (default)
    Metadata:
      handler_name    : USP Video Handler
      encoder         : Elemental H.264
No decoder for stream #0:0, filtering impossible
Error opening filters!

这是我收到的错误消息,我的 ubuntu 和 ffmpeg 版本是:

ffmpeg amd64 7:2.8.15-0ubuntu0.16.04.1

标签: ffmpeg

解决方案


Ubuntu 中的 ffmpeg-2.8.15不支持该视频编解码器(avc3 / 0x33637661)。尝试使用带有较新ffmpeg-3.4.4的附加存储库

sudo add-apt-repository ppa:jonathonf/ffmpeg-3
sudo apt-get update
sudo apt-get install ffmpeg

推荐阅读