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 08-05-2011, 12:24 AM   PM User | #76
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 mathieu67 View Post
I tried several but here's one that is not working that worked 2 days ago.

http://www.youtube.com/watch?v=o8Y9-JlSRXw


my site: http://www.convert-youtube-to-mp3.com
I just tried to convert that video, and I was able to do it just fine....
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Old 08-05-2011, 04:07 AM   PM User | #77
mathieu67
New Coder

 
Join Date: Feb 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
mathieu67 is an unknown quantity at this point
Quote:
Originally Posted by chump2877 View Post
I just tried to convert that video, and I was able to do it just fine....
You were able to convert that video on http://www.convert-youtube-to-mp3.com?? I cleared my cache and history and tried again and still getting the error: Error generating MP3 file!
mathieu67 is offline   Reply With Quote
Old 08-05-2011, 07:37 AM   PM User | #78
supercwis
New to the CF scene

 
Join Date: Aug 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
supercwis is an unknown quantity at this point
chump2877 you are the best it work's fine for me
supercwis is offline   Reply With Quote
Old 08-05-2011, 12:02 PM   PM User | #79
kbluhm
Senior Coder

 
kbluhm's Avatar
 
Join Date: Apr 2007
Location: Philadelphia, PA, USA
Posts: 1,502
Thanks: 2
Thanked 258 Times in 254 Posts
kbluhm will become famous soon enough
Quote:
Originally Posted by mathieu67 View Post
You were able to convert that video on http://www.convert-youtube-to-mp3.com?? I cleared my cache and history and tried again and still getting the error: Error generating MP3 file!
Worked here as well.
__________________
ZCE
kbluhm is offline   Reply With Quote
Old 08-05-2011, 01:42 PM   PM User | #80
Rowsdower!
Senior Coder

 
Rowsdower!'s Avatar
 
Join Date: Oct 2008
Location: Some say it's everything.
Posts: 2,007
Thanks: 5
Thanked 395 Times in 388 Posts
Rowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura about
The "convert-youtube-to-mp3.com" website isn't working for me on any of the 6 videos I have tried...
__________________
The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
See Mediocrity in its Infancy
It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
Seek and you shall find... basically:
validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting
Rowsdower! is offline   Reply With Quote
Old 08-05-2011, 02:33 PM   PM User | #81
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 mathieu67 View Post
You were able to convert that video on http://www.convert-youtube-to-mp3.com?? I cleared my cache and history and tried again and still getting the error: Error generating MP3 file!
No, I meant I was able to convert the video using my code on my server. Which means there is something wrong with your server setup. In this thread, I have previously posted several troubleshooting steps you can employ to try to isolate and correct the problem (in relation to the error message that you are receiving). I suggest that you try some of those things and, if you are not able to fix the problem, then report back here with what you find out, and I will try to help you further.
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Old 08-10-2011, 09:39 AM   PM User | #82
mathieu67
New Coder

 
Join Date: Feb 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
mathieu67 is an unknown quantity at this point
I tried all the troubleshooting tips you gave and even got the server company to look it up and I still cannot convert videos and getting: Error generating MP3 file!

Here's what I've tried:

1) Turn error handling on in the code (comment out ini_set('display_errors',0)
2) Check your server error logs
3) Make sure FFmpeg is functional within your server setup
4) Download a fresh copy of FFmpeg
5) Make sure that you can execute commands on the server with PHP's exec()

Can anyone try http://www.convert-youtube-to-mp3.com to see if they are having any issues converting videos?

Please help me fix this.

Thanks you.
mathieu67 is offline   Reply With Quote
Old 08-10-2011, 10:41 AM   PM User | #83
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
mathieu,

In addition to what I've already suggested, all I can think of is to:

1) Make sure folders and files are where they are supposed to be (as per my instructions in this thread's first post)

2) Try the code/files on another server. If it works on another server, then compare server configurations (see #3 in this list).

3) Download XAMPP and try configuring and running the code/files from there. If it works, compare the server config inside XAMPP to your server config (i.e., compare php.ini files or maybe even Apache httpd.conf files -- if you are running Apache).

