Making tutorials - your wishlist

Reply

Join Date: Jun 2007
Posts: 1,227
Reputation: kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about 
Solved Threads: 167
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Nearly a Posting Virtuoso
 
0
  #41
Oct 13th, 2009
Use to be there. The documentation was good, thats why I recommended 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.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 1,227
Reputation: kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about 
Solved Threads: 167
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Nearly a Posting Virtuoso
 
0
  #42
Oct 13th, 2009
Found it. Its on their website.

http://flv-player.net/
Google is your friend.

Use [code] tags.

If you have found a solution to your problem, please mark the thread as SOLVED.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,440
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 135
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Nearly a Posting Virtuoso
 
0
  #43
Oct 13th, 2009
Originally Posted by kkeith29 View Post
Found it. Its on their website.

http://flv-player.net/
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 1,227
Reputation: kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about 
Solved Threads: 167
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Nearly a Posting Virtuoso
 
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.
  1. class conversionHandler {
  2.  
  3. var $ffmpegPath;
  4. var $basePath;
  5. var $outputPath;
  6. var $attribs;
  7. var $error;
  8.  
  9. function conversionHandler() {
  10. $this->__construct();
  11. }
  12.  
  13. function __construct() {
  14. ini_set( 'max_execution_time',3600 );
  15. $this->ffmpegPath = '/usr/bin';
  16. $this->checkFFMPEG();
  17. $this->basePath = $_SERVER['DOCUMENT_ROOT'];
  18. $this->attribs = array();
  19. $this->error = array();
  20. }
  21.  
  22. function setConverterPath( $path ) {
  23. if ( !is_dir( $path ) ) {
  24. $this->error[] = "{$path} is not a valid directory for the converter path";
  25. }
  26. $this->ffmpegPath = $path;
  27. }
  28.  
  29. function setBasePath( $path ) {
  30. if ( !is_dir( $path ) ) {
  31. $this->error[] = "{$path} is not a valid directory for the base path";
  32. }
  33. $this->basePath = $path;
  34. }
  35.  
  36. function checkFFMPEG() {
  37. if ( !exec( "{$this->ffmpegPath}/ffmpeg" ) ) {
  38. $this->error[] = "FFMPEG NOT FOUND AT {$this->ffmpegPath}";
  39. }
  40. }
  41.  
  42. function inputFile( $file ) {
  43. $file = $this->basePath . '/' . $file;
  44. if ( !file_exists( $file ) ) {
  45. $this->error[] = "Input file '{$file}' can not be found!";
  46. }
  47. $this->attribs['i'] = $file;
  48. }
  49.  
  50. function fileType( $type ) {
  51. $this->attribs['f'] = $type;
  52. }
  53.  
  54. function audioChannel( $channel ) {
  55. $this->attribs['ac'] = $channel;
  56. }
  57.  
  58. function audioCodec( $codec ) {
  59. $this->attribs['acodec'] = $codec;
  60. }
  61.  
  62. function videoCodec( $codec ) {
  63. $this->attribs['vcodec'] = $codec;
  64. }
  65.  
  66. function videoTarget( $target ) {
  67. $this->attribs['target'] = $target;
  68. }
  69.  
  70. function videoSize( $size ) {
  71. $this->attribs['s'] = $size;
  72. }
  73.  
  74. function audioRate( $rate ) {
  75. $this->attribs['ar'] = $rate;
  76. }
  77.  
  78. function audioBitrate( $bitrate ) {
  79. $this->attribs['ab'] = $bitrate;
  80. }
  81.  
  82. function videoBitrate( $bitrate ) {
  83. $this->attribs['b'] = $bitrate;
  84. }
  85.  
  86. function removeAudio() {
  87. $this->attribs['an'] = '';
  88. }
  89.  
  90. function removeVideo() {
  91. $this->attribs['vn'] = '';
  92. }
  93.  
  94. function overwrite() {
  95. $this->attribs['y'] = '';
  96. }
  97.  
  98. function setOutputPath( $path ) {
  99. if ( !is_dir( $path ) ) {
  100. $this->error[] = "{$path} is not a valid directory for the output path";
  101. }
  102. $this->outputPath = $path;
  103. }
  104.  
  105. function getThumbnail( $time,$folder ) {
  106. $this->attribs['ss'] = $time;
  107. $this->attribs['r'] = '1';
  108. $this->attribs['vframes'] = '1';
  109. }
  110.  
  111. function buildCommand() {
  112. $cmd = "{$this->ffmpegPath}/ffmpeg ";
  113. foreach( $this->attribs as $attr => $value ) {
  114. $cmd .= "-{$attr} {$value} ";
  115. }
  116. $time = $this->microtimeFloat();
  117. $cmd .= "{$this->outputPath}/{$time}.{$this->attribs['f']}";
  118. $array['cmd'] = $cmd;
  119. $array['file'] = "{$time}.{$this->attribs['f']}";
  120. return $array;
  121. }
  122.  
  123. function convert() {
  124. $cmd = $this->buildCommand();
  125. $this->error[] = "Command: {$cmd['cmd']} executed";
  126. exec( $cmd['cmd'],$output );
  127. if ( !file_exists( $this->outputPath . '/' . $cmd['file'] ) ) {
  128. $this->error[] = "Command Failed";
  129. return false;
  130. }
  131. unlink( $this->attribs['i'] );
  132. return $cmd['file'];
  133. }
  134.  
  135. function microtimeFloat() {
  136. list( $usec,$sec) = explode( " ",microtime() );
  137. return str_replace( '.','',( (float)$usec + (float)$sec ) );
  138. }
  139.  
  140. function debug() {
  141. echo '<pre>';
  142. print_r( $this->error );
  143. echo '</pre>';
  144. }
  145.  
  146. }

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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,440
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 135
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Nearly a Posting Virtuoso
 
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
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,440
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 135
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Nearly a Posting Virtuoso
 
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
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,440
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 135
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Nearly a Posting Virtuoso
 
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
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,440
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 135
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Nearly a Posting Virtuoso
 
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 1,227
Reputation: kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about 
Solved Threads: 167
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Nearly a Posting Virtuoso
 
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,440
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 135
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Nearly a Posting Virtuoso
 
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
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC