| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.  You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us.  | 
		
		 
		![]()  | 
	
		
			
  | 	
	
	
		
		|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Apr 2003 
				Location: On the edge 
				
				
					Posts: 1,796
				 
				
				
				
				 | 
	
	
	
	
		
			
			 
				
				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? 
				__________________ 
		
		
		
		
	
	ICQ :333-548-380  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Jul 2004 
				Location: Denmark ICQ: 7880009 
				
				
					Posts: 2,203
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 get mpgtx (http://mpgtx.sourceforge.net/) installed on your server and run mpgtx -s filename {10M} 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Apr 2003 
				Location: On the edge 
				
				
					Posts: 1,796
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 thanks 
		
	
		
		
		
		
			works fine 
				__________________ 
		
		
		
		
	
	ICQ :333-548-380  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Jul 2004 
				Location: Denmark ICQ: 7880009 
				
				
					Posts: 2,203
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 :-) 
		
	
		
		
		
		
		
	
	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..  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Apr 2003 
				Location: On the edge 
				
				
					Posts: 1,796
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 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 
				__________________ 
		
		
		
		
	
	ICQ :333-548-380  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Jul 2004 
				Location: Denmark ICQ: 7880009 
				
				
					Posts: 2,203
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 hmm.. 
		
	
		
		
		
		
		
	
	what about running "mpgtx -xxx filename -b mychunk" and just changing the xxx with the number of files to generate.. filesize/10..  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Apr 2003 
				Location: On the edge 
				
				
					Posts: 1,796
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 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 
				__________________ 
		
		
		
		
	
	ICQ :333-548-380  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 <&(©¿©)&> 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jul 2002 
				Location: Chicago 
				
				
					Posts: 47,882
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 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) 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |