FFmpeg how to get an image for a particular 'coded_picture_number' together with motion vectors

那年仲夏 提交于 2019-12-11 09:45:26

问题


I am looking for ways to get this output from ffmpeg:

Basically, I would like to pass to the shell, a command that allows me to output a particular frame number, let's say coded_picture_number=200 with the motion vectors drawn into it.

Any clue? Thanks in advance.


回答1:


This

ffmpeg -flags2 +export_mvs -i video.avi -vf 'select=gte(n\,200),codecview=mv=pf+bf+bb' -vframes 1 frame.png

will open video.avi, skip first 200 frames (n starts from 0), visualize motion vectors (all types), and writes exactly 1 frame into frame.png.



来源:https://stackoverflow.com/questions/48988473/ffmpeg-how-to-get-an-image-for-a-particular-coded-picture-number-together-with

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