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,415 of 42,547   
   Oliver to All   
   Re: How do you display relative cursor X   
   17 Nov 24 21:04:35   
   
   XPost: alt.comp.os.windows-10, rec.photo.digital   
   From: ollie@invalid.net   
      
   Apparently Irfanview can copy a video frame directly to the clipboard.   
   https://irfanview-forum.de/forum/program/support/92896-help-with   
   capturing-a-single-video-frame-using-irfanview   
      
   Here is a writeup for review by Herbert to ask if this is the simplest way   
   to accomplish the task of graphically choosing the crop area for ffmpeg.   
      
   This is clipcrop.bat as it had to be (minor) modified to fit my system.   
      
    @echo off   
    REM clipcrop.bat   
    start /w "" C:\path\iview\i_view64.exe /clippaste   
      
    for %%k in (CustSelX CustSelY CustSelW CustSelH) do (   
       for /f "delims=." %%i in ('find "%%k=" ^C:\path\iview\i_view64.ini') do   
   set %%i   
       )   
      
    echo  ffmpeg -i in.mp4 -vf "crop=%CustSelX%:%CustSelY%:%CustSelW%:%CustSelH%"   
   -c:a copy out.mp4   
      
   Get a video frame into the Windows clipboard any way you can.   
   For example   
   a. Copy your video to be cropped to "in.mp4" to the current directory   
   b. Rightclick on in.mp4, which will bring up a Windows context menu   
   c. Select "Open with > Irfanview" (which will be 32-bit or 64-bit)   
   d. That should start playing the in.mp4 video inside of Irfanview   
   e. Freeze Irfanview at a desired frame by leftmouse clicking once   
   f. Rightclick in the frozen Irfanview window (which pops up a menu)   
   g. From the menu, select "Copy current frame to clipboard - Ctrl+C"   
      
   Now that the current video frame is copied by Irfanview to the   
   clipboard, you can run clipcrop.bat that Herbert kindly prior posted.   
      
   --- 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