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 82 FirstFirst ... 1656646566676876 ... LastLast
Results 976 to 990 of 1227
Like Tree7Likes

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,802
    Thanks
    19
    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!

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

    The Official FAQ

    FAQ :: Common questions and answers related to the troubleshooting of hardware/software issues

    (I will modify and add to this list as needed and as my time permits!)

    Q. I opened index.php and see a blank page. What should I do?
    A. First, turn on error reporting in index.php by editing the following line (at the very top of the file) like so:

    PHP Code:
    ini_set('display_errors',1); 
    This can also be accomplished with:

    PHP Code:
    error_reporting(E_ALL); 
    Both commands will enable the output of PHP errors to the browser.

    Also, check your Apache error log for PHP errors and warnings.

    If you see a PHP error or warning that you don't understand, please copy and paste the error into Google and behold the plethora of other people who have experienced -- and overcome -- similar errors. Leverage Google to your advantage in this case, and benefit from the experiences of others who have had the same problem.

    Q. When error reporting is enabled or when I check the Apache error log, I see the following PHP warning: "PHP Warning: Division by zero...". What does this mean?
    A. This warning is of no consequence. It is a side-effect of the download progress bar. It is harmless. If you disable error reporting in your script, which you should always do on a production server to protect you from hackers (and it is disabled by default), then you won't have to endure the awful pain of seeing this warning.

    Q. When error reporting is enabled or when I check the Apache error log, I see the following PHP notice"Notice: ob_flush() : failed to flush buffer. No buffer to flush...". What does this mean?
    A. Again, this notice is of no consequence. Please see the previous FAQ question/answer.

    Q. I opened index.php and see something like: "Parse error: syntax error, unexpected T_FUNCTION in /home/user/public_html/index.php on line...". What should I do?
    A. This is generally an indication that you do not have at least PHP 5.3 installed. Anonymous functions usually cause this error, and they were not introduced until PHP 5.3. You need to install PHP 5.3+ to eliminate this error.

    Q. I opened index.php and see the following message: "This domain is not authorized to access this software!". What should I do?
    A. Open Config.class.php and edit the $_authorizedDomains array to include all domain names (and subdomains!) that are allowed to access/display the software. ("www" IS a subdomain! If you want "www.yoursite.com" as well as "yoursite.com" to work, then you must include both!) Leaving this array empty will allow ALL domains to access your software. (NOT RECOMMENDED!!)

    Q. When I enter a URL and click the "Convert" button, the page reloads and I see a bunch of strange characters and symbols filling up the screen. Why is this?
    A. Please ensure that your 'videos' directory is chmod to 0777 permissions. The script is trying to send the video download to the 'videos' directory, but adequate permissions are not set. So the raw, downloaded data has nowhere to go and is ultimately output to the screen.

    Q. When I enter a URL and click the "Convert" button, the page reloads, shows me a "Download" progress bar, and nothing happens and/or I see the message "Error downloading video!". Why is this?
    A. First, ensure that you have installed recent versions of both cURL and the PHP cURL extension.

    Verify that the _TEMPVIDDIR constant in config.class.php is the correct path to your 'videos' directory.

    If you have moved the 'videos' directory to outside of the web root, then you will have to use an absolute path instead of a relative path.

    Verify that software.xml exists in your software's root directory, and that the file is chmod to 0777 permissions. Also, ensure that your software's root directory permissions allow programmatic modification of software.xml. If software.xml exists, try deleting the file and allowing it to automatically regenerate.

    Check the contents of 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?

    Try executing a simple PHP cURL request to the video hosting site's video page, and return the contents of the page to the screen. For example (for YouTube videos), place the following code in a new file, replacing the "vidID" URL query string parameter value with a valid YouTube video ID:

    PHP Code:
    <?php 
    // create a new cURL resource 
    $ch curl_init();  

    // set URL and other appropriate options 
    curl_setopt($chCURLOPT_URL"http://www.youtube.com/watch?v=vidID"); 
    curl_setopt($chCURLOPT_HEADER0); 

    // grab URL and pass it to the browser 
    curl_exec($ch);  

    // close cURL resource, and free up system resources 
    curl_close($ch); 
    ?>
    Save the file, upload it to your server, and open it in a browser. Do you see the HTML page located at that URL? If the video is blocked in your server's country, then this will be indicated in the screen's output. A blank page or CAPTCHA screen could indicate that your IP has either been temporarily banned or flagged (via the CAPTCHA) for exceeding video pull quota limits. It could also mean that your server is having networking issues.

    Ensure that the PHP "safe_mode" directive is set to "Off" and the PHP "open_basedir" directive is set to no value or "". Both directives can be modified in your server's php.ini file, PHP's main configuration file on your server.

    Check your Apache error log for PHP errors and warnings.

    Q. Videos are downloaded and converted, but I never see the download progress bar (only the conversion progress bar appears). How come?
    A. This could be an indication of a networking problem on your server (relating to the configuration of network card software on your server). Contact your hosting provider to see if there is anything that they can do on their end.

    This might be a cURL, PHP cURL extension, or PHP output buffering issue. Verify that cURL, PHP, and the PHP cURL extension are installed and configured correctly. Check the output buffering directives in your server's php.ini.

    Your server might have a very fast download speed. If the speed is fast enough, consistently, it is possible that the download progress bar is absent because it never has a chance to clear the output buffer before the download completes.

    If you are running cPanel, Plesk, Virtualmin, or a similar hosting control panel software, check to see if any of the settings in your control panel are conflicting with the download progress bar. In particular, via your control panel or otherwise, try configuring PHP to run as an Apache module instead of via a CGI wrapper (or vice versa?). Often, adjusting this setting will cause the download progress bar to start working.

    If you are using PHP 5.5+, AND you have an older version of my software, then you MUST add an additional "cURL resource" argument to the beginning of the parameter list of the UpdateVideoDownloadProgress() function in VideoConverter.class.php (YouTubeToMp3Converter.class.php in the free version), like so:

    Code:
    function UpdateVideoDownloadProgress($curlResource, $downloadSize, $downloaded, $uploadSize, $uploaded)
    Q. The video download completes, the "Conversion" progress bar is shown, and then nothing happens and/or I see the message "Error generating converted file!". What can I do?
    A. First, check that the _FFMPEG constant value in config.class.php points to the correct location of the FFmpeg binary on your server. On Linux, you can locate FFmpeg via the "which ffmpeg" command in the command line interface.

    Ensure that both the 'output' and 'logs' directories (or 'mp3' and 'logs' directories in free version) are chmod to 0777 permissions.

    Check to see if videos are actually being downloaded prior to conversion.

    Check your ‘logs’ directory for FFmpeg log files. Are there any log files in the directory? If so, look for errors in a log file that corresponds to a failed conversion.

    Does FFmpeg work from the command console? Try running a FFmpeg command directly in the command line interface. Preferably, run a command that is executed by my software during conversions.

    Are you running the most recent version of FFmpeg? (Check your version of FFmpeg by typing "ffmpeg" in the command console. If the dates shown in the resulting output are more than 1-2 years old, then you may have an outdated version of FFmpeg.) Also, the commercial version of my software may no longer work as expected with FFmpeg builds downloaded from the apt-get (or yum, etc.) repositories. Instead, try downloading a recent, static build from here: Index of /static. This tutorial can assist you further with this process.

    You may need to set permissions of the FFmpeg binary to 0777, or lower -- if possible, so that my software has permission to access FFmpeg. This especially holds true for people using a static build of FFmpeg.

    Have you installed at least the libvorbis, libvpx, libmp3lame, libx264, and aac codecs on your server? You can check quickly by executing commands like the following in the console: "ffmpeg -codecs | grep x264" or "ffmpeg -codecs | grep mp3" or "ffmpeg -codecs | grep aac". The word or phrase after "grep" tells FFmpeg how to filter the installed codecs (you can change this search word or phrase as needed). When you type any of these commands, check for a capital "E" in front of the codec name ("E" signifies that you can encode with this codec). If the "E" is missing, then there is something wrong with the codec installation.

    If you have moved the 'output' or 'logs' directories (or 'mp3' and 'logs' directories in free version) to outside of the web root, then you will have to use an absolute path instead of a relative path for the corresponding constant values in config.class.php.

    In the commercial version, try using an absolute path for the 'logs' directory in the FFmpeg commands located in the $_convertedFileTypes array in config.class.php, i.e.:

    PHP Code:
    'ffmpeg' => '%ffmpeg% -i %tempFile% -vol %volume% -y -acodec libmp3lame -ab %quality%k %newFile% 2> /home/user/public_html/logs/%id%.txt'
    In the free version, the FFmpeg command is located in GenerateMP3() in YouTubeToMp3Converter.class.php, and the same principle applies (with regard to using an absolute path for the 'logs' directory).

    Q. On the "Edit file further" screen (following successful download/conversion), the loading box never disappears. It just loads forever and ever. How can I fix this?
    A. You probably have gzip compression enabled for Apache. Media file formats like mp3, mp4, etc., are already compressed. So if you try to compress these files further with gzip, the audio/video player on the "Edit file further" screen will not be able to read the media correctly. To address this problem (again, assuming you have gzip enabled on your server), you will need to add the following line to the software's .htaccess file:

    Code:
    SetEnvIfNoCase Request_URI (\.mp3|\.mp4|\.webm|\.f4v|\.3gp)$ no-gzip
    Q. I am unable to download my edited files (following converted file cropping or MP3 meta data editing), or MP3 meta data editing is not working. Why?
    A. First, verify that an edited file was actually created by checking the contents of the "output_edited" directory. If no corresponding file exists in the "output_edited" folder, then there is either 1) a problem with the permissions/ownership set on that folder (permissions need to be set to chmod 0777), 2) there is a problem/error with the FFmpeg command in ffmpeg_edit.php, and/or 3) there is a problem with the compilation/configuration of FFmpeg itself.

    After ruling out permissions/ownership of the "output_edited" folder as an issue, the next step is to troubleshoot the FFmpeg command in ffmpeg_edit.php. Add the highlighted line of code to ffmpeg_edit.php, given the following context code:

    PHP Code:
    $ffmpegCmd .= Config::_EDITED_CONVERTED_FILEDIR .  $song.".".$extension;
    echo 
    '<script type="text/javascript">console.log("FFmpeg command:  '.$ffmpegCmd.'");</script>';   // Add new line of code here !!!
    exec($ffmpegCmd); 
    Then run the software, open up the JavaScript console in your browser, and check the console output. You should see a FFmpeg command printed there. Copy and paste this command into a command prompt on the server. Before you run the command in the terminal, you will need to verify that the file in the command exists in the “output” folder, and you may need to use absolute paths for ALL file paths in the command (i.e., ‘/home/user/public_html/output/someconvertedfile_uuid-sadfasdfasdf.mp3’).

    After executing the command in the server command prompt, check for the new file in the “output_edited” folder. Also take note of any FFmpeg runtime errors you see in the terminal. If you see errors, then troubleshoot your FFmpeg command and/or installation accordingly.

    Q. How long are converted files saved on the server?
    A. In the commercial version, the length of time the files remain on the server can be set in Config.class.php (via the _MAX_AGE_FILES constant value). And a separate PHP file (schedule.php), intended to be run as a cron job (scheduled task) on your server, deletes old converted files per the corresponding setting in the Config class. I recommend setting up the cron job to run at least once a day.

    Note: Please open up schedule.php in a script editor prior to creating the cron job. Per the comments at the top of this file, you MUST uncomment the PHP unlink() functions for converted files to actually be deleted.

    The free version does not allow for the periodic removal of converted files.

    Q. How can I integrate the software into my existing website?
    A. The easiest way to integrate the software into an existing site is to load the software's index.php inside an iframe (on your site). The iframe size will need to be large enough to accommodate the software content. You can make the iframe background transparent via HTML/CSS so that it blends in with the rest of your site. Any additional styling of the iframe or iframe contents can be achieved by directly editing the HTML/CSS of the software files. For the commercial version of the software, you may also want to remove the navigation and multi-language components from the top of the default design/layout. Finally, be sure to include the following line at the very top of the software's index.php:

    PHP Code:
    header('X-Frame-Options: SAMEORIGIN'); 
    This header ensures that your iframe cannot be embedded on any other domain but your own.

    Q. I think Youtube is blocking or banning my IP address, and/or I am experiencing a CAPTCHA page when trying to connect to a YouTube video page. What can I do?
    A. First of all, bans are usually temporary. In my experience, YouTube only blocks/bans your IP for a finite period of time. The amount of time will vary -- generally, anywhere from a few minutes to a few days.

    If you are frequently getting blocked by YouTube, OR you are experiencing a CAPTCHA page, then you can rotate IPs/proxies for each HTTP request made to YouTube's servers. Using PHP's cURL extension, you can change the outgoing IP address via CURLOPT_INTERFACE or leverage a proxy server via CURLOPT_PROXY, i.e.:

    PHP Code:
    curl_setopt($chCURLOPT_INTERFACE'208.67.222.222');
    curl_setopt($chCURLOPT_USERAGENT'');
    curl_setopt($chCURLOPT_REFERER'');
    curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
    curl_setopt($chCURLOPT_SSL_VERIFYHOSTFALSE); 
    ...or:

    PHP Code:
    curl_setopt($chCURLOPT_PROXY'208.67.222.222');
    curl_setopt($chCURLOPT_USERAGENT'');
    curl_setopt($chCURLOPT_REFERER'');
    curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
    curl_setopt($chCURLOPT_SSL_VERIFYHOSTFALSE); 
    You'll need to purchase proxy IPs from a provider like http://instantproxies.com/billing/aff.php?aff=061 (OR buy them from your hosting provider), load the IPs into a database table, and then cycle through each IP in the table for each new conversion request. And to ensure that each proxy is used equally, you increment the 'usage count' in the database table for each IP as it's used. So when your code is cycling through proxy IPs in the db table, it always finds the IP that has been used the least number of times and uses that IP for the next conversion request.

    When choosing proxies, ideally you'll want to do the following:

    1) Choose proxies that are geographically very near to your web server. Ideally, the proxy server would be sitting right next to the web server in the same data center.
    2) You are the only person using the proxy server, and you are not using it for anything more than proxy requests.
    3) Your proxy server is not a virtual server running on a physical server that is hosting other virtual proxy instances (that you don't operate).
    4) Spread out your requests to multiple, numerous proxies instead of only having a couple of proxies, for example.
    5) The proxy server(s) should be running with modest CPU load averages and comparable network bandwidth and connection speeds (to your web server).

    Do not use free proxy IPs. You are sharing those proxies with the rest of the world, and they get banned quickly by popular sites (like YouTube).

    I have not yet implemented proxy integration with my software. That said, it is on my "To-Do" list, among other things!
    Last edited by chump2877; 08-28-2014 at 12:25 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!

  3. #978
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,802
    Thanks
    19
    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!

  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,802
    Thanks
    19
    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!

  6. #981
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,802
    Thanks
    19
    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!

  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,802
    Thanks
    19
    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!

  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,802
    Thanks
    19
    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!

  16. #990
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,802
    Thanks
    19
    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!


 
Page 66 of 82 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
  •