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 65 of 78 FirstFirst ... 1555636465666775 ... LastLast
Results 961 to 975 of 1167
Like Tree4Likes

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

  1. #961
    New Coder
    Join Date
    Jan 2013
    Posts
    42
    Thanks
    1
    Thanked 0 Times in 0 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

  2. #962
    New Coder
    Join Date
    Jan 2013
    Posts
    42
    Thanks
    1
    Thanked 0 Times in 0 Posts
    http:// www . th3mp3 . com / php.ini

  3. #963
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,773
    Thanks
    19
    Thanked 155 Times in 146 Posts
    Quote 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; 10-16-2013 at 10:57 PM.
    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. #964
    New Coder
    Join Date
    Jan 2013
    Posts
    42
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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; 10-16-2013 at 11:09 PM.

  5. #965
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,773
    Thanks
    19
    Thanked 155 Times in 146 Posts
    Quote 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 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!

  6. #966
    New Coder
    Join Date
    Sep 2012
    Location
    Germany
    Posts
    39
    Thanks
    11
    Thanked 2 Times in 2 Posts
    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/

  7. #967
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,773
    Thanks
    19
    Thanked 155 Times in 146 Posts
    Quote 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 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. #968
    New Coder
    Join Date
    Sep 2012
    Location
    Germany
    Posts
    39
    Thanks
    11
    Thanked 2 Times in 2 Posts
    Quote 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.

  9. #969
    New Coder
    Join Date
    Sep 2012
    Location
    Germany
    Posts
    39
    Thanks
    11
    Thanked 2 Times in 2 Posts
    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; 10-17-2013 at 06:54 PM.

  10. #970
    New Coder
    Join Date
    Jan 2013
    Posts
    42
    Thanks
    1
    Thanked 0 Times in 0 Posts

    thanks bro

    hi bro i fixed the problem
    in httpd.conf
    Thanks bro for your help
    Last edited by phpLover7; 10-18-2013 at 03:07 AM.

  11. #971
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,773
    Thanks
    19
    Thanked 155 Times in 146 Posts

    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 Attached Files
    Last edited by chump2877; 10-18-2013 at 08:24 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!

  12. #972
    New Coder
    Join Date
    Jan 2013
    Posts
    42
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Cool hhhhhhhh

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

  13. #973
    New Coder
    Join Date
    May 2013
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry 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

  14. #974
    New Coder
    Join Date
    Jan 2013
    Posts
    42
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Post 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

  15. #975
    New Coder
    Join Date
    May 2013
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy

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


 
Page 65 of 78 FirstFirst ... 1555636465666775 ... 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
  •