<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Daniel Lange's blog (Entries tagged as convert)</title>
    <link>https://daniel-lange.com/</link>
    <description>agrep -pB IT /dev/life</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 2.6-alpha1 - http://www.s9y.org/</generator>
    <pubDate>Mon, 14 Oct 2013 14:55:44 GMT</pubDate>

    <image>
    <url>//daniel-lange.com/uploads/Avatar_Blog_144_234.png</url>
    <title>RSS: Daniel Lange's blog - agrep -pB IT /dev/life</title>
    <link>https://daniel-lange.com/</link>
    <width>144</width>
    <height>234</height>
</image>

<item>
    <title>Replicating BIND DNS slave configurations from BIND DNS master servers</title>
    <link>https://daniel-lange.com/archives/76-Replicating-BIND-DNS-slave-configurations-from-BIND-DNS-master-servers.html</link>
            <category>Internet</category>
    
    <comments>https://daniel-lange.com/archives/76-Replicating-BIND-DNS-slave-configurations-from-BIND-DNS-master-servers.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=76</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=76</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;Manually copying the &lt;a href=&quot;https://www.isc.org/software/bind&quot; title=&quot;BIND DNS server homepage&quot;&gt;BIND&lt;/a&gt; master zone configuration to slave servers is a tedious and error-prone process.
There are configuration management systems available for large deployments and BIND can support database backends as well which allow synchronization virtually behind the scenes.&lt;/p&gt;

&lt;p&gt;For my use these options are overly complex and have unwanted risks associated with it.&lt;/p&gt;

&lt;p&gt;The better option is to automate generating the BIND slave configuration from the BIND master  &lt;code&gt;named.conf.local&lt;/code&gt;.&lt;/p&gt;
 &lt;a class=&quot;block_level&quot; href=&quot;https://daniel-lange.com/archives/76-Replicating-BIND-DNS-slave-configurations-from-BIND-DNS-master-servers.html#extended&quot;&gt;Continue reading &quot;Replicating BIND DNS slave configurations from BIND DNS master servers&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 23 Jan 2013 17:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/76-guid.html</guid>
    <category>awk</category>
<category>bind</category>
<category>config</category>
<category>convert</category>
<category>dns</category>
<category>isc</category>
<category>named</category>

</item>
<item>
    <title>Apple iPhone ring tones Linux style</title>
    <link>https://daniel-lange.com/archives/59-Apple-iPhone-ring-tones-Linux-style.html</link>
            <category>Open Source</category>
    
    <comments>https://daniel-lange.com/archives/59-Apple-iPhone-ring-tones-Linux-style.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=59</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=59</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;Apple has crippled the iPhone to not allow normal music files as ringtones. Business decision. Technically any sub 40 second MP4 audio file will do once you rename it to &lt;code&gt;*.m4r&lt;/code&gt; and drag-and-drop it to the ringtones folder of your phone in iTunes. Longer ones will work, too. But you&#039;d need a jailbroken iPhone for that as iTunes will refuse to transfer the ringtone file if it&#039;s too long. Not much of an issue imho, who keeps ringing your phone for 40 seconds or more?&lt;/p&gt;

&lt;p&gt;There&#039;s a gazillion websites available telling you how to convert a single .mp3-file to a ringtone with or without iTunes help and there are hundreds of tools doing that for you if you can&#039;t find out how to do it with just iTunes itself. Still the ones I tried failed for me as I wanted to convert my 20 or so standard ringtones from the good old Motorola K3 to iPhone ringtones all in one go. Without having to edit each one by hand. They are already nice ringtones and have served me well for years, just too long for the iPhone and in .mp3 format.&lt;/p&gt;

