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

  • now i put youtube curl work fine but the problem in php.ini

    i creat new one in my
    /var/zpanel/hostdata/zadmin/public_html/th3mp3_com/php.ini
    or i need edit this
    /etc/php.ini

    Comment


    • http:// www . th3mp3 . com / php.ini

      Comment


      • Originally posted by phpLover7 View Post
        http:// www . th3mp3 . com / php.ini
        Your php.ini indicates that there is no open_basedir restriction set. Unless it is set in a custom php.ini or perhaps at runtime?

        What happens if you remove this line (or set its value to zero) in YouTubeToMp3Converter.class.php:

        PHP Code:
        curl_setopt($chCURLOPT_FOLLOWLOCATION1); 
        Edit: Can I see the output of phpinfo()?
        Last edited by chump2877; Oct 16, 2013, 05:57 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


        • curl_setopt($ch, CURLOPT_FILE, $file);
          curl_setopt($ch, CURLOPT_HEADER, 0);
          curl_setopt($ch, CURLOPT_URL, $urls[$vidCount]);
          curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
          curl_setopt($ch, CURLOPT_NOPROGRESS, false);
          curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, array($this, 'UpdateVideoDownloadProgress'));
          curl_setopt($ch, CURLOPT_BUFFERSIZE, 4096000);

          The same error bro i will edit /etc/php.ini ???? right

          [Thu Oct 17 02:07:18 2013] [error] [client 41.248.72.190] PHP Warning: Division by zero in /var/zpanel/hostdata/zadmin/public_html/th3mp3_com/YouTubeToMp3Converter.class.php on line 113, referer: http://www.th3mp3.com/index.php

          php info http:// www .th3mp3 . com / phpinfo.php
          Last edited by phpLover7; Oct 16, 2013, 06:09 PM.

          Comment


          • Originally posted by phpLover7 View Post
            curl_setopt($ch, CURLOPT_FILE, $file);
            curl_setopt($ch, CURLOPT_HEADER, 0);
            curl_setopt($ch, CURLOPT_URL, $urls[$vidCount]);
            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
            curl_setopt($ch, CURLOPT_NOPROGRESS, false);
            curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, array($this, 'UpdateVideoDownloadProgress'));
            curl_setopt($ch, CURLOPT_BUFFERSIZE, 4096000);

            The same error bro i will edit /etc/php.ini ???? right

            [Thu Oct 17 02:07:18 2013] [error] [client 41.248.72.190] PHP Warning: Division by zero in /var/zpanel/hostdata/zadmin/public_html/th3mp3_com/YouTubeToMp3Converter.class.php on line 113, referer: http://www.th3mp3.com/index.php

            php info http:// www .th3mp3 . com / phpinfo.php
            You need to edit the php.ini wherever it is located on your server. The location could vary depending on your version and configuration of Linux.

            The "Division by zero" warning is of no consequence. It is a side-effect of the download progress bar. It is harmless.

            Per your phpinfo() page, your open_basedir directive is set as follows:
            Code:
            open_basedir	/var/zpanel/hostdata/zadmin/public_html/th3mp3_com:/var/zpanel/temp/	no value
            Somewhere, this directive is set on your server. This will cause you problems. I recommend setting it to "" or no value.

            In the php.ini that you showed me earlier, you could remove the ';' in front of the open_basedir assignment, and then restart Apache. That would give you no value for that directive. (Back up your php.ini first before doing this!)
            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 chump,

              I found a site that offers many great options, you can also do that with your converter?

              Here is the page: http://www.filsh.net/
              Regards, Andre
              Support for YouTube Media Converter and Server Management.
              Emailt: support [{AT}] mp3youtu [{DOT}] be

              Comment


              • Originally posted by Luckyplaya View Post
                Hello chump,

                I found a site that offers many great options, you can also do that with your converter?

                Here is the page: http://www.filsh.net/
                I certainly could add some of those features when I get the time. Some of that stuff you can already do with my software.

                Which exact options on that site are you referring to?

                I do keep a "To-do" list that contains features that I'd like to implement in the future. So your request(s) for additional functionality will not fall on deaf ears!...
                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 chump2877 View Post
                  I certainly could add some of those features when I get the time. Some of that stuff you can already do with my software.

                  Which exact options on that site are you referring to?

                  I do keep a "To-do" list that contains features that I'd like to implement in the future. So your request(s) for additional functionality will not fall on deaf ears!...
                  I find the function well if users can select the Audio / Video bitrate itself.
                  As a regulator as your volume control.
                  Regards, Andre
                  Support for YouTube Media Converter and Server Management.
                  Emailt: support [{AT}] mp3youtu [{DOT}] be

                  Comment


                  • Have managed ​​it slider installed for audio and video quality.
                    What I need to do that is passed the selected value?

                    Look here: https://tube-mp3.eu/beta/converter_en_beta/



                    PHP Code:
                    $("#vqualitySlider").slider({
                                    range: "min",
                                    min: 100,
                                    max: 2000,
                                    value: <?php echo Config::_DEFAULT_VIDEO_QUALITY?>,

                                    slide: function(event, ui) { 
                                        var percent = ui.value;
                                        $("#vqualityVal").html(percent + ' kbit/s');
                                        $("input[name='vquality']").val(ui.value);
                                    }
                                });
                        $("#aqualitySlider").slider({
                                    range: "min",
                                    min: 64,
                                    max: 320,
                                    value: <?php echo Config::_DEFAULT_AUDIO_QUALITY?>,

                                    slide: function(event, ui) { 
                                        var percent = ui.value;
                                        $("#aqualityVal").html(percent + ' kbit/s');
                                        $("input[name='aquality']").val(ui.value);
                                    }
                                });
                    Last edited by Luckyplaya; Oct 17, 2013, 01:54 PM.
                    Regards, Andre
                    Support for YouTube Media Converter and Server Management.
                    Emailt: support [{AT}] mp3youtu [{DOT}] be

                    Comment


                    • thanks bro

                      hi bro i fixed the problem
                      in httpd.conf
                      Thanks bro for your help
                      Last edited by phpLover7; Oct 17, 2013, 10:07 PM.

                      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. I have improved the auto-updating feature that automatically updates YouTube video signature decryption code as needed.
                        2. The code used to decipher encrypted YouTube video signatures has changed.


                        Please note the following:
                        • With this release, the entire system for updating decryption code is automated. Up until now, the system was automated on your end, but I still had to manually update my server regularly with new decryption code whenever YouTube changed its encryption algorithm. This is no longer the case! Again, the auto-update feature is now completely automated and free of human intervention. (And I can spend my week nights relaxing instead of waiting for YouTube to change their encryption code several times a week! Hallelujah! )
                        • This version of the auto-update feature should virtually eliminate any possible downtime when YouTube encryption changes.
                        • UtilityFunctions.class.php has been removed from the distribution. It is no longer required. The software.xml file now contains (and combines) both software version and decryption algorithm data.
                        • The old version of auto-updating the software and decrypting video signatures is now officially deprecated. I will still support the old methods for a (very) short period of time, but they may stop working at any point in the near future. It is therefore imperative that you update your software ASAP to the newest version to keep your software working and converting encrypted videos!
                        • The paid-for (commercial) version of my software will continue to run on the old system until such time that I am satisfied that the new system is bug-free and working as expected. Thus, users of the paid-for version should expect a new release of their software sometime in the near future.


                        The existing YouTubeToMp3Converter.class.php and software.xml files were modified, and UtilityFunctions.class.php has been removed. 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.
                        Attached Files
                        Last edited by chump2877; Oct 18, 2013, 03:24 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


                        • hhhhhhhh

                          hhhhhhhh really great news bro hhh
                          you are the best now vevo is work no need change any code

                          Comment


                          • I am running nothing. is that correct?

                            hi !

                            is that correct?

                            config.class.php

                            PHP Code:
                                    const _TEMPVIDDIR '/pampa/mp3/videos/';
                                    const 
                            _CONVERTED_FILEDIR 'output/';
                                    const 
                            _FFMPEG '/home/user/pampa/ffmpeg'
                            php.ini

                            Code:
                            extension=/home/user/pampa/ffmpeg/lib/libavdevice.so
                            extension=/home/user/pampa/ffmpeg/lib/libavfilter.so
                            extension=/home/user/pampa/ffmpeg/lib/libavformat.so
                            extension=/home/user/pampa/ffmpeg/lib/libavcodec.so
                            extension=/home/user/pampa/ffmpeg/lib/libswresample.so
                            extension=/home/user/pampa/ffmpeg/lib/libswscale.so
                            extension=/home/user/pampa/ffmpeg/lib/libavutil.so
                            the page can be opened but does nothing when converting. immediately comes an error downloading video!

                            php = 5.3

                            lg
                            Free mp3 Music Downloads

                            Comment


                            • hi

                              PHP Code:
                              const _FFMPEG '/home/user/pampa/ffmpeg'
                              must be like this
                              PHP Code:
                              const _FFMPEG '/usr/bin/ffmpeg'
                              check your Curl if it's work in server

                              Comment


                              • my folder structure. domain - pampam - ​​ffmpeg + domain - pampam - ​​mp3 <<< here is the script.
                                / usr / bin / ffmpeg does not bring success
                                Free mp3 Music Downloads

                                Comment

                                Working...
                                X
                                😀
                                🥰
                                🤢
                                😎
                                😡
                                👍
                                👎