Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 16 of 81 FirstFirst ... 614151617182666 ... LastLast
Results 226 to 240 of 1212
Like Tree7Likes

Thread: YouTube-to-MP3 conversion - PHP class and script

  1. #226
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,795
    Thanks
    19
    Thanked 156 Times in 147 Posts
    that line should read: $currentTime = (float)end($times[2]);
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  2. #227
    New Coder
    Join Date
    Feb 2012
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts
    sur but my result with this line is "0" i was try this :

    $currentTime = $numTimes;

    I know it's the incorrect value, but with this I see the progress conversion bar works .

    I don't know why $currentTime = (float)end($times[2]); always return '0'

  3. #228
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,795
    Thanks
    19
    Thanked 156 Times in 147 Posts
    Quote Originally Posted by bedo1975 View Post
    I don't know why $currentTime = (float)end($times[2]); always return '0'
    I don't know why either because that is the correct code
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  4. #229
    New Coder
    Join Date
    Feb 2012
    Posts
    15
    Thanks
    4
    Thanked 0 Times in 0 Posts
    my apache error logs, how to fix that?

    Code:
    PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
    [Thu Feb 23 13:54:23 2012] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.14 with Suhosin-Patch configured -- resuming normal operations
    [Thu Feb 23 13:54:32 2012] [error] [client 192.168.217.1] PHP Warning:  Division by zero in /home/www/YouTubeToMp3Converter.class.php on line 103, referer: http://192.$
    [Thu Feb 23 13:54:32 2012] [error] [client 192.168.217.1] PHP Notice:  ob_flush(): failed to flush buffer. No buffer to flush. in /home/www/YouTubeToMp3Converter.class$
    [Thu Feb 23 13:54:32 2012] [error] [client 192.168.217.1] PHP Notice:  ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /home/www/Yo$
    [Thu Feb 23 13:54:32 2012] [error] [client 192.168.217.1] PHP Notice:  ob_flush(): failed to flush buffer. No buffer to flush. in /home/www/YouTubeToMp3Converter.class$
    [Thu Feb 23 13:54:32 2012] [error] [client 192.168.217.1] PHP Notice:  ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /home/www/Yo$
    [Thu Feb 23 13:54:32 2012] [error] [client 192.168.217.1] PHP Notice:  ob_flush(): failed to flush buffer. No buffer to flush. in /home/www/YouTubeToMp3Converter.class$
    [Thu Feb 23 13:54:32 2012] [error] [client 192.168.217.1] PHP Notice:  ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /home/www/Yo$
    [Thu Feb 23 13:54:32 2012] [error] [client 192.168.217.1] PHP Notice:  ob_flush(): failed to flush buffer. No buffer to flush. in /home/www/YouTubeToMp3Converter.class$
    [Thu Feb 23 13:54:32 2012] [error] [client 192.168.217.1] PHP Notice:  ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /home/www/Yo$
    [Thu Feb 23 13:54:32 2012] [error] [client 192.168.217.1] PHP Notice:  ob_flush(): failed to flush buffer. No buffer to flush. in /home/www/YouTubeToMp3Converter.class$
    [Thu Feb 23 13:54:32 2012] [error] [client 192.168.217.1] PHP Notice:  ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /home/www/Yo$
    [Thu Feb 23 13:54:32 2012] [error] [client 192.168.217.1] PHP Notice:  ob_flush(): failed to flush buffer. No buffer to flush. in /home/www/YouTubeToMp3Converter.class$
    [Thu Feb 23 13:54:32 2012] [error] [client 192.168.217.1] PHP Notice:  ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /home/www/Yo$
    [Thu Feb 23 13:54:32 2012] [error] [client 192.168.217.1] PHP Notice:  ob_flush(): failed to flush buffer. No buffer to flush. in /home/www/YouTubeToMp3Converter.class$
    [Thu Feb 23 13:54:32 2012] [error] [client 192.168.217.1] PHP Notice:  ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /home/www/Yo$
    [Thu Feb 23 13:54:32 2012] [error] [client 192.168.217.1] PHP Notice:  ob_flush(): failed to flush buffer. No buffer to flush. in /home/www/YouTubeToMp3Converter.class$
    [Thu Feb 23 13:54:33 2012] [error] [client 192.168.217.1] PHP Notice:  ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /home/www/Yo$
    [Thu Feb 23 13:54:33 2012] [error] [client 192.168.217.1] PHP Notice:  ob_flush(): failed to flush buffer. No buffer to flush. in /home/www/YouTubeToMp3Converter.class$
    [Thu Feb 23 13:54:33 2012] [error] [client 192.168.217.1] PHP Notice:  ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /home/www/Yo$
    [Thu Feb 23 13:54:33 2012] [error] [client 192.168.217.1] PHP Notice:  ob_flush(): failed to flush buffer. No buffer to flush. in /home/www/YouTubeToMp3Converter.class$
    [Thu Feb 23 13:54:33 2012] [error] [client 192.168.217.1] PHP Notice:  ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /home/www/Yo$
    [Thu Feb 23 13:54:33 2012] [error] [client 192.168.217.1] PHP Notice:  ob_flush(): failed to flush buffer. No buffer to flush. in /home/www/YouTubeToMp3Converter.class$

  5. #230
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,795
    Thanks
    19
    Thanked 156 Times in 147 Posts
    Turn off error reporting...none of those things are worth troubleshooting or will cause the code to fail....

    Error reporting is already turned off by default in index.php:

    PHP Code:
    ini_set('display_errors',0); 
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  6. #231
    New Coder
    Join Date
    Feb 2012
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hi,
    i have been trying to run this script on my laptop with xampp for windows.
    i have done everything(latest ffmpeg.exe, latest php script of your app) and have setup it as said in instructions but still i am not getting it work for me..when ever i try to convert a youtube video it stuck on the page where is shows downloading video, it never progress. i have even checked in the video folder video size is always zero kb and process freezes there only. No error is shown neither any log. Please can you help me sort out the problem.

    Thanks & Regards,
    Umang Goyal

  7. #232
    New Coder
    Join Date
    Feb 2012
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts
    what is your youtube url umang.goyal ?

  8. #233
    New Coder
    Join Date
    Feb 2012
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts
    here is the URL of the video i am trying to download.

    Code:
    http://www.youtube.com/watch?v=ipNB-ijxHiI&feature=g-vrec&context=G29d7a2aRVAAAAAAAACA

  9. #234
    New Coder
    Join Date
    Feb 2012
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I have test with this url :

    http://www.youtube.com/watch?v=ipNB-ijxHiI&

    it's works !

  10. #235
    New Coder
    Join Date
    Feb 2012
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts
    let me try again. thanks for the reply

    can you tell me if i need to set some permissions for the directories? or you could send me the source files you are using...i would really appreciate that.
    Thansk & regards,
    Umang Goyal

  11. #236
    New Coder
    Join Date
    Feb 2012
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I've set permission on mp3,videos,logs folder to 0777

    in this time I can't send you my file coz I debug it, I've a few problem with the conversion progress bar !

  12. #237
    New Coder
    Join Date
    Feb 2012
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts
    i did the same. used filezilla and set the permissions to 0777 for all those directories. Still no progress
    btw, i just had a thought if there would be a problem with permissions then it would have never created flv files within that video folder with size 0kb.

    anyways thanks for the help.

    Thanks & Regards,
    Umang Goyal

  13. #238
    New Coder
    Join Date
    Feb 2012
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts
    are you sure that ffmpeg are correctly installed ? ffmpeg-php too ?

    Have you look at the config file, if the path of folder, and ffmpeg are correct ?

  14. #239
    New Coder
    Join Date
    Feb 2012
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts
    ffmpeg-php? i guess no for that.
    i have downloaded the ffmpeg-64.exe from the suggested URL and have copied it into the folder where all the script files for the youtubetomp3 converter are saved. let me see about the ffmpeg-php.

  15. #240
    New Coder
    Join Date
    Feb 2012
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts
    perhaps is your config.class :

    // Constants
    const _TEMPVIDDIR = 'videos/';
    const _SONGFILEDIR = 'mp3/';
    const _FFMPEG = 'ffmpeg-64.exe';
    const _LOGSDIR = 'logs/';

    be sure you have the correctly path value


 
Page 16 of 81 FirstFirst ... 614151617182666 ... LastLast

LinkBacks (?)

  1. 08-24-2014, 04:09 AM
  2. 07-21-2014, 05:32 PM
  3. 07-12-2014, 05:59 PM
  4. 06-26-2014, 03:39 PM
  5. 05-31-2014, 09:13 PM
  6. 04-24-2014, 07:53 PM
  7. 04-19-2014, 10:22 AM
  8. 04-04-2014, 08:33 PM
  9. 04-04-2014, 01:58 AM
  10. 03-28-2014, 06:03 AM
  11. 03-20-2014, 06:11 PM
  12. 03-16-2014, 01:22 AM
  13. 03-08-2014, 04:56 PM
  14. 03-07-2014, 06:21 PM
  15. 03-01-2014, 12:48 PM
  16. 02-22-2014, 08:40 PM
  17. 02-22-2014, 12:02 AM
  18. 02-21-2014, 08:15 PM
  19. 02-21-2014, 12:00 AM
  20. 02-20-2014, 08:37 PM
  21. 02-20-2014, 06:53 PM
  22. 02-20-2014, 03:21 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •