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 52 of 75 FirstFirst ... 242505152535462 ... LastLast
Results 766 to 780 of 1117
Like Tree2Likes

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

  1. #766
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,747
    Thanks
    18
    Thanked 155 Times in 146 Posts
    YouTube switched up the encryption on Vevo video signatures again...So Vevo videos are currently not converting with either the free or paid-for version of my software

    I will investigate a fix for this latest issue, and post back here with any updates.

    FYI - Because YouTube is making changes so frequently these days, specifically as it pertains to encrypted video signatures, I am considering implementing a different kind of release cycle for my software (only for instances when the sole fix required is to tweak the code that regulates decryption of video signatures):

    1) Since the code that handles video signature decryption is identical for both the free and paid-for versions, the subsequent fix will be the same for ALL users of my software.

    2) Previous buyers of the paid-for version of my software will no longer get the software emailed directly to them. Instead, I will email previous buyers with a link to the forum thread post that contains the modified code and instructions for how to apply it.

    3) Consumers of the free version can also refer to the above forum post for details on what code changed and how to apply the fix. And instead of updating the free version with a new zip file as well as updating the Software Updates section at the beginning of this thread, I will simply edit the existing zip file associated with the most recent release of the free version.

    4) I strongly advise you to subscribe to this forum thread and/or subscribe to my mailing list (mostly for users of the free version of my script) to keep up with these updates.

    So what we have here is an abbreviated release cycle that will make it easier/faster for me to release new versions of the software, and give me more time to focus on the actual coding required to create the fix.

    Thanks for your understanding here. YouTube is making it difficult for me to keep up with them, so I need to search for ways to make this process more efficient. And so you can get your updates as quickly as possible.
    Last edited by chump2877; 07-11-2013 at 07:34 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. #767
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Thumbs up

    hi chump2877,

    Quote Originally Posted by chump2877 View Post
    Hi tequilaz,

    To clarify:


    So you are running the script on an Ubuntu Linux box, and in order to fix the above issue, you had to compile FFmpeg yourself using the latest code from the git source instead of doing a 'apt-get install ffmpeg' from the command line?
    yes i did compiling it using the latest git.


    Out of curiosity, what if you used 'avconv' instead of 'ffmpeg' to do the conversion? So, in config.class.php, just set _FFMPEG constant as (for example):
    avconv/ffmpeg did produced the same wrong result before i compiled it from git.


    It sounds like the MP3 files are being generated, but the conversion progress bar is not moving. In that case, please copy/paste the output of a corresponding log file in the 'logs' directory. I'm guessing that I can find a clue to the source of the problem in there...
    yes, that was the case.
    but now it looks like you did found it allready because yesterday i replaced my instance of the script with the new one u posted yesterday and finally the error with the stucking conversion progressbar disappears. So now your script is completely working and it uses the version off ffmpeg i compiled it from git by myself. Unfortunately i did read your answer after i replaced the script folder so i am not able to post a logfile.

    so thank you very much for your great work

    best regards,

    tequilaz

  3. #768
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,747
    Thanks
    18
    Thanked 155 Times in 146 Posts
    tequilaz,

    How exactly did you compile FFmpeg (what flags did you set during the build, or what steps in general did you take) in order to eliminate the "seeking" issue and the sometimes incorrect total play time of mp3 file seen on some mp3 players?

    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!

  4. #769
    New Coder
    Join Date
    Jun 2012
    Posts
    45
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Hi, were you able to update code as some videos no longer convert? Thanks!

  5. #770
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,747
    Thanks
    18
    Thanked 155 Times in 146 Posts
    Quote Originally Posted by bbrog View Post
    Hi, were you able to update code as some videos no longer convert? Thanks!
    I'm working on it now...I finally have some time to do this...hoping to have fix for you by end of day
    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. #771
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,747
    Thanks
    18
    Thanked 155 Times in 146 Posts
    Here is the preliminary fix. This function is meant to be a drop-in replacement for the function of the same name in VideoConverter.class.php (paid version) and in YouTubeToMp3Converter.class.php (free version):

    PHP Code:
            private function DecryptYouTubeCypher($signature)
            {
                
    $s $signature;
                
    $sigLength strlen($s);
                switch (
    $sigLength)
                {
                    case 
    88:
                        
    $s substr($s481) . strrev(substr($s6814)) . substr($s821) . strrev(substr($s634)) . substr($s851) . strrev(substr($s4913)) . substr($s671) . strrev(substr($s1335)) . substr($s31) . strrev(substr($s48)) . substr($s21) . substr($s121);
                        break;
                    case 
    87:
                        
    $s substr($s621) . strrev(substr($s6320)) . substr($s831) . strrev(substr($s539)) . substr($s01) . strrev(substr($s349));
                        break;
                    case 
    86:
                        
    $s substr($s261) . substr($s821) . substr($s6418) . substr($s631);
                        break;
                    case 
    85:
                        
    $s substr($s761) . strrev(substr($s776)) . substr($s831) . strrev(substr($s6115)) . substr($s01) . strrev(substr($s519)) . substr($s11) . strrev(substr($s347));
                        break;
                    case 
    84:
                        
    $s strrev(substr($s3747)) . substr($s21) . strrev(substr($s279)) . substr($s31) . strrev(substr($s422)) . substr($s261);
                        break;
                    case 
    83:
                        
    $s substr($s61) . substr($s33) . substr($s331) . substr($s717) . substr($s01) . substr($s258) . substr($s531) . substr($s3419) . substr($s241) . substr($s54);
                        break;
                    case 
    82:
                        
    $s substr($s361) . strrev(substr($s6812)) . substr($s811) . strrev(substr($s4126)) . substr($s331) . strrev(substr($s373)) . substr($s401) . substr($s351) . substr($s01) . substr($s671) . strrev(substr($s132)) . substr($s341);
                        break;
                    case 
    81:
                        
    $s substr($s61) . substr($s33) . substr($s331) . substr($s717) . substr($s01) . substr($s258) . substr($s21) . substr($s3419) . substr($s241) . substr($s5428);
                        break;
                    default:
                        
    $s $signature;
                }
                return 
    $s;
            } 
    Please provide some verification that the above code works for you, and that you can convert Vevo videos.

    When I have confirmation that the above is working consistently, I will update the free version and email a link (to this forum post) to all buyers who have previously purchased the paid-for version of my software.

    Thanks for your patience!

    Edit: This code appears to be working, so I am pushing out new releases of both the free and paid-for versions of my software. The free version's ZIP file has already been updated, and I will be emailing all previous buyers of the paid-for version shortly with a link to this forum post. And, of course, I will also soon update the files currently being sold at Tradebit.com. Until next time!
    Last edited by chump2877; 07-12-2013 at 12:56 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!

  7. Users who have thanked chump2877 for this post:

    chiman (07-14-2013)

  8. #772
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Thumbs up

    Quote Originally Posted by chump2877 View Post
    tequilaz,

    How exactly did you compile FFmpeg (what flags did you set during the build, or what steps in general did you take) in order to eliminate the "seeking" issue and the sometimes incorrect total play time of mp3 file seen on some mp3 players?

    Thanks.
    i did build it with
    ./configure --enable-libmp3lame --enable-gpl --enable-version3 --enable-nonfree --enable-libvorbis --enable-libx264 --enable-libxvid

    during my search for a solution for this problem i found this thread
    http://ffmpeg.org/pipermail/ffmpeg-d...il/110690.html
    this looks like the problem where allready found and fixed in 2011.
    But the versions of ffmpeg from 2012 in my ubuntubox(Ubuntu 12.04.2 LTS) which i can install via apt-get does still have this issue.

    i think in some cases its the best to get the newest versions of software directly from git

    thank you

    greets tequilaz

  9. #773
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by chump2877 View Post
    Here is the preliminary fix. This function is meant to be a drop-in replacement for the function of the same name in VideoConverter.class.php (paid version) and in YouTubeToMp3Converter.class.php (free version):

    PHP Code:
            private function DecryptYouTubeCypher($signature)
            {
                
    $s $signature;
                
    $sigLength strlen($s);
                switch (
    $sigLength)
                {
                    case 
    88:
                        
    $s substr($s481) . strrev(substr($s6814)) . substr($s821) . strrev(substr($s634)) . substr($s851) . strrev(substr($s4913)) . substr($s671) . strrev(substr($s1335)) . substr($s31) . strrev(substr($s48)) . substr($s21) . substr($s121);
                        break;
                    case 
    87:
                        
    $s substr($s621) . strrev(substr($s6320)) . substr($s831) . strrev(substr($s539)) . substr($s01) . strrev(substr($s349));
                        break;
                    case 
    86:
                        
    $s substr($s261) . substr($s821) . substr($s6418) . substr($s631);
                        break;
                    case 
    85:
                        
    $s substr($s761) . strrev(substr($s776)) . substr($s831) . strrev(substr($s6115)) . substr($s01) . strrev(substr($s519)) . substr($s11) . strrev(substr($s347));
                        break;
                    case 
    84:
                        
    $s strrev(substr($s3747)) . substr($s21) . strrev(substr($s279)) . substr($s31) . strrev(substr($s422)) . substr($s261);
                        break;
                    case 
    83:
                        
    $s substr($s61) . substr($s33) . substr($s331) . substr($s717) . substr($s01) . substr($s258) . substr($s531) . substr($s3419) . substr($s241) . substr($s54);
                        break;
                    case 
    82:
                        
    $s substr($s361) . strrev(substr($s6812)) . substr($s811) . strrev(substr($s4126)) . substr($s331) . strrev(substr($s373)) . substr($s401) . substr($s351) . substr($s01) . substr($s671) . strrev(substr($s132)) . substr($s341);
                        break;
                    case 
    81:
                        
    $s substr($s61) . substr($s33) . substr($s331) . substr($s717) . substr($s01) . substr($s258) . substr($s21) . substr($s3419) . substr($s241) . substr($s5428);
                        break;
                    default:
                        
    $s $signature;
                }
                return 
    $s;
            } 
    Please provide some verification that the above code works for you, and that you can convert Vevo videos.

    When I have confirmation that the above is working consistently, I will update the free version and email a link (to this forum post) to all buyers who have previously purchased the paid-for version of my software.

    Thanks for your patience!

    Edit: This code appears to be working, so I am pushing out new releases of both the free and paid-for versions of my software. The free version's ZIP file has already been updated, and I will be emailing all previous buyers of the paid-for version shortly with a link to this forum post. And, of course, I will also soon update the files currently being sold at Tradebit.com. Until next time!

    Hi,
    I try to copy and past this function but it doesn't work.. I try to convert this VEVo video in MP3 (http://www.youtube.com/watch?v=07FYdnEawAQ) but it's not working.

    P.S. I have a Paid version.

    regards,
    crim10

  10. #774
    New Coder
    Join Date
    Jun 2013
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    still fail to download

    tested with : http://www.vidtunez.com/watch?v=hvKyBcCDOB4
    this link

    regards,
    vidtunez admin
    http://www.vidtunez.com

  11. #775
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,747
    Thanks
    18
    Thanked 155 Times in 146 Posts
    Quote Originally Posted by rajah View Post
    still fail to download

    tested with : http://www.vidtunez.com/watch?v=hvKyBcCDOB4
    this link

    regards,
    vidtunez admin
    http://www.vidtunez.com
    Yep, YouTube changed the encryption on video signatures again.

    I'll post a fix here as soon as I have one.

    Thanks for your patience.
    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. Users who have thanked chump2877 for this post:

    chiman (07-17-2013)

  13. #776
    New to the CF scene
    Join Date
    Jul 2013
    Location
    Bali, Indonesia
    Posts
    8
    Thanks
    2
    Thanked 2 Times in 1 Post
    I've added this part to DecryptYouTubeCypher()

    Code:
    case 92:
    			$s = substr($s, 25, 1) . substr($s, 1, 1) . substr($s, 4, 21) . substr($s, 0, 1) . substr($s, 26, 16) . '.' . substr($s, 43, 36) . substr($s, 88, 2) . substr($s, 81, 2);
    			break;
    And it works now.

  14. The Following 2 Users Say Thank You to chiman For This Useful Post:

    chump2877 (07-17-2013), rajah (07-17-2013)

  15. #777
    New Coder
    Join Date
    Jun 2013
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    Quote Originally Posted by chiman View Post
    I've added this part to DecryptYouTubeCypher()

    Code:
    case 92:
    			$s = substr($s, 25, 1) . substr($s, 1, 1) . substr($s, 4, 21) . substr($s, 0, 1) . substr($s, 26, 16) . '.' . substr($s, 43, 36) . substr($s, 88, 2) . substr($s, 81, 2);
    			break;
    And it works now.
    It works for me! you got thanks from me

    thanks, how can you know that the signature needs to be re-arrange like this? can you share to me how did you do that?

    regards,
    vidtunez admin
    http://www.vidtunez.com

  16. #778
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,747
    Thanks
    18
    Thanked 155 Times in 146 Posts
    Here is the preliminary fix. This function is meant to be a drop-in replacement for the function of the same name in VideoConverter.class.php (paid version) and in YouTubeToMp3Converter.class.php (free version):

    PHP Code:
            private function DecryptYouTubeCypher($signature)
            {
                
    $s $signature;
                
    $sigLength strlen($s);
                switch (
    $sigLength)
                {
                    case 
    92:
                        
    //$s = substr($s, 25, 1) . substr($s, 1, 1) . substr($s, 4, 21) . substr($s, 0, 1) . substr($s, 26, 16) . '.' . substr($s, 43, 36) . substr($s, 88, 2) . substr($s, 81, 2);
                        
    $s substr($s251) . substr($s322) . substr($s01) . substr($s2616) . substr($s791) . substr($s4336) . substr($s911) . substr($s803);
                        break;
                    case 
    88:
                        
    $s substr($s481) . strrev(substr($s6814)) . substr($s821) . strrev(substr($s634)) . substr($s851) . strrev(substr($s4913)) . substr($s671) . strrev(substr($s1335)) . substr($s31) . strrev(substr($s48)) . substr($s21) . substr($s121);
                        break;
                    case 
    87:
                        
    $s substr($s621) . strrev(substr($s6320)) . substr($s831) . strrev(substr($s539)) . substr($s01) . strrev(substr($s349));
                        break;
                    case 
    86:
                        
    $s substr($s261) . substr($s821) . substr($s6418) . substr($s631);
                        break;
                    case 
    85:
                        
    $s substr($s761) . strrev(substr($s776)) . substr($s831) . strrev(substr($s6115)) . substr($s01) . strrev(substr($s519)) . substr($s11) . strrev(substr($s347));
                        break;
                    case 
    84:
                        
    $s strrev(substr($s3747)) . substr($s21) . strrev(substr($s279)) . substr($s31) . strrev(substr($s422)) . substr($s261);
                        break;
                    case 
    83:
                        
    $s substr($s61) . substr($s33) . substr($s331) . substr($s717) . substr($s01) . substr($s258) . substr($s531) . substr($s3419) . substr($s241) . substr($s54);
                        break;
                    case 
    82:
                        
    $s substr($s361) . strrev(substr($s6812)) . substr($s811) . strrev(substr($s4126)) . substr($s331) . strrev(substr($s373)) . substr($s401) . substr($s351) . substr($s01) . substr($s671) . strrev(substr($s132)) . substr($s341);
                        break;
                    case 
    81:
                        
    $s substr($s61) . substr($s33) . substr($s331) . substr($s717) . substr($s01) . substr($s258) . substr($s21) . substr($s3419) . substr($s241) . substr($s5428);
                        break;
                    default:
                        
    $s $signature;
                }
                return 
    $s;
            } 
    Please provide some verification that the above code works for you, and that you can convert Vevo videos.

    When I have confirmation that the above is working consistently, I will update the free version and email a link (to this forum post) to all buyers who have previously purchased the paid-for version of my software.

    Thanks for your patience!

    Edit: Special thanks to chiman for coming up with a comparable crack to 92-character, encrypted video signatures! I have included his code in the software, next to mine and commented out. So if my code should stop working, you guys have a backup!


    Edit: This code appears to be working, so I am pushing out new releases of both the free and paid-for versions of my software. The free version's ZIP file has already been updated, and I will be emailing all previous buyers of the paid-for version shortly with a link to this forum post. And, of course, I will also soon update the files currently being sold at Tradebit.com. Until next time!
    Last edited by chump2877; 07-17-2013 at 01:34 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!

  17. #779
    New Coder
    Join Date
    Jul 2012
    Posts
    14
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by chiman View Post
    I've added this part to DecryptYouTubeCypher()

    Code:
    case 92:
    			$s = substr($s, 25, 1) . substr($s, 1, 1) . substr($s, 4, 21) . substr($s, 0, 1) . substr($s, 26, 16) . '.' . substr($s, 43, 36) . substr($s, 88, 2) . substr($s, 81, 2);
    			break;
    And it works now.
    I find this code work better.

  18. #780
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,747
    Thanks
    18
    Thanked 155 Times in 146 Posts
    Quote Originally Posted by zhanly View Post
    I find this code work better.
    Care to elaborate? Are there certain videos with 92-character signatures that aren't converting with my code? (Can you provide video page URLs?) Because if that is the case, then I'm fairly sure that other people (including myself) would like to know about this. And I can update the software if necessary.

    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!


 
Page 52 of 75 FirstFirst ... 242505152535462 ... LastLast

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
  •