How do I extract the best frame (or frames) by scene in a single episode or movie? What is the best auto-extractor for it?
+ Reply to Thread
Results 1 to 24 of 24
-
-
What is the criteria that identifies 'best frame (or frames)' ?
users currently on my ignore list: deadrats, Stears555, marcorocchini -
selectevery(48) or selectevery(72). Use imagewriter() to drop the frames to a folder. Use your eyes to determine which are "best". Profit.
-
-
-
How do I use them with AVISynth? Do I need VirtualDub2 as well?
-
What is best for downloading videos, which one is most compatible with sites like any site I enter will download the video between these options video downloader or download manager?
-
-
My question is which of these mechanisms is the most compatible with websites, whether it is a video downloader or download manager
-
-
-
-
The problem is that "diverse and representative of the video" is too vague to be useful, it seems like something that would need to understand the actual content, not just the representation in frames.
Extracting the frames of the video and then manually selecting the ones that are "diverse and representative of the video" is probably the only way.users currently on my ignore list: deadrats, Stears555, marcorocchini -
Last edited by Hoser Rob; 13th Nov 2023 at 11:19. Reason: typos as usual
-
For constant interval of the 5 sec (you can modify it freely - depends on your needs)
Code:@setlocal @set time=5 @set filename=%1 @ffmpeg.exe -y -hide_banner -v 32 -stats -skip_frame nokey -i "%filename%" -an -sn -dn -vf "select='isnan(prev_selected_t)+gte(t-prev_selected_t\,%tim%)',zscale=f=spline36:r=full:w=320:h=-2,setpts=PTS/24" -vsync 0 -q:v 4 "%~n1_t%tim%.apng" @endlocal
This code is for scene detection - as above - you can modify threshold for scene detection sensitivity:
Code:@setlocal @set sens=0.25 @set filename=%1 @ffmpeg.exe -y -hide_banner -v 32 -stats -skip_frame nokey -i "%filename%" -an -sn -dn -vf "zscale=f=spline36:r=full:w=320:h=-2,select='gt(scene\,%sens%)',setpts=PTS/24" -vsync 0 -q:v 4 "%~n1_scene.apng" @endlocal
Code:@setlocal @set time=5 @set sens=0.25 @set filename=%1 @ffmpeg.exe -y -hide_banner -v 32 -stats -skip_frame nokey -i "%filename%" -an -sn -dn -vf "select='isnan(prev_selected_t)+gte(t-prev_selected_t\,%time%)',zscale=f=spline36:r=full:w=320:h=-2,select='gt(scene\,%sens%)',setpts=PTS/24" -vsync 0 -q:v 4 "%~n1_t%time%_sens.apng" @endlocal
-
It works OK, it may not work as you expect but scene detection means that change in APL (average picture luminance level) trig frame selection - this is not content based detection - for this you need different approach with for example machine learning algorithms.
Perhaps this will help to get what is scene detection in ffmpeg https://blog.gdeltproject.org/using-ffmpegs-scene-detection-to-generate-a-visual-shot-...levision-news/ -
The identification of the "best frame" or "best frames" can vary depending on the context. Here are several criteria that are commonly considered when evaluating or choosing the best frame:
Aesthetic Appeal:
Visual Harmony: The frame should complement and enhance the subject or content it contains, contributing to an overall aesthetically pleasing composition.
Style and Design: Consider the frame's design, material, and style in relation to the content it surrounds.
Quality and Durability:
Materials: Evaluate the quality of materials used in the frame's construction. High-quality materials often contribute to a longer-lasting and more durable frame.
Craftsmanship: Assess the level of craftsmanship in the frame's construction, looking for well-made joints, corners, and finishes.
Size and Proportion:
Appropriateness: The size of the frame should be appropriate for the size of the artwork or content. It should not overwhelm or understate the subject.
Proportion: Consider the proportions of the frame in relation to the content and the space where it will be displayed.
Context and Environment:
Setting: Frames should be chosen based on the environment in which they will be placed. A frame that suits a formal setting might not be suitable for a more casual or contemporary space.
Lighting Conditions: Consider how the frame interacts with different lighting conditions in the display area.
Conservation and Protection:
Preservation: Frames should be selected to protect the artwork or content from environmental factors such as UV light, dust, and humidity.
Conservation Materials: Opt for frames made with materials that are conservation-grade to ensure the long-term preservation of the content.
Budget and Value:
Cost: Evaluate the cost of the frame in relation to your budget. Consider the long-term value and durability rather than just the initial expense.
Return on Investment: In some cases, a higher-quality frame may enhance the perceived value of the content it holds.
Personal Preference:
Subjective Appeal: Personal taste plays a significant role. The "best" frame is ultimately the one that resonates with the individual's personal preferences and style.
Cultural or Historical Relevance:
Contextual Significance: In some cases, the best frame might be one that holds cultural or historical significance, complementing the content's context.
When choosing a frame, it's often a combination of these criteria that leads to the selection of the best frame for a particular piece or context. It's essential to consider the specific requirements of the artwork or content and the preferences of the individual making the choice. -
As soon as there is ai involved, there will be a model bias, later censorship, indoctrination, regulation for a correct person thumbnail proportional exposure, just wait for it
.
Snaps within some interval, stack those thumbnails together and our brain will generate a story from that "storyboard" whatever there is. -
Similar Threads
-
Help extract L1 from Realme 5
By axnspain in forum Video Streaming DownloadingReplies: 7Last Post: 2nd Oct 2022, 04:16 -
ffmpeg to extract jpgs from 30fps .AVI (MJPG) gives < 30 frames per second
By wrawlind in forum Video ConversionReplies: 4Last Post: 4th May 2022, 11:35 -
Extract frames as uncompressed image files
By Fern99 in forum Newbie / General discussionsReplies: 4Last Post: 22nd Jul 2021, 10:42 -
Avisynth+ and grabbing x frames every y frames? I'd like to sample a clip
By Msuix in forum EditingReplies: 2Last Post: 11th May 2021, 15:41 -
Patch encoder to force P-Frames to only reference I-Frames
By zombiitv in forum ProgrammingReplies: 1Last Post: 9th Sep 2019, 21:51