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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Help] Tool: Taking an Image and Searching Every Frame within a Video for that Image?
#1
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.
Reply
Thanks given by:
#2
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.
Reply
Thanks given by:
#3
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
Reply
Thanks given by:
#4
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.
Reply
Thanks given by:
#5
(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.
Reply
Thanks given by:


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

Forum Jump:


Users browsing this thread: 1 Guest(s)