Go Back   CodingForums.com > :: Server side development > PHP > Post a PHP snippet

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 7 votes, 5.00 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-15-2012, 03:19 AM   PM User | #451
bbrog
New Coder

 
Join Date: Jun 2012
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
bbrog is an unknown quantity at this point
Hi, dont worry I have fixed it

Thanks for the very quick fix around you guys are the best!

Just have one question how can I change the quality of the audio

I want low to be 128, medium 256 and high 320

Let me know thanks!
bbrog is offline   Reply With Quote
Old 09-15-2012, 03:35 AM   PM User | #452
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by bbrog View Post
Hi, dont worry I have fixed it

Thanks for the very quick fix around you guys are the best!

Just have one question how can I change the quality of the audio

I want low to be 128, medium 256 and high 320

Let me know thanks!
configure $_audioQualities field in config.class.php
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Old 09-15-2012, 03:50 AM   PM User | #453
bbrog
New Coder

 
Join Date: Jun 2012
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
bbrog is an unknown quantity at this point
Thanks worked! You guys are the best honestly!
bbrog is offline   Reply With Quote
Old 09-15-2012, 01:22 PM   PM User | #454
Luckyplaya
New Coder

 
Join Date: Sep 2012
Location: Germany
Posts: 32
Thanks: 8
Thanked 1 Time in 1 Post
Luckyplaya is an unknown quantity at this point
First sorry for my bad English (Google Translator)

I have a purchased version.
What I need to change so that Youtube is working again?
Luckyplaya is offline   Reply With Quote
Old 09-15-2012, 01:32 PM   PM User | #455
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by Luckyplaya View Post
First sorry for my bad English (Google Translator)

I have a purchased version.
What I need to change so that Youtube is working again?
I'm working on fix for paid-for version as we speak...when it's done, I will email the entire updated files distribution to all paying members (to your Tradebit-provided email addresses)...no extra charge
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Old 09-15-2012, 01:37 PM   PM User | #456
Luckyplaya
New Coder

 
Join Date: Sep 2012
Location: Germany
Posts: 32
Thanks: 8
Thanked 1 Time in 1 Post
Luckyplaya is an unknown quantity at this point
Quote:
Originally Posted by chump2877 View Post
I'm working on fix for paid-for version as we speak...when it's done, I will email the entire updated files distribution to all paying members (to your Tradebit-provided email addresses)...no extra charge
Ahh Ok. Very Thanks
Luckyplaya is offline   Reply With Quote
Old 09-15-2012, 04:14 PM   PM User | #457
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Hello everyone,

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

1) YouTube changed their video pages' source code, requiring some tweaking of my code to get the video file download links working again. The relevant code to change is in VideoConverter::SetVidSourceUrls() method in VideoConverter.class.php.

2) Added an additional configuration constant, “_DEFAULT_VIDEO_QUALITY”, to config.class.php. Raising or lowering this value will cause converted video file size to increase or decrease, respectively. This value is only used when FFmpeg cannot determine video bit rate of downloaded video.

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.

Thanks!
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
The Following 2 Users Say Thank You to chump2877 For This Useful Post:
Luckyplaya (09-16-2012), soofi (09-15-2012)
Old 09-15-2012, 04:15 PM   PM User | #458
soofi
New to the CF scene

 
Join Date: Jul 2012
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
soofi is an unknown quantity at this point
Randall, do we replace all of the pages with updated zip file?

Thanks for answering!
soofi is offline   Reply With Quote
Old 09-15-2012, 04:19 PM   PM User | #459
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by soofi View Post
Randall, do we replace all of the pages with updated zip file?

Thanks for answering!
The only code to change (in the paid-for version) is in those two files: VideoConverter.class.php and config.class.php.

