Jump to content

H264 Analysis Tools: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 150: Line 150:
[trace_headers @ 0x7f81a8416d00] Packet: 589 bytes, no pts, dts 207998, duration 40000.
[trace_headers @ 0x7f81a8416d00] Packet: 589 bytes, no pts, dts 207998, duration 40000.
</pre>
</pre>
== Display Motion Vectors ==
The following commands will help you visualize the motion vectors on top of the original video.
To display the motion vectors on a newly opened a window:
<pre>
ffplay -flags2 +export_mvs file.h264 -vf codecview=mv=pf+bf+bb
</pre>
To save a copy of the video with motion vectors overlaid:
<pre>
ffmpeg -flags2 +export_mvs -I file.h264 -vf codecview=mv=pf+bf+bb output.mp4
</pre>
Sample output:
[[File:Mv.png|800px|frameless|center|Sample output of the motion vector visualization]]
[[File:Plotframes.png|800px|frameless|center|Sample output of the plotframes command.]]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.