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-27-2012, 10:34 AM   PM User | #481
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 dareweb View Post
After 2 days searching, applying and claiming my money back from several hosters I finally found one with ffmpeg and PHP 5.3

It is HostForWeb
http://www.hostforweb.com/1873.html
It will cost you $6.36 for 1 month when you use promotional code "autumn"
I think it is a good choice for those who want to test their scripts first before applying for more serious hosting.

Script is working properly.
Thanks for posting this. I get a lot of questions about which web hosting companies offer shared hosting plans that support this script. That's as good a deal as any, and even cheaper than $6.36/mo if you purchase a longer term.
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote
Old 09-27-2012, 12:45 PM   PM User | #482
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 have a question,
how do I get off the frame (border)?
Luckyplaya is offline   Reply With Quote
Old 09-27-2012, 02:21 PM   PM User | #483
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 have a question,
how do I get off the frame (border)?
You need to provide some more context for your question. I don't really know what you are talking about.
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote
Old 09-27-2012, 02:32 PM   PM User | #484
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
sorry my english is not good

I mean the white frame (see it on screenshot) how can I delete?


Luckyplaya is offline   Reply With Quote
Old 09-27-2012, 03:41 PM   PM User | #485
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
sorry my english is not good

I mean the white frame (see it on screenshot) how can I delete?
Delete the line of CSS in red:



