|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
|||||
|
|||||
|
Re: FRC Video Splitter (Beta)
Quote:
|
|
#17
|
|||||
|
|||||
|
Re: FRC Video Splitter (Beta)
Quote:
I bet you could manually sync the video with the actual times by entering them both for the first match, then have a script calculate the rest of match start times using the API, then cut out the next ~2:30. This actually seems really feasible. If I get the chance today, I'll try and integrate that into my python scripts |
|
#18
|
||||
|
||||
|
Re: FRC Video Splitter (Beta)
Quote:
|
|
#19
|
|||||
|
|||||
|
Re: FRC Video Splitter (Beta)
And more!
Code:
➜ phil@fedora ~ frc-api https://frc-api.usfirst.org/api/v1.0/matches/2015/onto2\?tournamentLevel\=qual\&matchNumber\=1
{"Matches":[{"autoStartTime":"2015-03-06T04:19:49.573","description":"Qualification 1","level":"Qualification","matchNumber":1,"scoreRedFinal":63,"scoreRedFoul":0,"scoreRedAuto":6,"scoreBlueFinal":122,"scoreBlueFoul":0,"scoreBlueAuto":6,"Teams":[{"teamNumber":3949,"station":"Red1","dq":false},{"teamNumber":4001,"station":"Red2","dq":false},{"teamNumber":3360,"station":"Red3","dq":false},{"teamNumber":5580,"station":"Blue1","dq":false},{"teamNumber":4069,"station":"Blue2","dq":false},{"teamNumber":1114,"station":"Blue3","dq":false}]}]}%
|
|
#20
|
|||||
|
|||||
|
Re: FRC Video Splitter (Beta)
Precise, yes. Accurate, who knows.
![]() |
|
#21
|
||||
|
||||
|
Re: FRC Video Splitter (Beta)
+1 for the new API
It also looks like it was a very early start for our friends in Canada. |
|
#22
|
|||||
|
|||||
|
Re: FRC Video Splitter (Beta)
Quote:
For example 2015CAMA's QF 1 has a start time of "2015-03-08T09:25:33.04" which doesn't make sense in local time (Pacific) or UTC. |
|
#23
|
||||
|
||||
|
Re: FRC Video Splitter (Beta)
I guess it wouldn't really matter for this application, all we really care about is the time span between matches.
|
|
#24
|
|||||
|
|||||
|
Re: FRC Video Splitter (Beta)
Ah, you are correct.
|
|
#25
|
||||
|
||||
|
Re: FRC Video Splitter (Beta)
Correct. It's only the autoStartTime deltas that matter for this application, but it would be comforting to know the source of the time reference. I'd have expected it was a timestamp from the FMS server, but that's usually set to event local time.
|
|
#26
|
|||||
|
|||||
|
Re: FRC Video Splitter (Beta)
I wrote up a quick script that will hit the FMS API for an event of your choosing an make a CSV file of {tbaMatchKey, autoStartTime} for use elsewhere.
You need to have your API secrets in a file to be read https://github.com/phil-lopreiato/ma...timing-data.py |
|
#27
|
||||
|
||||
|
Re: FRC Video Splitter (Beta)
The only potential issue I see with relying on the API is that not every event will have API data (IE, most off-season events).
|
|
#28
|
||||
|
||||
|
Re: FRC Video Splitter (Beta)
I've created an option that can use the FRC API to automatically fill in time stamps after the first is entered.
It worked well when I tested it on my Reading District recordings. However, I haven't put the code in to handle the break between qualifications and playoffs. To work around this, run Splitter on qual videos, then run it again on playoff videos. |
|
#29
|
||||
|
||||
|
Re: FRC Video Splitter (Beta)
New update from Vikesrock!
New features include:
Last edited by Ty Tremblay : 04-02-2015 at 11:59 AM. |
|
#30
|
||||
|
||||
|
Re: FRC Video Splitter (Beta)
Sorry to revive an old thread, but just wanted to say that I used the program for the first time today and loved it. If it's simple enough for me to figure out, it should be a breeze for any other user. Thanks so much, Ty.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|