Subject: Re: How do you display relative cursor X:Y coordinates in an MP4 video on Windows?
There is another solution I accidentally found to get the pixels on the
screen using a freeware Windows video tool, which is to openwith Aegisub.
https://www.videohelp.com/software/Aegisub
What happened was I was getting tired of manually creating the subtitles by watching the video, stopping, writing a subtitle, continuing, stopping,
writing another subtitle, continuing and on and on until the video ended.
I looked up freeware Windows subtitle makers and the first hit was Aegisub.
https://www.videohelp.com/guides/category/how-to-add-subtitles-to-a-video-5;20#5-20
When you rightclick on an MP4 video file and openwith Aegisub, the cursor
shows up as an X:Y cross with realtime horizontal:vertical coordinates.
If you rightclick, the options are perfect for getting ffmpeg information.
Save PNG snapshot
Copy image to Clipboard
Save PNG snapshot (no subtitles)
Copy image to Clipboard (no subtitles)
Save PNG snapshot (only subtitles)
Copy image to Clipboard (only subtitles)
Copy coordinates to Clipboard
Reset Video Plan
https://i.postimg.cc/tJtCK72m/Clipboard-12-02-2024-01.jpg
The only thing left is to feed that information into the ffmpeg crop.
ffplay -i in.mp4 -vf "crop=80:60:200:100"
ffmpeg -i in.mp4 -vf "crop=80:60:200:100" -c:a copy out.mp4
https://video.stackexchange.com/questions/4563/how-can-i-crop-a-video-with-ffmpeg
--- MBSE BBS v1.0.8.4 (Linux-x86_64)
* Origin: A noiseless patient Spider (3:633/280.2@fidonet)