ffmpeg - 删除顺序重复的帧 [英] ffmpeg - remove sequentially duplicate frames

查看:1891
本文介绍了ffmpeg - 删除顺序重复的帧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用ffmpeg检测视频内的重复帧。



我尝试使用select = gt(scene\,0.xxx)的-vf标志进行场景更改。但是,这对我来说没有效果。

解决方案

你可以尝试抽取过滤器

  ffmpeg -i input.mp4 -vf mpdecimate -loglevel debug -f null  -  

这将生成一个控制台读数,显示过滤器认为哪些帧是重复的。



生成视频,删除重复项



  ffmpeg -i input.mp4 -vf mpdecimate,setpts = N / FRAME_RATE / TB out.mp4 


Is there any way to detect duplicate frames within the video using ffmpeg.

I tried -vf flag with select=gt(scene\,0.xxx) for scene change. But, it did not work for my case.

解决方案

You can try the decimate filter

ffmpeg -i input.mp4 -vf mpdecimate -loglevel debug -f null -

This will generate a console readout showing which frames the filter thinks are duplicates.

To generate a video with the duplicates removed

ffmpeg -i input.mp4 -vf mpdecimate,setpts=N/FRAME_RATE/TB out.mp4

这篇关于ffmpeg - 删除顺序重复的帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