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

  • Originally posted by bbrog View Post
    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!
    This is a great idea! I will investigate this possibility....

    I do already email new releases directly to previous purchasers of the paid-for version. So they are aware of new versions as soon as they are released (assuming they check their email!).

    In the meantime, a couple of other ideas for you:

    1) You could subscribe to this forum thread. Then you would be notified by email whenever someone posts to this thread. (I always post to this thread when I release new versions of the free and paid-for versions, and I always provide documentation about new changes/features as well as files/code that has changed.)

    2) There are also various kinds of software that check for changes in your favorite web sites and report those changes to you: https://www.google.com/search?q=chec...ient=firefox-a.
    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


    • Originally posted by bbrog View Post
      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!
      Per your excellent suggestion, I have created an email newsletter sign-up form for users of both the free and paid-for versions of my software.

      Please provide your email address via the supplied form if you would like to be sent free updates about new software version releases, features, and bug fixes. I may also use this list to gather feedback from you guys about existing features, to collect new ideas for software functionality, and/or to feature sites using my software in the SPOTLIGHT! section of this forum thread.

      Note: In general, I will only send out emails when it's relevant to your continued use of the software and/or when I require your feedback to improve the software. (I hate spam as much as the next guy! ) You will be provided with the means to unsubscribe from the list at any time.

      I encourage anyone who is currently using this software (or plans to use this software in the future) to sign up to this list. I hope to further facilitate the release process via this list as well as to use it as a means to improve the software in general. At the end of the day, I am just excited to have another way to communicate with all of you.

      Thank you all again for your continued, enthusiastic support of this software, and have a great day!

      Edit: Purchasers of the paid-for version of this script will continue to receive new versions of the software only via the email addresses that they supplied at Tradebit.com.
      Last edited by chump2877; Jul 4, 2013, 09:25 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


      • Dailymotion is not Working.
        Regards, Andre
        Support for YouTube Media Converter and Server Management.
        Emailt: support [{AT}] mp3youtu [{DOT}] be

        Comment


        • Originally posted by Luckyplaya View Post
          I can confirm this. Dailymotion changed something recently, and DM videos no longer convert in the paid-for version of my software. I will investigate solutions to this problem and post an update here when the problem is resolved. 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


          • Dailymotion Update!

            I have programmed a fix for the Dailymotion video conversion issue. I'll likely need a few hours to test the software, and then I will email all previous customers a copy of the new version.

            Again, I will post an update here when the latest release of the paid-for version of my software becomes available. Stay tuned!
            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. Dailymotion changed the location/format of their video URLs. This fix addresses that change.


              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 DownloadVideo() and SetVidSourceUrls() methods 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


              • Hi everyone,

                A point of interest that I wanted to share:

                By default, the paid-for version of my software uses the libx264 codec for converting to FLV, MP4, and 3GP formats. It is best (if not required) to set a preset when using libx264 via FFmpeg. In my experience, using Ubuntu (and perhaps Debian as well), the following works fine for setting the 'veryfast' preset in your FFmpeg command:

                Code:
                -vpre veryfast
                However, you may find that on CentOS (and perhaps Red Hat as well) that you need to use the following flag instead:

                Code:
                -preset veryfast
                Hope that helps some of you out there!
                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 everyone,

                  YouTube has changed something on their site again, and it appears certain video channels (like Vevo) are not converting at the moment.

                  I am aware of the issue, and I am investigating a fix.

                  Thank you for your patience, and please stay tuned for an update in this forum thread regarding such a fix (and a new version of my software).
                  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


                  • Here is the preliminary fix for both the free and paid-for versions. Replace the DecryptYouTubeCypher() method in the converter class with the following:

                    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($s, 52, 1) . strrev(substr($s, 56, 26)) . substr($s, 2, 1) . strrev(substr($s, 53, 2)) . substr($s, 82, 1) . strrev(substr($s, 37, 15)) . substr($s, 55, 1) . strrev(substr($s, 3, 33)) . substr($s, 36, 1);
                                        
                    $s substr($s081);
                                        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 provide confirmation that this fix is working, and I will subsequently push out new versions of my software. Thanks!
                    Last edited by chump2877; Jul 10, 2013, 12:58 PM.
                    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 thanks!

                      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) YouTube changed the encryption used on video signatures again, and this fix addresses that change. (Vevo and other similar channels were affected.)

                        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
                        Last edited by chump2877; Jul 26, 2013, 10:42 AM. Reason: Updated zip file with latest version !!!!
                        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. YouTube changed the encryption used on video signatures again, and this fix addresses that change. (Vevo and other similar channels were affected.)


                          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


                          • Hello, Sir.

                            I just wanna say thank you for this great scripts..

                            Comment


                            • error in generated mp3

                              Hello,

                              first thank you for this great script.
                              But i got a little problem with the script: The resulting mp3 is a little bit broken because its not seekable und some players are reporting a wrong duration.
                              I found out that this can happen with old versions of ffmpeg which are dont write the xing header correctly.

                              ffmpeg version:
                              ffmpeg 0.8.6-4:0.8.6-0ubuntu0.12.04.1
                              libavutil 51. 22. 1 / 51. 22. 1
                              libavcodec 53. 35. 0 / 53. 35. 0
                              libavformat 53. 21. 1 / 53. 21. 1
                              libavdevice 53. 2. 0 / 53. 2. 0
                              libavfilter 2. 15. 0 / 2. 15. 0
                              libswscale 2. 1. 0 / 2. 1. 0
                              libpostproc 52. 0. 0 / 52. 0. 0


                              So i tried to compile a newer one with the latest git repos:

                              ffmpeg version N-54178-gbbe26ef
                              built on Jun 25 2013 20:34:42 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
                              configuration: --enable-libmp3lame
                              libavutil 52. 37.101 / 52. 37.101
                              libavcodec 55. 17.100 / 55. 17.100
                              libavformat 55. 9.100 / 55. 9.100
                              libavdevice 55. 2.100 / 55. 2.100
                              libavfilter 3. 77.101 / 3. 77.101
                              libswscale 2. 3.100 / 2. 3.100
                              libswresample 0. 17.102 / 0. 17.102

                              as i can see in mp3 folder, this version does generate a correkt mp3, its seekable und players are report the correct duration. but the problem is now that the script hangs after downloading the video from youtube. The conversion progressbar appears,but hang on 0% .

                              So could anybody what could be the reason for this?
                              Is it possible to disable the conversion progressbar, so that the download button will appear after creation of mp3 ?


                              best regards,

                              tequilaz

                              Comment


                              • Hi tequilaz,

                                To clarify:
                                The resulting mp3 is a little bit broken because its not seekable und some players are reporting a wrong duration.
                                So you are running the script on an Ubuntu Linux box, and in order to fix the above issue, you had to compile FFmpeg yourself using the latest code from the git source instead of doing a 'apt-get install ffmpeg' from the command line?

                                Out of curiosity, what if you used 'avconv' instead of 'ffmpeg' to do the conversion? So, in config.class.php, just set _FFMPEG constant as (for example):

                                PHP Code:
                                const _FFMPEG '/usr/bin/avconv'
                                Since FFmpeg is supposedly deprecated on Ubuntu/Debian, I wonder if the 'apt-get install' version of avconv produces "better" converted files? And with avconv, maybe your mp3 files are now 'seekable' and report correct duration on certain mp3 players?

                                but the problem is now that the script hangs after downloading the video from youtube. The conversion progressbar appears,but hang on 0% .
                                It sounds like the MP3 files are being generated, but the conversion progress bar is not moving. In that case, please copy/paste the output of a corresponding log file in the 'logs' directory. I'm guessing that I can find a clue to the source of the problem in there...
                                Last edited by chump2877; Jul 11, 2013, 07:16 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

                                Working...
                                X