&lt;p&gt;The basic processing sequence needed is&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Cut the .mp3 down to 39s&lt;/li&gt;
&lt;li&gt;Convert the .mp3 -&gt; .wav (with mplayer, normalize output gain while we&#039;re at it)&lt;/li&gt;
&lt;li&gt;Convert the .wav -&gt; .mp4 (with facc)&lt;/li&gt;
&lt;li&gt;Clean up, GOTO 1 for next file&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So below is the free shell script to create multiple ringtones in one go on any Linux system. You need to install cutmp3, mplayer and faac for it, so &lt;code&gt;apt-get install cutmp3 mplayer faac&lt;/code&gt; on Debian or Ubuntu. cutmp3 is currently not in the portage tree for Gentoo, but you can download an ebuild from &lt;a href=&quot;http://www.fn-clan.de/downloads/gentoo/poly-c_overlay/media-sound/cutmp3/&quot; title=&quot;Ebuild for cutmp3&quot;&gt;Polynomial-C&#039;s overlay&lt;/a&gt; (&lt;a href=&quot;http://gentoo-overlays.zugaina.org/poly-c/portage/media-sound/cutmp3/&quot; title=&quot;Poly-C mirror at gentoo-overlays.zugaina.org&quot;&gt;mirror&lt;/a&gt;). Or you just download the cutmp3 binary from &lt;a href=&quot;http://www.puchalla-online.de/cutmp3.html&quot; title=&quot;download Cutmp3 from the author&#039;s homepage&quot;&gt;Jochen Puchalla&#039;s homepage&lt;/a&gt;. There&#039;s no error checking in the script, so know your way around the shell before running it.&lt;/p&gt;

&lt;p&gt;Without further ado:&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;#!/bin/sh&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# convert_to_ringtone file1.mp3 [file2.mp3, ...]&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# Placed into the public domain by Daniel Lange, 2011.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;for&lt;/span&gt; arg&lt;br /&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Processing &lt;span style=&quot;color: #007800;&quot;&gt;$arg&lt;/span&gt;...&amp;quot;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; cutmp3 &lt;span style=&quot;color: #660033;&quot;&gt;-c&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-a&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;0.0&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-b&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;39.0&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-i&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #007800;&quot;&gt;$arg&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-O&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #007800;&quot;&gt;$arg&lt;/span&gt;.tmp&amp;quot;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mplayer&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-vo&lt;/span&gt; null &lt;span style=&quot;color: #660033;&quot;&gt;-vc&lt;/span&gt; null &lt;span style=&quot;color: #660033;&quot;&gt;-af&lt;/span&gt; volnorm &lt;span style=&quot;color: #660033;&quot;&gt;-ao&lt;/span&gt; pcm:fast:&lt;span style=&quot;color: #007800;&quot;&gt;file&lt;/span&gt;=tmpfile.wav &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #007800;&quot;&gt;$arg&lt;/span&gt;.tmp&amp;quot;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; faac &lt;span style=&quot;color: #660033;&quot;&gt;-b&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;128&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-c&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;44100&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-w&lt;/span&gt; tmpfile.wav&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #007800;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$arg&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sed&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;s/.mp3//g&#039;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sed&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;s/ /_/g&#039;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;`&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mv&lt;/span&gt; tmpfile.m4a &lt;span style=&quot;color: #007800;&quot;&gt;$name&lt;/span&gt;.m4r&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;rm&lt;/span&gt; tmpfile.wav&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;rm&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #007800;&quot;&gt;$arg&lt;/span&gt;.tmp&amp;quot;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #007800;&quot;&gt;$arg&lt;/span&gt; done.&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;&amp;#160;&lt;/div&gt;

&lt;p&gt;&lt;a class=&quot;serendipity_image_link&quot; title=&quot;Apple 1984 ad. When they we&#039;re thinking different.&quot; href=&#039;http://en.wikipedia.org/wiki/1984_(advertisement)&#039; target=&quot;_blank&quot;&gt;&lt;!-- s9ymdb:535 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;305&quot; height=&quot;228&quot;  src=&quot;https://daniel-lange.com/uploads/Apple1984.jpg&quot; title=&quot;Apple 1984 ad. When they were thinking differently.&quot; alt=&quot;Wikipedia article on Apple&#039;s 1984 ad.&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;Update&lt;/h3&gt;

&lt;p&gt;23.12.14 Apparently the faac package in Debian and Ubuntu has had the MP4 writing capability removed in v1.28-5 and later due to a minor license incompatibility. See the &lt;a href=&quot;http://metadata.ftp-master.debian.org/changelogs//non-free/f/faac/&quot; title=&quot;Debian Changelogs for faac&quot;&gt;Debian Changelogs&lt;/a&gt;. Duh.&lt;/p&gt;

&lt;pre&gt;
faac (1.28-5) unstable; urgency=low
  [ Andres Mejia ]
  * Disable mp4v2 support.
    This only disables mp4v2 for the faac utility program. The faac
    utility is GPL-2 but the mp4v2 library is MPL-1.1. The two licenses
    are incompatible with each other.
&lt;/pre&gt;

&lt;p&gt;So ... unfortunately you have to built faac from source yourself or pin the v1.28-4 version which is identical except for the castration anyways.&lt;/p&gt;

&lt;p&gt;Random distro dev: &lt;i&gt;&quot;Why oh why doesn&#039;t my distro ever head mainstream...?&quot;&lt;/i&gt;&lt;br /&gt;
Hint: Because of stuff like this.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Sun, 27 Mar 2011 09:55:00 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/59-guid.html</guid>
    <category>apple</category>
<category>convert</category>
<category>iphone</category>
<category>mp3</category>
<category>mp4</category>
<category>ringtone</category>
<category>script</category>
<category>shell</category>
<category>updated</category>

</item>
<item>
    <title>Converting a DVD film (mpeg2) to DV</title>
    <link>https://daniel-lange.com/archives/38-Converting-a-DVD-film-mpeg2-to-DV.html</link>
            <category>Other</category>
    
    <comments>https://daniel-lange.com/archives/38-Converting-a-DVD-film-mpeg2-to-DV.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=38</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=38</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;There are a gazillion web pages telling you how to convert DV to MPEG2 for DVD use. But I got a DVD from a corporate event and needed to convert it to DV to be cut in &lt;a href=&quot;http://www.kdenlive.org/&quot; title=&quot;kdenlive KDE video editor home page&quot; target=&quot;_blank&quot;&gt;kdenlive&lt;/a&gt;. So just the other way around. Try to find a web page about that direction (needle in haystack, anyone?).&lt;/p&gt;

&lt;p&gt;Giving up on google, I tried unsuccessfully with the swiss army knife that comes to mind first (ffmeg).&lt;/p&gt;

&lt;p&gt;While something like
&lt;tt&gt;ffmpeg -i vts_01_1.vob -i vts_01_2.vob -i vts_01_3.vob -sameq -target dv ../Raum_Video.avi&lt;/tt&gt;
creates a nice .avi, even mplayer complains about it violating the dv and avi standards.&lt;/p&gt;

&lt;p&gt;So back to digging around in tutorials and forums and trial and error with other tools. Finally I found &lt;a href=&quot;http://fixounet.free.fr/avidemux/&quot; title=&quot;Avidemux home page&quot; target=&quot;_bank&quot;&gt;Avidemux&lt;/a&gt; to be the tool of choice. It encapsulates ffmpeg and other tools nicely to make them produce the expected results. Set video to DV (lavc), Audio to WAV PCM and the container format to AVI and go grab a &lt;del&gt;coffee&lt;/del&gt; meal. It creates a nice DV file that you can easily work with in your favorite video editor.&lt;/p&gt;

&lt;p&gt;&lt;!-- s9ymdb:520 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;916&quot; height=&quot;789&quot; style=&quot;border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;https://daniel-lange.com/uploads/entries/Screenshot_Avidemux2_qt4.png&quot; alt=&quot;Screenshot of Avidemux in action&quot; /&gt;&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Wed, 22 Oct 2008 23:30:00 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/38-guid.html</guid>
    <category>audio</category>
<category>avi</category>
<category>avidemux</category>
<category>convert</category>
<category>dv</category>
<category>ffmpeg</category>
<category>mpeg2</category>
<category>transcode</category>
<category>video</category>

</item>

</channel>
</rss>
