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 77 of 79 FirstFirst ... 27677576777879 LastLast
Results 1,141 to 1,155 of 1172
Like Tree5Likes

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

  1. #1141
    New to the CF scene
    Join Date
    Jul 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I forgot... this is the site: Firesound - Free YouTube to MP3 Converter

  2. #1142
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,776
    Thanks
    19
    Thanked 155 Times in 146 Posts
    I thought that the problem was the file software.xml but after I delete the error persists...
    After you deleted software.xml, did the file regenerate? What did the regenerated file look like? Was it 0kb in size?

    Read your error message. Line 218 corresponds with this line of code:

    Code:
                else
                {
                    $updateResponse = file_get_contents('http://xxxxxxxx.com/update-video-converter-v2/v:0');
                    $sxe3 = new SimpleXMLElement($updateResponse);
                    $sxe3->info[0]->lasterror = time();
    So, check the content of $updateResponse. Is it valid XML? If not, then I'd guess that there is some networking problem or issue with file_get_contents. For example:

    TipA URL can be used as a filename with this function if the fopen wrappers have been enabled.
    Do let me know if you have any additional questions or concerns.

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

  3. #1143
    New Coder
    Join Date
    Sep 2012
    Location
    Germany
    Posts
    39
    Thanks
    11
    Thanked 2 Times in 2 Posts

    HowTo install the YouTube to MP3 Components on Debian 7 Wheezy

    HowTo install the YouTube to MP3 Components on Debian 7 Wheezy

    1. [Install Webserver, PHP & curl]


    Code:
    apt-get install apache2 php5 libapache2-mod-php5 php5-cli curl libcurl3 php5-curl
    [Restart Webserver]

    Code:
    /etc/init.d/apache2 restart
    2. [Install Text editor NANO]


    Code:
    apt-get install nano
    (Ctrl + O = Save, Ctrl + X = quit nano)

    !! Have you installed Plesk Panel or other web panel, then step 3. - 3.2 can be skipped. !!
    3. [Create 'public_html' directory]


    Code:
    mkdir /home/user/public_html
    Code:
    chmod 0777 /home/user/public_html
    [~Move web root from '/var/www' to '/home/user/public_html'~]

    [Open '/etc/apache2/sites-enabled/000-default' in text editor]

    [Via command line, you do it like this:]


    Code:
    nano /etc/apache2/sites-enabled/000-default
    [Change 'DocumentRoot /var/www' to 'DocumentRoot /home/user/public_html']

    [Change '<Directory /var/www/>' to '<Directory /home/user/public_html/>']


    [Save and close file in text editor]

    3.1 [Restart Webserver]



    Code:
    /etc/init.d/apache2 restart
    3.2 [Create a phpinfo.php file and put it into www home directory of your Domain]


    Code:
    nano /home/user/public_html/phpinfo.php
    Code:
    <?
    phpinfo ();
    ?>
    [Save and close file in text editor]

    [Open phpinfo.php in browser (http://localhost/phpinfo.php) to verify Apache/PHP are working]

    4. [Edit Sources]


    Code:
    nano /etc/apt/sources.list.d/deb-multimedia.org.list
    Code:
    # Debian Multimedia Repository 
    deb http://www.deb-multimedia.org wheezy main non-free
    deb ftp://ftp.deb-multimedia.org wheezy main non-free

    [Save and close file in text editor]



    Code:
    apt-get update
    apt-get install deb-multimedia-keyring
    
    apt-get update
    5. [Install Codecs]


    Attention!

    For 32bit Systems
    Code:
    apt-get install w32codecs
    For 64bit Systems
    Code:
    apt-get install w64codecs
    [Install FFmpeg]

    Code:
    apt-get install ffmpeg
    [Install ffmpeg-php PHP extension]

    Code:
    apt-get install php5-ffmpeg
    [Restart Webserver]

    Code:
    /etc/init.d/apache2 restart
    [Download all ffmpeg.presets]

    Code:
    cd /usr/share/ffmpeg
    
    wget http://dl.dropbox.com/u/82065009/ffmpeg.presets.tar.gz
    [Extract ffmpeg.presets.tar.gz]

    Code:
    tar xfvz ffmpeg.presets.tar.gz
    [You're done !! Debian 7 wheezy is now ready for you to install and configure the YouTube-to-Mp3 Converter software.]


    If you have installed Plesk Panel make sure the PHP support for this domain as an Apache Module is Running.

    Open in Plesk Panel PHP settings for this Domain to run YouTube Downloader Software
    and set open_basedir to none.

    Additional configuration instructions:

    Code:
    extension=ffmpeg.so
    extension=curl.so
    Last edited by Luckyplaya; 07-05-2014 at 12:39 PM.

  4. Users who have thanked Luckyplaya for this post:

    chump2877 (07-05-2014)

  5. #1144
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,776
    Thanks
    19
    Thanked 155 Times in 146 Posts
    Quote Originally Posted by Luckyplaya View Post
    HowTo install the YouTube to MP3 Components on Debian 7 Wheezy
    This is great! Thanks!

    That said, a couple of things I noticed that could be potential issues:

    1) Looks like you are installing FFmpeg from the default Debian repository. I'm guessing that the pre-built version in the repo is old and buggy? If so, I would avoid using this version. Instead, for best results, you should download the most recent static build from the FFmpeg website. Recent versions of my software will not work as expected with older versions of FFmpeg.

    2) More recent versions of FFmpeg don't require separate preset files (i.e., http://dl.dropbox.com/u/82065009/ffmpeg.presets.tar.gz). The presets are compiled with FFmpeg and/or libx264.
    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. #1145
    New to the CF scene
    Join Date
    Jul 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No, the problem is that the file is not regenerated... :/
    I tried to reload the file, but now says that the problem is in line 185:
    if ($updateResponse != "You have the newest version.")
    {
    $sxe2 = new SimpleXMLElement($updateResponse);
    $sxe2->info[0]->lasterror = $currentTime;
    $newXmlContent = $sxe2->asXML();
    }
    Also you notice that I moved the files to a folder /WIP/: Firesound - Free YouTube to MP3 Converter

  7. #1146
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,776
    Thanks
    19
    Thanked 155 Times in 146 Posts
    Quote Originally Posted by Ironize View Post
    No, the problem is that the file is not regenerated... :/
    I tried to reload the file, but now says that the problem is in line 185:


    Also you notice that I moved the files to a folder /WIP/: Firesound - Free YouTube to MP3 Converter
    Hi,

    As I said before, you need to echo out the contents of your variables and see what's going on. In this case:

    PHP Code:
    echo $updateResponse
    PHP is expecting $updateResponse to be valid XML, and it clearly is not (for some reason). So what's in there??

    And, like I said before, check the php.ini directive that relates to the usage of file_get_contents with urls.

    Also, when you try to send a socket or cURL request to "http://xxxxxxxxxx.com/update-video-converter-v2/v:0", what happens? Can you connect? Do you see any content (in the page directly or in the page source code)? If you can't and don't, it could be a networking issue. Either your server or my server is blocking the connection. What is your server IP address?
    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. #1147
    New to the CF scene
    Join Date
    Jul 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Omg, I do not know what to do :/

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

    New Version!

    Hello everyone,

    I have just finished updating the paid-for version of my software. New in this version:

    1. Vimeo changed the way in which video URLs are revealed, preventing Vimeo videos from being downloaded and/or converted. This has now been fixed, and Vimeo downloads/conversions will work as they did before.
    2. Added VK.com as a video hosting site that you can download/convert videos from. Only publicly-accessible videos, that have been uploaded directly to VK.com, can be downloaded/converted. For those that aren't familiar, VK is essentially the Russian (and surrounding countries) version of Facebook. It is currently ranked 21st in the world by Alexa: vk.com Site Overview.
    3. A small minority of YouTube videos were intermittently generating invalid video download URLs. This anomalous behavior has been fixed in this version.
    4. French and Polish language translations have been added to the software (now available in the language drop-down menu).
    5. Fixed a bug with FFmpeg encoding of audio track for videos converted to MP4 (in the small number of cases when FFmpeg conversion to MP4 is actually necessary).
    6. 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. langs/ updated
      • Replace the contents of the existing 'langs' directory with the 'langs' directory files in this new version!
      • Clear sessions/cookies in your browser to see new language file changes.

    2. Config.class.php** updated
    3. VideoConverter.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!
    Last edited by chump2877; 07-09-2014 at 02:19 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!

  10. #1149
    New to the CF scene
    Join Date
    Jun 2014
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by chump2877 View Post
    Hello everyone,

    I have just finished updating the paid-for version of my software. New in this version:

    1. Vimeo changed the way in which video URLs are revealed, preventing Vimeo videos from being downloaded and/or converted. This has now been fixed, and Vimeo downloads/conversions will work as they did before.
    2. Added VK.com as a video hosting site that you can download/convert videos from. Only public videos can be downloaded/converted. For those that aren't familiar, VK is essentially the Russian (and surrounding countries) version of Facebook. It is currently ranked 21st in the world by Alexa: vk.com Site Overview.
    3. A small minority of YouTube videos were intermittently generating invalid video download URLs. This anomalous behavior has been fixed in this version.
    4. French and Polish language translations have been added to the software (now available in the language drop-down menu).
    5. Fixed a bug with FFmpeg encoding of audio track for videos converted to MP4 (in the small number of cases when FFmpeg conversion to MP4 is actually necessary).
    6. 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. langs/ updated
      • Replace the contents of the existing 'langs' directory with the 'langs' directory files in this new version!
      • Clear sessions/cookies in your browser to see new language file changes.

    2. Config.class.php** updated
    3. VideoConverter.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!
    As downloaded videos of VK.com, I'm testing and fails.
    Error downloading video!
    Please, Try Again.

    thanks

  11. #1150
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,776
    Thanks
    19
    Thanked 155 Times in 146 Posts
    Quote Originally Posted by ciberlinker View Post
    As downloaded videos of VK.com, I'm testing and fails.
    Error downloading video!
    Please, Try Again.

    thanks
    It's working on the demo site: Download, Convert videos online from youtube, dailymotion-GrabFrom.com

    What is the URL of the video you are trying to convert?
    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. #1151
    New to the CF scene
    Join Date
    Jun 2014
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by chump2877 View Post
    It's working on the demo site: Download, Convert videos online from youtube, dailymotion-GrabFrom.com

    What is the URL of the video you are trying to convert?
    The problem is solved, the question is when I copy the video link VK, show me https, you have to paste the link and remove the "s", if does, not work.
    https://vk.com/video-54805756_167511791
    ●CRAZY VIDEO● How to creep on little kids in public | VK

  13. #1152
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,776
    Thanks
    19
    Thanked 155 Times in 146 Posts
    Quote Originally Posted by ciberlinker View Post
    The problem is solved, the question is when I copy the video link VK, show me https, you have to paste the link and remove the "s", if does, not work.
    https://vk.com/video-54805756_167511791
    ●CRAZY VIDEO● How to creep on little kids in public | VK
    Gotcha. The fix to make https:// VK video links work is not hard. I will update and fix code later today, and email fix to all previous customers.

    Thanks for the bug report!
    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!

  14. #1153
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,776
    Thanks
    19
    Thanked 155 Times in 146 Posts
    Quote Originally Posted by chump2877 View Post
    Gotcha. The fix to make https:// VK video links work is not hard. I will update and fix code later today, and email fix to all previous customers.

    Thanks for the bug report!
    As promised, this bug has been fixed, and an updated copy of the software has been emailed to all previous customers.
    ciberlinker likes 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!

  15. #1154
    New to the CF scene
    Join Date
    Jun 2014
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by chump2877 View Post
    As promised, this bug has been fixed, and an updated copy of the software has been emailed to all previous customers.
    Functioning properly.
    thank you

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

    Important! Read This!

    Hi everyone,

    Well, YouTube is at it again. *sigh*

    This time they've really mixed up the method in which video signatures are encrypted/decrypted. So much so that it's completely thrown my automated solution out of whack!

    But fret not, dear consumers, I can fix this, and I will update the automated decryption mechanism as quickly as I can to fall in line with YouTube's new encryption/decryption process! But I will need some time to get the automation working again, and I need to amass a large enough sample set of decryption algorithms before I can nail down a consistent pattern in YouTube's new encryption/decryption mechanism.

    So, for now, and in the meantime, we'll need to revert back to manual decryption code updates (until I can get the automation working again). In other words, I'll provide the latest decryption code via this forum thread (whenever YouTube changes its encryption), and you will update your software manually at that time.

    So, without further ado, let's get you converting encrypted videos again!

    Here is the process that users of both the commercial and free software need to implement:


    1. Rename software.xml to software.old.xml
    2. In VideoConverter.class.php (or YouTubeToMp3Converter.class.php in the free software), navigate to the SaveVideo() method and comment out this line of code, like so:

      PHP Code:
      //$this->FixYouTubeDecryption(); 
    3. Regarding #1 and #2 in this list: You only need to do this one time, and only as long as manual decryption code updates are necessary! (We will undo these actions later when decryption automation is fixed.)
    4. In VideoConverter.class.php (or YouTubeToMp3Converter.class.php in the free software), navigate to the LegacyDecryptYouTubeCypher() method and replace the "case 84" condition in the switch block with the following code:

      PHP Code:
                      case 84:
                          
      $XG = function($a,$b){
                              
      $c=$a[0];
                              
      $a[0]=$a[$b%count($a)];
                              
      $a[$b]=$c;
                              return 
      $a;
                          };
                          
      $NZ = function($a){
                              return 
      array_reverse($a);
                          };
                          
      $PL = function($a,$b){
                              return 
      array_slice($a,$b);
                          };
                          
      $s str_split($s);
                          
      $s $XG($s,15);
                          
      $s $XG($s,44);
                          
      $s $NZ($s,66);
                          
      $s $XG($s,24);
                          
      $s $PL($s,3);
                          
      $s $NZ($s,51);
                          
      $s $XG($s,2);
                          
      $s $XG($s,50);
                          
      $s implode(""$s);
                          break; 


    That's it! Things should start humming along as usual after you make these changes.

    Again, I will be manually posting decryption code updates here until the automated solution is updated and fixed. So please keep an eye out for future updates to this forum thread!

    I do appreciate your patience while the automated solution is being updated! It's impossible to anticipate changes to YouTube's site, and this is an inconvenience for us all. So keep your head up, fight the good fight, and we'll get through this together! I haven't kept this software working for 4 years for nothing! There is a light at the end of this tunnel!

    As always, do let me know if you have any questions or concerns.

    Thanks!
    Last edited by chump2877; 07-15-2014 at 06:33 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!


 

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
  •