![]() |
Script to split mpegs on the server needed
Let's say I have like 25 gigs of mpegs already on the server and need to split them in chunks
I need a script that can do that without the need to reupload everything Can be an ssh command, php or whatever works. I need to clip them into 10mb chunks, that will be saved in the same folder and named like originalfilename_part1.mpg ... Anybody willing to code it for me? |
get mpgtx (http://mpgtx.sourceforge.net/) installed on your server and run mpgtx -s filename {10M}
|
thanks
works fine :winkwink: |
:-)
well.. it doesn't meet your requirements 100%.. instead of naming the chunks filename1.mpg, filename2.mpg it names them filename001.mpg, filename002.mpg and so on.. |
nah I don't care about that
but I don't seem to find an option that makes 10mb files your option makes a part-1.mpg 10 Mb big, and then a part-2.mpg with the rest of the file only. I can specify the number of chunks though and it makes lets say 15 equal size parts so it does the work anyway but it's weird because there seem to be so many config options ... there should be a working one that makes x-sized chunks or maybe I m just too dumb lol |
hmm..
what about running "mpgtx -xxx filename -b mychunk" and just changing the xxx with the number of files to generate.. filesize/10.. |
sure it works specifying the number of files to generate
but not the size for an undetermined amount of files nevermind don't worry about it anymore I can use it this way :winkwink: |
It's probably one of the options somewhere, but if it's not you can always write a quick script to do it recursively... (keep splitting it up, untill left over file is under 10 megs)
|
All times are GMT -7. The time now is 06:48 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123