GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Script to split mpegs on the server needed (https://gfy.com/showthread.php?t=434616)

jovigirl 02-21-2005 07:26 AM

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?

mortenb 02-21-2005 08:32 AM

get mpgtx (http://mpgtx.sourceforge.net/) installed on your server and run mpgtx -s filename {10M}

jovigirl 02-21-2005 09:18 AM

thanks
works fine
:winkwink:

mortenb 02-21-2005 09:26 AM

:-)
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..

jovigirl 02-21-2005 09:39 AM

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

mortenb 02-21-2005 09:52 AM

hmm..
what about running "mpgtx -xxx filename -b mychunk" and just changing the xxx with the number of files to generate.. filesize/10..

jovigirl 02-21-2005 10:00 AM

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:

woj 02-21-2005 11:32 AM

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