Hello Dear forum users. I have a question. Is it possible to find marks on the video. I know that there are marks in several places on the video with the length of one frame of the video. I know how the mark looks like, it is a set of a few numbers and I know them. Is it possible to find them, any program or script.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 18 of 18
Thread
-
-
Do they ever change location ?
Do they ever change appearance /color ? Opaque or semi-transparent ?
How large ? -
The label can be in any place, the color can also be any color. The video marks 0:02:36.05
-
AviSynth's RemoveDirt() or RemoveDirtMC() can remove that particular mark. Here's the same frame after RemoveDirt(5,false)
[Attachment 68684 - Click to enlarge]
If you're only looking at finding them (for example printing a list of frames that have a mark) one can do that too. It may not be 100 percent accurate though (some false positives and some false negatives). And it may not work if the mark appears right over a moving part of the picture (the man's hands, for example).Last edited by jagabo; 14th Jan 2023 at 12:56.
-
I need a way to find these tags . Here is the tags I was looking for looking at each frame to show which tags I need to find.
Last edited by bosyk; 15th Jan 2023 at 07:05.
-
-
Here's an AviSynth+ script that finds the frame in the sample video:
Code:source = LSMASHVideoSource("tags.mp4") # mark on frame 4685 source = source.Blur(1.0) RemoveDirtMC(source, 10, false) mt_lutxy(source, last, mt_polish("abs(x-y)"), chroma="-128") ColorYUV(gain_y=1000, off_y=-100) WriteFileIf(last, "match.txt", "AverageLuma>0.010", "current_frame", """ " : " """, "AverageLuma", append=false) ScriptClip(last, "Subtitle(String(AverageLuma))") prefetch(4)
Code:102 : 0.014081 4685 : 0.037033 17445 : 0.010202
You can run the script by opening it in VirtualDub (File -> Open Video File) and selecting File -> Run Video Analysis Pass. Or drag/drop it onto a batch file that uses ffmpeg to read every frame:
Code:time /T ffmpeg -loglevel fatal -i %1 -c copy -f null - time /T pause
-
Thank you very much. It's a bit complicated for me, but we'll study and figure it out.
-
@jagabo
I couldn't figure it out. Can you show in more detail, step by step, the steps to find and remove tags.
Thank you in advance. -
Installed all programs. The problem was writing a script to process AviSynth correctly.
Last edited by bosyk; 23rd Sep 2023 at 15:08.
-
You can use Notepad or any other plain text editor to write the scripts. Copy and paste the script from post #8. Save in the same folder as the video with .avs as the extension (not .txt). Use VirtualDub2 to open the avs file.
-
As I understand it, you used this script knowing the location of one mark:
source = LSMASHVideoSource("tags.mp4") # mark on frame 4685
source = source.Blur(1.0)
What if the location is not known?
When I tried to paste this code I got an error:
Avisynth open failure:
Script error: There is no fundion named
'LSMASHVideoSource'.
(C:\Users\bosyk\0esktop\dir.avs, line 1) -
That "# mark on frame 4685" is just a note for our benefit. It's not telling AviSynth where the mark is. I put it there so I would remember where the mark is to verify the script is working properly.
You need to install the LSMASH source package:
http://avisynth.nl/index.php/LSMASHSource
https://github.com/HomeOfAviSynthPlusEvolution/L-SMASH-Works/releases/download/1129.0....r1129.0.1.0.7z
Put LSMASHSource.dll from the x86 folder in AviSynth+'s plugins+ folder. Put LSMASHSource.dll from the x64 folder in AviSynth+'s plugins64+ folder.
You will also need the MaskTools2 package:
http://avisynth.nl/index.php/Masktools2
https://github.com/pinterf/masktools/releases/download/2.2.30/masktools2_v2.2.30.7z
Like with LSMASH, put the dll files in their respective folders.
And you will need the RemoveDirtMC() function. There are many variations of this filter. The one I used is attached. Unzip the .avsi file and put a copy in each of the two plugins folders. It was derived from this post:
https://forum.videohelp.com/threads/382527-Need-help-setting-up-avisynth-pls%21?p=2477...=1#post2477423
In turn, RemoveDirtMC requires several other third party filters. You will get similar error messages. Find, download, and install them as above. Yes, getting all this set up is a pain. -
Sorry to bother you, but now a new error is popping up. I insert any script
AVI Import Filter errorUnknown)(80040154)
I forgot to write, I have Win7 64bit. -
I don't know exactly what's wrong there. If you search for that error code in these forums you'll find it mentioned several times. Some of the posters said uninstalling Avisynth then re-installing it fixed the issue. Did you install 64 bit AviSynth+? Or 32 bit AviSynth+? Or an older version of AviSynth (not plus). I recommend using 64 bit AviSynth+.
-
Also, try running Avs Info Tool to check your installation. Note any warnings or errors that it gives.
Similar Threads
-
ffmpeg - Questions about Global Tags and Tags
By joegreen in forum Video ConversionReplies: 2Last Post: 24th May 2022, 02:44 -
Program that can detect video height, width, FPS and add info to meta tags?
By Everything222 in forum EditingReplies: 2Last Post: 14th Oct 2020, 17:51 -
Is converting VSFilterMod tags to mainstream tags possible?
By zerxes96 in forum SubtitleReplies: 0Last Post: 29th Apr 2020, 20:39 -
meta tags editor for video files to add artwork not changing?
By David22 in forum Video ConversionReplies: 0Last Post: 18th Sep 2019, 07:43 -
Audio file tags
By alex5908 in forum MediaReplies: 0Last Post: 25th Aug 2019, 13:51