Results 1 to 3 of 3
-
14th Nov 2010, 11:44 AM #1OPJust Another Coder
Online Video Converter With ffmpeg (php)
I found this on a forum, well some of you might have seen this. No one shared this so I am doing it now.
PHP Code:<?php
function ffmpeg_convert($input_file, $to_format, $output_dir=null)
{
$input_file = realpath($input_file);
$output_dir = is_dir($output_dir) ? $output_dir : dirname($input_file);
$output_file = $output_dir.'/'.pathinfo($input_file,
PATHINFO_FILENAME).'.'.$to_format;
$cmd = sprintf('ffmpeg -y -i %s -f %s %s %s > /dev/null 2>&1',
escapeshellcmd($input_file),
$to_format,
(($to_format=='avi'||1)?'-f avi -vcodec mpeg4 -b 175k -g 300 -bf 2 -acodec libmp3lame -ab 32k':''),
escapeshellcmd($output_file)
);
echo $cmd;
exec($cmd, $output, $status);
$success = empty($status);
return $success ? $output_file : false;
}
?>fdls Reviewed by fdls on . Online Video Converter With ffmpeg (php) I found this on a forum, well some of you might have seen this. No one shared this so I am doing it now. <?php function ffmpeg_convert($input_file, $to_format, $output_dir=null) { $input_file = realpath($input_file); $output_dir = is_dir($output_dir) ? $output_dir : dirname($input_file); Rating: 5
-
14th Nov 2010, 03:52 PM #2BannedWebsite's:
Khambaty.com iMotivate.netIs it possible that the output in MKV ?
-
14th Nov 2010, 04:00 PM #3Member
thanks for this
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Online Video Conversion Sites/Online Video Grabber
By soum111 in forum Useful SitesReplies: 1Last Post: 15th Feb 2012, 02:12 AM -
which video converter is good?
By -={MINDFREAK}=- in forum General DiscussionReplies: 20Last Post: 19th Dec 2011, 12:57 PM -
Reliable Video Converter
By nEw_boY in forum Technical Help Desk SupportReplies: 8Last Post: 23rd Jul 2011, 11:56 AM -
looking for best video converter
By elpirata in forum General DiscussionReplies: 11Last Post: 25th Jun 2011, 08:40 PM -
Online FLV Converter : Download online videos to PC / iPod / PSP - http://vixy.net/
By Dream Weaver in forum Useful SitesReplies: 0Last Post: 5th Feb 2008, 05:42 AM
themaRegister - register to forums...
Version 3.45 released. Open older version (or...