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 66 of 85 FirstFirst ... 1656646566676876 ... LastLast
Results 976 to 990 of 1275
Like Tree8Likes

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

  1. #976
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by christof1982 View Post
    hi !

    is that correct?

    config.class.php

    PHP Code:
            const _TEMPVIDDIR '/pampa/mp3/videos/';
            const 
    _CONVERTED_FILEDIR 'output/';
            const 
    _FFMPEG '/home/user/pampa/ffmpeg'
    php.ini

    Code:
    extension=/home/user/pampa/ffmpeg/lib/libavdevice.so
    extension=/home/user/pampa/ffmpeg/lib/libavfilter.so
    extension=/home/user/pampa/ffmpeg/lib/libavformat.so
    extension=/home/user/pampa/ffmpeg/lib/libavcodec.so
    extension=/home/user/pampa/ffmpeg/lib/libswresample.so
    extension=/home/user/pampa/ffmpeg/lib/libswscale.so
    extension=/home/user/pampa/ffmpeg/lib/libavutil.so
    the page can be opened but does nothing when converting. immediately comes an error downloading video!

    php = 5.3

    lg
    Several things are unclear to me here:

    1) Are you running Windows or Linux (or XAMPP)?
    2) If you are running Linux, then your FFmpeg binary is in a (very) non-standard location. How and who installed FFmpeg for you, and are you perhaps using a standalone version of FFmpeg? If you type 'which ffmpeg' at the command line, what is the output? If you type 'ffmpeg' in the command line, what is the output?
    3) You are using a combination of relative and absolute file paths to assign your constant values. Is there a reason for this? Perhaps you could try all relative paths or all absolute paths, instead of a mix of both?
    4) Are you using the free or commercial version of the software? Both versions require the libmp3lame codec to be installed, and the paid-for version additionally requires libx264 and aac codecs.

    In terms of troubleshooting, please try the following:

    1) Please check that the _FFMPEG constant value in config.class.php points to the correct location of the FFmpeg binary on your Linux server.
    2) Please ensure that all relevant directories and files are chmod to 0777
    3) Please check your videos directory. Are there video files in the directory? If so, are the video files playable? Are the videos fully downloaded? Are the videos 0 kb in length?
    4) Please check your logs directory for FFmpeg log files. Are there any log files in the directory? If so, please copy and paste the contents of a log file that corresponds to a failed conversion. (There should be errors in the log file.)
    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. #977
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts

    The Official FAQ




    Uh, oh!
    The FAQ has moved!

    Please navigate to its new home on my Facebook fan page:

    https://www.facebook.com/pages/Youtu...37541772984354

    Thank you!

    Last edited by chump2877; 10-07-2014 at 05:38 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 !! ♪♪

  3. #978
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    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 improved the auto-updating feature that automatically updates YouTube video signature decryption code as needed.
    2. The code used to decipher encrypted YouTube video signatures has changed.
    3. I have added support for the download and conversion of Vimeo (vimeo.com) videos

    Please note the following:

    • With this release, the entire system for updating decryption code is automated. Up until now, the system was automated on your end, but I still had to manually update my server regularly with new decryption code whenever YouTube changed its encryption algorithm. This is no longer the case! Again, the auto-update feature is now completely automated and free of human intervention. (And I can spend my week nights relaxing instead of waiting for YouTube to change their encryption code several times a week! Hallelujah! )
    • This version of the auto-update feature should virtually eliminate any possible downtime when YouTube encryption changes.
    • UtilityFunctions.class.php has been removed from the distribution. It is no longer required. The software.xml file now contains (and combines) both software version and decryption algorithm data.
    • The old method of auto-updating the software and decrypting video signatures is deprecated, and it may stop working at any point in the near future. It is therefore imperative that you update your software ASAP to the newest version to keep your software working and converting encrypted videos!

    The following files were changed/added:

    1. VideoConverter.class.php updated
      • FixYouTubeDecryption() method changed
      • DecryptYouTubeCypher() method added
      • LegacyDecryptYouTubeCypher() method added
      • DecryptYouTubeCypher() is no longer a static method, so calls to it must be prefixed with $this-> instead of UtilityFunctions:: (see PrepareYouTubeDownloadLink() method)
      • switch block case "Vimeo" added to RetrieveVidInfo() method
      • switch block case "Vimeo" added to SetVidSourceUrls() method
      • added curl_setopt($ch, CURLOPT_USERAGENT, parent::_REQUEST_USER_AGENT); to SaveVideo() method
      • changed thumbnail preview image to 'http://img.youtube.com/vi/'.$vidID.'/0.jpg' for YouTube videos in RetrieveVidInfo() method

    2. config.class.php updated
      • Vimeo added to $_videoHosts array
      • const _REQUEST_USER_AGENT added

    3. software.xml updated
    4. UtilityFunctions.class.php removed!
    5. index.php updated
      • fixed css width applied to video thumbnail preview image, so thumbnails for all video hosting sites are same size

    6. css/styles.css updated
      • minor changes to 'p' and 'form p' selectors

    The existing VideoConverter.class.php and software.xml files were modified, and UtilityFunctions.class.php has been removed. There should be no need to edit software.xml, and thus modifying this file is strongly discouraged.

    VideoConverter.class.php experienced significant code revisions. If you have modified this file (from its default version), then you will likely need to use some kind of file content comparison utility to make the necessary changes.

    software.xml should be set to chmod 0777, or the lowest permissions possible that still enable programmatic modification of the file. Moreover, the directory that contains software.xml should be writable, and directory permissions should be modified accordingly.

    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; 10-22-2013 at 09:30 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 !! ♪♪

  4. #979
    New Coder
    Join Date
    Jan 2013
    Posts
    42
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hi i buy the payed version
    the free it's work but the payed not work in vevo

    and in simple video i have this error

    ffmpeg version N-57230-g904c89a-syslint Copyright (c) 2000-2013 the FFmpeg developers
    built on Oct 17 2013 21:51:53 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3)
    configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint
    libavutil 52. 47.100 / 52. 47.100
    libavcodec 55. 37.100 / 55. 37.100
    libavformat 55. 19.102 / 55. 19.102
    libavdevice 55. 4.100 / 55. 4.100
    libavfilter 3. 88.101 / 3. 88.101
    libswscale 2. 5.101 / 2. 5.101
    libswresample 0. 17.104 / 0. 17.104
    libpostproc 52. 3.100 / 52. 3.100
    Input #0, matroska,webm, from 'videos/1382654477_5269a20d5cde65.14126697.flv':
    Duration: 00:05:51.13, start: 0.000000, bitrate: 175 kb/s
    Stream #0:0: Video: vp8, yuv420p, 480x360, SAR 1:1 DAR 4:3, 15 fps, 15 tbr, 1k tbn, 1k tbc (default)
    Stream #0:1: Audio: vorbis, 44100 Hz, stereo, fltp (default)
    File for preset 'veryfast' not found

  5. #980
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts
    Hello all,

    For those of you who haven't updated yet to the latest releases of the free and paid-for versions of my software: Time to update!

    In the meantime, here is the relevant, latest decryption code for UtilityFunctions.class.php (new code for signature length 83):

    PHP Code:
    // Sig Length 83
    public static function func5269babb8c33e9_31104040($a)
    {
        
    $a str_split($a);
        
    $a array_slice($a1);
        
    $a array_reverse($a);
        
    $a self::func5269babb8c62f1_19729387($a,41);
        
    $a array_reverse($a);
        
    $a self::func5269babb8c62f1_19729387($a,41);
        
    $a array_slice($a1);
        
    $a self::func5269babb8c62f1_19729387($a,15);
        return 
    implode(""$a);
    }
    public static function 
    func5269babb8c62f1_19729387($a,$b)
    {
        
    $c $a[0];
        
    $a[0] = $a[$b%count($a)];
        
    $a[$b] = $c;
        return 
    $a;
    }

    $s YouTubeAlgoFunctions::func5269babb8c33e9_31104040($s); 
    I'll let you guys figure out what code goes where in UtilityFunctions.class.php. Hint: Follow the existing format/pattern in the class file!

    Again, please update to the latest version(s) of my software. This is a courtesy update for those who have not had the chance to do so yet. (I'm sure you guys have your reasons! )
    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 !! ♪♪

  6. #981
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by phpLover7 View Post
    Hi i buy the payed version
    the free it's work but the payed not work in vevo

    and in simple video i have this error

    ffmpeg version N-57230-g904c89a-syslint Copyright (c) 2000-2013 the FFmpeg developers
    built on Oct 17 2013 21:51:53 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3)
    configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint
    libavutil 52. 47.100 / 52. 47.100
    libavcodec 55. 37.100 / 55. 37.100
    libavformat 55. 19.102 / 55. 19.102
    libavdevice 55. 4.100 / 55. 4.100
    libavfilter 3. 88.101 / 3. 88.101
    libswscale 2. 5.101 / 2. 5.101
    libswresample 0. 17.104 / 0. 17.104
    libpostproc 52. 3.100 / 52. 3.100
    Input #0, matroska,webm, from 'videos/1382654477_5269a20d5cde65.14126697.flv':
    Duration: 00:05:51.13, start: 0.000000, bitrate: 175 kb/s
    Stream #0:0: Video: vp8, yuv420p, 480x360, SAR 1:1 DAR 4:3, 15 fps, 15 tbr, 1k tbn, 1k tbc (default)
    Stream #0:1: Audio: vorbis, 44100 Hz, stereo, fltp (default)
    File for preset 'veryfast' not found
    First of all, have you updated your commercial software to the latest release? You will need to do so to continue to have automatic, uninterrupted conversions of Vevo videos.

    FYI - The demo is working for Vevo videos.

    Please see the FAQ regarding your FFmpeg log error:

    In the commercial version, especially on CentOS/Red Hat systems, try substituting the '-vpre verfast' flag with '-preset veryfast' in the FFmpeg commands located in the $_convertedFileTypes array in config.class.php.
    Last edited by chump2877; 10-25-2013 at 01: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 !! ♪♪

  7. #982
    New Coder
    Join Date
    Jan 2013
    Posts
    42
    Thanks
    1
    Thanked 0 Times in 0 Posts
    hi bro not work in paid version when i try to convert to mp4 or Flv
    but in demo
    http://musicvideo2mp3.com/ it's work you just download the video mp4 or flv no need to convert using ffmpeg

    ffmpeg version N-57230-g904c89a-syslint Copyright (c) 2000-2013 the FFmpeg developers
    built on Oct 17 2013 21:51:53 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3)
    configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint
    libavutil 52. 47.100 / 52. 47.100
    libavcodec 55. 37.100 / 55. 37.100
    libavformat 55. 19.102 / 55. 19.102
    libavdevice 55. 4.100 / 55. 4.100
    libavfilter 3. 88.101 / 3. 88.101
    libswscale 2. 5.101 / 2. 5.101
    libswresample 0. 17.104 / 0. 17.104
    libpostproc 52. 3.100 / 52. 3.100
    Unrecognized option '-preset'.
    Error splitting the argument list: Option not found
    i want not using ffmpeg when the people want convert to mp4 or flv like the demo

  8. #983
    New Coder
    Join Date
    Jan 2013
    Posts
    42
    Thanks
    1
    Thanked 0 Times in 0 Posts
    yes i have donwload my last version paid from tradebit yestreday

  9. #984
    New Coder
    Join Date
    Jan 2013
    Posts
    42
    Thanks
    1
    Thanked 0 Times in 0 Posts
    it's work -preset but you need not using ffmpeg when the people want convert to mp4 or flv or 3gp that's kill the server
    bestregards

  10. #985
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by phpLover7 View Post
    it's work -preset but you need not using ffmpeg when the people want convert to mp4 or flv or 3gp that's kill the server
    bestregards
    If the same video downloads without conversion on the demo site but doesn't on your site, then I'd guess that you need to lower the 'qualityTolerance' levels for the corresponding converted file types in the $_convertedFileTypes array in config.class.php. Also, the _ENABLE_DIRECT_DOWNLOAD constant in config.class.php needs to be set to true.

    If that doesn't solve your problem, then I don't know what to tell you really. If it works on the demo site and it's working for other people, then it should work for you.
    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 !! ♪♪

  11. Users who have thanked chump2877 for this post:

    phpLover7 (10-25-2013)

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

    now

    yea bro great
    Last edited by phpLover7; 10-25-2013 at 04:00 PM.

  13. #987
    New Coder
    Join Date
    Jan 2013
    Posts
    42
    Thanks
    1
    Thanked 0 Times in 0 Posts
    ahahahah yea sorry yea yea i see now
    thanks bro

  14. #988
    New Coder
    Join Date
    Jan 2013
    Posts
    42
    Thanks
    1
    Thanked 0 Times in 0 Posts
    'sd' => 'medium', // standard definition work with using ffmpeg ???

  15. #989
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by phpLover7 View Post
    'sd' => 'medium', // standard definition work with using ffmpeg ???
    Whaaat?

    Perhaps you need to review how this feature works?: http://www.codingforums.com/showpost...&postcount=939
    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 !! ♪♪

  16. #990
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts
    Hello everyone,

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

    1. I have improved the "direct download" feature that allows downloading video file types without FFmpeg conversion.
      • I have programmed the code to automatically (and temporarily) lower the ‘qualityTolerance’ level for the requested file type IF (for a given site's video) there are no available-to-download video files on the site (of any file type) that are least ‘qualityTolerance’ quality.
      • The code continues to lower the ‘qualityTolerance’ level for the requested file type until at least one downloadable video file (of any file type) from the site is at least ‘qualityTolerance’ quality.
      • For example, a given YouTube video has only a 'sd' MP4 video and 'ld' FLV video available for download. ('sd' corresponds to standard definition, and 'ld' stands for low definition.) A visitor to your site has requested a MP4 version of the video, and you have set the 'qualityTolerance' level for MP4 to 'hq' (high quality) in your config.class.php file. Following the initial conversion request, the code sees that there are no 'hq' MP4 files available -- and, in fact, there are no 'hq' files of any file type available. So the 'qualityTolerance' level of 'hq' set for MP4 is automatically (and temporarily) decremented one level, and the code then looks for any available, downloadable files that are at least 'sd' quality. At this point, the code finds the 'sd' MP4 file that is available on YouTube, and proceeds to download this MP4 file without requiring additional FFmpeg conversion.
      • In a nutshell, this improvement to the "direct download" feature further reduces the possibility that a requested video file type will require FFmpeg conversion. Which, in turn, cuts down on your server's use of FFmpeg and ultimately lowers your system load averages.

    2. I have introduced a new _ENABLE_UNICODE_SUPPORT constant in config.class.php. When set to true, this constant enables Unicode (i.e., foreign language) characters in file names and video titles. By default, the constant's value is set to false -- because some older operating systems (that your site visitors still use!) do not support Unicode characters.

    The following files were changed/added:

    1. VideoConverter.class.php updated
      • FilterVidUrlsForDownload() method changed
      • DownloadConvertedFile() method changed
      • RetrieveVidInfo() method changed
      • SetConvertedFileName() method changed

    2. config.class.php updated
      • const _ENABLE_UNICODE_SUPPORT added

    VideoConverter.class.php experienced significant code revisions. If you have modified this file (from its default version), then you will likely need to use some kind of file content comparison utility to make the necessary changes.

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


 
Page 66 of 85 FirstFirst ... 1656646566676876 ... 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
  •