It might also be helpful for me to know:

1) Server OS (windows or linux?)
2) Server software (Apache or IIS?)
3) PHP version

Maybe someone else has additional suggestions. That's all I can think of at the moment.

Good luck...
__________________
Regards, R.J.

Last edited by chump2877; 08-10-2011 at 10:46 AM..
chump2877 is offline   Reply With Quote
Old 08-11-2011, 06:13 AM   PM User | #84
mathieu67
New Coder

 
Join Date: Feb 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
mathieu67 is an unknown quantity at this point
@chump2877,

I've tried everything with no luck. Still getting: Error generating MP3 file!. Just a few days ago the codes were working on all 3 servers but now not working on all 3 servers even though I've tried your exact codes without any modification.

Server OS: linux
Server software: Apache
PHP version: 5.2.11

Here's 2 separate servers the codes used to work on but not anymore.

http://www.convert-youtube-to-mp3.com (modified codes)
http://www.facebookblog.us (your exact codes)
mathieu67 is offline   Reply With Quote
Old 08-11-2011, 11:29 AM   PM User | #85
Beironjohn
New to the CF scene

 
Join Date: Aug 2011
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Beironjohn is an unknown quantity at this point
i know it defeats the object of writing your own, but i use this one, free and you download an extention that adds a download button on youtube pages for ease of use

http://www.video2mp3.net

after the button is pressed, it open a new browser tab with the url of the youtube page

http://www.video2mp3.net/?url=http%3...%3DVuoJHF6MjL4

converts and downloads, no fuss

Last edited by chump2877; 08-11-2011 at 08:41 PM.. Reason: edited out quoted post...not relevant
Beironjohn is offline   Reply With Quote
Old 08-11-2011, 09:00 PM   PM User | #86
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 Beironjohn View Post
i know it defeats the object of writing your own, but i use this one, free and you download an extention that adds a download button on youtube pages for ease of use

http://www.video2mp3.net

after the button is pressed, it open a new browser tab with the url of the youtube page

http://www.video2mp3.net/?url=http%3...%3DVuoJHF6MjL4

converts and downloads, no fuss
I like the browser extension idea...I wonder if the extension could be programmed so that it doesn't force a new tab to open, and instead does everything behind the scenes? Unfortunately, I know nothing about programming browser extensions...But it seems like it might be possible with some AJAX and a little ingenuity?..
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Old 08-12-2011, 11:24 PM   PM User | #87
mathieu67
New Coder

 
Join Date: Feb 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
mathieu67 is an unknown quantity at this point
can anyone help with my issue? site is http://www.convert-youtube-to-mp3.com
mathieu67 is offline   Reply With Quote
Old 08-13-2011, 07:59 PM   PM User | #88
mathieu67
New Coder

 
Join Date: Feb 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
mathieu67 is an unknown quantity at this point
This is crazy. all video links from youtube.com/music are working but not from the main site.
mathieu67 is offline   Reply With Quote
Old 08-25-2011, 03:50 AM   PM User | #89
jasminder singh
New to the CF scene

 
Join Date: Aug 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
jasminder singh is an unknown quantity at this point
Hello!
THanks a lot for the script .

ithink its not working anymore , its saying Error downloading video! everytime.
Please fix the error sir .
jasminder singh is offline   Reply With Quote
Old 08-25-2011, 04:05 AM   PM User | #90
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 jasminder singh View Post
Hello!
THanks a lot for the script .

ithink its not working anymore , its saying Error downloading video! everytime.
Please fix the error sir .
I just converted a video successfully, so you might want to try some of the troubleshooting steps I suggested earlier in this thread.
__________________
Regards, R.J.
chump2877 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 05:30 AM.


Advertisement
Log in to turn off these ads.