Oliver
2024-11-18 21:13:04 UTC
Can you get the Irfanview "save video frame to clipboard" to work?
Loooooong story short, can you get Irfanview to save a video frame to the
Windows clipboard? (Not the borders. Not the screen. Just the video frame.)
This "should" put the frame into the clipboard but it does not work for me.
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"
This also should put the frame into the clipboard, but does not work for me.
a. Open your video in VLC & select VLC:Video > Take snapshot"
b. That saves a frame to C:\Users\you\Pictures\vlcsnap-<datetime>.png
c. Open that VLC framegrab PNG in Irfanview
d. Irfanview:Options > Capture Screenshot
e. Select "Foreground Window" & "Copy captured image to clipboard"
The test if the screenshot is in the clipboard is this will work:
@echo off
REM framecrop.bat
REM 1st Open a command window
REM 2nd execute this file (which puts the clipboard in Irfanview)
REM 3rd In Irfanview, leftmouse draw the desired selection box
REM 4th In Irfanview, press "Shift+c"
REM 5th Click the Irfanview [Save values and exit] button
REM 6th Kill Irfanview (this spits out the desired ffmpeg crop command)
start /w "" C:\path-to\Irfanview\i_view32.exe /clippaste
for %%k in (CustSelX CustSelY CustSelW CustSelH) do (
for /f "delims=." %%i in ('find "%%k=" ^<C:\path-to\Irfanview\i_view32.ini') do set %%i
)
echo ffmpeg -i in.mp4 -vf "crop=%CustSelX%:%CustSelY%:%CustSelW%:%CustSelH%" -c:a copy out.mp4
If that works above, can you explain HOW you got the video frame
into the Windows clipboard using just Irfanview to do it?
Loooooong story short, can you get Irfanview to save a video frame to the
Windows clipboard? (Not the borders. Not the screen. Just the video frame.)
This "should" put the frame into the clipboard but it does not work for me.
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"
This also should put the frame into the clipboard, but does not work for me.
a. Open your video in VLC & select VLC:Video > Take snapshot"
b. That saves a frame to C:\Users\you\Pictures\vlcsnap-<datetime>.png
c. Open that VLC framegrab PNG in Irfanview
d. Irfanview:Options > Capture Screenshot
e. Select "Foreground Window" & "Copy captured image to clipboard"
The test if the screenshot is in the clipboard is this will work:
@echo off
REM framecrop.bat
REM 1st Open a command window
REM 2nd execute this file (which puts the clipboard in Irfanview)
REM 3rd In Irfanview, leftmouse draw the desired selection box
REM 4th In Irfanview, press "Shift+c"
REM 5th Click the Irfanview [Save values and exit] button
REM 6th Kill Irfanview (this spits out the desired ffmpeg crop command)
start /w "" C:\path-to\Irfanview\i_view32.exe /clippaste
for %%k in (CustSelX CustSelY CustSelW CustSelH) do (
for /f "delims=." %%i in ('find "%%k=" ^<C:\path-to\Irfanview\i_view32.ini') do set %%i
)
echo ffmpeg -i in.mp4 -vf "crop=%CustSelX%:%CustSelY%:%CustSelW%:%CustSelH%" -c:a copy out.mp4
If that works above, can you explain HOW you got the video frame
into the Windows clipboard using just Irfanview to do it?
--
This message ID <vhg973$1e2eg$***@dont-email.me> has the background details.
https://www.novabbs.com/computers/article-flat.php?id=82889&group=alt.comp.os.windows-10#82889
This message ID <vhg973$1e2eg$***@dont-email.me> has the background details.
https://www.novabbs.com/computers/article-flat.php?id=82889&group=alt.comp.os.windows-10#82889