If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

It seems YouTube has stopped encrypting signatures for some video channels (like Vevo). And even so, in the corresponding YouTube "video info" pages, these videos are still tagged/marked as using encryption.

I don't know if this is temporary or permanent or a fluke or what, so in the meantime, please do the following to keep my software operational:

Free Version:

In YouTubeToMp3Converter.class.php, in SetFlvUrls(), please comment out the following line like so:

Soon, I will release a "fix" for both the free and paid for versions that:

1) First tries to download videos marked as using encryption using a decrypted signature
2) If that fails, the original signature is used (sans any decryption) to initiate the download

This should effectively accommodate our current situation here.

After contemplating this some more, I've decided that a "wait-and-see" approach is the best course of action here.

The fact that YouTube is telling us that a given video is encrypted, and then not encrypting the corresponding video's signature, seems to imply that YouTube is in some kind of volatile state right now -- and further changes may be coming?

So I'd rather not "fix" something here (in the base app code as opposed to just updating a signature decryption) until I am convinced that these changes with YouTube are relatively long-term.

In the meantime, any new (and existing) users of either the free or paid-for versions should following the instructions here to keep the software functioning.

I will post an update here when I decide that a permanent "fix" is warranted for this issue or if this temporary fix is no longer required.

FYI, my website traffic is only about 1,000 UV / Day, but the bandwidth has exceeded to 1TB

My question is, what is the recommended specs/reqs for the VPS hosting?

Thanks.

Are your site visitors downloading/converting full-length movies on your site? If you have the paid-for version of my software, then you can set the maximum duration of videos that can be downloaded for each converted file type. So, for example, people can only download/convert videos to .mp4 that are less than 15 minutes long.

Also, are you sure that your VPS isn't using bandwidth for something other than my software?

What are the current specs of your VPS? Is your traffic metered? Perhaps that is the problem? You'll probably want to find hosting that allows for "unlimited" traffic...You might also consider upgrading to a better VPS plan or even dedicated hosting.

I have had good experiences with the following web hosting companies (for this kind of software):

Solution was to move ffmpeg bin to same folder as script but I want to know why it doesn't work with /root/bin/ffmpeg bin and how to make script work with /root/bin/ffmpeg bin.

If you are installing on Ubuntu, and it sounds like you are (or did), then '/root/bin/ffmpeg' is a non-standard location for the FFmpeg binary. On Ubuntu/Debian, you generally have FFmpeg located at '/usr/bin/ffmpeg', and on CentOS/Red Hat, you'll commonly find it at '/usr/local/bin/ffmpeg'.

Users who have thanked chump2877 for this post:

Hello Chump! I apologize for my bad english
I bought your script a couple of days ago, thank you for your work!

I made all server configuration requirements and install your script on the server, made all the settings in the file config.class.php as it was written README.txt.
When I run the index.php, the browser displays 3 lines:

Script was loaded fine (without displaying the supported formats, which I commented out).
Result you can check here: youtubeconverting.com/VideoConverter/index.php?
Then I try to convert youtube video - script displays name of video and its preview, progress bar is empty with label under it: "Downloading video ... " Thats all, nothing happens ... I waited 20 minutes Nothing has happened in that time. Folders: videos, output, logs are empty.

Hello Chump! I apologize for my bad english
I bought your script a couple of days ago, thank you for your work!

I made all server configuration requirements and install your script on the server, made all the settings in the file config.class.php as it was written README.txt.
When I run the index.php, the browser displays 3 lines:

that's all. There are no field to enter youtube-url and conversion parameters. What could be wrong?

Settings for php on my server can be found here: youtubeconverting.com/VideoConverter/php.php

I try to solve this problem: into the code of file index.php, I make comment of the lines N 146-152 (I see that script stops on these lines)

Script was loaded fine (without displaying the supported formats, which I commented out).
Result you can check here: youtubeconverting.com/VideoConverter/index.php?
Then I try to convert youtube video - script displays name of video and its preview, progress bar is empty with label under it: "Downloading video ... " Thats all, nothing happens ... I waited 20 minutes Nothing has happened in that time. Folders: videos, output, logs are empty.

Please help! Tell me, what is a problem?

Hi pablos,

A couple things I noticed:

1) You're server OS is FreeBSD. FreeBSD and Linux are similar, but they are not the same. I have never tested my software on FreeBSD. Thus, while I can guarantee that my software will work as expected on Linux and Windows, I cannot guarantee it's successful operation on any other OS.

2) The position of your error in index.php implies that the PHP code is struggling with the use of anonymous functions. But you are running PHP 5.3+, so I'm not sure why this would be a problem.

So, the first thing you should do here is check your Apache error log. Do you see any relevant errors there?

Thank you for your answer! I disable eAccelerator for this domain and now when I try to convert some youtube video I see next errors:

Code:

Notice: ob_flush() [ref.outcontrol]: failed to flush buffer. No buffer to flush in /home/sotiris/www/youtubeconverting.com/VideoConverter/index.php on line 173
Warning: Division by zero in /home/sotiris/www/youtubeconverting.com/VideoConverter/VideoConverter.class.php on line 132
Notice: ob_end_flush() [ref.outcontrol]: failed to delete and flush buffer. No buffer to delete or flush in /home/sotiris/www/youtubeconverting.com/VideoConverter/VideoConverter.class.php on line 137
Notice: ob_flush() [ref.outcontrol]: failed to flush buffer. No buffer to flush in /home/sotiris/www/youtubeconverting.com/VideoConverter/VideoConverter.class.php on line 138

Last 2 rows many times.
And then script make its work, I see 1 file in "videos" folder. But folder "output" is empty.

Thank you for your answer! I disable eAccelerator for this domain and now when I try to convert some youtube video I see next errors:

Code:

Notice: ob_flush() [ref.outcontrol]: failed to flush buffer. No buffer to flush in /home/sotiris/www/youtubeconverting.com/VideoConverter/index.php on line 173
Warning: Division by zero in /home/sotiris/www/youtubeconverting.com/VideoConverter/VideoConverter.class.php on line 132
Notice: ob_end_flush() [ref.outcontrol]: failed to delete and flush buffer. No buffer to delete or flush in /home/sotiris/www/youtubeconverting.com/VideoConverter/VideoConverter.class.php on line 137
Notice: ob_flush() [ref.outcontrol]: failed to flush buffer. No buffer to flush in /home/sotiris/www/youtubeconverting.com/VideoConverter/VideoConverter.class.php on line 138

Last 2 rows many times.
And then script make its work, I see 1 file in "videos" folder. But folder "output" is empty.

These PHP warnings/notices are of no consequence and do not adversely affect my app's performance. Simply suppress error reporting again in the script to make those messages disappear.

If the 'output' folder is empty, then 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.)

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.)

1) its ok, I use right path: /usr/local/bin/ffmpeg
2) i made 0777 to "logs", "output","ringtones", "videos" directories. Also UtilityFunctions.class.php and software.xml are 0777
3) 1 file in "video" directory - it playable and fully downloaded.
4) There are no any files in "logs" directory.

1) its ok, I use right path: /usr/local/bin/ffmpeg
2) i made 0777 to "logs", "output","ringtones", "videos" directories. Also UtilityFunctions.class.php and software.xml are 0777
3) 1 file in "video" directory - it playable and fully downloaded.
4) There are no any files in "logs" directory.

Try "un-commenting" this line in DoConversion() in VideoConverter.class.php:

PHP Code:

//die($exec_string);

(Line 81 in my editor)

That will output the FFmpeg command to the screen. Try running that command in the CLI. Does it work?

Also check your paths to the relevant directories in config.class.php: