{"id":147,"date":"2020-11-18T14:33:07","date_gmt":"2020-11-18T14:33:07","guid":{"rendered":"http:\/\/www.qpcoaching.co.uk\/qedevelopment.co.uk\/?p=147"},"modified":"2022-03-28T18:11:24","modified_gmt":"2022-03-28T17:11:24","slug":"minidlna-how-to-build-it-from-sources","status":"publish","type":"post","link":"https:\/\/qedevelopment.co.uk\/?p=147","title":{"rendered":"Minidlna: How to build it from sources"},"content":{"rendered":"\n<p>MiniDLNA is a piece of server software implementing the DLNA\/UPnP protocols. The software serves media files (music, pictures and video) to clients on a network. THe software discussed here has been used along a number of Roberts Istream Radios, as well as the VLC app running on android phones, Ipad tablets and PC<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"768\" src=\"http:\/\/qedevelopment.co.uk\/wp-content\/uploads\/2021\/01\/IMG_20210102_134648435-1024x768.jpg\" alt=\"David Copperfield playing on a Roberts Istream radio via minidlna running on a raspberry pi\" class=\"wp-image-402\" srcset=\"https:\/\/qedevelopment.co.uk\/wp-content\/uploads\/2021\/01\/IMG_20210102_134648435-1024x768.jpg 1024w, https:\/\/qedevelopment.co.uk\/wp-content\/uploads\/2021\/01\/IMG_20210102_134648435-300x225.jpg 300w, https:\/\/qedevelopment.co.uk\/wp-content\/uploads\/2021\/01\/IMG_20210102_134648435-768x576.jpg 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>David Copperfield playing on a Roberts Istream radio via minidlna running on a raspberry pi<\/figcaption><\/figure>\n\n\n\n<p>There are several sources for the code on the internet. Alternatively you could use the sources given below.  These have been modified to include support for composer and author tags. The code as compiled here has been in use for many months. We can however take no responsibility for any problems you may have as a result of it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"768\" src=\"http:\/\/qedevelopment.co.uk\/wp-content\/uploads\/2021\/01\/IMG_20210102_134822826-1024x768.jpg\" alt=\"Music lisings available on a Roberts Istream radio via minidlna running on a raspberry pi\" class=\"wp-image-401\" srcset=\"https:\/\/qedevelopment.co.uk\/wp-content\/uploads\/2021\/01\/IMG_20210102_134822826-1024x768.jpg 1024w, https:\/\/qedevelopment.co.uk\/wp-content\/uploads\/2021\/01\/IMG_20210102_134822826-300x225.jpg 300w, https:\/\/qedevelopment.co.uk\/wp-content\/uploads\/2021\/01\/IMG_20210102_134822826-768x576.jpg 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>Music lisings available on a Roberts Istream radio via minidlna running on a raspberry pi<\/figcaption><\/figure>\n\n\n<div class='w3eden'><!-- WPDM Link Template: Default Template -->\n\n<div class=\"link-template-default card mb-2\">\n    <div class=\"card-body\">\n        <div class=\"media\">\n            <div class=\"mr-3 img-48\"><img class=\"wpdm_icon\" alt=\"Icon\" src=\"data:image\/svg+xml;base64,ICAgICAgICAgICAgPHN2ZyBpZD0iTGF5ZXJfNmE0NTc2NWFiZmQ1NSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTEyIDUxMjsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDUxMiA1MTIiCiAgICAgICAgICAgICAgICAgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PHN0eWxlCiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU9InRleHQvY3NzIj4KICAgICAgICAgICAgICAgICAgICAuc3RfNmE0NTc2NWFiZmQ1NV8wIHsKICAgICAgICAgICAgICAgICAgICAgICAgZmlsbDogcmdiYSgzOCwgMTU3LCAyMzksIDAuMyk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICAuc3RfNmE0NTc2NWFiZmQ1NV8xIHsKICAgICAgICAgICAgICAgICAgICAgICAgZmlsbDogcmdiYSgzOCwgMTU3LCAyMzksIDAuOSk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICAuc3RfNmE0NTc2NWFiZmQ1NV8yIHsKICAgICAgICAgICAgICAgICAgICAgICAgZmlsbDogIzI2OWRlZjsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIC5zdF82YTQ1NzY1YWJmZDU1XzMgewogICAgICAgICAgICAgICAgICAgICAgICBmaWxsOiAjRkZGRkZGOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIDwvc3R5bGU+CiAgICAgICAgICAgICAgICA8ZyBpZD0iWE1MSURfMTY4XyI+CiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9IlhNTElEXzgzXyI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGNsYXNzPSJzdF82YTQ1NzY1YWJmZDU1XzAiIGlkPSJYTUxJRF84N18iIHBvaW50cz0iMzMwLjcsNiA4Ny45LDYgODcuOSw1MDYgNDQ5LjIsNTA2IDQ0OS4yLDEyMi44ICAgIi8+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGNsYXNzPSJzdF82YTQ1NzY1YWJmZDU1XzEiIGlkPSJYTUxJRF84Nl8iIHBvaW50cz0iMzMwLjcsNiA0NDkuMiwxMjIuOCAzMzAuNywxMjIuOCAgICIvPgogICAgICAgICAgICAgICAgICAgICAgICA8cmVjdCBjbGFzcz0ic3RfNmE0NTc2NWFiZmQ1NV8xIiBoZWlnaHQ9IjE1Ni4xIiBpZD0iWE1MSURfODVfIiB3aWR0aD0iMzI5IiB4PSI2Mi44IiB5PSIyOTguOCIvPgogICAgICAgICAgICAgICAgICAgICAgICA8cG9seWdvbiBjbGFzcz0ic3RfNmE0NTc2NWFiZmQ1NV8yIiBpZD0iWE1MSURfODRfIiBwb2ludHM9IjYyLjgsNDU0LjkgODcuOSw0NzYuMSA4Ny45LDQ1NC45ICAgIi8+CiAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgICAgIDxnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaWQ9IlhNTElEXzMxMTNfIj4KICAgICAgICAgICAgICAgICAgICAgICAgPHRleHQgeD0iMjAlIiBmaWxsPSJ3aGl0ZSIgc3R5bGU9ImZvbnQtZmFtaWx5OiBzYW5zLXNlcmlmO2ZvbnQtc2l6ZTogNzI1JTtmb250LXdlaWdodDogYm9sZDsiCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHk9IjgyJSI+QloyPC90ZXh0PgogICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICA8L3N2Zz4KICAgICAgICAgICAg\" \/><\/div>\n            <div class=\"media-body\">\n                <h3 class=\"package-title\"><a href='https:\/\/qedevelopment.co.uk\/?wpdmpro=minidlna-sources'>minidlna sources<\/a><\/h3>\n                <div class=\"text-muted text-small\"><i class=\"fas fa-copy\"><\/i> 1 file(s) <i class=\"fas fa-hdd ml-3\"><\/i> 230.65 KB<\/div>\n            <\/div>\n            <div class=\"ml-3\">\n                <a class='wpdm-download-link download-on-click btn btn-primary ' rel='nofollow' href='#' data-downloadurl=\"https:\/\/qedevelopment.co.uk\/?wpdmpro=minidlna-sources&wpdmdl=390&refresh=6a45765abfd7c1782937178\">Download<\/a>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<\/div>\n\n\n\n<p>To begin with you may need to install some additional packages as shown below. So long as these dependencies are met the following should be sufficient for building the sources on fedora30, ubuntu 18.04 and the Raspberry Pi. I used the following sequence on ubuntu and the Pi, and the one below that on fedora30.<\/p>\n\n\n\n<p>Ubuntu\/Raspberry Pi<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt-get install autoconf\n$ sudo apt-get install autopoint\n$ sudo apt-get install libavutil-dev\n$ sudo apt-get install libavcodec-dev\n$ sudo apt-get install libavformat-dev\n$ sudo apt-get install libjpeg-dev\n$ sudo apt-get install libsqlite3-dev\n$ sudo apt-get install libexif-dev\n$ sudo apt-get install libid3tag0-dev\n$ sudo apt-get install libogg-dev\n$ sudo apt-get install libvorbis-dev\n$ sudo apt-get install libflac-dev\n$ sudo apt-get install gettext<\/pre>\n\n\n\n<p>Fedora30<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo dnf install autoconf\n$ sudo dnf install automake\n$ sudo dnf install gettext-devel\n$ sudo dnf install \\\nhttps:\/\/download1.rpmfusion.org\/free\/fedora\/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \\\nhttps:\/\/download1.rpmfusion.org\/nonfree\/fedora\/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm\n$ sudo dnf install ffmpeg-devel\n$ sudo dnf install libjpeg-devel\n$ sudo dnf install sqlite-devel\n$ sudo dnf install libexif-devel\n$ sudo dnf install libid3tag-devel\n$ sudo dnf install libogg-devel\n$ sudo dnf install libvorbis-devel\n$ sudo dnf install flac-devel\n$ sudo dnf install make<\/pre>\n\n\n\n<p>Extract the sources using tar and switch to the directory. You should now be in a position to compile the code using the following sequence of commands.<\/p>\n\n\n\n<pre id=\"block-f03990af-6496-4501-a2d6-f13f96d10e17\" class=\"wp-block-preformatted\">$ tar -xjf minidlna.tar.bz2\n$ cd minidlna\n$ .\/autogen.sh\n$ .\/configure\n$ make<\/pre>\n\n\n\n<p>To install and then check the installation you can enter the following commands<\/p>\n\n\n\n<pre id=\"block-d9d9ea7f-4b78-44e0-b2ba-c2588d2d2a27\" class=\"wp-block-preformatted\">$ sudo make install<br>$ sudo checkinstall<\/pre>\n\n\n\n<p>Once you have built the application you will need to point MiniDLNA at your files by altering the contents of the minidlna.conf file, and the fire the whole thing up with a command similar to the one given below<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo \/usr\/local\/sbin\/minidlnad -R -f ~\/.minidlna\/minidlna.con<\/pre>\n\n\n\n<p>To get the full benefit of the code you may need to set the tags associated with your mp3 files. The following screenshot shows how an audiobook has been configured for use here.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"945\" height=\"1024\" src=\"http:\/\/qedevelopment.co.uk\/wp-content\/uploads\/2021\/01\/MiniDLNA-Mp3tag-945x1024.png\" alt=\"Audiobook mp3 tags for use with minidlna\" class=\"wp-image-400\" srcset=\"https:\/\/qedevelopment.co.uk\/wp-content\/uploads\/2021\/01\/MiniDLNA-Mp3tag-945x1024.png 945w, https:\/\/qedevelopment.co.uk\/wp-content\/uploads\/2021\/01\/MiniDLNA-Mp3tag-277x300.png 277w, https:\/\/qedevelopment.co.uk\/wp-content\/uploads\/2021\/01\/MiniDLNA-Mp3tag-768x832.png 768w, https:\/\/qedevelopment.co.uk\/wp-content\/uploads\/2021\/01\/MiniDLNA-Mp3tag.png 960w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>Audiobook mp3 tags for use with minidlna<\/figcaption><\/figure>\n\n\n\n<p>For instructions on how to start minidlna automatically when the system is powered have a look at <a href=\"http:\/\/qedevelopment.co.uk\/?p=530\" data-type=\"post\" data-id=\"530\">Minidlna: How to Auto Start<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MiniDLNA is a piece of server software implementing the DLNA\/UPnP protocols. The software serves media files (music, pictures and video) to clients on a network. THe software discussed here has been used along a number of Roberts Istream Radios, as well as the VLC app running on android phones, Ipad tablets and PC There are &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/qedevelopment.co.uk\/?p=147\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Minidlna: How to build it from sources&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[11,28],"tags":[22,24],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/147"}],"collection":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=147"}],"version-history":[{"count":19,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":533,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/147\/revisions\/533"}],"wp:attachment":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}