• Re: How do you display relative cursor X:Y coordinates in an MP4 video

    From Oliver@3:633/280.2 to All on Mon Dec 2 17:26:20 2024
    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)
  • From Carlos E.R.@3:633/280.2 to All on Mon Dec 2 23:52:16 2024
    Subject: Re: How do you display relative cursor X:Y coordinates in an MP4
    video on Windows?

    On 2024-11-16 18:22, Oliver wrote:
    How do you find the dimensions to crop a phone MP4 to a box within the original frame?
    That is, how can I play an MP4 & get the cursor coordinates of two points?

    I'm successfully uploading phone MP4 videos to Amazon reviews but this
    latest 1,920px width by 1,080px height video needs to have a portion
    cropped out because a reflection of the video taker shows in the video.

    Avidemux can do it (there is a windows version).

    Select an output video filter, choose transform, then crop (double
    click), and it will display a screenshot of the video with a red
    rectangle showing where it would cut.

    And it is open source software, which you like.

    --
    Cheers, Carlos.

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: ---:- FTN<->UseNet Gate -:--- (3:633/280.2@fidonet)