View Full Version : Motion Tracking & Highlighting?
Starduster
26th April 2008, 17:56
I was wondering if there were any examples of using Avisynth to identify an object in a video and then plot the motion of that object with some sort of colored mark or line for some given amount of time.
What I'd like to do is take a game video, click on an athlete (x,y coordinate), and have Avisynth plot points or draw a line on the video from that original point on the athlete as they move around.
Has this been done by anyone? Any suggestions greatly appreciated!
AnnaFan777
27th April 2008, 00:35
I was wondering if there were any examples of using Avisynth to identify an object in a video and then plot the motion of that object with some sort of colored mark or line for some given amount of time.
What I'd like to do is take a game video, click on an athlete (x,y coordinate), and have Avisynth plot points or draw a line on the video from that original point on the athlete as they move around.
Has this been done by anyone? Any suggestions greatly appreciated!
I tried this before, with minor success....
HINT : Use MVTool and be creative..)
Starduster
27th April 2008, 13:10
Any hints you can share with a code example?
Thanks,
Steve
thetoof
27th April 2008, 18:27
Aegisub can draw those lines for you. iirc, there is a "tracking" function in it, so you could even put the name of the player right above his head and it'd follow him. Only thing is... you'd have to manually reset the position at every scene change.
cestfait
28th April 2008, 00:41
that's really cool. just sayin' :)
Starduster
28th April 2008, 12:21
thetoof,
I downloaded and installed Aegisub. It was a very interesting program but I'm not sure it will work for my needs. I wasn't able to find a tracking function that would attach a name to an object in the video. You could attach a tag frame by frame but I was hoping to find something that would track automatically... or did I just miss something in the program?
lamer_de
28th April 2008, 12:52
The tracking code was removed in aegisub like half a year ago or so because it was a) not under the MIT license (or whatever license they use) and b) was not always working correctly.
I don't know if it's even possible to do motion tracking of a single object with avisynth, but if it is, it's probably not easy ;) Usually you'd need something like Adobe After Effects or another compositing software.
Starduster
28th April 2008, 14:12
lamer_de, thanks for the explanation... I was afraid it was just me! ;-)
I was figuring motion tracking would be pretty hard, but then again some of the people on this forum do things that appear to be magic!! I was guessing that there was some sort of plug-in that might be able to do it (like MVtools that AnnaFan777 suggested) but I haven't been able to find anything yet.
Thanks again for the update!
AnnaFan777
28th April 2008, 19:37
I was wondering if there were any examples of using Avisynth to identify an object in a video and then plot the motion of that object with some sort of colored mark or line for some given amount of time.
What I'd like to do is take a game video, click on an athlete (x,y coordinate), and have Avisynth plot points or draw a line on the video from that original point on the athlete as they move around.
Has this been done by anyone? Any suggestions greatly appreciated!
have you tried this ? PatchMaker
http://www.freedownloadscenter.com/Multimedia_and_Graphics/Video_and_Animation_Tools/PatchMaker_Download.html
Starduster
1st May 2008, 13:59
Yeah, I've downloaded it before and tried it out. Works well but very slow process, working with a series of image files rather than with video.
I was hoping to find something that could work directly with the video file as just another part of my application... another tool at the user's disposal. The application applies tags to sports videos and game tapes. I wanted to allow the user to be able to "mark" a player and have the mark follow the player or draw a line from that part in the video to wherever the player goes.
I've even toyed with the idea of trying to write a plug-in myself to do it, but I typically wake from my daydream in a cold sweat just thinking about it! ;-)
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.