ffmpeg - 为什么 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
解决方案
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
推荐阅读
- javascript - 在 Next.js + Redux-saga 中刷新窗口时如何设置授权标头?
- flutter - 热重载、热重启和完全重启有什么区别?
- python - Django:使用对象属性过滤查询
- python - 使用 Kubernetes python 客户端列出命名空间中的所有资源
- java - 如何将响应字符串转换为 json 对象
- ruby-on-rails - 实现文件请求计数器
- python - “S3File”对象没有“强制”属性
- ruby-on-rails - 从 Rails 模型调用 Gem 中的方法
- r - 我应该如何处理合并(完全加入)多个(> 100)CSV 文件与一个公用键但行数不一致?
- perl - 使用 Perl 将文件读入两个散列