Lister: Save frame from video

Here you can propose new features, make suggestions etc.

Moderators: petermad, Stefan2, white, Hacker

Post Reply
User avatar
funkymonk
Power Member
Power Member
Posts: 502
Joined: 2013-12-04, 09:56 UTC

Lister: Save frame from video

Post by *funkymonk »

Since the integrated video player supports framewise stepping, it would be great to have an option to save the current still image to a file.
My suggestion is to put a corresponding function into the context menu: "Save frame to file '<filename>'".
The <filename> should be autogenerated as <videofilename_without_extension>_<framenumber>.jpg

Even better, the <framenumber> should be 0-padded, so the character length of the value matches the required length for the last frame.

Assuming we are at frame 200 (out of 20.000 frames) of a file video.mpg.
Then, the frame would be saved to "video_00200.jpg"

---

Of course, a second option "Save frame to file..." would also be nice, that asks for a file name first (with the autogenerated filename as a preset suggestion).
Fla$her
Power Member
Power Member
Posts: 3425
Joined: 2020-01-18, 04:03 UTC

Re: Lister: Save frame from video

Post by *Fla$her »

Support++
Overquoting is evil! 👎
User avatar
funkymonk
Power Member
Power Member
Posts: 502
Joined: 2013-12-04, 09:56 UTC

Re: Lister: Save frame from video

Post by *funkymonk »

Is there maybe any opinion on this feature request from the author or the community?
(I once more had to extract single frames from several videos and would highly appreciate such a function. Others as well?)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51909
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Lister: Save frame from video

Post by *ghisler(Author) »

It would indeed be nice to have, but when I checked this when getting the suggestion I couldn't find any DirectX functions to actually get a frame from a video. I don't know how other players do this, maybe they insert an extra custom made filter to the filter graph to access the video data. But even then it may be in a strange format like YUV not suited for saving.
Author of Total Commander
https://www.ghisler.com
User avatar
funkymonk
Power Member
Power Member
Posts: 502
Joined: 2013-12-04, 09:56 UTC

Re: Lister: Save frame from video

Post by *funkymonk »

Ok. Anyway, many thanks for taking the time to check the libraries for such a feature (as well as for video rotation in another suggestion). Writing a filter for it would probably require too much effort -- after all, TC is a file manager (with great additional features) and not a video player...

Maybe in the future... :D
Fla$her
Power Member
Power Member
Posts: 3425
Joined: 2020-01-18, 04:03 UTC

Re: Lister: Save frame from video

Post by *Fla$her »

2ghisler(Author)
What about this request? Can you handle it?
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51909
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Lister: Save frame from video

Post by *ghisler(Author) »

Sorry, I didn't find a good way to integrate this option into the user interface.
Author of Total Commander
https://www.ghisler.com
User avatar
vdijken
Member
Member
Posts: 181
Joined: 2016-07-30, 14:07 UTC
Location: The Netherlands

Re: Lister: Save frame from video

Post by *vdijken »

I have Gadwin PrintScreen installed. One push on the PrintScrn button and you have your screen shot.
Fla$her
Power Member
Power Member
Posts: 3425
Joined: 2020-01-18, 04:03 UTC

Re: Lister: Save frame from video

Post by *Fla$her »

ghisler(Author) wrote: 2022-06-10, 07:31 UTC It would indeed be nice to have, but ...
Why not use ffmpeg for this? In the Lister section, there will be a key with the ffmpeg path. First it is checked, then the one in %PATH%, so that the desired option appears in the menu.
When executed, the following command will run hidden:
ffmpeg.exe -loglevel -8 -i "<path_to_video_file>" -vf "select=eq(n\,<frame number>)" -vcodec mjpeg -q:v 1 -vframes 1 "<base_filename>_frame-<frame number>.jpg"
Overquoting is evil! 👎
Post Reply