In the free version, the only code to change is in YouTubeToMp3Converter.class.php
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Old 09-16-2012, 02:52 PM   PM User | #460
Luckyplaya
New Coder

 
Join Date: Sep 2012
Location: Germany
Posts: 32
Thanks: 8
Thanked 1 Time in 1 Post
Luckyplaya is an unknown quantity at this point
I extended my version something, it can now also convert avi and aac
http://video2mp3.eu
Luckyplaya is offline   Reply With Quote
Old 09-16-2012, 06:52 PM   PM User | #461
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by Luckyplaya View Post
I extended my version something, it can now also convert avi and aac
http://video2mp3.eu
Looking good!

It should be fairly straightforward to add additional converted file types...Was it for you?
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Users who have thanked chump2877 for this post:
Luckyplaya (09-21-2012)
Old 09-17-2012, 02:56 PM   PM User | #462
zhanly
New to the CF scene

 
Join Date: Jul 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
zhanly is an unknown quantity at this point
I'm trying to setup the free code you provided, but i couldn't make it to work, could you help? I may buy the paid version.
zhanly is offline   Reply With Quote
Old 09-17-2012, 04:54 PM   PM User | #463
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by zhanly View Post
I'm trying to setup the free code you provided, but i couldn't make it to work, could you help? I may buy the paid version.
What exactly is not working for you? Can you please describe in more detail what issues you are having?
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Old 09-18-2012, 01:20 PM   PM User | #464
Lanibox
New to the CF scene

 
Join Date: Nov 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Lanibox is an unknown quantity at this point
Could somebody recommend me good FFMPEG shared hosting?
Cirtex doesnt support PHP 5.3 so there is some parts that wont work.


Edit:

Im getting this error at Site5 hosting...
Any help?

Code:
[18-Sep-2012 11:54:57] PHP Deprecated:  Function eregi() is deprecated in /home/tubeconv/public_html/VideoConverter.class.php on line 230
[18-Sep-2012 11:54:57] PHP Deprecated:  Function eregi() is deprecated in /home/tubeconv/public_html/VideoConverter.class.php on line 230
[18-Sep-2012 11:54:58] PHP Warning:  Division by zero in /home/tubeconv/public_html/VideoConverter.class.php on line 121
[18-Sep-2012 11:54:58] PHP Warning:  Division by zero in /home/tubeconv/public_html/VideoConverter.class.php on line 121
Im using updated version of paid script.

Last edited by Lanibox; 09-18-2012 at 05:58 PM..
Lanibox is offline   Reply With Quote
Old 09-18-2012, 06:12 PM   PM User | #465
drakus
New Coder

 
Join Date: Feb 2012
Posts: 24
Thanks: 0
Thanked 3 Times in 3 Posts
drakus is an unknown quantity at this point
Quote:
Originally Posted by Lanibox View Post
Could somebody recommend me good FFMPEG shared hosting?
Cirtex doesnt support PHP 5.3 so there is some parts that wont work.


Edit:

Im getting this error at Site5 hosting...
Any help?

Code:
[18-Sep-2012 11:54:57] PHP Deprecated:  Function eregi() is deprecated in /home/tubeconv/public_html/VideoConverter.class.php on line 230
[18-Sep-2012 11:54:57] PHP Deprecated:  Function eregi() is deprecated in /home/tubeconv/public_html/VideoConverter.class.php on line 230
[18-Sep-2012 11:54:58] PHP Warning:  Division by zero in /home/tubeconv/public_html/VideoConverter.class.php on line 121
[18-Sep-2012 11:54:58] PHP Warning:  Division by zero in /home/tubeconv/public_html/VideoConverter.class.php on line 121
Im using updated version of paid script.
on line 121 change of VideoConverter.class.php
Code:
$percent = round($downloaded/$downloadSize, 2) * 100;
to

Code:
$percent = @round($downloaded/$downloadSize, 2) * 100;
than on line 230 same file, change

Code:
if ($vidSrc !== false && eregi('eow-title',$vidSrc))
to

Code:
if ($vidSrc !== false && preg_match('eow-title$/i',$vidSrc))
Thank should fix it.
drakus is offline   Reply With Quote
Reply

Bookmarks

Tags
audio, class, conversion, dailymotion, ffmpeg, mp3, php, script, video, youtube

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:23 PM.


Advertisement
Log in to turn off these ads.