Hello guest, if you like this forum, why don't you register? https://forum.fanres.com/member.php?action=register (December 14, 2021) x


[Help] 

Tool: Taking an Image and Searching Every Frame within a Video for that Image?

4 Replies, 1509 Views

I have some screenshots of frames from a movie that I haven’t seen much and I’m trying to find these frames in an MKV copy of the entire film without watching the film. Supposedly, ‘ffmpeg’ has a feature where it can do that—take a jpeg or png image file and search every frame from a video to find that image--these command-lines I found in the StackOverflow pages...
Code:
ffmpeg.exe  -i "1.mkv" -r 1 -loop 1 -i 1.jpg -an -filter_complex "blend=difference:shortest=1,blackframe=99:32" -f null -
Code:
ffmpeg.exe  -i "1.mkv" -r 1 -loop 1 -i 1.jpg -an -filter_complex "blend=difference:shortest=1,blackframe=99:32" -f null - 2>&1 | grep blackframe | sed 's/.*frame\:\(.*\)/\1/'
Code:
ffmpeg.exe -i video.mp4 -loop 1 -i image.jpg -an -filter_complex "blend=difference,blackframe=99:32" -f null -

...are not working for me. Is there an effective command-line that would work?

Is there another software that would do that job for me?

I know that such a tool would be useful for color-matching projects where someone is collecting target frames from a Blu Ray from a collection of reference frames from HDTV rips, DVD, and LDs with desired color.  Such a tool would be good for someone who doesn't want to get too involved with a movie, but still enjoys watching it.
(This post was last modified: 2021-05-30, 08:33 PM by alexp120.)
I'm pretty sure avisynth could do that; try forum.doom9.org and, if you can't find a script already made, ask for help, there are real gurus there!

P.S. FYI I always (well, almost) save reference frames using the best source frame number.
Sadly my projects are lost due to an HDD crash... Sad
Fundamental Collection | Vimeo channel | My blog
Do you mean look for a frame that matches an image? Or do you have a picture of one thing and you want to find the frame which has that element in it? Cause one of those is doesn't sound too difficult, but the other one is really the secret behind self-driving cars
I suppose if you exported every single frame of the movie to a folder you could use a tool like VisiPics to search. http://www.visipics.info/index.php?title=Main_Page
At least that's the first thing that came to mind.
(This post was last modified: 2021-06-01, 04:01 AM by Doctor M.)
(2021-06-01, 03:14 AM)apzlsoxk Wrote: Do you mean look for a frame that matches an image? Or do you have a picture of one thing and you want to find the frame which has that element in it? Cause one of those is doesn't sound too difficult, but the other one is really the secret behind self-driving cars

"Do you mean look for a frame that matches an image?"
I mean to have a software take an image--a screenshot of a frame from a movie--and search every frame from that same movie to find that specific frame. In the end, it should give me a frame number where that frame is located in that movie.


"do you have a picture of one thing and you want to find the frame which has that element in it"
definitely not that.
(This post was last modified: 2021-06-01, 12:53 PM by alexp120.)

Possibly Related Threads…
Thread Author Replies Views Last Post
  Streaming: Video/audio quality (bitrate) spoRv 2 477 2021-12-21, 08:34 PM
Last Post: spoRv
  Another color matching tool - Match color.io alleycat 1 548 2021-09-09, 07:20 AM
Last Post: TomArrow
  ColorMatch 3D (new colormatching tool) TomArrow 18 4,036 2021-01-25, 07:20 AM
Last Post: TomArrow
  Green flashing in my video lionmane 3 1,222 2020-12-16, 11:06 PM
Last Post: lionmane
  Cinegy Cinescore - free benchmark for video production poita 54 27,128 2020-05-12, 01:49 PM
Last Post: Sabbelbacke
  'Visiting Criterion Collection' Video/Interview zoidberg 2 2,165 2020-02-20, 01:20 AM
Last Post: Chewtobacca
  [Idea] "the ultimate video matching/deduplication solution" spoRv 0 1,104 2019-08-20, 12:03 PM
Last Post: spoRv
  Don't capture interlaced video in 4:2:0 TomArrow 9 4,009 2019-04-22, 11:49 PM
Last Post: spoRv
  Inserting Video into a MKV PDB 5 2,669 2019-01-28, 12:36 AM
Last Post: PDB
  Searching for a tool CaveDoctor 3 1,981 2019-01-16, 02:04 AM
Last Post: spoRv



Users browsing this thread: 1 Guest(s)