home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 42,408 of 42,547   
   Oliver to All   
   How do you display relative cursor X:Y c   
   16 Nov 24 10:22:57   
   
   XPost: alt.comp.os.windows-10, rec.photo.digital   
   From: ollie@invalid.net   
      
   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.   
      
   Amazon rejected the video for privacy reasons but I can't re-take that   
   video so what I need to do is crop out the person at the left of the frame.   
      
   Googling I found out how to do that, which is pretty simple with ffmpeg:   
   https://video.stackexchange.com/questions/4563/how-can-i-crop-a-   
   ideo-with-ffmpeg   
      
   That page explains to crop to a 80by60 section, starting from position   
   200,100 where all you do is run these commands to view & effect the edit.   
      
    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   
      
   OK. That works great. But I don't want those coordinates, but some other   
   set of coordinates which is the reason I'm asking this question.   
      
   How do I get those coordinates?   
      
   What method do you use to find the coordinates to crop to only a section of   
   your video frames?   
      
   Googling for the answer to that question of finding the pixels is a lot   
   harder because most of the answers are how to rescale the entire frame.   
      
   I need to determine the coordinates to crop to a portion of that frame.   
      
   This thread seems to ask it, but mostly for images, not videos.   
   https://forum.videohelp.com/threads/394631-how-to-know-the-posit   
   on-of-pixels-in-a-picture   
      
   They seem to recommend vdub2 or avspmod for avisynth for video to get the   
   dimensions to subsequently feed into the ffplay/ffmpeg command.   
      
   But I'd like to first ask how you get the cursor position when you're   
   viewing an MP4 on Windows (so that I can put them into the ffmpeg command)?   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca