xamgore / camera-pipeline-scripts Goto Github PK
View Code? Open in Web Editor NEWAutomatic video uploader from SD card to YouTube
License: MIT License
Automatic video uploader from SD card to YouTube
License: MIT License
We need to be able to divide MTS files into groups, depending on the recording time and the time of lectures. This problem arises from the fact that we have a 128GB SD card, and we record lectures throughout the weeks. As a consequence, at the end of each week we have a bunch of files of this kind:
00000.MTS
00001.MTS
00002.MTS
00003.MTS
...
00027.MTS
For each, you can get the date of creation and group it with the help of the lecture schedule.
# OS X has "%SB" flag
$ stat -f%SB -t '%Y-%m-%d_%H.%M.mp4' ./00001.MTS
But I prefer a python (platform independent) implementation. it is highly recommended to write tests (we will connect them to TravisCI soon).
After an SD card was inserted into the laptop, a special script (youtube uploader) must be ran. To bring this to life, we need somehow to detect SD card insertion.
I suppose that some rules have to be written for udev subsystem.
We need a tool, for uploading an mp4
video, and get a link as a result. It is important to have an opportunity to add:
It was supposed to use python CLI client. Also Google has wrote a simple python script, that uses Youtube API. There are no restrictions on input format, feel free to experiment.
Useful links:
It is necessary to understand by the creation date of MTS file (or if possible, by the meta information in the file itself) and by the schedule of lectures, what was the subject during the recording of the video.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.