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 78 of 82 FirstFirst ... 28687677787980 ... LastLast
Results 1,156 to 1,170 of 1219
Like Tree7Likes

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

  1. #1156
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,798
    Thanks
    19
    Thanked 156 Times in 147 Posts

    We're back in business!

    Hi everyone,

    The automatic decryption code updating mechanism is now working again!

    At this time, if you had followed my instructions in the previous post, then you need to do the following:


    1. Delete software.xml (or software.old.xml) and allow the file to be automatically regenerated.
    2. In VideoConverter.class.php (or YouTubeToMp3Converter.class.php in the free software), navigate to the SaveVideo() method and un-comment this line of code, like so:

      PHP Code:
      $this->FixYouTubeDecryption(); 


    That's it! You're back in business!

    Note: If you did not follow my instructions in the previous forum thread post, then you may not need to do anything. software.xml should eventually, automatically update to the latest version of decryption code algorithms. If for some reason it does not, then you can try deleting software.xml and allow it to regenerate.

    Ok guys, looking forward to no more changes from YouTube for awhile!

    Do let me know if you experience any further issues, or if you have any additional questions or concerns.

    Thanks!
    Last edited by chump2877; 07-16-2014 at 05:17 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!

  2. #1157
    New to the CF scene
    Join Date
    Jun 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by chump2877 View Post
    Hi everyone,

    The automatic decryption code updating mechanism is now working again!

    At this time, if you had followed my instructions in the previous post, then you need to do the following:


    1. Delete software.xml (or software.old.xml) and allow the file to be automatically regenerated.
    2. In VideoConverter.class.php (or YouTubeToMp3Converter.class.php in the free software), navigate to the SaveVideo() method and un-comment this line of code, like so:

      PHP Code:
      $this->FixYouTubeDecryption(); 


    That's it! You're back in business!

    Note: If you did not follow my instructions in the previous forum thread post, then you may not need to do anything. software.xml should eventually, automatically update to the latest version of decryption code algorithms. If for some reason it does not, then you can try deleting software.xml and allow it to regenerate.

    Ok guys, looking forward to no more changes from YouTube for awhile!

    Do let me know if you experience any further issues, or if you have any additional questions or concerns.

    Thanks!
    We change the code:
    (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

    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;
    It should switch back to the previous code?.
    thanks

  3. #1158
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,798
    Thanks
    19
    Thanked 156 Times in 147 Posts
    Quote Originally Posted by ciberlinker View Post
    We change the code:
    (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

    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;
    It should switch back to the previous code?.
    thanks
    You can leave the new code in LegacyDecryptYouTubeCypher(), or switch it back to the previous code...It really doesn't matter....That method only provides a fallback mechanism for updating decryption algorithms manually if the need should arise -- as it did yesterday...
    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. #1159
    New to the CF scene
    Join Date
    Jun 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, thanks

  5. #1160
    New to the CF scene
    Join Date
    Jul 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Is there something wrong with vimeo downloads ? Can't seem to get them to download

    Get Back in Hello Again on Vimeo

  6. #1161
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,798
    Thanks
    19
    Thanked 156 Times in 147 Posts
    Quote Originally Posted by lonea View Post
    Is there something wrong with vimeo downloads ? Can't seem to get them to download

    Get Back in Hello Again on Vimeo
    You're trying to download the video off of a "channel" page...The individual video page is Get Back on Vimeo.

    The format for all Vimeo video pages is: http://vimeo.com/vidId.

    Vimeo videos are all downloading/converting fine for me on the demo site:

    Download, Convert videos online from youtube, dailymotion-GrabFrom.com
    Download, Convert videos online from youtube, dailymotion-GrabFrom.com

    Edit: Are you using the latest version of the commercial software?: http://www.codingforums.com/post-php...ml#post1404153


    Last edited by chump2877; 07-19-2014 at 11:45 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!

  7. #1162
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,798
    Thanks
    19
    Thanked 156 Times in 147 Posts

    Important! Read This!

    YouTube has changed up decryption algorithms again! YouTube is relentless, but so am I!

    We are reverting back to manual decryption code updates until I have time to fix the auto-update mechanism.

    Please see the included post below for instructions. The process is the same except for the new code inserted into the switch block of the LegacyDecryptYouTubeCypher() method! (This time, instead of replacing a switch block condition, you are adding a new condition to the switch block!)

    Thank you for your patience!!


    Quote Originally Posted by chump2877 View Post
    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 83:
                          
      $Dv = function($a,$b){
                              
      $c=$a[0];
                              
      $a[0]=$a[$b%count($a)];
                              
      $a[$b]=$c;
                              return 
      $a;
                          };
                          
      $DO = function($a,$b){
                              return 
      array_slice($a,$b);
                          };
                          
      $A5 = function($a){
                              return 
      array_reverse($a);
                          };
                          
      $s str_split($s);
                          
      $s $Dv($s,28);
                          
      $s $A5($s,69);
                          
      $s $DO($s,1);
                          
      $s $Dv($s,26);
                          
      $s $Dv($s,40);
                          
      $s $A5($s,57);
                          
      $s $DO($s,1);
                          
      $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-24-2014 at 03:42 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!

  8. #1163
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,798
    Thanks
    19
    Thanked 156 Times in 147 Posts

    We're back in business!

    The decryption code auto-updating mechanism is fixed. Again.

    The instructions in the attached post still apply.

    Let me know if you experience any issues. I'm pooped. Time for bed!


    Quote Originally Posted by chump2877 View Post
    Hi everyone,

    The automatic decryption code updating mechanism is now working again!

    At this time, if you had followed my instructions in the previous post, then you need to do the following:


    1. Delete software.xml (or software.old.xml) and allow the file to be automatically regenerated.
    2. In VideoConverter.class.php (or YouTubeToMp3Converter.class.php in the free software), navigate to the SaveVideo() method and un-comment this line of code, like so:

      PHP Code:
      $this->FixYouTubeDecryption(); 


    That's it! You're back in business!

    Note: If you did not follow my instructions in the previous forum thread post, then you may not need to do anything. software.xml should eventually, automatically update to the latest version of decryption code algorithms. If for some reason it does not, then you can try deleting software.xml and allow it to regenerate.

    Ok guys, looking forward to no more changes from YouTube for awhile!

    Do let me know if you experience any further issues, or 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!

  9. #1164
    New to the CF scene
    Join Date
    Jul 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    I bought your script and it works perfectly but in some cases I am getting the following error:

    Code:
    {
      "total_events": 2, 
      "page": 0, 
      "events": [
        {
          "tags": [
            "0"
          ], 
          "timestamp": 1406213077000, 
          "logmsg": "{\"message\":\"exception 'Symfony\\\\Component\\\\Debug\\\\Exception\\\\FatalErrorException' with message 'syntax error, unexpected '$o' (T_VARIABLE)' in \\/usr\\/share\\/nginx\\/www\\/app\\/libraries\\/VideoConverter-Linux\\/VideoConverter.class.php(512) : eval()'d code:2\\nStack trace:\\n#0 [internal function]: Illuminate\\\\Exception\\\\Handler->handleShutdown()\\n#1 {main}\",\"context\":[],\"level\":400,\"level_name\":\"ERROR\",\"channel\":\"local\",\"datetime\":{\"date\":\"2014-07-24 14:44:37.655978\",\"timezone_type\":3,\"timezone\":\"UTC\"},\"extra\":[],\"timestamp\":\"2014-07-24T14:44:37+00:00\"}", 
          "event": {
            "json": {
              "level": 400, 
              "timestamp": "2014-07-24T14:44:37+00:00", 
              "datetime": {
                "date": "2014-07-24 14:44:37.655978", 
                "timezone": "UTC", 
                "timezone_type": 3
              }, 
              "message": "exception 'Symfony\\Component\\Debug\\Exception\\FatalErrorException' with message 'syntax error, unexpected '$o' (T_VARIABLE)' in /usr/share/nginx/www/app/libraries/VideoConverter-Linux/VideoConverter.class.php(512) : eval()'d code:2\nStack trace:\n#0 [internal function]: Illuminate\\Exception\\Handler->handleShutdown()\n#1 {main}", 
              "level_name": "ERROR", 
              "channel": "local"
            }
          }, 
          "logtypes": [
            "json"
          ], 
          "id": "09626743-1341-11e4-809f-12a6501f9c6b"
        }, 
        {
          "tags": [
            "0"
          ], 
          "timestamp": 1406213077000, 
          "logmsg": "{\"message\":\"exception 'ErrorException' with message 'call_user_func() expects parameter 1 to be a valid callback, function 'func53d04fca57e846_47750790' not found or invalid function name' in \\/usr\\/share\\/nginx\\/www\\/app\\/libraries\\/VideoConverter-Linux\\/VideoConverter.class.php:515\\nStack trace:\\n#0 [internal function]: Illuminate\\\\Exception\\\\Handler->handleError(2, 'call_user_func(...', '\\/usr\\/share\\/ngin...', 515, Array)\\n#1 \\/usr\\/share\\/nginx\\/www\\/app\\/libraries\\/VideoConverter-Linux\\/VideoConverter.class.php(515): call_user_func('func53d04fca57e...', '218044501B04F76...')\\n#2 \\/usr\\/share\\/nginx\\/www\\/app\\/libraries\\/VideoConverter-Linux\\/VideoConverter.class.php(394): VideoConverter->DecryptYouTubeCypher('218044501B04F76...')\\n#3 \\/usr\\/share\\/nginx\\/www\\/app\\/libraries\\/VideoConverter-Linux\\/VideoConverter.class.php(733): VideoConverter->PrepareYouTubeDownloadLink('http:\\/\\/r10---sn...', 'Liah Soares - \\\"...')\\n#4 \\/usr\\/share\\/nginx\\/www\\/app\\/libraries\\/VideoConverter-Linux\\/VideoConverter.class.php(43): VideoConverter->SetVidSourceUrls()\\n#5 \\/usr\\/share\\/nginx\\/www\\/app\\/commands\\/ProcessMessage.php(84): VideoConverter->DownloadVideo('https:\\/\\/www.you...')\\n#6 \\/usr\\/share\\/nginx\\/www\\/app\\/commands\\/ProcessMessage.php(39): ProcessMessage->onSendYoutubeMessage('101', '5511960780000', 'https:\\/\\/www.you...', Object(Carbon\\\\Carbon))\\n#7 \\/usr\\/share\\/nginx\\/www\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Console\\/Command.php(112): ProcessMessage->fire()\\n#8 \\/usr\\/share\\/nginx\\/www\\/vendor\\/symfony\\/console\\/Symfony\\/Component\\/Console\\/Command\\/Command.php(252): Illuminate\\\\Console\\\\Command->execute(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#9 \\/usr\\/share\\/nginx\\/www\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Console\\/Command.php(100): Symfony\\\\Component\\\\Console\\\\Command\\\\Command->run(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#10 \\/usr\\/share\\/nginx\\/www\\/vendor\\/symfony\\/console\\/Symfony\\/Component\\/Console\\/Application.php(887): Illuminate\\\\Console\\\\Command->run(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#11 \\/usr\\/share\\/nginx\\/www\\/vendor\\/symfony\\/console\\/Symfony\\/Component\\/Console\\/Application.php(193): Symfony\\\\Component\\\\Console\\\\Application->doRunCommand(Object(ProcessMessage), Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#12 \\/usr\\/share\\/nginx\\/www\\/vendor\\/symfony\\/console\\/Symfony\\/Component\\/Console\\/Application.php(124): Symfony\\\\Component\\\\Console\\\\Application->doRun(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#13 \\/usr\\/share\\/nginx\\/www\\/artisan(59): Symfony\\\\Component\\\\Console\\\\Application->run()\\n#14 {main}\",\"context\":[],\"level\":400,\"level_name\":\"ERROR\",\"channel\":\"local\",\"datetime\":{\"date\":\"2014-07-24 14:44:37.588438\",\"timezone_type\":3,\"timezone\":\"UTC\"},\"extra\":[],\"timestamp\":\"2014-07-24T14:44:37+00:00\"}", 
          "event": {
            "json": {
              "level": 400, 
              "timestamp": "2014-07-24T14:44:37+00:00", 
              "datetime": {
                "date": "2014-07-24 14:44:37.588438", 
                "timezone": "UTC", 
                "timezone_type": 3
              }, 
              "message": "exception 'ErrorException' with message 'call_user_func() expects parameter 1 to be a valid callback, function 'func53d04fca57e846_47750790' not found or invalid function name' in /usr/share/nginx/www/app/libraries/VideoConverter-Linux/VideoConverter.class.php:515\nStack trace:\n#0 [internal function]: Illuminate\\Exception\\Handler->handleError(2, 'call_user_func(...', '/usr/share/ngin...', 515, Array)\n#1 /usr/share/nginx/www/app/libraries/VideoConverter-Linux/VideoConverter.class.php(515): call_user_func('func53d04fca57e...', '218044501B04F76...')\n#2 /usr/share/nginx/www/app/libraries/VideoConverter-Linux/VideoConverter.class.php(394): VideoConverter->DecryptYouTubeCypher('218044501B04F76...')\n#3 /usr/share/nginx/www/app/libraries/VideoConverter-Linux/VideoConverter.class.php(733): VideoConverter->PrepareYouTubeDownloadLink('http://r10---sn...', 'Liah Soares - \"...')\n#4 /usr/share/nginx/www/app/libraries/VideoConverter-Linux/VideoConverter.class.php(43): VideoConverter->SetVidSourceUrls()\n#5 /usr/share/nginx/www/app/commands/ProcessMessage.php(84): VideoConverter->DownloadVideo('https://www.you...')\n#6 /usr/share/nginx/www/app/commands/ProcessMessage.php(39): ProcessMessage->onSendYoutubeMessage('101', '5511960788848', 'https://www.you...', Object(Carbon\\Carbon))\n#7 /usr/share/nginx/www/vendor/laravel/framework/src/Illuminate/Console/Command.php(112): ProcessMessage->fire()\n#8 /usr/share/nginx/www/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(252): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#9 /usr/share/nginx/www/vendor/laravel/framework/src/Illuminate/Console/Command.php(100): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#10 /usr/share/nginx/www/vendor/symfony/console/Symfony/Component/Console/Application.php(887): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#11 /usr/share/nginx/www/vendor/symfony/console/Symfony/Component/Console/Application.php(193): Symfony\\Component\\Console\\Application->doRunCommand(Object(ProcessMessage), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#12 /usr/share/nginx/www/vendor/symfony/console/Symfony/Component/Console/Application.php(124): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#13 /usr/share/nginx/www/artisan(59): Symfony\\Component\\Console\\Application->run()\n#14 {main}", 
              "level_name": "ERROR", 
              "channel": "local"
            }
          }, 
          "logtypes": [
            "json"
          ], 
          "id": "0938dab7-1341-11e4-80f1-12a6501f9c6b"
        }
      ]
    }
    Thanks for helping.
    Last edited by chump2877; 07-24-2014 at 08:48 PM. Reason: added [code] tags

  10. #1165
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,798
    Thanks
    19
    Thanked 156 Times in 147 Posts

    Alert!

    Hi everyone,

    I will be running a few tests on the decryption code auto-updating mechanism for the next hour or so.

    Please don't be alarmed if encrypted videos are not downloading/converting during this time.

    Thank you for your patience while I continue to improve the software!
    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!

  11. #1166
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,798
    Thanks
    19
    Thanked 156 Times in 147 Posts
    Quote Originally Posted by gui262 View Post
    Hi,

    I bought your script and it works perfectly but in some cases I am getting the following error:

    Code:
    {
      "total_events": 2, 
      "page": 0, 
      "events": [
        {
          "tags": [
            "0"
          ], 
          "timestamp": 1406213077000, 
          "logmsg": "{\"message\":\"exception 'Symfony\\\\Component\\\\Debug\\\\Exception\\\\FatalErrorException' with message 'syntax error, unexpected '$o' (T_VARIABLE)' in \\/usr\\/share\\/nginx\\/www\\/app\\/libraries\\/VideoConverter-Linux\\/VideoConverter.class.php(512) : eval()'d code:2\\nStack trace:\\n#0 [internal function]: Illuminate\\\\Exception\\\\Handler->handleShutdown()\\n#1 {main}\",\"context\":[],\"level\":400,\"level_name\":\"ERROR\",\"channel\":\"local\",\"datetime\":{\"date\":\"2014-07-24 14:44:37.655978\",\"timezone_type\":3,\"timezone\":\"UTC\"},\"extra\":[],\"timestamp\":\"2014-07-24T14:44:37+00:00\"}", 
          "event": {
            "json": {
              "level": 400, 
              "timestamp": "2014-07-24T14:44:37+00:00", 
              "datetime": {
                "date": "2014-07-24 14:44:37.655978", 
                "timezone": "UTC", 
                "timezone_type": 3
              }, 
              "message": "exception 'Symfony\\Component\\Debug\\Exception\\FatalErrorException' with message 'syntax error, unexpected '$o' (T_VARIABLE)' in /usr/share/nginx/www/app/libraries/VideoConverter-Linux/VideoConverter.class.php(512) : eval()'d code:2\nStack trace:\n#0 [internal function]: Illuminate\\Exception\\Handler->handleShutdown()\n#1 {main}", 
              "level_name": "ERROR", 
              "channel": "local"
            }
          }, 
          "logtypes": [
            "json"
          ], 
          "id": "09626743-1341-11e4-809f-12a6501f9c6b"
        }, 
        {
          "tags": [
            "0"
          ], 
          "timestamp": 1406213077000, 
          "logmsg": "{\"message\":\"exception 'ErrorException' with message 'call_user_func() expects parameter 1 to be a valid callback, function 'func53d04fca57e846_47750790' not found or invalid function name' in \\/usr\\/share\\/nginx\\/www\\/app\\/libraries\\/VideoConverter-Linux\\/VideoConverter.class.php:515\\nStack trace:\\n#0 [internal function]: Illuminate\\\\Exception\\\\Handler->handleError(2, 'call_user_func(...', '\\/usr\\/share\\/ngin...', 515, Array)\\n#1 \\/usr\\/share\\/nginx\\/www\\/app\\/libraries\\/VideoConverter-Linux\\/VideoConverter.class.php(515): call_user_func('func53d04fca57e...', '218044501B04F76...')\\n#2 \\/usr\\/share\\/nginx\\/www\\/app\\/libraries\\/VideoConverter-Linux\\/VideoConverter.class.php(394): VideoConverter->DecryptYouTubeCypher('218044501B04F76...')\\n#3 \\/usr\\/share\\/nginx\\/www\\/app\\/libraries\\/VideoConverter-Linux\\/VideoConverter.class.php(733): VideoConverter->PrepareYouTubeDownloadLink('http:\\/\\/r10---sn...', 'Liah Soares - \\\"...')\\n#4 \\/usr\\/share\\/nginx\\/www\\/app\\/libraries\\/VideoConverter-Linux\\/VideoConverter.class.php(43): VideoConverter->SetVidSourceUrls()\\n#5 \\/usr\\/share\\/nginx\\/www\\/app\\/commands\\/ProcessMessage.php(84): VideoConverter->DownloadVideo('https:\\/\\/www.you...')\\n#6 \\/usr\\/share\\/nginx\\/www\\/app\\/commands\\/ProcessMessage.php(39): ProcessMessage->onSendYoutubeMessage('101', '5511960780000', 'https:\\/\\/www.you...', Object(Carbon\\\\Carbon))\\n#7 \\/usr\\/share\\/nginx\\/www\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Console\\/Command.php(112): ProcessMessage->fire()\\n#8 \\/usr\\/share\\/nginx\\/www\\/vendor\\/symfony\\/console\\/Symfony\\/Component\\/Console\\/Command\\/Command.php(252): Illuminate\\\\Console\\\\Command->execute(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#9 \\/usr\\/share\\/nginx\\/www\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Console\\/Command.php(100): Symfony\\\\Component\\\\Console\\\\Command\\\\Command->run(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#10 \\/usr\\/share\\/nginx\\/www\\/vendor\\/symfony\\/console\\/Symfony\\/Component\\/Console\\/Application.php(887): Illuminate\\\\Console\\\\Command->run(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#11 \\/usr\\/share\\/nginx\\/www\\/vendor\\/symfony\\/console\\/Symfony\\/Component\\/Console\\/Application.php(193): Symfony\\\\Component\\\\Console\\\\Application->doRunCommand(Object(ProcessMessage), Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#12 \\/usr\\/share\\/nginx\\/www\\/vendor\\/symfony\\/console\\/Symfony\\/Component\\/Console\\/Application.php(124): Symfony\\\\Component\\\\Console\\\\Application->doRun(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#13 \\/usr\\/share\\/nginx\\/www\\/artisan(59): Symfony\\\\Component\\\\Console\\\\Application->run()\\n#14 {main}\",\"context\":[],\"level\":400,\"level_name\":\"ERROR\",\"channel\":\"local\",\"datetime\":{\"date\":\"2014-07-24 14:44:37.588438\",\"timezone_type\":3,\"timezone\":\"UTC\"},\"extra\":[],\"timestamp\":\"2014-07-24T14:44:37+00:00\"}", 
          "event": {
            "json": {
              "level": 400, 
              "timestamp": "2014-07-24T14:44:37+00:00", 
              "datetime": {
                "date": "2014-07-24 14:44:37.588438", 
                "timezone": "UTC", 
                "timezone_type": 3
              }, 
              "message": "exception 'ErrorException' with message 'call_user_func() expects parameter 1 to be a valid callback, function 'func53d04fca57e846_47750790' not found or invalid function name' in /usr/share/nginx/www/app/libraries/VideoConverter-Linux/VideoConverter.class.php:515\nStack trace:\n#0 [internal function]: Illuminate\\Exception\\Handler->handleError(2, 'call_user_func(...', '/usr/share/ngin...', 515, Array)\n#1 /usr/share/nginx/www/app/libraries/VideoConverter-Linux/VideoConverter.class.php(515): call_user_func('func53d04fca57e...', '218044501B04F76...')\n#2 /usr/share/nginx/www/app/libraries/VideoConverter-Linux/VideoConverter.class.php(394): VideoConverter->DecryptYouTubeCypher('218044501B04F76...')\n#3 /usr/share/nginx/www/app/libraries/VideoConverter-Linux/VideoConverter.class.php(733): VideoConverter->PrepareYouTubeDownloadLink('http://r10---sn...', 'Liah Soares - \"...')\n#4 /usr/share/nginx/www/app/libraries/VideoConverter-Linux/VideoConverter.class.php(43): VideoConverter->SetVidSourceUrls()\n#5 /usr/share/nginx/www/app/commands/ProcessMessage.php(84): VideoConverter->DownloadVideo('https://www.you...')\n#6 /usr/share/nginx/www/app/commands/ProcessMessage.php(39): ProcessMessage->onSendYoutubeMessage('101', '5511960788848', 'https://www.you...', Object(Carbon\\Carbon))\n#7 /usr/share/nginx/www/vendor/laravel/framework/src/Illuminate/Console/Command.php(112): ProcessMessage->fire()\n#8 /usr/share/nginx/www/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(252): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#9 /usr/share/nginx/www/vendor/laravel/framework/src/Illuminate/Console/Command.php(100): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#10 /usr/share/nginx/www/vendor/symfony/console/Symfony/Component/Console/Application.php(887): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#11 /usr/share/nginx/www/vendor/symfony/console/Symfony/Component/Console/Application.php(193): Symfony\\Component\\Console\\Application->doRunCommand(Object(ProcessMessage), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#12 /usr/share/nginx/www/vendor/symfony/console/Symfony/Component/Console/Application.php(124): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#13 /usr/share/nginx/www/artisan(59): Symfony\\Component\\Console\\Application->run()\n#14 {main}", 
              "level_name": "ERROR", 
              "channel": "local"
            }
          }, 
          "logtypes": [
            "json"
          ], 
          "id": "0938dab7-1341-11e4-80f1-12a6501f9c6b"
        }
      ]
    }
    Thanks for helping.
    Hi,

    How can I reproduce this error? What video URL or URLs trigger this error?

    Where do you see this error output?

    Does the error occur on the demo site: Download, Convert videos online from youtube, dailymotion-GrabFrom.com ?

    'func53d04fca57e846_47750790' is not a valid function included in the current version of software.xml. Perhaps you have an old version of software.xml, or it is cached somewhere/somehow? Try deleting software.xml and allow the file to regenerate.

    Do let me know if you have any additional questions/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!

  12. #1167
    New to the CF scene
    Join Date
    Jul 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello @chump2877,

    Error fixed just cleaning caching of software.xml

    thanks for the help, saved me a lot of time

  13. #1168
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,798
    Thanks
    19
    Thanked 156 Times in 147 Posts

    For those using PHP 5.5+ ...

    Hi all,

    I was just made aware that the following is now true for PHP 5.5+:

    5.5.0 - Added the cURL resource as the first argument to the CURLOPT_PROGRESSFUNCTION callback.
    So, what this means to you: If you are using PHP 5.5+, the UpdateVideoDownloadProgress() function in VideoConverter.class.php (YouTubeToMp3Converter.class.php in the free version) should now have 5 arguments instead of 4!

    For example, the following works in PHP 5.5+, but NOT in earlier versions of PHP! (the highlighted code is the only code added, and the software should be modified as such):
    Code:
    function UpdateVideoDownloadProgress($curlResource, $downloadSize, $downloaded, $uploadSize, $uploaded)
    Anyone using a version of PHP less than 5.5 should continue using this:

    Code:
    function UpdateVideoDownloadProgress($downloadSize, $downloaded, $uploadSize, $uploaded)
    Thanks, PHP, for making my life difficult!

    I have chosen not to update the code in the default software at this time, as the number of people currently using PHP 5.5+ is probably still relatively small?, and for the sake of backwards compatibility. That said, at some point in the future, this code will be changed in the default software.

    Do let me know if you have any questions or concerns.

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

  14. #1169
    New to the CF scene
    Join Date
    Jul 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hi,
    I've made the modification you share above for php 5.5.+.
    Downloading and converting one video at a time is ok.

    But when multiple videos are downloaded at the same time, this happens:
    - The first video is downloaded while others must wait until the first video ends downloading.
    - When the first video begin the conversion, the second video begins to download but the script fails the conversion of the first one.
    - So on with the third video, fourth video, etc ... when they are requesting download or conversion at the same time.

    You can check it on this online demo and launching several browser tabs to make several request at the same time (green background part of the website) : Télécharger videos youtube

    Is there a way to avoid this?

    Thank you!

  15. #1170
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,798
    Thanks
    19
    Thanked 156 Times in 147 Posts
    Quote Originally Posted by hedi View Post
    But when multiple videos are downloaded at the same time, this happens:
    - The first video is downloaded while others must wait until the first video ends downloading.
    - When the first video begin the conversion, the second video begins to download but the script fails the conversion of the first one.
    - So on with the third video, fourth video, etc ... when they are requesting download or conversion at the same time.

    You can check it on this online demo and launching several browser tabs to make several request at the same time (green background part of the website) : Télécharger videos youtube

    Is there a way to avoid this?
    I have heard this comment before, and I will respond now like I have in the past:

    I believe the issue is related to session handling in the browser, but I've never actually spent the time to pinpoint the exact cause. At least, not yet!

    Why, you ask?


    • The software, as it is written now, was never intended to enable users to download/convert multiple videos simultaneously. Currently, there is a single text input that allows you to convert one video URL at a time. So the intended behavior is for the user to download/convert one video at a time. (And at no point have I ever advertised my software as being capable of simultaneous downloads/conversions!)


    • Perhaps, in the future, I will add a new feature to the software that enables users to download/convert many videos at once. I can certainly add this to my To-Do/Wish list of new features. But, if I were to implement such a feature, it would not be by allowing users to launch a multitude of different tabs, with users initiating a download/conversion in each! No, instead, I'd probably provide the user with multiple text fields (in the initial conversion form) for (optionally) inputting multiple video URLs.


    • You must also consider the following question: Do you really want the same person downloading/converting many different videos at the same time on your site (via multiple browser tabs, no less)? Even if you have the most powerful server on the planet, this is probably not the kind of user behavior that you want to endorse. This feature could be easily abused, with one person monopolizing server resources by downloading/converting (for example) 10/15/20 or more videos at once. As a webmaster, you must realize that there is a finite number of available server resources to be divvied up between all of your site traffic. And you will want to be able to provide adequate service to as much of that traffic as possible.

      In a similar vein, I know that most of you offer downloads/conversions as a free service. And I know that, by default, my software does not (yet) provide a members or premium section for paying users. So, simultaneous downloads/conversions might be one of those features that you'd want to reserve for only paying members/subscribers to your site. The logic being: If any one individual wants to consume a good chunk of available server resources, then it probably makes sense that such a person should be paying for this level of service. Certainly, at the very least, I think we can probably agree that free users should not be afforded such a luxury?


    This is really just the tip of the iceberg, and the start of a dialogue exploring the best and most prudent way to implement multiple, simultaneous downloads/conversions in my software. There are many other things to consider as well, including (for example) how the flow of the application would need to change to accommodate many, concurrent downloads/conversions.

    For now, and if it were me, I would tell my site users that the service is free, and if they can't wait 15-30 seconds (at most!) for most videos to download/convert, then they can go sabotage some other free conversion website that will in fact allow them to:


    • pummel/destroy the corresponding server, and
    • subsequently (and inevitably) bring the respective website to a screeching and resounding halt.


    At least I won't be the sucker that enables my site users to take advantage of a free service!

    Still, that said, when I have some time, I will consider a way for users to download/convert videos simultaneously via my software without (or at least by minimizing) these unhappy side-effects!

    Do let me know if you have any additional questions/concerns.

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


 
Page 78 of 82 FirstFirst ... 28687677787980 ... LastLast

LinkBacks (?)

  1. 08-24-2014, 04:09 AM
  2. 07-21-2014, 05:32 PM
  3. 07-12-2014, 05:59 PM
  4. 06-26-2014, 03:39 PM
  5. 05-31-2014, 09:13 PM
  6. 04-24-2014, 07:53 PM
  7. 04-19-2014, 10:22 AM
  8. 04-04-2014, 08:33 PM
  9. 04-04-2014, 01:58 AM
  10. 03-28-2014, 06:03 AM
  11. 03-20-2014, 06:11 PM
  12. 03-16-2014, 01:22 AM
  13. 03-08-2014, 04:56 PM
  14. 03-07-2014, 06:21 PM
  15. 03-01-2014, 12:48 PM
  16. 02-22-2014, 08:40 PM
  17. 02-22-2014, 12:02 AM
  18. 02-21-2014, 08:15 PM
  19. 02-21-2014, 12:00 AM
  20. 02-20-2014, 08:37 PM
  21. 02-20-2014, 06:53 PM
  22. 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
  •