| | |
Making tutorials - your wishlist
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
0
#41 Oct 13th, 2009
Use to be there. The documentation was good, thats why I recommended it.
Maybe they moved it. ???
Maybe they moved it. ???
Google is your friend.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
0
#42 Oct 13th, 2009
Google is your friend.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
0
#43 Oct 13th, 2009
Thanks for the documentation but I just tried to use "replay file converter" and it won't convert my wmv files to flv for some reason. From your software list do you recommend any wmv to flv converters?
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
1
#44 Oct 13th, 2009
I don't have any software recommendations. I haven't used many of them that actually worked. There are some online ones that work. Most of the time I use ffmpeg to convert the files when the are uploaded.
Here is a conversion class I wrote a long time ago. It seemed to work pretty good.
The actual use is tricky because the functions need to called in a certain order. Sadly, I don't remember the order. Some online documentation for ffmpeg is what I used to create the class. The info to use it should be there.
Here is a conversion class I wrote a long time ago. It seemed to work pretty good.
PHP Syntax (Toggle Plain Text)
class conversionHandler { var $ffmpegPath; var $basePath; var $outputPath; var $attribs; var $error; function conversionHandler() { $this->__construct(); } function __construct() { ini_set( 'max_execution_time',3600 ); $this->ffmpegPath = '/usr/bin'; $this->checkFFMPEG(); $this->basePath = $_SERVER['DOCUMENT_ROOT']; $this->attribs = array(); $this->error = array(); } function setConverterPath( $path ) { if ( !is_dir( $path ) ) { $this->error[] = "{$path} is not a valid directory for the converter path"; } $this->ffmpegPath = $path; } function setBasePath( $path ) { if ( !is_dir( $path ) ) { $this->error[] = "{$path} is not a valid directory for the base path"; } $this->basePath = $path; } function checkFFMPEG() { if ( !exec( "{$this->ffmpegPath}/ffmpeg" ) ) { $this->error[] = "FFMPEG NOT FOUND AT {$this->ffmpegPath}"; } } function inputFile( $file ) { $file = $this->basePath . '/' . $file; if ( !file_exists( $file ) ) { $this->error[] = "Input file '{$file}' can not be found!"; } $this->attribs['i'] = $file; } function fileType( $type ) { $this->attribs['f'] = $type; } function audioChannel( $channel ) { $this->attribs['ac'] = $channel; } function audioCodec( $codec ) { $this->attribs['acodec'] = $codec; } function videoCodec( $codec ) { $this->attribs['vcodec'] = $codec; } function videoTarget( $target ) { $this->attribs['target'] = $target; } function videoSize( $size ) { $this->attribs['s'] = $size; } function audioRate( $rate ) { $this->attribs['ar'] = $rate; } function audioBitrate( $bitrate ) { $this->attribs['ab'] = $bitrate; } function videoBitrate( $bitrate ) { $this->attribs['b'] = $bitrate; } function removeAudio() { $this->attribs['an'] = ''; } function removeVideo() { $this->attribs['vn'] = ''; } function overwrite() { $this->attribs['y'] = ''; } function setOutputPath( $path ) { if ( !is_dir( $path ) ) { $this->error[] = "{$path} is not a valid directory for the output path"; } $this->outputPath = $path; } function getThumbnail( $time,$folder ) { $this->attribs['ss'] = $time; $this->attribs['r'] = '1'; $this->attribs['vframes'] = '1'; } function buildCommand() { $cmd = "{$this->ffmpegPath}/ffmpeg "; foreach( $this->attribs as $attr => $value ) { $cmd .= "-{$attr} {$value} "; } $time = $this->microtimeFloat(); $cmd .= "{$this->outputPath}/{$time}.{$this->attribs['f']}"; $array['cmd'] = $cmd; $array['file'] = "{$time}.{$this->attribs['f']}"; return $array; } function convert() { $cmd = $this->buildCommand(); $this->error[] = "Command: {$cmd['cmd']} executed"; exec( $cmd['cmd'],$output ); if ( !file_exists( $this->outputPath . '/' . $cmd['file'] ) ) { $this->error[] = "Command Failed"; return false; } unlink( $this->attribs['i'] ); return $cmd['file']; } function microtimeFloat() { list( $usec,$sec) = explode( " ",microtime() ); return str_replace( '.','',( (float)$usec + (float)$sec ) ); } function debug() { echo '<pre>'; print_r( $this->error ); echo '</pre>'; } }
The actual use is tricky because the functions need to called in a certain order. Sadly, I don't remember the order. Some online documentation for ffmpeg is what I used to create the class. The info to use it should be there.
Last edited by kkeith29; Oct 13th, 2009 at 4:57 am.
Google is your friend.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
0
#45 Oct 13th, 2009
I did a google search and found one called "Cool Wmv to Flv converter" and IT WORKS!!! I can use videos on my site. But one problem. A half hour video is about 500MB. I will reduce the resolution to helps solve this but there will still be guessing 200MB of file size for each video. Is there any way of compressing it or something?
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
0
#46 Oct 13th, 2009
Also how do I specify multiple parameters for the flv player?
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
0
#47 Oct 13th, 2009
Just found out - same as url parameters. Soon I shall have it uploaded as the upload is 128MB (half hour tutorial).
*~*`
*~*`
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
0
#48 Oct 13th, 2009
I just finnished uploading the video and when trying to play it the script waits for the entire video to be downloaded before playing it. Is it possible to setup a buffer with flv player where it plays as it downloads? Hope someone can help with this.
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
0
#49 Oct 13th, 2009
If I remember right, there are some configurations to use with the player.
Google is your friend.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
0
#50 Oct 13th, 2009
I set the buffer to 16 seconds but I've waited for over 90 seconds and still the video won't show. The link is at http://www.syntax.cwarn23.info/media/index.html
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
![]() |
Similar Threads
- my visual c++ examples blog (Show Off your Projects)
- Algorithm to find distance to the closest? (Computer Science)
- Decent RPG tutorials (or even books) (Game Development)
- help with making game with Gamemaker 7 (Game Development)
- Creating a good game (Game Development)
- where can i find php tutorials (PHP)
- Making a distro (Getting Started and Choosing a Distro)
- Tutorials, brushes, fonts (Graphics and Multimedia)
- Tutorials for Linux (*nix Software)
Other Threads in the PHP Forum
- Previous Thread: Count Files in Server
- Next Thread: Show Data from SQL Database Using PHP
| Thread Tools | Search this Thread |
301 apache api array autosuggest beginner beneath binary broadband broken button cakephp checkbox class cms code compression countingeverycharactersfromastring crack cron curl database date decode display dynamic echo email error file files folder form forms function functions google href htaccess html httppost image include insert integration ip javascript joomla limit link links login mail match md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf php problem protocol query radio random recursion remote script search searchbox server session sessions sms smtp source space sql strip_tags survey syntax system table tutorial update upload url validator variable video virus votedown web website window.onbeforeunload=closeme; youtube






