Web Analytics Made Easy -
StatCounter YouTube-to-MP3 conversion - PHP class and script - CodingForum

Announcement

Collapse
No announcement yet.

YouTube-to-MP3 conversion - PHP class and script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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 our YouTube-to-Mp3 Conversion Script on Facebook !! :-)
    [Instructional videos and tutorials are also available on YouTube, Dailymotion, and Vimeo]
    Explore all products and services, view demos, review documentation, check prices, and more!
    ♪♪ …Need Web Hosting For Our YouTube-To-Mp3 Conversion Software? Check Here !!… ♪♪

    Comment


    • Works, thank you!

      Comment


      • 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
        Regards, R.J.

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

        Help spread the word! Like our YouTube-to-Mp3 Conversion Script on Facebook !! :-)
        [Instructional videos and tutorials are also available on YouTube, Dailymotion, and Vimeo]
        Explore all products and services, view demos, review documentation, check prices, and more!
        ♪♪ …Need Web Hosting For Our YouTube-To-Mp3 Conversion Software? Check Here !!… ♪♪

        Comment


        • 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 our YouTube-to-Mp3 Conversion Script on Facebook !! :-)
          [Instructional videos and tutorials are also available on YouTube, Dailymotion, and Vimeo]
          Explore all products and services, view demos, review documentation, check prices, and more!
          ♪♪ …Need Web Hosting For Our YouTube-To-Mp3 Conversion Software? Check Here !!… ♪♪

          Comment


          • Thanks! it works
            you are genius

            regards,
            vidtunez admin
            http://www.vidtunez.com
            regards,
            Repeat Youtube
            Convert Youtube
            Free Audio Editor Online

            Comment


            • 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;

              Comment


              • 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; Sep 21st, 2013, 01:11 AM.
                Regards, R.J.

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

                Help spread the word! Like our YouTube-to-Mp3 Conversion Script on Facebook !! :-)
                [Instructional videos and tutorials are also available on YouTube, Dailymotion, and Vimeo]
                Explore all products and services, view demos, review documentation, check prices, and more!
                ♪♪ …Need Web Hosting For Our YouTube-To-Mp3 Conversion Software? Check Here !!… ♪♪

                Comment


                • What about error like this:

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

                  Comment


                  • 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 our YouTube-to-Mp3 Conversion Script on Facebook !! :-)
                    [Instructional videos and tutorials are also available on YouTube, Dailymotion, and Vimeo]
                    Explore all products and services, view demos, review documentation, check prices, and more!
                    ♪♪ …Need Web Hosting For Our YouTube-To-Mp3 Conversion Software? Check Here !!… ♪♪

                    Comment


                    • 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

                      Comment


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

                        Comment


                        • 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 our YouTube-to-Mp3 Conversion Script on Facebook !! :-)
                          [Instructional videos and tutorials are also available on YouTube, Dailymotion, and Vimeo]
                          Explore all products and services, view demos, review documentation, check prices, and more!
                          ♪♪ …Need Web Hosting For Our YouTube-To-Mp3 Conversion Software? Check Here !!… ♪♪

                          Comment


                          • Hi, tested them and most seem to work and this one doesent https://www.youtube.com/watch?v=eU4ZvfkmOck

                            Comment


                            • 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 Files
                              Regards, R.J.

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

                              Help spread the word! Like our YouTube-to-Mp3 Conversion Script on Facebook !! :-)
                              [Instructional videos and tutorials are also available on YouTube, Dailymotion, and Vimeo]
                              Explore all products and services, view demos, review documentation, check prices, and more!
                              ♪♪ …Need Web Hosting For Our YouTube-To-Mp3 Conversion Software? Check Here !!… ♪♪

                              Comment


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

                                Comment

                                Working...
                                X