• Re: Can you get the Irfanview "copy video frame to clipboard" to work?

    From Oliver@3:633/280.2 to All on Wed Nov 20 14:27:56 2024
    Subject: Re: Can you get the Irfanview "copy video frame to clipboard" to work?

    On Mon, 18 Nov 2024 19:38:51 -0500, knuttle <keith_nuttle@yahoo.com> wrote

    In irvanview there is Options,Capture/Screenshot. Using this functions
    you can capture the whole screen or the part you designate.

    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 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?

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (3:633/280.2@fidonet)
  • From Oliver@3:633/280.2 to All on Wed Nov 20 14:29:53 2024
    Subject: Re: Can you get the Irfanview "copy video frame to clipboard" to work?

    On Tue, 19 Nov 2024 22:05:19 +0000, MikeS <mikes@invalid.net> 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?

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (3:633/280.2@fidonet)
  • From Oliver@3:633/280.2 to All on Wed Nov 20 14:39:10 2024
    Subject: Re: Can you get the Irfanview "copy video frame to clipboard" to work?

    On Wed, 20 Nov 2024 13:35:49 +1300, malone <malone@nospam.net.nz> 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.

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (3:633/280.2@fidonet)
  • From Oliver@3:633/280.2 to All on Wed Nov 20 14:25:56 2024
    Subject: Re: Can you get the Irfanview "copy video frame to clipboard" to work?

    On Tue, 19 Nov 2024 10:34:35 +0100, Herbert Kleebauer <klee@unibwm.de>
    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
    your white/black cat on the tile roof (which came from an MOV it seems).

    Anyway, if you want to install Irfanview plugins, here's how to install Irfanview using the simplest method (which is self-installing of plugins). https://www.fosshub.com/IrfanView.html

    1. Download & install Irfanview
    2. Download & doubleclick on the plugin installer
    3. That installs *all* the plugins (well, almost all of them anyway)

    Since I don't guess at anything but I try everything I suggest, here's the latest 32-bit installer which I downloaded just now for you to be sure. https://www.fosshub.com/IrfanView.html#
    (they give me the download link but it's unique to each person & expires)
    Name: iview470_setup.exe
    Size: 3454992 bytes (3374 KiB)
    SHA256: 3C7D575FEB92719934F6C8D4CA31D0DC235A91705EC24D1F8220204DA8E55729

    What you need next is "IrfanView All Plugins - 32-bit Windows Installer". (again, they give me a link that I can't give to you as it won't work)
    Name: iview470_plugins_setup.exe
    Size: 22557712 bytes (21 MiB)
    SHA256: FBAA225688D45217A809AC2695EBEA2024214B3443BC4D2AF90AA1A06C4CF1C2

    If you prefer, especially since you use the D: drive for Irfanview, they
    have portable zip archives where you have to move the files into the
    Irfanview plugins folder.

    But lack of plugins is maybe why your Irfanview can't play video I suspect.


    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.

    The control+c does nothing apparent, as the video keeps playing, and
    nothing happens but the control+v is what we'd expect to be pasted but what
    is pasted is always the last thing in the clipboard *before* you pressed
    that control+c. This is exactly what I've been seeing for days.

    If someone else can try it, they will confirm or contradict what I'm
    seeing.

    a. Load an MP4 into Irfanview
    b. Control+c
    c. Control+v

    What do you see?
    What I see is a new image is pasted of whatever was in the clipboard prior
    to the control+c (which is most often pure text pasted as an image).

    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.

    I agree with you that if the copy video frame into clipboard worked in Irfanview, then EVERYTHING ELSE is easy. Just like you'd assume.

    However... I wouldn't have asked the question if the answer were that 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?

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (3:633/280.2@fidonet)
  • From malone@3:633/280.2 to All on Wed Nov 20 17:59:38 2024
    Subject: Re: Can you get the Irfanview "copy video frame to clipboard" to
    work?
    Reply-To: malone_@nospam.net.nz

    On Wed-20-Nov-2024 4:39 pm, Oliver wrote:
    On Wed, 20 Nov 2024 13:35:49 +1300, malone <malone@nospam.net.nz> 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...


    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (3:633/280.2@fidonet)
  • From Oliver@3:633/280.2 to All on Wed Nov 20 20:28:13 2024
    Subject: Re: Can you get the Irfanview "copy video frame to clipboard" to work?

    On Wed, 20 Nov 2024 19:59:38 +1300, malone <malone@nospam.net.nz> 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.

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (3:633/280.2@fidonet)
  • From Herbert Kleebauer@3:633/280.2 to All on Wed Nov 20 20:44:59 2024
    Subject: Re: Can you get the Irfanview "copy video frame to clipboard" to
    work?

    On 20.11.2024 04:25, Oliver wrote:
    On Tue, 19 Nov 2024 10:34:35 +0100, Herbert Kleebauer <klee@unibwm.de>
    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 use version 4.44 - 32 bit. (I only install a newer version of a program
    if I need something which isn't supported by the old version). When playing
    an old avi video, a <CTRl>-C <CTRL>-V replaces the playing video by the picture of the current frame.

    But Irfanview is a picture viewer and not a video player, I would never
    misuse it for that purpose. PotPlayer is a perfect video player.


    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.

    Here it does exactly this. Only tested for an avi video (divx5.0):

    [Video-Informationen]
    Video-Codec: DX50 - Eingebauter FFmpeg-Decoder(mpeg4)
    Eingabetyp: DX50(24 bits)
    EingabegrӇe: 640 x 480(1.33:1)
    Ausgabetyp: YV12(12 bits)
    AusgabegrӇe: 640 x 480(1.33:1)
    Framerate:29.97
    BitRate: 1497.92 kbps

    [Audio-Informationen]
    Audio-Codec: MPEG Audio Layer 3(0x55) - Eingebauter FFmpeg-Decoder(mp3float) Samplerate: 48000 ->48000 Samples/Sek
    Bitrate: 0 ->16 Bit/Sample
    Kan„le: 2 ->2 Kan„le
    Bitrate: 128 kbps


    With the below batch and PotPlayer as default video player, the video
    is opened with PotPlayer, then press <CTRL>-C and close the player.
    Then IrfanView is opened with the selected video frame. Select
    the crop region, press <SHIFT>-C and then "Save values and exit"
    and close IrfanView. The batch then executes the ffmpeg crop command
    (remove the "echo" in the last line if all is ok).

    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    @echo off
    start /w in.mp4
    start /w "" D:\Programme\IrfanView\i_view32.exe /clippaste

    for %%k in (CustSelX CustSelY CustSelW CustSelH) do (
    for /f "delims=." %%i in ('find "%%k=" ^<D:\Programme\IrfanView\i_view32.ini') do set %%i
    )

    echo ffmpeg -i in.mp4 -vf "crop=%CustSelX%:%CustSelY%:%CustSelW%:%CustSelH%" -c:a copy out.mp4
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::





    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (3:633/280.2@fidonet)
  • From MikeS@3:633/280.2 to All on Thu Nov 21 03:26:15 2024
    Subject: Re: Can you get the Irfanview "copy video frame to clipboard" to
    work?

    On 20/11/2024 09:28, Oliver wrote:
    On Wed, 20 Nov 2024 19:59:38 +1300, malone <malone@nospam.net.nz> 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?


    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (3:633/280.2@fidonet)
  • From MikeS@3:633/280.2 to All on Thu Nov 21 04:13:24 2024
    Subject: Re: Can you get the Irfanview "copy video frame to clipboard" to
    work?

    On 20/11/2024 03:29, Oliver wrote:
    On Tue, 19 Nov 2024 22:05:19 +0000, MikeS <mikes@invalid.net> 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?

    I tried what you are experiencing with Ver 4.67 (64 bit) on Windows 11:
    a. Load an MP4 into Irfanview (it will start playing)
    b. Control+c
    c. Control+v
    As you say it did NOT work. I have no idea why BUT your conclusion:
    the image doesn't make it into the clipboard
    is wrong because I could paste the image into another program such as Paint.

    I also have Ver 4.60 (32 bit) on the same machine and that is what I was
    using until recently. Repeating the same test on the same MP4 file
    worked as you want and I could immediately paste the still image back
    into Irfanview 4.60. I could not paste the same image from the clipboard
    into 4.67 but I can save a frame in 4.67 and paste it into 4.60.



    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (3:633/280.2@fidonet)
  • From malone@3:633/280.2 to All on Thu Nov 21 05:52:42 2024
    Subject: Re: Can you get the Irfanview "copy video frame to clipboard" to
    work?
    Reply-To: malone_@nospam.net.nz

    On Thu-21-Nov-2024 5:26 am, MikeS wrote:
    On 20/11/2024 09:28, Oliver wrote:
    On Wed, 20 Nov 2024 19:59:38 +1300, malone <malone@nospam.net.nz> 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?


    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....

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (3:633/280.2@fidonet)
  • From Oliver@3:633/280.2 to All on Thu Nov 21 15:43:09 2024
    Subject: Re: Can you get the Irfanview "copy video frame to clipboard" to work?

    On Thu, 21 Nov 2024 07:52:42 +1300, malone <malone@nospam.net.nz> wrote

    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....

    Thanks for the advice as I have to admit that it never occurred to me to convert the MP4 to an AVI until it was stated to do so in this thread.

    Googling for how best to convert a phone MP4 to an AVI I find https://superuser.com/questions/1581329/how-to-convert-mp4-to-avi

    Which results in the following ffmpeg conversion command:
    ffmpeg -i file.mp4 -vcodec copy -acodec copy file.avi

    When I open that resulting AVI in Irfanview, it doesn't show the movie.
    But if I open the AVI in VLC, it does - so I need to debug that first.

    But it appears the solution to the conundrum has (likely) been solved. Irfanview can't "control+c" in an MP4 file but it can with an AVI.

    That's not something that I would have guessed, so I appreciate the help in finding it. I'll report back when I solve why VLC reads the resulting AVI
    from ffmpeg but Irfanview does not (Irfanview just shows a dialog box).

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (3:633/280.2@fidonet)
  • From Herbert Kleebauer@3:633/280.2 to All on Thu Nov 21 18:51:40 2024
    Subject: Re: Can you get the Irfanview "copy video frame to clipboard" to
    work?

    On 21.11.2024 05:43, Oliver wrote:
    On Thu, 21 Nov 2024 07:52:42 +1300, malone <malone@nospam.net.nz> 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.




    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (3:633/280.2@fidonet)
  • From Oliver@3:633/280.2 to All on Tue Nov 26 11:38:59 2024
    Subject: Re: Can you get the Irfanview "copy video frame to clipboard" to work?

    On Thu, 21 Nov 2024 08:51:40 +0100, Herbert Kleebauer <klee@unibwm.de> 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).

    I was embarrassed that I still could not get it to work.

    Looking it up <https://shotstack.io/learn/how-to-use-ffmpeg/>
    -i input.mp4: Specifies the input MP4 file.
    -c:v libxvid: Sets the video codec to "libxvid" which is the FFmpeg
    identifier for the DIVX codec.
    -c:a copy: Copies the audio stream without re-encoding it,
    preserving the original audio quality.
    output.mp4: Sets the output filename as a new MP4 file.

    This maybe "should" have worked but Irfanview won't copy to the clipboard.
    ffmpeg -i input.mp4 -c:v libxvid -c:a copy output.mp4

    If I open that output.mp4 with the latest Irfanview32, and then I
    control+C and then control+V into another Irfanview session, I get
    the old clipboard. Same as rightclicking while it's playing
    in Irfanview and I select "Copy current frame to clipboard".

    So there must be some secret format that Irfanview works with
    that can copy a frame to the clipboard - but my Samsung phone
    MP4 file isn't in that secret format yet.

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (3:633/280.2@fidonet)
  • From Herbert Kleebauer@3:633/280.2 to All on Wed Nov 27 03:15:13 2024
    Subject: Re: Can you get the Irfanview "copy video frame to clipboard" to
    work?

    On 26.11.2024 01:38, Oliver wrote:
    On Thu, 21 Nov 2024 08:51:40 +0100, Herbert Kleebauer <klee@unibwm.de> 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).

    Did some testing. Here a small mp4 video (1.7 Mbyte):

    https://onlib.de/temp/test.mp4
    Video-Codec: AVC1 - Eingebauter FFmpeg-Decoder(h264, Thread Frame)

    Here IrfanView can't play it, so I can't test <CTRL>-C, <CTRL>-V


    Converted to avi with this command: ffmpeg.exe -i test.mp4 test.avi

    https://onlib.de/temp/test.avi (11.8 MByte)
    Video-Codec: FMP4 - Eingebauter FFmpeg-Decoder(mpeg4)

    This one IrfanView can play and <CTRL>-C, <CTRL>-V works.

    Still don't know if the container format mp4/avi or the
    codec AVC1/mpeg4 is the problem. But open test.avi with
    your IrfanView. If <CTRL>-C, <CTRL>-V doesn't work then
    there is an other problem with your IrfanView.








    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (3:633/280.2@fidonet)
  • From Oliver@3:633/280.2 to All on Mon Dec 2 17:25:00 2024
    Subject: Re: Can you get the Irfanview "copy video frame to clipboard" to work?

    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://i.postimg.cc/tJtCK72m/Clipboard-12-02-2024-01.jpg

    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/software/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

    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)