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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-29-2007, 08:12 AM   #1
bDok
Confirmed User
 
bDok's Avatar
 
Join Date: Feb 2005
Location: SD/OC/LA
Posts: 1,917
ffmpeg experts

If your an ffmpeg expert I could really use some help.

Wondering if it's possible to use ffmpeg to cut a movie up into x second clips where x is the number of seconds I want the clip to be. So if the clip was a minute long and I wanted 30 second clips I would get 2 30 second clips.

icq me
198 033 376
__________________
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Warriors come out to plaAAaayyy!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
bDok is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-29-2007, 08:28 AM   #2
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
im not an expert but i think this should work

Code:
<?php
$show = exec("/usr/local/bin/ffmpeg -i /home/youraccount/public_html/video.avi -ss 00:00:00 -t 00:30:00 -acodec mp3 -ar 22050 -ab 32 -f flv -s 320x240 /home/youraccount/public_html/video2.avi"); 
echo $show; 
$show = exec("/usr/local/bin/ffmpeg -i /home/youraccount/public_html/video.avi -ss 00:30:00 -t 00:30:00 -acodec mp3 -ar 22050 -ab 32 -f flv -s 320x240 /home/youraccount/public_html/video3.avi"); 
echo $show; 
?>
ss designates start time in move and t = duration

so that would take video.avi and split it into 2 files video1.avi and video2.avi
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-29-2007, 08:36 AM   #3
bDok
Confirmed User
 
bDok's Avatar
 
Join Date: Feb 2005
Location: SD/OC/LA
Posts: 1,917
Ok. That's the right track for sure. I'm looking for a dynamic solution. I guess the only last thing I'm missing is how to have it pull the total duration of the film. From there I believe I can put together the rest. Looking for it to be a dynamic solution.

Going to write it such that it will take a variable of the total duration and then chop it up and output those clips will keep the names in a array then go back through and take screen shots of each clip.

Thanx smokey for the input. It's another bit of the puzzle. nice one sir. Cheers.
__________________
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Warriors come out to plaAAaayyy!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
bDok is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.