Code:
body { margin:5px 0; padding:0; font: 74% Arial, Sans-Serif; color:#000; line-height: 1.4em; background : #F0F0F0;}
.content { color: #505050; margin: 0 auto; padding: 0; width: 791px; background: #FFFFFF url(bg.jpg) repeat-y center; }

#toph { background: #F0F0F0 url(top.jpg) no-repeat center top; height: 14px; margin: 0; padding: 0;}
#header { color: #FFF; padding: 0 15px 0 15px; line-height: 1.0em; }
	#header .rside { background: #125E81 url(header.jpg) no-repeat; color: #337493; float: right; height: 129px; width: 587px;  font-size: 90%; }
	#header .citation { text-align: right; padding: 60px 25px 25px 6px; color: #f0f0f0;}
	#header .lside { background: #FFB424 ; color: #FFF; height: 129px; width: 174px; padding: 0; margin: 0; float: left; }
	#header h2 { background-color: inherit; color: #FFF; letter-spacing: 1px; }
	#header .title { text-align: center; padding-top: 30px;}
	#header .rside2 { background: #125E81 url(conv-bg.png) no-repeat; color: #337493; float: right; height: 370px; width: 761px;  font-size: 90%; }
	#header .convert {
	text-align: center; 
	font:13px Verdana,Arial;
	margin-top:20px;
	padding: 60px 25px 25px 6px;
	color: #FFF;
}
	

#main { margin: 0 20px 0 15px; }	
#main h2 { background-color: inherit; color: #156184; line-height: 0.2em; }
#main h3 { font: 85% Arial, Sans-Serif; margin: 0 0 10px 0; padding: 0; color: #5f5f5f; background: inherit; }
.center { background: #FFF;  width: 725px !important; width: 535px;  float: right; margin: 15px; }
.leftmenu { background: #FFF url(leftbg.jpg) repeat-x; width: 174px; float: left; padding: 0; margin: 0; }
.padding { padding: 15px; }

.img { background: #FFF; float: left; padding: 1px; margin: 5px 8px 5px 0; color: #333; border: 1px solid #e0e0e0; }

/* FOOTER */
#footer { background: #FFF url(footer.jpg) no-repeat; color: #a0a0a0; height: 43px; text-align: center; font-size: 90%; clear: both; padding: 0px; margin: 0;}
#footer hr { width: 740px; color: #888; border: 1px solid #f0f0f0; margin: 0 25px 0 25px;  }
#footer a { 	color: #999; background: #FFF;  text-decoration:none; }
#footer a:hover { 	background: #FFF;	text-decoration: underline; color: #444;}

/* NAVIGATION */
.nav { clear: both; text-align: left; color: 	#7D8085; padding: 20px 0 0 0; }
.nav li { font-weight: bold; margin: 0 0 8px 0; padding: 0 0 0 5px; border-bottom: 1px solid #ccc; }
.nav li a { color: #546078; text-decoration: none;  }
.nav li a:hover { color: #F29900; text-decoration: none;  }


.box { background: #E7EDF0; padding: 5px; border: 1px solid #999; color: #333; }

/* ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

p { 	margin: 0 0 5px 0; 	padding: 0; color: #555; background: inherit; }

hr { border: 0; height: 1px; color: #eee; background-color: #eee; }
a { 	color: #0F5B7F; background: inherit;  text-decoration:none; }
a:hover { 	background: inherit;	text-decoration: underline; }
h1 { padding:0; margin:0; color: #0F5B7F; background: inherit;font: bold 1.8em Arial, Sans-Serif; letter-spacing: -1px; }
h1 a {color: #0F5BFF; background: inherit;}
h2 { background-color: inherit; 	color:#0F5B7F; font-size:140%; font-weight:bold; margin: 10px 0 10px 0; padding:0; }
h2 a { color: #0F5B7F; }
h2 a:hover { 	color: #0F5BAF; text-decoration: none;}

ul { margin: 5px 0 20px 15px; padding : 0; list-style : none;  }
li { list-style-type: none;	color: #F29900;	margin: 0 0 0px 0;	padding: 0 0 0 0px; }
li a { color: #546078;  }
li a:hover { color: #F29900; }

/*----------------- for snews --------------------------*/

fieldset {	border: 1px solid #eee; }
textarea.text { height: 150px; width: 90%; border: 1px solid #ccc; background: #fff; color: #000; }
textarea.text:hover { border: 1px solid #eee; background: #FFFFF4; color: #000; }
input.field { border: 1px solid #ccc; background-color: #3C3C3C; width: 100px; color: #000; }
input.field:hover { border: 1px solid #eee; background: #ccc; color: #000; }
input.text { margin: 0; width: 110px;	border: 1px solid #546078; background: #FFF; color: #808080; }
input.text:hover { border: 1px solid #3a4354; }
input.searchbutton { 	margin: 0; font-size: 100%; font-family: Arial, Sans-serif; border: none; background: #FFFFFF; color: #333; padding: 1px; font-weight: bold; }
.date { color: #505050; background: #FFF; text-align: right; margin: 4px 0 5px 0; padding: 0.4em 0 0 0; border-top: 1px solid #ddd; }
.date a { color: #546078; }
input.button { background: #FFFFF4; color: #808080; border-right: 1px solid #ccc;	border-bottom: 1px solid #ccc; }
.comments { 	padding: 10px 10px 8px 10px; margin: 0 0 7px 0; background: #FFF; color: #333; }
.commentsbox { padding: 8px 0 10px 10px; margin: 0 0 10px 0; background: #f4f4f4; color: #000; }
.error {	color: #990000;	background-color: #FFF0F0; padding: 7px; margin-top: 5px; margin-bottom: 10px; border: 1px dashed #990000; }
.error h2 { color: #990000; background: inherit; }
.success { color: #000000; background: #FAFAFA;	padding: 7px; margin-top: 5px; margin-bottom: 5px; border: 1px dashed #546078; }
.success h2 { color: #546078; background: inherit; }
/*----------------- converter --------------------------*/
form
		{
			width:450px;
			margin:0 auto;
			padding:15px;
			border:1px solid #ccc;
		}

		form input[type="text"]
		{
			width:385px;
			background-color:#f9f9f9;
		}

		form p
		{
			margin:10px 0;
			font-weight:normal;
		}

		#progress-bar
		{
			width:200px;
			padding:2px;
			border:2px solid #aaa;
			background:#fff;
			margin:0 auto;
		}

		#progress
		{
			background:#000;
			color:#fff;
			overflow:hidden;
			white-space:nowrap;
			padding:5px 0;
			text-indent:5px;
			width:0%;
		}

		#conversion-status
		{
			width:200px;
			padding:2px;
			margin:0 auto;
			color:#999;
			text-align:center;
		}
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote
Users who have thanked chump2877 for this post:
Luckyplaya (09-27-2012)
Old 09-30-2012, 02:14 PM   PM User | #486
blacktiger786
New Coder

 
Join Date: May 2012
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
blacktiger786 is an unknown quantity at this point
sir i ahve problem i get vps install cento linux then i install ffmepg.exe and pack but my converter not working its file download successfully but not convert it
check it
http://mp3-from-youtube.org/
blacktiger786 is offline   Reply With Quote
Old 09-30-2012, 04:19 PM   PM User | #487
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 blacktiger786 View Post
sir i ahve problem i get vps install cento linux then i install ffmepg.exe and pack but my converter not working its file download successfully but not convert it
check it
http://mp3-from-youtube.org/
ffmpeg.exe does not work on linux distros (only on Windows)...you have to instead install FFmpeg, ffmpeg-php, and codec packages via SSH (command line interface)...Have you done that?
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote
Old 10-01-2012, 07:14 AM   PM User | #488
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 blacktiger786 View Post
sir i ahve problem i get vps install cento linux then i install ffmepg.exe and pack but my converter not working its file download successfully but not convert it
check it
http://mp3-from-youtube.org/
Hi,

ffmpeg.exe is only for Windows.

Here is a HowTo for ffmpeg, ffmpeg-php and Multimedia Codec for CentOS

http://www.crucialp.com/resources/tu...e-easy-way.php

http://chrisjean.com/2009/01/13/inst...centos-easily/

http://www.molengo.com/blog.article/...k-installieren

Last edited by Luckyplaya; 10-01-2012 at 07:18 AM..
Luckyplaya is offline   Reply With Quote
Old 10-01-2012, 02:43 PM   PM User | #489
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
Lightbulb

I had an idea for a later version.
Users can adjust the volume itself.
Some Youtube videos are very quiet because it would be beneficial that they can increase the volume.
Luckyplaya is offline   Reply With Quote
Old 10-01-2012, 05:45 PM   PM User | #490
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 had an idea for a later version.
Users can adjust the volume itself.
Some Youtube videos are very quiet because it would be beneficial that they can increase the volume.
It's a possibility. I could implement some kind of slider control for volume. The next time I push out a new version, I'll consider this suggestion as well as others.
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote
Old 10-05-2012, 05:31 AM   PM User | #491
atanas
New Coder

 
Join Date: Jan 2012
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
atanas is an unknown quantity at this point
Hi. Is there a way to generate mp3 file and to host it to other server (not the server were work the script) with ftp ?

Thanks !
atanas is offline   Reply With Quote
Old 10-05-2012, 07:35 AM   PM User | #492
blacktiger786
New Coder

 
Join Date: May 2012
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
blacktiger786 is an unknown quantity at this point
hiw through this tutorial i install ffmpeg
but when i star this command yum install php-gd php-devel
its show No package php-gd available.
No package php-devel available.

please tell me whats command for install these packages
thanks
blacktiger786 is offline   Reply With Quote
Old 10-05-2012, 11:29 AM   PM User | #493
dareweb
New to the CF scene

 
Join Date: Sep 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
dareweb is an unknown quantity at this point
Quote:
Originally Posted by atanas View Post
Hi. Is there a way to generate mp3 file and to host it to other server (not the server were work the script) with ftp ?

Thanks !
Can be done with cURL. Just goggle it
If you use free version of the script, find "function GenerateMP3($audioQuality)" in YouTubeToMp3Converter.class.php and check out how it works
dareweb is offline   Reply With Quote
Old 10-05-2012, 01:53 PM   PM User | #494
atanas
New Coder

 
Join Date: Jan 2012
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
atanas is an unknown quantity at this point
Hm. All day I search, but i can't find it.
This is my end of exec_string
Code:
-y -acodec libmp3lame -ab 192k $new_name
How to config this $new_name to locale the file to other server with sftp or ftp.

Thanks !
atanas is offline   Reply With Quote
Old 10-06-2012, 02:41 AM   PM User | #495
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 atanas View Post
Hm. All day I search, but i can't find it.
This is my end of exec_string
Code:
-y -acodec libmp3lame -ab 192k $new_name
How to config this $new_name to locale the file to other server with sftp or ftp.

Thanks !
It looks like you are trying to send ffmpeg output to another server directly via the ffmpeg command itself...I don't for sure if this is possible, but a quick Google search yielded the following:

1) http://smorgasbork.com/component/con...-command-lines

Excerpt from that link:

Quote:
..we specify the output format as "rtp" with the -f option, and instead of a filename, we have a URL that indicates where ffmpeg should send the RTP packets.

-f rtp rtp://127.0.0.1:9014
That seems to imply that you can at least stream ffmpeg output to another server...If you can capture the stream on the receiving server (with ffmpeg as well?) and download it, then I suppose that might work...

2) More on ffmpeg streaming:
http://ffmpeg.org/trac/ffmpeg/wiki/StreamingGuide
http://ffmpeg.org/ffserver.html

3) Instead of trying to stream ffmpeg output directly to another server, you could also save the converted file to the server that executes the command, use PHP's FTP functions to upload the file to another server, and then delete the original converted file

4) Similar to #3, you could use cURL to conduct the FTP transaction as well: http://www.web-development-blog.com/...load-via-curl/
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
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 07:13 AM.


Advertisement
Log in to turn off these ads.