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 50 of 79 FirstFirst ... 40484950515260 ... LastLast
Results 736 to 750 of 1172
Like Tree5Likes

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

  1. #736
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,776
    Thanks
    19
    Thanked 155 Times in 146 Posts
    Hoooray! (I think.)

    Here is the preliminary fix to address the latest YouTube change. This code is meant to be a drop-in replacement for the DecryptYouTubeCypher() method (located in either YouTubeToMp3Converter.class.php or VideoConverter.class.php), and it is intended for both the free and paid-for versions of my software:

    PHP Code:
            private function DecryptYouTubeCypher($signature)
            {
                
    $s $signature;
                
    $sigLength strlen($s);
                switch (
    $sigLength)
                {
                    case 
    88:
                        
    $s substr($s481) . strrev(substr($s6814)) . substr($s821) . strrev(substr($s634)) . substr($s851) . strrev(substr($s4913)) . substr($s671) . strrev(substr($s1335)) . substr($s31) . strrev(substr($s48)) . substr($s21) . substr($s121);
                        break;
                    case 
    87:
                        
    $s substr($s621) . strrev(substr($s6320)) . substr($s831) . strrev(substr($s539)) . substr($s01) . strrev(substr($s349));
                        break;
                    case 
    86:
                        
    $s substr($s261) . substr($s821) . substr($s6418) . substr($s631);
                        break;
                    case 
    85:
                        
    $s substr($s761) . strrev(substr($s776)) . substr($s831) . strrev(substr($s6115)) . substr($s01) . strrev(substr($s519)) . substr($s11) . strrev(substr($s347));
                        break;
                    case 
    84:
                        
    $s strrev(substr($s3747)) . substr($s21) . strrev(substr($s279)) . substr($s31) . strrev(substr($s422)) . substr($s261);
                        break;
                    case 
    83:
                        
    $s substr($s521) . strrev(substr($s5626)) . substr($s21) . strrev(substr($s532)) . substr($s821) . strrev(substr($s3715)) . substr($s551) . strrev(substr($s333)) . substr($s361);
                        break;
                    case 
    82:
                        
    $s substr($s361) . strrev(substr($s6812)) . substr($s811) . strrev(substr($s4126)) . substr($s331) . strrev(substr($s373)) . substr($s401) . substr($s351) . substr($s01) . substr($s671) . strrev(substr($s132)) . substr($s341);
                        break;
                    default:
                        
    $s $signature;
                }
                return 
    $s;
            } 
    Please let me know if this new code works for you. Thanks for your patience.
    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. #737
    New Coder
    Join Date
    Mar 2010
    Posts
    11
    Thanks
    2
    Thanked 1 Time in 1 Post
    Works, thank you!

  3. #738
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,776
    Thanks
    19
    Thanked 155 Times in 146 Posts
    The new (updated and hopefully stable) distribution of files is located at the bottom of this post.

    PLEASE SEE THIS POST FOR IMPORTANT INFO REGARDING THE USE AND INSTALLATION OF THIS SCRIPT.

    DO NOT USE THE ZIP DISTRIBUTION LOCATED AT THE ABOVE LINKED PAGE. USE ONLY THE ZIP FILE ATTACHED TO THE BOTTOM OF THIS POST.
    New in this release:

    1) This fix addresses yet another problem with the conversion of Vevo videos.

    Only YouTubeToMp3Converter.class.php was modified, and (since the last update) only code in the existing DecryptYouTubeCypher() method was updated.

    I will soon be updating the paid-for version of the app as well, and I will email an updated (free) copy to all those who have already purchased the script. (Updates will be sent to your Tradebit email addresses only.)

    As always, please let me know if you have any questions/concerns regarding the above and/or the code.
    Attached Files Attached Files
    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. #739
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,776
    Thanks
    19
    Thanked 155 Times in 146 Posts
    Hello everyone,

    I have just finished updating the paid-for version of my software. New in this version:

    1. Fix to address yet another problem with the conversion of Vevo videos.


    The following files/directories were changed/added:
    1. VideoConverter.class.php updated


    Only VideoConverter.class.php was updated, and (since the last update) only code in the DecryptYouTubeCypher() method was changed/added.

    All previous customers who have purchased the paid-for version of my app are receiving this new, updated version via the e-mail addresses that you provided at Tradebit.com.

    Please report any issues with either the paid-for version or the free version in this forum thread. Your feedback is encouraged. Donations are welcome!

    Thanks!
    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!

  5. #740
    New Coder
    Join Date
    Jun 2013
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    Thanks! it works
    you are genius

    regards,
    vidtunez admin
    http://www.vidtunez.com

  6. #741
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hi,

    seen your responses and it seems you are professional in your work and trustworthy person to buy from.

    i'm just about to buy the paid version of your script, since you promised full support with it.

    but i have 1 small a question if you can pls clarify how your script can handle this issue..

    since all the requests will be made to youtube from my server, wouldnt youtube eventually ban the ip of my server and then its game over?

    how can i avoid youtube banning my ip? your demo seems to be working fine but thats probably because not many requests are being made thru it every day.

    but if i put this on my site and i start getting thousands of hits, all requests going to youtube at the same time; i dont think this will work whats your solution to this?

    thanks in advance;

  7. #742
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,776
    Thanks
    19
    Thanked 155 Times in 146 Posts
    Quote Originally Posted by samihabby View Post
    hi,

    seen your responses and it seems you are professional in your work and trustworthy person to buy from.

    i'm just about to buy the paid version of your script, since you promised full support with it.

    but i have 1 small a question if you can pls clarify how your script can handle this issue..

    since all the requests will be made to youtube from my server, wouldn’t youtube eventually ban the ip of my server and then its game over?

    how can i avoid youtube banning my ip? your demo seems to be working fine but that’s probably because not many requests are being made thru it every day.

    but if i put this on my site and i start getting thousands of hits, all requests going to youtube at the same time; i dont think this will work… what’s your solution to this?

    thanks in advance;
    Hi,

    Your best bet, if you are anticipating a lot of traffic, is to purchase a bunch of proxy IPs (from here, for example) and have each video download/conversion alternate between using the different IPs (set in your cURL download request). You can keep track of how often each proxy IP is used by storing them in a database table and incrementing a 'used' field value every time a given proxy is used. So, in this way, you can enable cycling through multiple proxy IPs for your video downloads, and ensure that each proxy IP is used equally. Thereby minimizing the likelihood of your site getting banned by YouTube for excessive video pulls.

    And as your traffic increases, then you can just add more proxies.

    I have developed systems like this before -- leveraging proxies to avoid exceeding YouTube quotas (for both video pulls and API requests) and the resulting temporary IP bans. If you like, I am available to assist you with the implementation of this strategy. However, I would have to charge you extra for the custom work.

    I hope I answered your question adequately, and do let me know if you require any further assistance.

    Edit: By the way, it is important to note that when purchasing proxy IPs, you should ensure that the proxy servers are as close as geographically possible to the physical location of your web server. You should also match up the network/download speeds of your web server and proxy servers. All of this maximizes the performance and speed of your proxies (and, ultimately, your web site). So, when configured correctly, your proxy requests should be nearly as fast as regular web server requests.
    Last edited by chump2877; 09-21-2013 at 06:11 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!

  8. #743
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts
    What about error like this:

    Parse error: syntax error, unexpected T_FUNCTION in /converter/YouTubeToMp3Converter.class.php on line 262

  9. #744
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,776
    Thanks
    19
    Thanked 155 Times in 146 Posts
    Quote Originally Posted by eurynomoss View Post
    What about error like this:

    Parse error: syntax error, unexpected T_FUNCTION in /converter/YouTubeToMp3Converter.class.php on line 262
    Check your PHP version. Anonymous functions are not supported before PHP 5.3.

    My script requires at least PHP 5.3 to function correctly. Please check the "SERVER REQUIREMENTS. . ." section here.
    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!

  10. Users who have thanked chump2877 for this post:

    eurynomoss (06-29-2013)

  11. #745
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    chump2877 you are a Genius
    thanks a lot for your work, i think you should continue as long as you can with your product, i will purchase it in the week.

    Bye

  12. #746
    New Coder
    Join Date
    Jun 2012
    Posts
    45
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Hi, I was wondering if vevo links are still working? seems to be giving errors

    Latest script I have is 6-28-13.zip

    Thanks!

  13. #747
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,776
    Thanks
    19
    Thanked 155 Times in 146 Posts
    Quote Originally Posted by bbrog View Post
    Hi, I was wondering if vevo links are still working? seems to be giving errors

    Latest script I have is 6-28-13.zip

    Thanks!
    I'm not having any problems with converting vevo videos.

    Can you provide URLs of vevo videos that are not working?
    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!

  14. #748
    New Coder
    Join Date
    Jun 2012
    Posts
    45
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Hi, tested them and most seem to work and this one doesent https://www.youtube.com/watch?v=eU4ZvfkmOck

  15. #749
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,776
    Thanks
    19
    Thanked 155 Times in 146 Posts
    Quote Originally Posted by bbrog View Post
    Hi, tested them and most seem to work and this one doesent https://www.youtube.com/watch?v=eU4ZvfkmOck
    I'm not having any trouble converting that video in either the free or paid-for version. See attached screenshots.
    Attached Thumbnails Attached Thumbnails YouTube-to-MP3 conversion - PHP class and script-scrnshot.png   YouTube-to-MP3 conversion - PHP class and script-scrnshot2.png  
    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!

  16. #750
    New Coder
    Join Date
    Jun 2012
    Posts
    45
    Thanks
    3
    Thanked 0 Times in 0 Posts
    ah ok, just my side then.

    Also just a suggestion is it possible to set something up like allowing users to signup for a newsletter that would contain info on new releases or new features added and have them emailed to the user directly? This would help get new changes to sites up much quicker.

    Thanks!


 
Page 50 of 79 FirstFirst ... 40484950515260 ... LastLast

LinkBacks (?)

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