|
|
|
||||
|
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: Feb 2005
Location: SD/OC/LA
Posts: 1,917
|
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! ![]() =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= |
|
|
|
|
|
#2 |
|
►SouthOfHeaven
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;
?>
so that would take video.avi and split it into 2 files video1.avi and video2.avi
__________________
hatisblack at yahoo.com |
|
|
|
|
|
#3 |
|
Confirmed User
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! ![]() =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= |
|
|
|