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 70 of 91 FirstFirst ... 2060686970717280 ... LastLast
Results 1,036 to 1,050 of 1354
Like Tree14Likes

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

  1. #1036
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,859
    Thanks
    22
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by christof1982 View Post
    no it is not blokiert. test can www.musizz.com/index.php click on waka waka the right graphic. and hey kleines luder that works. I can play waka waka in the player so the video is not blocked
    Does the default installation of my software convert these videos? You have clearly modified some code, and I couldn't possibly know what exactly you have changed.
    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!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  2. #1037
    New Coder
    Join Date
    May 2013
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Quote Originally Posted by chump2877 View Post
    Does the default installation of my software convert these videos? You have clearly modified some code, and I couldn't possibly know what exactly you have changed.
    I have changed this line in the index.php to my videos to load directly into the converter. The other changes are visual only natural.

    <p><input type="text" id="videoURL" name="videoURL" value="http://www.youtube.com/watch?v=<?php echo $_GET['file']; ?>"/></p>

    original:

    <p><input type="text" id="videoURL" name="videoURL" /></p>

    lg
    Last edited by christof1982; 11-16-2013 at 06:44 PM.

  3. #1038
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,859
    Thanks
    22
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by christof1982 View Post
    I have changed this line in the index.php to my videos to load directly into the converter. The other changes are visual only natural.

    <p><input type="text" id="videoURL" name="videoURL" value="http://www.youtube.com/watch?v=<?php echo $_GET['file']; ?>"/></p>

    original:

    <p><input type="text" id="videoURL" name="videoURL" /></p>

    lg
    I couldn't know what exactly the problem is without troubleshooting directly on your server. You would have to install the default software on your server somewhere, and then I could troubleshoot that (and not your modified code). However, working directly on your server is outside of the scope of free support, so I would have to charge you for 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!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  4. #1039
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,859
    Thanks
    22
    Thanked 157 Times in 148 Posts

    New Version!

    Hello everyone,

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

    1. I have introduced multi-language support
      • Languages can be set by your site users via a new drop down menu
      • The default language can be set via the _DEFAULT_COUNTRY constant in Config.class.php
      • New languages can be added to the software by adding both a new country node to 'langs/index.xml' as well as a new, XML translation file (for the new country) in the '/langs' directory. The translation file must use the ISO 3166 two-letter country code of the corresponding country -- in lowercase letters -- as its file name (i.e., us.xml). New translation files should emulate the format of existing XML translation files.

    2. Changes to the design/layout
      • Implemented a nicer default design


      • Added the ability to incorporate static pages (i.e., About, FAQ, and Contact pages)


      • Enabled rudimentary templating capability (primarily) for static pages, via common header/footer files


    Extensive modifications were made to the software in this release. So many, in fact, that I have included a 'revision_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. bookmarklet/getFileTypes.php** updated
    2. css/styles.css** updated
    3. css/languages.css new
    4. inc/static_page_footer.php new
    5. inc/static_page_header.php new
    6. about.php new
    7. bookmarklet.php** updated
    8. Config.class.php** new/updated

      • Renamed; Formerly 'config.class.php'

    9. contact.php new
    10. exec_ffmpeg.php** updated
    11. faq.php new
    12. ffmpeg_progress.php** updated
    13. ffmpeg_ringtone.php** updated
    14. index.php** updated
    15. Localize.class.php new
    16. ringtone.php** updated
    17. schedule.php** updated
    18. VideoConverter.class.php** updated

    ** See corresponding report in 'revision_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!
    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!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  5. #1040
    vac
    vac is offline
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    1080p

    Hi, is there way how to download YT video in 1080p? Script returns only links with basic itags (5, 18, 22, ...). By that links I can only download video in 720p or smaller (video can be played in 1080p on web). Thank you.

  6. #1041
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,859
    Thanks
    22
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by vac View Post
    Hi, is there way how to download YT video in 1080p? Script returns only links with basic itags (5, 18, 22, ...). By that links I can only download video in 720p or smaller (video can be played in 1080p on web). Thank you.
    Hi, I assume you are referring to the commercial version? (The free version generally doesn't download HD video for MP3 conversions, because it's not necessary and can generally be considered overkill. The audio bit rates of HD video are comparable to the audio bit rates of lower quality video, so using server resources to download and convert 1080p video -- to ultimately convert to MP3 format -- is a significant waste of CPU/bandwidth.)

    At the moment, for the commercial version of the software, there is no "great" way to add support for downloading 1080p video from YouTube. And similar to my rationale regarding the free version, downloading (and sometimes converting) 1080p video can really use up a lot of resources on the server (especially when you scale up traffic to your site and server). So, for now, the software defaults to downloading/converting no higher than 720p HD video.

    In the meantime, to circumvent this restriction, you might try the following (though I have not tried this myself):

    In VideoConverter::SetVidSourceUrls(), change the following code:
    PHP Code:
                                            if ($dloadFileVars['quality'] != 'hd1080')
                                            {
                                                
    $vidUrls[] = array($dloadFileType$dloadFileQuality$this->PrepareYouTubeDownloadLink($url$vidTrackTitle));
                                            } 
    ...to:
    PHP Code:
                                                 if ($dloadFileVars['quality'] != 'small')
                                            {
                                                
    $vidUrls[] = array($dloadFileType$dloadFileQuality$this->PrepareYouTubeDownloadLink($url$vidTrackTitle));
                                            } 
    And in 'video_qualities' array of YouTube index in Config::$_videoHosts array, you could change:

    PHP Code:
                    'video_qualities' => array(
                        
    'hd' => 'hd720',  // high definition
                        
    'hq' => 'large',  // high quality
                        
    'sd' => 'medium',  // standard definition
                        
    'ld' => 'small'  // low definition
                    

    ..to:

    PHP Code:
                    'video_qualities' => array(
                        
    'hd' => 'hd1080',  // high definition
                        
    'hq' => 'hd720',  // high quality
                        
    'sd' => 'large',  // standard definition
                        
    'ld' => 'medium'  // low definition
                    

    Perhaps not an all-around perfect or ideal solution, but a serviceable solution for now nonetheless, I think.

    In the future, I may add support for downloading/converting 1080p video if enough people think that this feature has value, and if such a feature will not ultimately "blow up" their busy web servers in the process.

    Good luck! ..and let me know if you have any further questions/concerns!
    Last edited by chump2877; 11-25-2013 at 01:28 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!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  7. #1042
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,859
    Thanks
    22
    Thanked 157 Times in 148 Posts

    New version!

    Hello everyone,

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

    1. Integrated Dropbox.com "Saver" buttons that enable converted files to be saved to site users' Dropbox.com accounts (in the "cloud") in addition to regular file download.
      • "Saver" buttons/links are included after initial video download/conversion as well as following ringtone creation.
      • Dropbox.com integration can be toggled on/off via the _ENABLE_DROPBOX_SAVING constant in Config.class.php
      • You must create a Dropbox.com developer account and a new "Drop-ins app (Chooser or Saver)" to obtain a free app key, and then set the _DROPBOX_APP_KEY constant in Config.class.php accordingly.
      • You must specify a corresponding domain name for the app key during Dropbox.com registration!
      • This feature is especially useful to iOS users who (by default) are not able to directly download converted files to their mobile devices!

    2. Added additional languages to existing multi-language/localization support (and corresponding drop down menu).
    3. Fixed a bug related to Unicode support in converted file names and video titles.

    Extensive modifications were made to the software in this release. So many, in fact, that I have included a 'revision_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. css/styles.css** updated
    2. 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 the new languages.

    3. Config.class.php** updated
    4. ffmpeg_ringtone.php** updated
    5. index.php** updated
    6. ringtone.php** updated
    7. VideoConverter.class.php** updated

    ** See corresponding report in 'revision_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; 11-27-2013 at 04:59 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!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  8. Users who have thanked chump2877 for this post:

    Luckyplaya (11-27-2013)

  9. #1043
    vac
    vac is offline
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by chump2877 View Post
    Hi, I assume you are referring to the commercial version? (The free version generally doesn't download HD video for MP3 conversions, because...
    Thanks for your reply. Im using your paid version only for generating downloadable links of Youtube videos. Any other operations (downloading, converting) are in my direction. So, I made my own method in VideoConverter.class.php, that calls some other required methods in this class, and finally this method puts result of GetVidSourceUrls(); method to array. Links loaded in array dont contain required itags, there is the result: http://pastebin.com/pgpKiAqD

    I havent tried the changes you had suggested yet - is that solution for my problem? :-)

    Many thanks.

  10. #1044
    New to the CF scene
    Join Date
    Dec 2013
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hi,

    so I have installed the free version, the download was the latest? 10-13-13 zip,
    and am getting the 'error downloading video'
    then printing out some debug lines, I found the curl responce was 403, but
    _ytCypherUsed was false.

    when I print out the url used and paste into the browser, I also get a 403 forbidden responce, any ideas what I could try?

    Thanks

  11. #1045
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,859
    Thanks
    22
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by mary_0 View Post
    Hi,

    so I have installed the free version, the download was the latest? 10-13-13 zip,
    and am getting the 'error downloading video'
    then printing out some debug lines, I found the curl responce was 403, but
    _ytCypherUsed was false.

    when I print out the url used and paste into the browser, I also get a 403 forbidden responce, any ideas what I could try?

    Thanks
    The latest free version (10-18-13.zip) is here: http://www.codingforums.com/showpost...&postcount=971

    Please check the FAQ for possible answers to your question: http://www.codingforums.com/showpost...&postcount=977

    Are you located in the same country as your web server? Perhaps the video is blocked in the server's country? Is this an age-restricted video?

    The software's decryption code for encrypted videos is still functional per the demo (http://musicvideo2mp3.com), so I don't think that this is the source of your problem.

    Edit: Please paste the URL of the video you are testing with!
    Last edited by chump2877; 12-04-2013 at 10:36 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!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  12. Users who have thanked chump2877 for this post:

    mary_0 (12-05-2013)

  13. #1046
    New to the CF scene
    Join Date
    Dec 2013
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    hi there,

    well the url of the vid is;
    http://www.ifilmfeatures.com/license/licenseV3.php

    it works just fine on your demo site.

    it also plays here in the US on youtube just fine.

    i am running the script here on my localhost, apache 2.2, php5.3.27

    when i echo the results of $file_contents = file_get_contents($youTubeUrl);
    the complete youtube page is shown, so there are no blocks etc...

    just that the request for the vid url is wrong, thus returning the 403 response;

    this is the output url array;

    Array ( [0] => http://r15---sn-vgqs7n76.googlevideo...rms+%28Live%29 [1] => http://r15---sn-vgqs7n76.googlevideo...rms+%28Live%29 )

    now this is the video url in live headers in firefox
    http://r15---sn-vgqs7nee.googlevideo...pn=BxZ7EdimG1c

    and if i paste that into a browser, i get a download file, of course it is just one part of the whole video....


    thanks

  14. #1047
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,859
    Thanks
    22
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by mary_0 View Post
    hi there,

    well the url of the vid is;
    http://www.ifilmfeatures.com/license/licenseV3.php

    it works just fine on your demo site.

    it also plays here in the US on youtube just fine.

    i am running the script here on my localhost, apache 2.2, php5.3.27

    when i echo the results of $file_contents = file_get_contents($youTubeUrl);
    the complete youtube page is shown, so there are no blocks etc...
    Hi,

    You haven't provided me with a valid YouTube video page URL, so there is no way for me to test the video that is giving you problems. (How could you think that this is a valid video page URL anyway: http://www.ifilmfeatures.com/license/licenseV3.php ??)

    If you are able to retrieve (and view) the contents of the YouTube video page programmatically (via file_get_contents), and you have verified that the video is not blocked in your country nor age-restricted (requires a login), then I guess I don't understand how you are simultaneously receiving a HTTP 403 Forbidden response?

    And if the same video converts without issue on the demo site, then that seems to suggest a problem with your server. (The demo site server is also located in the US.)

    I suppose I will remain confused at least until you provide me with a valid YouTube URL to test with.

    Have you tried running the script on another server?
    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!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  15. #1048
    New to the CF scene
    Join Date
    Dec 2013
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I found the problem. openssl was disabled, so the cypher was not found
    so the auto update never ran, so the url was always wrong, hence the 403 error.

    It is running perfect now, Thanks!

  16. #1049
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,859
    Thanks
    22
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by mary_0 View Post
    I found the problem. openssl was disabled, so the cypher was not found
    so the auto update never ran, so the url was always wrong, hence the 403 error.

    It is running perfect now, Thanks!
    Aha! So I'm curious: Why was openssl disabled?
    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!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  17. #1050
    New to the CF scene
    Join Date
    Dec 2013
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    good question, was running php5.2.x, had to update for this, and it seems
    the default 5.3.27 php.ini had openssl commented out.

    on a side note, just ran this again and had the vid download error,
    but I noticed the xml file also updated, ran it the second time and was fine, how often does YT change that cipher?


 
Page 70 of 91 FirstFirst ... 2060686970717280 ... LastLast

LinkBacks (?)

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