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?
If that works above, can you explain HOW you got the video frameIn irvanview there is Options,Capture/Screenshot. Using this functions
into the Windows clipboard using just Irfanview to do it?
no idea what the rest of it is about.
Yes.
If that works above, can you explain HOW you got the video frameI am running Irfanview 4.7 64Bit.
into the Windows clipboard using just Irfanview to do it?
The only thing I see to extract a
frame from a video is "Options>extract all frames", when a video is
loaded into Irfanview. This separates the total video into frames and
places the images into a folder.
Are you using the native Irfanview functions are you using an addon to Irvanview that has this additional function?
When I want a frame of a video, I make the video full screen, pause the
video and do a screen copy. This place the frame in the clipboard,
where I can paste it to an irfanview.
In irvanview there is Options,Capture/Screenshot. Using this functions
you can capture the whole screen or the part you designate.
On 18/11/2024 21:13, Oliver wrote:
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"
<snipped the batch file example>
Answering the title of your post, no idea what the rest of it is
about. Yes.
On Mon, 18 Nov 2024 19:34:53 -0500, knuttle <[email protected]> wrote
If that works above, can you explain HOW you got the video frameI am running Irfanview 4.7 64Bit.
into the Windows clipboard using just Irfanview to do it?
Thanks for testing this out as it's frustrating for me that the commands exist in Irfanview to copy a video frame to the clipboard - but - the program using the clipboard doesn't see them in all of my tests to date.
I uninstalled whatever Irfanview I had and installed the latest Irfanview before I opened this thread, just in case it was a bug that was fixed.
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.)
On Mon, 18 Nov 2024 19:34:53 -0500, knuttle <[email protected]> wrote
If that works above, can you explain HOW you got the video frameI am running Irfanview 4.7 64Bit.
into the Windows clipboard using just Irfanview to do it?
Thanks for testing this out as it's frustrating for me that the commands exist in Irfanview to copy a video frame to the clipboard - but - the
program using the clipboard doesn't see them in all of my tests to date.
I uninstalled whatever Irfanview I had and installed the latest
Irfanview before I opened this thread, just in case it was a bug that
was fixed.
The latest I tested this on is Irfanview version 4.70 (32-bit). I didn't install the 64-bit but I already tested older 64-bit versions.
What's strange is Irfan Skiljan is no slouch when it comes to coding.
So why don't his save-to-clipboard commands work? Makes no sense to me.
The only thing I see to extract a frame from a video is
"Options>extract all frames", when a video is loaded into Irfanview.
This separates the total video into frames and places the images into
a folder.
Yes. I saw that. A discussion about that was in one of the forum threads
I had quoted in a post on another thread. One advantage of extract all
frames is it eliminates the need for another tool (like VLC) to extract
1 frame.
However I get an error when I try it & I haven't debugged why.
a. Rightclick on an MP4 file & "Open with" Irfanview
b. Leftclick once to freeze the video from automatic playing
c. Irfanview:Options > Extract all frames
Error: Couldn't get movie information! (DirectShow)
Googling for that error comes up with this thread. https://codecs.forumotion.net/t3244-k_lite-1509-using-irvfanview-can-t-capture-every-frame-from-mov-file
But it was so old that the recommendations don't apply to us.
Are you using the native Irfanview functions are you using an addon to
Irvanview that has this additional function?
Everything is the same as what everyone else is using.
1. I installed Irfanview 4.70 32-bit
2. Then I ran the full-plugin exe which installs the plugins.
It's what everyone does and has done with Irfanview since it came out. There's nothing special about my setup which is different from yours.
Did you get the same "Direct Show" error that I got with
Irfanview:Options > Extract all frames
When I want a frame of a video, I make the video full screen, pause
the video and do a screen copy. This place the frame in the
clipboard, where I can paste it to an irfanview.
But did you try it. I'm extremely familiar with screen copies. But when
I run the batch script, the copy isn't there.
Can you run this batch script and see if it's working for you?
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_view64.exe /clippaste
for %%k in (CustSelX CustSelY CustSelW CustSelH) do (
for /f "delims=." %%i in ('find "%%k=" ^<C:\path-to\Irfanview\i_view64.ini') do set %%i
)
echo ffmpeg -i in.mp4 -vf "crop=%CustSelX%:%CustSelY%:%CustSelW%:%CustSelH%" -c:a copy out.mp4
In irvanview there is Options,Capture/Screenshot. Using this functions
you can capture the whole screen or the part you designate.
I know this. But it doesn't work for me when I run the script above.
Does it work for you when you run that script above?
a. Rightclick on an MP4 file & "Open with" Irfanview
b. Leftclick once to freeze the video from automatic playing
b. Irfanview:Options > Capture/Screenshot c. In the "Capture Setup",
Select "Custom rectangle/region capture"
d. Also select "After the capture" "Copy captured image to clipboard"
e. Set the "Capture method:" "Hot key:" to "Ctrl + Left" (or whatever)
f. Also select "Also show image in main window" (but that's optional)
g. Then press the "Capture Setup" "Start" button
h. That "should" capture a screenshot to the clipboard
i. Now run the batch program
I can't get the steps above to work with the batch program.
Can you?
e old AviDemux made for a frame review tool.
However, you need to use a video format such old versions recognize,
which would be a workflow issue. The very newest AviDemux is more
fluent in movie formats, but it may not have the convenience of the
old ones (player controls might not be the same). I haven't played
with video in some time, so you'll have to experiment to pick a version.
Using FFMPEG to make a folder with 50,000 frames is how
I would normally do it. That doesn't make review
of the frames easy exactly, you lose your time stamp
info and whatever else. But if you're making a slide
show out of keyframes for some reason, it's one way
to get base materials for the job. Maybe AviDemux could work with
a folder of frames ?
You would think that a decent video editor, could also export a frame.
What I might not like about a video editor, is labeling the frames
in milliseconds, instead of frame number. Whereas AviDemux was frame
number. If you saw something you liked in AviDemux, you could reach
into your folder of 50,000 frames and fish the item out.
On 19/11/2024 03:02, Oliver wrote:
On Mon, 18 Nov 2024 19:34:53 -0500, knuttle <[email protected]>
wrote
If that works above, can you explain HOW you got the video frameI am running Irfanview 4.7 64Bit.
into the Windows clipboard using just Irfanview to do it?
Thanks for testing this out as it's frustrating for me that the
commands exist in Irfanview to copy a video frame to the clipboard -
but - the program using the clipboard doesn't see them in all of my
tests to date.
I uninstalled whatever Irfanview I had and installed the latest
Irfanview before I opened this thread, just in case it was a bug that
was fixed.
The latest I tested this on is Irfanview version 4.70 (32-bit). I
didn't install the 64-bit but I already tested older 64-bit versions.
What's strange is Irfan Skiljan is no slouch when it comes to coding.
So why don't his save-to-clipboard commands work? Makes no sense to me.
The only thing I see to extract a frame from a video is
"Options>extract all frames", when a video is loaded into Irfanview.
This separates the total video into frames and places the images into
a folder.
Yes. I saw that. A discussion about that was in one of the forum
threads I had quoted in a post on another thread. One advantage of
extract all frames is it eliminates the need for another tool (like
VLC) to extract 1 frame.
However I get an error when I try it & I haven't debugged why.
a. Rightclick on an MP4 file & "Open with" Irfanview
b. Leftclick once to freeze the video from automatic playing
c. Irfanview:Options > Extract all frames
Error: Couldn't get movie information! (DirectShow)
Googling for that error comes up with this thread.
https://codecs.forumotion.net/t3244-k_lite-1509-using-irvfanview-can-t-capture-every-frame-from-mov-file
But it was so old that the recommendations don't apply to us.
Are you using the native Irfanview functions are you using an addon
to Irvanview that has this additional function?
Everything is the same as what everyone else is using.
1. I installed Irfanview 4.70 32-bit
2. Then I ran the full-plugin exe which installs the plugins.
It's what everyone does and has done with Irfanview since it came out.
There's nothing special about my setup which is different from yours.
Did you get the same "Direct Show" error that I got with
Irfanview:Options > Extract all frames
When I want a frame of a video, I make the video full screen, pause
the video and do a screen copy. This place the frame in the
clipboard, where I can paste it to an irfanview.
But did you try it. I'm extremely familiar with screen copies. But
when I run the batch script, the copy isn't there.
Can you run this batch script and see if it's working for you?
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_view64.exe /clippaste
for %%k in (CustSelX CustSelY CustSelW CustSelH) do (
for /f "delims=." %%i in ('find "%%k="
^<C:\path-to\Irfanview\i_view64.ini') do set %%i
)
echo ffmpeg -i in.mp4 -vf
"crop=%CustSelX%:%CustSelY%:%CustSelW%:%CustSelH%" -c:a copy out.mp4
In irvanview there is Options,Capture/Screenshot. Using this
functions you can capture the whole screen or the part you designate.
I know this. But it doesn't work for me when I run the script above.
Does it work for you when you run that script above?
a. Rightclick on an MP4 file & "Open with" Irfanview
b. Leftclick once to freeze the video from automatic playing
b. Irfanview:Options > Capture/Screenshot c. In the "Capture Setup",
Select "Custom rectangle/region capture"
d. Also select "After the capture" "Copy captured image to clipboard"
e. Set the "Capture method:" "Hot key:" to "Ctrl + Left" (or whatever)
f. Also select "Also show image in main window" (but that's optional)
g. Then press the "Capture Setup" "Start" button
h. That "should" capture a screenshot to the clipboard
i. Now run the batch program
I can't get the steps above to work with the batch program.
Can you?
Unless I have totally misunderstood, you want to play a video in
Irfanview and save an individual frame to the clipboard. That simply
requires pressing Ctrl-C at the required point or, if preferred, pausing
the video first. I do that regularly and as I already said it works.
I cannot see why it needs your complicated procedure or the
complications in various replies. In particular, the task is totally different from using Irfanview:Options > Capture/Screenshot.
In irvanview there is Options,Capture/Screenshot. Using this functions
you can capture the whole screen or the part you designate.
My experience with i_view64.exe 4.60.0.0 and Windows 10 is that ctrl-c
during a video (running or paused) does not put an image on the
clipboard. With an image ctrl-c does put the image on the clipboard. But
that doesn't worry me too much as I use Irfanview for images and VLC for videos.
Unless I have totally misunderstood, you want to play a video in
Irfanview and save an individual frame to the clipboard. That simply
requires pressing Ctrl-C at the required point or, if preferred, pausing
the video first. I do that regularly and as I already said it works.
I cannot see why it needs your complicated procedure or the
complications in various replies. In particular, the task is totally different from using Irfanview:Options > Capture/Screenshot.
Here Irfanview can't play mp4 videos, so I searched for an old
avi video.
I think what you want is:
When playing the video press <CTRL>-C and then <CTRL>-V, then
the video is replaced by the current video frame picture
where you then can select the crop region.
Modify the batch so Irfanview is started with the video instead
of the clipboard picture, then select the proper time position
in the video, press <CTRL>-C and then <CTRL>-V, use the left
mouse button to select the crop region, press <SHIFT>-C and
then "Save values and exit" and close IrfanView. The batch
then executes the ffmpeg crop command.
On Wed, 20 Nov 2024 13:35:49 +1300, malone <[email protected]> wrote
My experience with i_view64.exe 4.60.0.0 and Windows 10 is that ctrl-c
during a video (running or paused) does not put an image on the
clipboard. With an image ctrl-c does put the image on the clipboard.
But that doesn't worry me too much as I use Irfanview for images and
VLC for videos.
Thank you. You are the first person who understands the problem set.
If all the clipboard menus were working to put the video frame into the clipboard, I wouldn't have bothered to ask the question in the first place.
The problem requires a Windows or Irfanview expert to solve.
a. Load an MP4 into Irfanview (it will start playing)
b. Control+c
c. Control+v
What you see is not what you expect to see if you just guess.
You have to try it to see what you get - not what you think you'll get.
Since I've tried every Irfanview menu, I resorted to asking for help here.
Can YOU get the Irfanview copy video frame to the clipboard menus to work?
I can't.
Well, MikeS says:-
"That simply requires pressing Ctrl-C at the required point or, if
preferred, pausing the video first. I do that regularly and as I already
said it works."
Sorry, I haven't been following this thread diligently but I wonder what operating system / version of Irfanview he's using? It doesn't work for
my configuration...
On Tue, 19 Nov 2024 10:34:35 +0100, Herbert Kleebauer <[email protected]>
wrote
Here Irfanview can't play mp4 videos, so I searched for an old
avi video.
Hmmm... I think you might not have all the plugins installed.
Whatever version I had a few days ago played videos, as does the latest version I installed yesterday (version 4.70) which plays MP4 videos like
I think what you want is:
When playing the video press <CTRL>-C and then <CTRL>-V, then
the video is replaced by the current video frame picture
where you then can select the crop region.
This does EXACTLY what I've been seeing, which is NOT what you (or anyone) "thinks" it does. It does not do what we all think it would do.
On Tue, 19 Nov 2024 22:05:19 +0000, MikeS <[email protected]> wrote
Unless I have totally misunderstood, you want to play a video in
Irfanview and save an individual frame to the clipboard. That simply
requires pressing Ctrl-C at the required point or, if preferred,
pausing the video first. I do that regularly and as I already said it
works.
I cannot see why it needs your complicated procedure or the
complications in various replies. In particular, the task is totally
different from using Irfanview:Options > Capture/Screenshot.
I do very much appreciate the helpful advice, but there's one thing missing...
Everyone is assuming I didn't spend hours and hours (and hours) on this *before* I asked the question - and - as a result - everyone is not even trying it first to find out that what they "think" happens, isn't what happens. They think it's something simple. Something obvious.
Something I missed.
And it might be... but it's NOT that I didn't try every menu in Irfanview.
I wouldn't have asked the question if the answer were that simple & easy.
Nobody can answer the question by assuming how it works.
Nor by guessing.
They have to try it to see what I'm experiencing.
a. Load an MP4 into Irfanview (it will start playing)
b. Control+c
c. Control+v
What do you see?
What I'm doing with Herberts batch file is more complicated than that, of course, but if the image doesn't make it into the clipboard, it doesn't matter.
Try it.
What do you see?
a. Load an MP4 into Irfanview (it will start playing)As you say it did NOT work. I have no idea why BUT your conclusion:
b. Control+c
c. Control+v
the image doesn't make it into the clipboardis wrong because I could paste the image into another program such as Paint.
On Wed, 20 Nov 2024 19:59:38 +1300, malone <[email protected]> wrote
Well, MikeS says:-
"That simply requires pressing Ctrl-C at the required point or, if
preferred, pausing the video first. I do that regularly and as I
already said it works."
Sorry, I haven't been following this thread diligently but I wonder
what operating system / version of Irfanview he's using? It doesn't
work for my configuration...
Yeah. I know. MikeS also said "yes" when I asked can you get it to work, which means he never tried it because nobody can get it to work yet.
It may very well be that it doesn't work - but then why would they put
those menus in Irfanview - which - let's be clear - is a well respected
tool - for when playing video.
It could be they simply don't work on Windows 10 for videos though.
Or it could be there's a trick in 32-bit Irfanview 4.70 we don't know yet.
We don't know the answer yet - which is - after all - why the question was asked of this newsgroup (of experts) in the first place.
If it was as easy as MikeS implies it is - the question wouldn't have
needed to be asked in the first place.
On 20/11/2024 09:28, Oliver wrote:
On Wed, 20 Nov 2024 19:59:38 +1300, malone <[email protected]> wrote
Well, MikeS says:-
"That simply requires pressing Ctrl-C at the required point or, if
preferred, pausing the video first. I do that regularly and as I
already said it works."
Sorry, I haven't been following this thread diligently but I wonder
what operating system / version of Irfanview he's using? It doesn't
work for my configuration...
Yeah. I know. MikeS also said "yes" when I asked can you get it to work,
which means he never tried it because nobody can get it to work yet.
It may very well be that it doesn't work - but then why would they put
those menus in Irfanview - which - let's be clear - is a well respected
tool - for when playing video.
It could be they simply don't work on Windows 10 for videos though.
Or it could be there's a trick in 32-bit Irfanview 4.70 we don't know
yet.
We don't know the answer yet - which is - after all - why the question
was
asked of this newsgroup (of experts) in the first place.
If it was as easy as MikeS implies it is - the question wouldn't have
needed to be asked in the first place.
I am using Ver 4.67 (64 bit) on Windows 11. There is no need for me to
imply anything because using Ctl-C on a video simply works and has done
for as long as I can remember. If Irfanview can play the video it will
save frames as still images for any video format I have tried. Offhand
those include ts, tts, avi, mp4, mkv, wmv, flv.
Have you considered your problems may be related to your video files
rather than Irfanview and tried some tests?
Have you considered your problems may be related to your video files
rather than Irfanview and tried some tests?
My previous assessment when ctrl-c DIDN'T put an image on the clipboard
was with an .mp4 video file. I've just tried running an .avi video file
in Irfanview and ctrl-c DOES put an image on the clipboard. So, indeed,
the problem seems to be associated with some feature of the video format....
On Thu, 21 Nov 2024 07:52:42 +1300, malone <[email protected]> wrote
Which results in the following ffmpeg conversion command:
ffmpeg -i file.mp4 -vcodec copy -acodec copy file.avi
Which results in the following ffmpeg conversion command:
ffmpeg -i file.mp4 -vcodec copy -acodec copy file.avi
That just changes the container format from mp4 to avi without
re-encoding the video (-vcodec copy). That's like converting a
zip into a rar archive without changing the content. I suppose
the different behavior for mp4/avi is, that an avi most likely
is an older video which uses an older video codec. Re-encode
your video with the old DIVX codec but keep the mp4 format and
test it with IrfanView.
On Thu, 21 Nov 2024 08:51:40 +0100, Herbert Kleebauer <[email protected]> wrote
Which results in the following ffmpeg conversion command:
ffmpeg -i file.mp4 -vcodec copy -acodec copy file.avi
That just changes the container format from mp4 to avi without
re-encoding the video (-vcodec copy). That's like converting a
zip into a rar archive without changing the content. I suppose
the different behavior for mp4/avi is, that an avi most likely
is an older video which uses an older video codec. Re-encode
your video with the old DIVX codec but keep the mp4 format and
test it with IrfanView.
Thanks for explaining why it still did not work for me even after
I ran that conversion of an MP4 to an AVI (which is why I had not
responded until I saw your post explaining why it still failed).
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 714 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 140:26:38 |
| Calls: | 12,087 |
| Files: | 14,998 |
| Messages: | 6,517,424 |