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 hedi View Post
    hi chump,
    Since today, script is not working on my website (Tأ©lأ©charger videos youtube), and on none of the websites listed above (YouTubeMp3.fm Free Online Media Converter ...).
    "Error downloading remote file".
    But the script works on your dev server The Best YouTube to MP3 Converter - YourConversionSite.com

    is your edit (requiressl) on your post mandatory ?
    i have modified like you say on your post above, but not like the edited part of your post
    Hi,

    Please refer to the fix in the second EDIT block in this forum post: http://codingforum.net/post-php-snip...ml#post1424012

    This will address your issue.

    Later today, I will be releasing new versions of both the free and commercial software (that include this fix). Their release will be announced in this forum thread.

    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


    • Originally posted by hmz_06 View Post
      yes not working free mode script
      New version of the free software is coming in the next few hours!

      Hang in there! Providence is almost here!

      In the meantime, please follow the instructions in this post to get the free version working correctly: http://codingforum.net/post-php-snip...ml#post1424012

      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


      • New Version!

        Hello everyone,

        I have just finished updating the paid-for version of my software. New in this version:
        1. I have added support for the download/conversion of Instagram and AOL videos!
          • Instagram video URLs must be in the format: "http://instagram.com/p/vIyKcyNdV-"
          • AOL video URLs must be in the format: "http://on.aol.com/video/dogs-hang-ten-518439815"

        2. I have updated the bookmarklet/plugin to include support for SoundCloud, Instagram, and AOL.
          • SoundCloud compatibility requires a valid SSL certificate on your web server. Instagram and AOL do not require SSL.
          • To reiterate: The plugin will work better if you have a valid, up-to-date SSL certificate on your server. SSL certs are relatively simple to install, and you can even get them for free from providers like this one: https://www.startssl.com/?app=1. (This is the same certificate provider used on the demo site: Get our Addon or Plugin - Grabfrom.com.)

        3. I have moved the existing README and SETUP files to a new "docs" folder in the distribution. I have added a new file in the "docs" folder that provides instructions for server setup and software installation on a CentOS box. (The existing SETUP file continues to cater to an Ubuntu Linux server configuration and installation.)
        4. Many of you have been experiencing slow YouTube video downloads and/or some YouTube videos were not downloading at all.
          • This is due to the random presence or absence of certain URL query string parameters in the YouTube video download URLs.
          • I have fixed this problem by accounting for all possible scenarios (with respect to the presence or absence of certain query string parameters). Thus, if a query string parameter is missing, it is automatically included in the download URL. And if a parameter already exists in the URL, then it is not automatically included.

        5. Some of you have had problems with YouTube video download links returning HTTP 302 responses and not automatically redirecting to the correct URL. This is resulting in failed YouTube video downloads.
          • This happens because at least one known YouTube cache server is not configuring HTTP 302 redirects correctly (in a way that cURL can perform the redirection automatically).
          • The offending cache server has the following domain: "http://redirector.googlevideo.com".
          • I have fixed the issue by manually picking out the redirect URL from the HTTP headers in the 302 response and manually redirecting the request to the correct video download URL.

        6. Sometimes the download progress bar would initially skip to 100% and then resume downloading (and download progress) from 0% as it should.
          • This could potentially happen when any video/audio, downloaded from any site, initially sends a HTTP 302 response and then quickly redirects (via cURL or manually) to the actual download URL.
          • The problem has been fixed by configuring the download progress bar to only display progress for HTTP 200 responses.

        7. Various (minor) bug fixes and refactoring of code


        Extensive modifications were made to the software in this release
        . So many, in fact, that I have included a 'reports' directory in this ZIP distribution to clearly identify which code has changed since the previous version. Each report shows a side-by-side, graphic comparison of the previous and current versions of a given file.

        The following files were changed/added:
        1. bookmarklet/bookmarklet.js updated
          • See corresponding report in 'reports' directory in attached ZIP file for line-by-line illustration of code changes

        2. bookmarklet/bookmarklet-styles.css updated
          • See corresponding report in 'reports' directory in attached ZIP file for line-by-line illustration of code changes

        3. bookmarklet/getFileTypes.php updated
          • See corresponding report in 'reports' directory in attached ZIP file for line-by-line illustration of code changes

        4. docs/ new!
        5. extractors/AOL.php new!
        6. extractors/Instagram.php new!
        7. extractors/YouTube.php updated
          • See corresponding report in 'reports' directory in attached ZIP file for line-by-line illustration of code changes

        8. inc/share_buttons_popup.php updated
          • See corresponding report in 'reports' directory in attached ZIP file for line-by-line illustration of code changes

        9. .htaccess updated
          • See corresponding report in 'reports' directory in attached ZIP file for line-by-line illustration of code changes

        10. edit.php updated
          • See corresponding report in 'reports' directory in attached ZIP file for line-by-line illustration of code changes

        11. Config.class.php updated
          • See corresponding report in 'reports' directory in attached ZIP file for line-by-line illustration of code changes

        12. plugin.php updated
          • See corresponding report in 'reports' directory in attached ZIP file for line-by-line illustration of code changes

        13. VideoConverter.class.php updated
          • See corresponding report in 'reports' directory in attached ZIP file for line-by-line illustration of code changes


        If you create a new language file for the software, please donate the file to the code base so that others can benefit from your translations! Simply send me a copy of your updated index.xml file as well as your new *.xml translation file, and I will add it to the software in a future release!


        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


        • New Version!

          Hi everyone,

          A 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. Many of you have been experiencing slow YouTube video downloads and/or some YouTube videos were not downloading at all.
            • This is due to the random presence or absence of certain URL query string parameters in the YouTube video download URLs.
            • I have fixed this problem by accounting for all possible scenarios (with respect to the presence or absence of certain query string parameters). Thus, if a query string parameter is missing, it is automatically included in the download URL. And if a parameter already exists in the URL, then it is not automatically included.

          2. Some of you have had problems with YouTube video download links returning HTTP 302 responses and not automatically redirecting to the correct URL. This is resulting in failed YouTube video downloads.
            • This happens because at least one known YouTube cache server is not configuring HTTP 302 redirects correctly (in a way that cURL can perform the redirection automatically).
            • The offending cache server has the following domain: "http://redirector.googlevideo.com".
            • I have fixed the issue by manually picking out the redirect URL from the HTTP headers in the 302 response and manually redirecting the request to the correct video download URL.

          3. Sometimes the download progress bar would initially skip to 100% and then resume downloading (and download progress) from 0% as it should.
            • This could potentially happen when a video download request initially produces a HTTP 302 response and then quickly redirects (via cURL or manually) to the actual download URL.
            • The problem has been fixed by configuring the download progress bar to only display progress for HTTP 200 responses.


          The existing YouTubeToMp3Converter.class.php file was modified.

          There should be no need to edit software.xml, and thus modifying this file is strongly discouraged.


          YouTubeToMp3Converter.class.php experienced significant code revisions. If you have modified this file (from its default version), then you will likely need to use some kind of file content comparison utility to make the necessary changes.

          software.xml should be set to chmod 0777, or the lowest permissions possible that still enable programmatic modification of the file. Moreover, the directory that contains software.xml should be writable, and directory permissions should be modified accordingly.

          As always, please let me know if you have any questions/concerns regarding the above and/or the code.

          Keep the free version FREE !!
          Please make a donation to help finance ongoing maintenance of this code.
          Thanks!

          Attached Files
          Last edited by chump2877; Dec 6th, 2014, 08:15 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


          • Hi, this one seems to be a very good script. I intend to buy the PRO version, but I would like to know first if the script supports a quick integration YOUTUBE > MP3?

            Like for example:

            http://mywebsite.com?url={video_url}

            I am looking forward to hearing from you. Thank you!

            Comment


            • I forgot to ask: do we need a dedicated server to run this script ?

              Thank you!

              Comment


              • Hi,

                Originally posted by xxxnewbiexxx View Post
                supports a quick integration YOUTUBE > MP3?

                Like for example:

                http://mywebsite.com?url={video_url}
                This Script supports quick conversion

                http://mywebsite.com/yt/{video_id}/mp3


                or

                http://mywebsite.com/?vidHost=yt&vidID={video_id}&ftype=mp3



                Originally posted by xxxnewbiexxx View Post
                I forgot to ask: do we need a dedicated server to run this script ?
                You need a VPS or Dedicated Server
                shared ffmpeg hosting works, but it is not recommended.
                Regards, Andre
                Support for YouTube Media Converter and Server Management.
                Emailt: support [{AT}] mp3youtu [{DOT}] be

                Comment


                • Originally posted by Luckyplaya View Post
                  Hi,



                  This Script supports quick conversion

                  http://mywebsite.com/yt/{video_id}/mp3


                  or

                  http://mywebsite.com/?vidHost=yt&vidID={video_id}&ftype=mp3





                  You need a VPS or Dedicated Server
                  shared ffmpeg hosting works, but it is not recommended.
                  Thanks Andre!

                  Let me supplement his response with the following:

                  1. Take a look at this forum post to see all URL formats supported (for conversion directly via URL): http://codingforum.net/post-php-snip...ml#post1407635. (Also reiterated on Facebook: https://www.facebook.com/12803950406...levant_count=1)
                  2. It would not be that hard to write some custom code to support this kind of URL as well: http://mywebsite.com?url={video_url}. But that URL format does not support a file type parameter, so it would have to default to conversion to MP3, for example, as opposed to allowing any downloaded/converted file type.
                  3. The custom code would have to pick out the video host name and video ID from the video page URL, and then assign these values to the corresponding, existing code that receives new conversion requests.
                  4. Maybe in the future, if there is a demand for it, I will add this URL format to the list of possible formats that you can use to initiate a download/conversion. For now, this format is not included. If you need this now, you can either write the extra code yourself, or I could do this for you for an additional fee. Please PM me if the latter option interests you.
                  5. To clarify, my software supports shared, VPS, and dedicated hosting. That said, if you choose shared hosting, I think you will find that you will quickly outgrow your allotted resources. So, with shared hosting (and even VPS hosting), you will want to choose a plan that facilitates upgrading to a more powerful hosting plan as needed, and as your traffic increases. So, shared hosting can be a great place to start as long as you have the capability to scale up your server resources as needed!
                  6. To answer the original question, you do not need a dedicated server to start with! Again, the best, initial approach is to choose an affordable plan that can be easily upgraded as needed. And, when you get to a point where you are bringing in loads of traffic, then you could explore migrating to a dedicated server.
                  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
                    I just purchased script and install it on my own linux server and something is not right.
                    I did search and read true whole treads and couldn't resolve my issue.
                    I did went true configuration file and believe is all good as i can see.
                    Error i receive on URL link
                    This domain is not authorized to access this software!

                    (Did you forget to add your domains/subdomains to the $_authorizedDomains array in the configuration class file?)
                    Also i went true install videos for free version of script didn't help me to fix the problem.

                    ffmpeg i do have installed on dedicated server

                    Thank you for any help

                    Comment


                    • Fix it all good

                      Thank you

                      Comment


                      • Thanks Luckyplaya!

                        Comment


                        • Thanks chump2877 for the explanation!

                          I just bought the PRO version of the script and will start playing with it a little bit ;-)


                          Originally posted by chump2877 View Post
                          Thanks Andre!

                          Let me supplement his response with the following:

                          1. Take a look at this forum post to see all URL formats supported (for conversion directly via URL): http://codingforum.net/post-php-snip...ml#post1407635. (Also reiterated on Facebook: https://www.facebook.com/12803950406...levant_count=1)
                          2. It would not be that hard to write some custom code to support this kind of URL as well: http://mywebsite.com?url={video_url}. But that URL format does not support a file type parameter, so it would have to default to conversion to MP3, for example, as opposed to allowing any downloaded/converted file type.
                          3. The custom code would have to pick out the video host name and video ID from the video page URL, and then assign these values to the corresponding, existing code that receives new conversion requests.
                          4. Maybe in the future, if there is a demand for it, I will add this URL format to the list of possible formats that you can use to initiate a download/conversion. For now, this format is not included. If you need this now, you can either write the extra code yourself, or I could do this for you for an additional fee. Please PM me if the latter option interests you.
                          5. To clarify, my software supports shared, VPS, and dedicated hosting. That said, if you choose shared hosting, I think you will find that you will quickly outgrow your allotted resources. So, with shared hosting (and even VPS hosting), you will want to choose a plan that facilitates upgrading to a more powerful hosting plan as needed, and as your traffic increases. So, shared hosting can be a great place to start as long as you have the capability to scale up your server resources as needed!
                          6. To answer the original question, you do not need a dedicated server to start with! Again, the best, initial approach is to choose an affordable plan that can be easily upgraded as needed. And, when you get to a point where you are bringing in loads of traffic, then you could explore migrating to a dedicated server.

                          Comment


                          • The script is working great !!! I just have a question:

                            I set the script in the Config.class.php file to delete the age files every day - const _MAX_AGE_FILES = '86400';

                            I am using a dedicated Linux server. My question is:

                            Do I have to set a cron job for that or the script is already set to delete age files after the set the Config.class.php file???

                            Thank you!

                            Comment


                            • Originally posted by xxxnewbiexxx View Post
                              The script is working great !!! I just have a question:

                              I set the script in the Config.class.php file to delete the age files every day - const _MAX_AGE_FILES = '86400';

                              I am using a dedicated Linux server. My question is:

                              Do I have to set a cron job for that or the script is already set to delete age files after the set the Config.class.php file???

                              Thank you!
                              Hi!

                              You will have to set up schedule.php to run as a regular cron job on the server (in addition to the Config class setting).

                              I recommend running the cron job every few hours, and no less than once a day. The frequency that it needs to run will depend on your traffic and the amount of available hard disk space on your server.

                              Do let me know if I can be of any further assistance.

                              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


                              • are deleted after video conversion , you to help me ?

                                Comment

                                Working...
                                X