如何使用FFMpeg删除P帧以获得Datamosh效果 [英] How to drop P-Frames for Datamosh effect using FFMpeg

查看:110
本文介绍了如何使用FFMpeg删除P帧以获得Datamosh效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在视频上实现Datamosh效果.
(来源: ilovenewwork.com )

I'm trying to achieve the Datamosh effect on video.
(source: ilovenewwork.com)

我知道,通常我需要对视频进行删除所有i-Frame,但是我不知道如何使用ffmpeg来实现.

I know that in general what I need to the video is to delete all i-Frames but I have no idea how to achieve that using ffmpeg.

推荐答案

如果您只是在寻找简单的命令行解决方案!

if you are just looking for an easy command line solution!

安装以下ruby脚本 https://github.com/ucnv/aviglitch

install the following ruby script https://github.com/ucnv/aviglitch

[nodejs版本 https://github.com/fand/node-aviglitch]

[nodejs version https://github.com/fand/node-aviglitch]

  1. 将视频转换为AVI

ffmpeg -i input.mp4 output1.avi

  1. 使用红宝石脚本"aviglitch"对其进行数据删除

datamosh output1.avi -o datamoshedvideo.avi

  1. (可选)将视频转换回mp4(或其他格式)

ffmpeg -i datamoshedvideo.avi moshedbutoriginalext.mp4

这篇关于如何使用FFMpeg删除P帧以获得Datamosh效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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