<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=5258&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Convert mp4 to mp3]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=5258</link>
		<description><![CDATA[The most recent posts in Convert mp4 to mp3.]]></description>
		<lastBuildDate>Tue, 08 Nov 2022 05:47:04 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Convert mp4 to mp3]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=38487#p38487</link>
			<description><![CDATA[<div class="quotebox"><cite>xinomilo wrote:</cite><blockquote><div><p>how about this: </p><div class="codebox"><pre><code>find . -type f -name &#039;*.mp4&#039; -exec bash -c &#039;ffmpeg -i &quot;$0&quot; &quot;${0/%mp4/mp3}&quot;&#039; &#039;{}&#039; \;</code></pre></div><p>i&#039;ve had this for ages (copied from some gist someplace), still works fine afaik.</p></div></blockquote></div><p>I usually do this, which looks like it was suggested above... <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>for i in *.mp3; do ffmpeg -i &quot;$i&quot; &quot;${i%.*}.opus&quot;; done</p><p>Btw, this works for changing to others, such as flac, or ogg, etc...</p><p>I don&#039;t think there are many ways to keep the video format though if this is what you after...</p>]]></description>
			<author><![CDATA[dummy@example.com (zapper)]]></author>
			<pubDate>Tue, 08 Nov 2022 05:47:04 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=38487#p38487</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert mp4 to mp3]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37641#p37641</link>
			<description><![CDATA[<p>how about this: </p><div class="codebox"><pre><code>find . -type f -name &#039;*.mp4&#039; -exec bash -c &#039;ffmpeg -i &quot;$0&quot; &quot;${0/%mp4/mp3}&quot;&#039; &#039;{}&#039; \;</code></pre></div><p>i&#039;ve had this for ages (copied from some gist someplace), still works fine afaik.</p>]]></description>
			<author><![CDATA[dummy@example.com (xinomilo)]]></author>
			<pubDate>Thu, 22 Sep 2022 16:57:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37641#p37641</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert mp4 to mp3]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37640#p37640</link>
			<description><![CDATA[<p>Yes, I had to remove the .mp4 too, again, I used sed. </p><div class="codebox"><pre><code>##To remove .mp4 from *.mp4.mp3 files
for file in *; do mv &quot;$file&quot; $(echo &quot;$file&quot; | sed -e &#039;s/.mp4././g&#039;); done</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Camtaf)]]></author>
			<pubDate>Thu, 22 Sep 2022 14:47:36 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37640#p37640</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert mp4 to mp3]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37639#p37639</link>
			<description><![CDATA[<p>I really should have spotted this but victorvas over at daemonforums noticed that the output files need the &quot;.mp4&quot; bit stripping before adding the &quot;.mp3&quot; suffix, so:</p><div class="codebox"><pre><code>for X in *.mp4; do ffmpeg -i &quot;$X&quot; &quot;${X%.mp4}&quot;.mp3; done</code></pre></div><p>EDIT: moved second close quote to before the dot. Meh.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 22 Sep 2022 13:45:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37639#p37639</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert mp4 to mp3]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37624#p37624</link>
			<description><![CDATA[<p>Yep, it&#039;s me again.... <img src="https://dev1galaxy.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>Thanks for the extra info though, this kind of thread gets read by more than those who post them, so any extra is always welcome.</p>]]></description>
			<author><![CDATA[dummy@example.com (Camtaf)]]></author>
			<pubDate>Tue, 20 Sep 2022 15:06:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37624#p37624</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert mp4 to mp3]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37604#p37604</link>
			<description><![CDATA[<p>The second line can work with spaces in the filenames as long as you double-quote the variables, like this:</p><div class="codebox"><pre><code>for X in *.mp4;do ffmpeg -i &quot;$X&quot; &quot;$X&quot;.mp3;done</code></pre></div><p>Unless you actually want to remove the spaces anyway.</p><p>To remove the spaces with bash use</p><div class="codebox"><pre><code>for f in *\ *.mp3; do mv &quot;$f&quot; &quot;${f// /_}&quot; ; done</code></pre></div><p>The &quot;${f// /_}&quot; bit uses bash&#039;s parameter expansion mechanism to search and replace the given pattern.</p><p>See <a href="https://wiki.bash-hackers.org/syntax/pe#search_and_replace" rel="nofollow">https://wiki.bash-hackers.org/syntax/pe … nd_replace</a> for more on this. It won&#039;t work with /bin/sh though.</p><p>EDIT: oh, hello Keith. Didn&#039;t realise it was you :-)</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 19 Sep 2022 15:26:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37604#p37604</guid>
		</item>
		<item>
			<title><![CDATA[Convert mp4 to mp3]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37603#p37603</link>
			<description><![CDATA[<p>Convert mp4 to mp3</p><p>I have a load of mp4 files with spaces in their names, the first line replaces the spaces with _ so that the second line can convert them to mp3.</p><div class="codebox"><pre><code>#!/bin/sh

for f in *; do mv &quot;$f&quot; `echo $f | tr &#039; &#039; &#039;_&#039;`; done

for X in *.mp4;do ffmpeg -i $X $X.mp3;done</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Camtaf)]]></author>
			<pubDate>Mon, 19 Sep 2022 15:03:58 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37603#p37603</guid>
		</item>
	</channel>
</rss>
