<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How To: Convert audio to another format on a web page</title>
	<atom:link href="http://www.gadberry.com/aaron/2005/12/16/how-to-convert-audio-to-another-format-from-a-form-on-a-web-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gadberry.com/aaron/2005/12/16/how-to-convert-audio-to-another-format-from-a-form-on-a-web-page/</link>
	<description>Help - v. helped, helpÂ·ing, helps</description>
	<lastBuildDate>Sat, 21 Nov 2009 03:50:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Fareler</title>
		<link>http://www.gadberry.com/aaron/2005/12/16/how-to-convert-audio-to-another-format-from-a-form-on-a-web-page/comment-page-1/#comment-28819</link>
		<dc:creator>Fareler</dc:creator>
		<pubDate>Fri, 23 Oct 2009 05:48:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.gadberry.com/aaron/wp/?p=12#comment-28819</guid>
		<description>Nice information.</description>
		<content:encoded><![CDATA[<p>Nice information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: metin</title>
		<link>http://www.gadberry.com/aaron/2005/12/16/how-to-convert-audio-to-another-format-from-a-form-on-a-web-page/comment-page-1/#comment-21617</link>
		<dc:creator>metin</dc:creator>
		<pubDate>Sun, 14 Dec 2008 18:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.gadberry.com/aaron/wp/?p=12#comment-21617</guid>
		<description>thank you</description>
		<content:encoded><![CDATA[<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sim</title>
		<link>http://www.gadberry.com/aaron/2005/12/16/how-to-convert-audio-to-another-format-from-a-form-on-a-web-page/comment-page-1/#comment-17301</link>
		<dc:creator>sim</dc:creator>
		<pubDate>Thu, 07 Aug 2008 23:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.gadberry.com/aaron/wp/?p=12#comment-17301</guid>
		<description>forgot to mention
exec($encode_cmd, $output, $retval);

$retval will be 0 if command succeeds
$retval will be 1 (or some other integer) if command fails

$output will contain an array of the output from ffmpeg -as seen when accessing it directly from the command line</description>
		<content:encoded><![CDATA[<p>forgot to mention<br />
exec($encode_cmd, $output, $retval);</p>
<p>$retval will be 0 if command succeeds<br />
$retval will be 1 (or some other integer) if command fails</p>
<p>$output will contain an array of the output from ffmpeg -as seen when accessing it directly from the command line</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sim</title>
		<link>http://www.gadberry.com/aaron/2005/12/16/how-to-convert-audio-to-another-format-from-a-form-on-a-web-page/comment-page-1/#comment-17299</link>
		<dc:creator>sim</dc:creator>
		<pubDate>Thu, 07 Aug 2008 23:16:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.gadberry.com/aaron/wp/?p=12#comment-17299</guid>
		<description>I was having trouble getting useful output from 
exec($encode_cmd, $output, $retval);
$output always contained an empty array
then i discovered this snippet of BASH 
2&gt;&amp;1
      # Redirects stderr to stdout.
      # Error messages get sent to same place as standard output.

if i use a command like 
$encode_cmd =&quot;ffmpeg -i test.mp3 test2.mp3 2&gt;&amp;1&quot;;
exec($encode_cmd, $output, $retval);

then $array will contain all the output from ffmpeg

see http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html for more info

hope this helps someone

KUDOS to Aaron Gadberry for this very helpful webpage</description>
		<content:encoded><![CDATA[<p>I was having trouble getting useful output from<br />
exec($encode_cmd, $output, $retval);<br />
$output always contained an empty array<br />
then i discovered this snippet of BASH<br />
2&gt;&amp;1<br />
      # Redirects stderr to stdout.<br />
      # Error messages get sent to same place as standard output.</p>
<p>if i use a command like<br />
$encode_cmd =&#8221;ffmpeg -i test.mp3 test2.mp3 2&gt;&amp;1&#8243;;<br />
exec($encode_cmd, $output, $retval);</p>
<p>then $array will contain all the output from ffmpeg</p>
<p>see <a href="http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html" rel="nofollow">http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html</a> for more info</p>
<p>hope this helps someone</p>
<p>KUDOS to Aaron Gadberry for this very helpful webpage</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gecko</title>
		<link>http://www.gadberry.com/aaron/2005/12/16/how-to-convert-audio-to-another-format-from-a-form-on-a-web-page/comment-page-1/#comment-15290</link>
		<dc:creator>gecko</dc:creator>
		<pubDate>Wed, 16 Jul 2008 15:06:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.gadberry.com/aaron/wp/?p=12#comment-15290</guid>
		<description>forget the previous post, i managed to got it working:)
ill post here my solution, maybe will be helpful: try to use absolute path to the ffmpeg command, 4 xmpl: &quot;$encode_cmd = &quot;/usr/local/bin/ffmpeg...&quot;
on my server this path is /usr/local/bin/ffmpeg... 
this way i was able to do the converting. 
many thanks!</description>
		<content:encoded><![CDATA[<p>forget the previous post, i managed to got it working:)<br />
ill post here my solution, maybe will be helpful: try to use absolute path to the ffmpeg command, 4 xmpl: &#8220;$encode_cmd = &#8220;/usr/local/bin/ffmpeg&#8230;&#8221;<br />
on my server this path is /usr/local/bin/ffmpeg&#8230;<br />
this way i was able to do the converting.<br />
many thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gecko</title>
		<link>http://www.gadberry.com/aaron/2005/12/16/how-to-convert-audio-to-another-format-from-a-form-on-a-web-page/comment-page-1/#comment-15287</link>
		<dc:creator>gecko</dc:creator>
		<pubDate>Wed, 16 Jul 2008 14:36:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.gadberry.com/aaron/wp/?p=12#comment-15287</guid>
		<description>hi all,
running a media-temple (dv) dedicated virtual server, with a full root-access. I installed the ffmpeg, and some codecs, etc. I can run the ffmpeg from bash, and it converts the requested wmv/avi/mpg to flv, but through php&#039;s exec/shell_exec/passthru the same command doesnt want to work. No file is created in the given folder...
Safe_mode is off, no disabled functions, 777 permissions on the folders, but the file is not created...
Interesting thing that i can run a simple exec() like , this works...
any ideas?</description>
		<content:encoded><![CDATA[<p>hi all,<br />
running a media-temple (dv) dedicated virtual server, with a full root-access. I installed the ffmpeg, and some codecs, etc. I can run the ffmpeg from bash, and it converts the requested wmv/avi/mpg to flv, but through php&#8217;s exec/shell_exec/passthru the same command doesnt want to work. No file is created in the given folder&#8230;<br />
Safe_mode is off, no disabled functions, 777 permissions on the folders, but the file is not created&#8230;<br />
Interesting thing that i can run a simple exec() like , this works&#8230;<br />
any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kız oyunları</title>
		<link>http://www.gadberry.com/aaron/2005/12/16/how-to-convert-audio-to-another-format-from-a-form-on-a-web-page/comment-page-1/#comment-8563</link>
		<dc:creator>kız oyunları</dc:creator>
		<pubDate>Sat, 12 Apr 2008 09:42:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.gadberry.com/aaron/wp/?p=12#comment-8563</guid>
		<description>hi there can sum one explain to me how i can just convert a video file WMV which is 75 megb to a 75mb avi file
i cant do this and it is piss taking plz help thnx agian:)</description>
		<content:encoded><![CDATA[<p>hi there can sum one explain to me how i can just convert a video file WMV which is 75 megb to a 75mb avi file<br />
i cant do this and it is piss taking plz help thnx agian:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dog B.</title>
		<link>http://www.gadberry.com/aaron/2005/12/16/how-to-convert-audio-to-another-format-from-a-form-on-a-web-page/comment-page-1/#comment-6013</link>
		<dc:creator>Dog B.</dc:creator>
		<pubDate>Wed, 02 Jan 2008 17:23:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.gadberry.com/aaron/wp/?p=12#comment-6013</guid>
		<description>Passthru might work for output capturing in *nix env, but it does not work in Windows. I was thinking of using something like this to capture file info: 
exec(&quot;ffmpeg.exe -i... &gt;tmp.txt&quot;);
All of the output should be in tmp.txt. Open the tmp.txt file, parse it for data, and delete it. However, I wouldn&#039;t do this if you are making the end-user wait for conversion to take place. It might take quite some time to get your results :)</description>
		<content:encoded><![CDATA[<p>Passthru might work for output capturing in *nix env, but it does not work in Windows. I was thinking of using something like this to capture file info:<br />
exec(&#8220;ffmpeg.exe -i&#8230; &gt;tmp.txt&#8221;);<br />
All of the output should be in tmp.txt. Open the tmp.txt file, parse it for data, and delete it. However, I wouldn&#8217;t do this if you are making the end-user wait for conversion to take place. It might take quite some time to get your results :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bedava oyunlar</title>
		<link>http://www.gadberry.com/aaron/2005/12/16/how-to-convert-audio-to-another-format-from-a-form-on-a-web-page/comment-page-1/#comment-5936</link>
		<dc:creator>bedava oyunlar</dc:creator>
		<pubDate>Tue, 25 Dec 2007 20:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.gadberry.com/aaron/wp/?p=12#comment-5936</guid>
		<description>Use passthru command</description>
		<content:encoded><![CDATA[<p>Use passthru command</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zaman</title>
		<link>http://www.gadberry.com/aaron/2005/12/16/how-to-convert-audio-to-another-format-from-a-form-on-a-web-page/comment-page-1/#comment-5767</link>
		<dc:creator>Zaman</dc:creator>
		<pubDate>Thu, 06 Dec 2007 18:55:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.gadberry.com/aaron/wp/?p=12#comment-5767</guid>
		<description>hi there can sum one explain to me how i can just convert a video file WMV which is 75 megb to a 75mb avi file 
i cant do this and it is piss taking plz help thnx agian:)</description>
		<content:encoded><![CDATA[<p>hi there can sum one explain to me how i can just convert a video file WMV which is 75 megb to a 75mb avi file<br />
i cant do this and it is piss taking plz help thnx agian:)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
