【发布时间】:2018-12-28 04:32:39
【问题描述】:
我有一个包含重复帧的 mp4 文件 samp1.mp4,我尝试使用 mpdecimate 删除它们。我使用的 FFmpeg 命令行是
ffmpeg -i samp1.mp4 -vf mpdecimate out3.mp4 > out3.txt 2>&1
但是输出文件 out3.mp4 仍然有重复的帧。
命令生成文本:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'samp1.mp4':
Metadata:
major_brand : M4V
minor_version : 1
compatible_brands: M4V mp42isom
creation_time : 2018-12-26T20:38:35.000000Z
Duration: 00:00:04.77, start: 0.000000, bitrate: 4495 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 4476 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
creation_time : 2018-12-26T20:38:35.000000Z
handler_name : Mainconcept MP4 Video Media Handler
encoder : AVC Coding
Output #0, mp4, to 'out3.mp4':
Metadata:
major_brand : M4V
minor_version : 1
compatible_brands: M4V mp42isom
encoder : Lavf58.25.100
Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720, q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc (default)
Metadata:
creation_time : 2018-12-26T20:38:35.000000Z
handler_name : Mainconcept MP4 Video Media Handler
encoder : Lavc58.42.104 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame= 57 fps=0.0 q=29.0 size= 0kB time=00:00:00.13 bitrate= 2.9kbits/s dup=35 drop=0 speed=0.262x
frame= 87 fps= 75 q=29.0 size= 256kB time=00:00:01.13 bitrate=1848.9kbits/s dup=56 drop=0 speed=0.978x
frame= 117 fps= 65 q=29.0 size= 256kB time=00:00:02.13 bitrate= 982.2kbits/s dup=74 drop=0 speed=1.19x
frame= 142 fps= 62 q=29.0 size= 256kB time=00:00:02.96 bitrate= 706.3kbits/s dup=88 drop=0 speed=1.29x
frame= 142 fps= 47 q=-1.0 Lsize= 720kB time=00:00:04.63 bitrate=1271.0kbits/s dup=88 drop=0 speed=1.52x
==================== 最后五行输出很有趣。第一行
frame= 57 fps=0.0 q=29.0 size= 0kB time=00:00:00.13 bitrate= 2.9kbits/s dup=35 drop=0 speed=0.262x
好像说第 57 帧是重复的,现在找到的重复总数 = 35,丢弃的帧总数为 0。
1) 是否正确,2) 为什么没有任何帧被丢弃在任何行上,以及 3) 为什么输出文件仍然包含重复项?
感谢您的帮助。
【问题讨论】:
-
Stack Overflow 是一个编程和开发问题的网站。您应该使用Stack Exchange network 上的另一个站点来回答这个问题。
-
这个 SO 网站是我能找到的唯一一个带有 ffmpeg 标签的网站。如果您可以为 ffmpeg 问题推荐一个更好的网站,我会很高兴使用它。
标签: ffmpeg