![]() |
FRC Video Splitter (Beta)
I'm proud to announce a little project I've been working on the past few days called FRC Video Splitter. I've hosted the code on GitHub. Download the .zip file and run setup.exe to install it on your computer.
Video Splitter is a simple interface for batching the splitting of a large file into many smaller ones, specifically aimed at FRC match video. The aim is to make it easier for people to split an entire day of recording into individual match videos. At it's core, it's simply a GUI for generating ffmpeg commands. ![]() Instructions for use:
Notes:
|
Re: FRC Video Splitter (Beta)
This looks awesome and really useful!
If you want a basis from cross-platform support, I've got a command line python script that does basically the same thing on my GitHub. It works almost exactly the same way - read the time data from a csv file, send ffmpeg commands to split it, upload to youtube, add to a playlist, and generate a CSV file to copy/paste into the TBA Video Spreadsheet. |
Re: FRC Video Splitter (Beta)
Cool tool!
On speeding up the time stamping process: You might be able to pull use an excel sheet, and say the Match Timestamps from http://frc-events.usfirst.org/2015/FLFO/qualifications If you get your recording computer clock lined up with the FMS computer.... Does the new FMS Api report timestamps in seconds? |
Re: FRC Video Splitter (Beta)
Quote:
|
Re: FRC Video Splitter (Beta)
Quote:
|
I'll definitely use it for this year. It's going to be crazy driving, and directing my little freshman video crew I trained earlier this year. So anything with organizing video will help. When I do it myself it's easy to know which one is which because I make mental notes. When there's 4 other kids using my equipment I don't know what file is which and these kind of programs help. I'll use this in conjunction with plural eyes to organize everything.
|
Re: FRC Video Splitter (Beta)
I tried installing this but I got an error when running the setup, I've included a copy of the error log file below. Not sure if it's the program or if I installed ffmpeg wrong (dragged the executable into "C:\").
Code:
PLATFORM VERSION INFO |
Re: FRC Video Splitter (Beta)
Quote:
#automation |
Re: FRC Video Splitter (Beta)
Ah. I've had that hash issue on other programs. I'll work on the fix.
|
Re: FRC Video Splitter (Beta)
Quote:
Try downloading again and installing. |
Re: FRC Video Splitter (Beta)
Hi all,
I figured out how to add ffmpeg.exe as a resource. You no longer need to download it! |
Re: FRC Video Splitter (Beta)
Quote:
I think using computer vision to show when to mark the end of a match would be good too. I've seen archived matches where they don't show the final score. If you can't detect the beginning of a match sound I think that labeling the start of the match 'X' seconds before the unique auto/teleop sound would work well too. |
Re: FRC Video Splitter (Beta)
Quote:
|
Re: FRC Video Splitter (Beta)
Quote:
|
Re: FRC Video Splitter (Beta)
So I've finally had some time to play around with this and I must say I'm very impressed with the speed and simplicity of using this program. I'm even more happy (and a bit surprised) that it's compatible with .flv files (the native output of our stream software).
One idea on the whole scoreboard discussion; can ffmpeg merge video clips? If it can, you could just add another (optional) timestamp column to the match list for scoreboard appearance times, then take like a 10 second video clip (or for that matter just a still image would work) from that point and tack it on to the end of the match video. Just a thought. |
Re: FRC Video Splitter (Beta)
Quote:
|
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 |
Re: FRC Video Splitter (Beta)
Quote:
|
Re: FRC Video Splitter (Beta)
Quote:
Code:
➜ phil@fedora ~ frc-api https://frc-api.usfirst.org/api/v1.0/matches/2015/onto2\?tournamentLevel\=qual\&matchNumber\=1 |
Re: FRC Video Splitter (Beta)
Quote:
|
Re: FRC Video Splitter (Beta)
Quote:
It also looks like it was a very early start for our friends in Canada. |
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. |
Re: FRC Video Splitter (Beta)
Quote:
|
Re: FRC Video Splitter (Beta)
Quote:
|
Re: FRC Video Splitter (Beta)
Quote:
|
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 |
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).
|
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. |
Re: FRC Video Splitter (Beta)
New update from Vikesrock!
New features include:
|
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.
|
Re: FRC Video Splitter (Beta)
Quote:
|
Re: FRC Video Splitter (Beta)
Quote:
https://github.com/tytremblay/FRC-Video-Splitter-2 |
Re: FRC Video Splitter (Beta)
Quote:
Quote:
Quote:
|
Re: FRC Video Splitter (Beta)
Quote:
Though I think the match time info comes from the FRC API, not TBA API. I suggest through the source and I don't think the TBA API is used for anything. |
Re: FRC Video Splitter (Beta)
Just a note the easiest way I found to link the videos to TBA is to use the TBA Youtube playlist import which you can use by clicking "Add Videos" on the top of each event page. This will let you basically automatically add all the videos to TBA just by pasting in the playlist link.
Suggestion Add a link to the TBA breakdown page in the video description. that way we can easily see all the data from the match if we found it through youtube instead of TBA. |
Re: FRC Video Splitter (Beta)
Quote:
Great idea. |
Re: FRC Video Splitter (Beta)
I've updated Splitter to add a link to TBA on each video.
I've also added some basic import functionality. To import videos, click the import button and select the video files you wish to import. When you click OK, Splitter will sort the videos by date modified and add them to the matches list starting with the first included video that doesn't have a VideoPath. |
Re: FRC Video Splitter (Beta)
I'm loving version 2, much easier to use and the data pull feature actually works correctly. Honestly I wish I had this a few weeks ago when I ran the stream for our local district, it would have saved us a lot of time. :)
A few suggestions:
|
Re: FRC Video Splitter (Beta)
Quote:
|
Re: FRC Video Splitter (Beta)
Quote:
Does anyone know if there is, perhaps, a log file generated locally by the FMS that could be saved on a flash drive and loaded manually for match time data? I have used the previous versions of FRC video splitter so I'm quite familiar with setting the times manually, but it would be nice if importing the data was a feature that I could make use of more than just one time a year. :rolleyes: |
Re: FRC Video Splitter (Beta)
I like this application quite a bit.
I did notice a problem with the synchronization from the TBA match times to the actual competition video. It didn't work for me at all with the GADAL event. I tried inputting the start time in the video of the first match I wanted and then only included matches that I wanted the program to spit from the main video file. 5632's matches were the only ones I was interested in spitting from the video file and I got wildly wrong generated time stamps. Everything worked great if I manually input the match start time-stamp. |
Re: FRC Video Splitter (Beta)
Quote:
Quote:
|
Re: FRC Video Splitter (Beta)
Quote:
Quote:
Quote:
|
Re: FRC Video Splitter (Beta)
Quote:
Quote:
|
Re: FRC Video Splitter (Beta)
Quote:
Example Also, shift-selecting, then checking/unchecking the include checkbox will set all selected matches to that checkbox's state. |
Re: FRC Video Splitter (Beta)
Quote:
|
Re: FRC Video Splitter (Beta)
Quote:
|
Re: FRC Video Splitter (Beta)
Quote:
Quote:
Quote:
|
Re: FRC Video Splitter (Beta)
Quote:
|
Re: FRC Video Splitter (Beta)
This is an awesome tool. Thank you for this!
|
Re: FRC Video Splitter (Beta)
Quote:
|
| All times are GMT -5. The time now is 22:07. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi