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 57 of 91 FirstFirst ... 747555657585967 ... LastLast
Results 841 to 855 of 1355
Like Tree14Likes

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

  1. #841
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey admin, just wondering, I have bought this script and lately the actual "downloading" process seems to error out 75% of videos. Leaving users to only be able to convert 25% of all songs on youtube without getting this error. Any advice?

  2. #842
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    quick question, thanks for fixing my issue above. but why do websites like youtube-mp3.org not need constant updating? I checked up on that site and it hasnt been changed in the last 6 months? and is never down.

  3. #843
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,860
    Thanks
    22
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by mattijsv View Post
    quick question, thanks for fixing my issue above. but why do websites like youtube-mp3.org not need constant updating? I checked up on that site and it hasnt been changed in the last 6 months? and is never down.
    Hi,

    Can I assume that you fixed your downloading problem on your own (perhaps by upgrading versions and/or following instructions for the latest version)?

    As far as I can tell, youtube-mp3.org has cached a great deal of mp3 files. So many of the videos entered there don't even need to be downloaded.

    Also, immediately following a change in video signature encryption, even youtube-mp3.org has trouble downloading the "most recent" videos (from channels that use encryption). So it's not like this site is immune from the same circumstances that everyone else is dealing with.

    That said, they probably apply the necessary decryption fix fairly quickly, so their actual, perceived downtime is not substantial.
    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!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  4. #844
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,860
    Thanks
    22
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by rajah View Post
    OK, because in windows, rename function will return false while the file exist, So I change the code to do this trick

    PHP Code:
        private function FixYouTubeDecryption()
            {
                
    $softwareInfo file_get_contents('software.xml');
                
    $sxe = new SimpleXMLElement($softwareInfo);
                
    $info $sxe->xpath('/software/info');
                
    $lastError = (int)$info[0]->lasterror;
                
    $currentTime time();
                if (
    $currentTime $lastError 3600)
                {
                    
    $version $info[0]->version;
                    
    $updateResponse file_get_contents('http://rajwebconsulting.com/update-video-converter/v:'.$version);
                    if (
    $updateResponse != "You have the newest version.")
                    {
                        
    $updateResponseArr explode('~~~'$updateResponse);
                        
    $fp fopen('UtilityFunctions2.class.php''w');
                        
    $lockSucceeded false;
                        if (
    flock($fpLOCK_EX))
                        {
                            
    $lockSucceeded true;
                            
    fwrite($fp$updateResponseArr[0]);
                            
    flock($fpLOCK_UN);
                        }
                        
    fclose($fp);
                        if (
    $lockSucceeded)
                        {
                            
    // vidtunez031S delete file before renaming to make sure rename function returns true
                            
    if (is_file(realpath("UtilityFunctions.class.php")))
                            {
                                
    unlink(realpath("UtilityFunctions.class.php"));
                            }
                            
    // vidtunez031E delete file before renaming to make sure rename function returns true
                            
    rename("UtilityFunctions2.class.php""UtilityFunctions.class.php");
                            
    $sxe->info[0]->version $updateResponseArr[1];
                        }
                    }
                    
    $sxe->info[0]->lasterror $currentTime;
                    
    $fp fopen('software2.xml''w');
                    
    $lock2Succeeded false;
                    if (
    flock($fpLOCK_EX))
                    {
                        
    $lock2Succeeded true;
                        
    fwrite($fp$sxe->asXML());
                        
    flock($fpLOCK_UN);
                    }
                    
    fclose($fp);
                    if (
    $lock2Succeeded)
                    {
                        
    // vidtunez031S delete file before renaming to make sure rename function returns true
                        
    if (is_file(realpath("software.xml")))
                        {
                            
    unlink(realpath("software.xml"));
                        }
                        
    // vidtunez031E delete file before renaming to make sure rename function returns true
                        
    rename("software2.xml""software.xml");
                    }
                }
            } 
    I delete the exist file before renaming.

    regards,
    vidtunez admin
    repeat youtube
    free online audio editor
    I was unable to reproduce this issue in my tests...I tested both the free and paid-for versions on a Windows server running Apache, and neither had trouble implementing the auto-update feature.

    Apache version: 2.2.25
    PHP version: 5.3.5

    I see a lot of people had this problem several years ago (with respect to using rename() on Windows), but perhaps this is no longer an issue with recent versions of PHP? What version of PHP are you running?

    In the PHP manual, I see this:

    5.3.1 rename() can now rename files across drives in Windows.
    I'm not sure "exactly" what that means, but that could be interpreted as: The rename() function works on Windows as of PHP 5.3.1 (and later versions).
    Last edited by chump2877; 08-05-2013 at 09:08 AM.
    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!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  5. #845
    New Coder
    Join Date
    Jun 2013
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    I'm using php 5.2.X
    maybe that's the reason?

    regards,
    Repeat Youtube
    Convert Youtube
    Free audio editor online

  6. #846
    New Coder
    Join Date
    Jun 2013
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    Or maybe you want to test it on a lower version of PHP?

  7. #847
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,860
    Thanks
    22
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by rajah View Post
    I'm using php 5.2.X
    maybe that's the reason?

    regards,
    Repeat Youtube
    Convert Youtube
    Free audio editor online
    Check the minimum requirements to run this software: http://www.codingforums.com/showpost...08&postcount=1. You need at least PHP 5.3. That could very well be the issue here.

    I'm surprised you can get anything to work using 5.2.x.
    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!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  8. #848
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Ha youtube changed their code again? Vevo does't seem to work. I have v 0.3

  9. #849
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    correction: "Ha" meant to be "has"

  10. #850
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,860
    Thanks
    22
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by bakermanus View Post
    Ha youtube changed their code again? Vevo does't seem to work. I have v 0.3
    Your software will auto-update to decryption fix version 0.4 within the hour.
    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!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  11. #851
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hello i am also having an issue with getting the converting the video to work. it downloads fine but gets stuck when trying to convert. i checked with my host and they installed . Apache
    . PHP 5.3+
    . cURL enabled
    ffmpeg-php (PHP extension) enabled for Linux
    and still same issue i even ut the absolute path for the ffmpeg and nothing works. heres my url http://realtalksociety.com/you2m
    Last edited by VIPStephan; 08-07-2013 at 09:29 PM.

  12. #852
    New Coder
    Join Date
    Jul 2012
    Posts
    14
    Thanks
    3
    Thanked 0 Times in 0 Posts
    looks like they changed it again

    vevo video: http://www.youtube.com/watch?v=EVBsypHzF3U

  13. #853
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,860
    Thanks
    22
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by zhanly View Post
    looks like they changed it again

    vevo video: http://www.youtube.com/watch?v=EVBsypHzF3U
    Your software will auto-update to decryption fix version 0.5 within the hour.
    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!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  14. Users who have thanked chump2877 for this post:

    zhanly (08-07-2013)

  15. #854
    New Coder
    Join Date
    Jun 2013
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    Quote Originally Posted by chump2877 View Post
    Check the minimum requirements to run this software: http://www.codingforums.com/showpost...08&postcount=1. You need at least PHP 5.3. That could very well be the issue here.

    I'm surprised you can get anything to work using 5.2.x.
    yes, I changed the script a little bit so it works well in my php

    my code works for php 5.2.x higher

  16. #855
    New Coder
    Join Date
    Jul 2012
    Posts
    14
    Thanks
    3
    Thanked 0 Times in 0 Posts
    I'm curious how can we deal with captcha from youtube? they redirect to a page where we have to enter captcha due to unusual high traffic from the server running the script.


 
Page 57 of 91 FirstFirst ... 747555657585967 ... LastLast

LinkBacks (?)

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