How to drop P-Frames for Datamosh effect using FFMpeg

依然范特西╮ 提交于 2021-01-21 11:44:00

问题


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

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.


回答1:


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

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

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

  1. convert your video to AVI

ffmpeg -i input.mp4 output1.avi

  1. datamosh it with the ruby script "aviglitch"

datamosh output1.avi -o datamoshedvideo.avi

  1. (optional) convert your video back to mp4 (or whatever)

ffmpeg -i datamoshedvideo.avi moshedbutoriginalext.mp4



来源:https://stackoverflow.com/questions/37369450/how-to-drop-p-frames-for-datamosh-effect-using-ffmpeg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!