There is often a need in the open source or active developer community to publish large video segments online. (Meet-up videos, campouts, tech talks...) Being that I am a developer and not a videographer I have no desire to fork out the extra scratch on a premium Vimeo account. How then do I take a 12.5 GB (1:20:00) MPEG tech talk video and slice it into 00:10:00 segments for easy uploading to YouTube?
|
Wrapping this up into a script to do it in a loop wouldn't be hard. Beware that if you try to calculate the number of iterations based on the duration output from an Another thing to be aware of is that the position of the All that aside, I don't think you really want to be cutting at exactly 10 minutes for each clip. That will put cuts right in the middle of sentences, even words. I think you should be using a video editor or player to find natural cut points just shy of 10 minutes apart. Assuming your file is in a format that YouTube can accept directly, you don't have to reencode to get segments. Just pass the natural cut point offsets to
The start point for every command after the first is the previous command's start point plus the previous command's duration. |
|||||||||||||
|
|
Note the exact punctuation of the alternative format is
|
||||
|
|
|
Actually you can upload bigger files to youtue, if you verify your account with your mobile phone number http://support.google.com/youtube/bin/answer.py?hl=en&answer=71673 |
|||
|
|