MediaTomb - servidor DLNA no ubuntu


Servidor DLNA compatível com Samsung.

Link: http://ubuntuforums.org/showpost.php?p=9352630&postcount=21

Para funcionar com MySQL veja documentação em:

http://mediatomb.cc/pages/documentation

Veja este link também:

https://help.ubuntu.com/community/MediaTomb

 

Não esqueça de alterar o arquivo abaixo:

sudo gedit /etc/default/mediatomb

 

No meu caso alterei as seguintes variáveis para ....

NO_START="no"
OPTIONS="-p 49152"
ROUTE_ADD="/sbin/route add -net 239.0.0.0 netmask 255.0.0.0"
ROUTE_DEL="/sbin/route del -net 239.0.0.0 netmask 255.0.0.0"
INTERFACE="br0"
USER="mediatomb"
GROUP="users"


Para ter compatibilidade com televisores Samsung PL50C7000 acrescentei as seguintes informações no arquivo /etc/mediatomb/config.xml:

<custom-http-headers>
<add header="transferMode.dlna.org: Streaming"/>
<add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000"/>
</custom-http-headers>


No lugar de:

    <custom-http-headers>
      <add header="X-User-Agent: redsonic"/>
    <add header="transferMode.dlna.org: Streaming"/>
    <add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=017000 00000000000000000000000000"/>
    </custom-http-headers>

Link: http://forums.cnet.com/5208-13973_102-0.html?threadID=336205


Para ter o transcoding de conteúdo faça conforme instruções do link: http://mediatomb.cc/pages/transcoding

Veja também o link: http://mediatomb.cc/dokuwiki/transcoding:transcoding

Assim você evita a aparição de mensagens de formato incompatível no receptor.

Verifique se você tem instalado os agentes de transcodificação?

vlc = sudo apt-get install vlc-nox vorbis-tools ffmpeg ffmpegthumbnailer

Exemplo:

  <transcoding enabled="yes">
    <mimetype-profile-mappings>
      <transcode mimetype="video/x-flv" using="vlcmpeg"/>
      <transcode mimetype="application/ogg" using="vlcmpeg"/>
      <transcode mimetype="application/ogg" using="oggflac2raw"/>
      <transcode mimetype="audio/x-flac" using="oggflac2raw"/>
    </mimetype-profile-mappings>
    <profiles>
      <profile name="oggflac2raw" enabled="yes" type="external">
        <mimetype>audio/L16</mimetype>
        <accept-url>no</accept-url>
        <first-resource>yes</first-resource>
        <accept-ogg-theora>no</accept-ogg-theora>
        <agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/>
        <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
      </profile>
      <profile name="vlcmpeg" enabled="yes" type="external">
        <mimetype>video/mpeg</mimetype>
        <accept-url>yes</accept-url>
        <first-resource>yes</first-resource>
        <accept-ogg-theora>yes</accept-ogg-theora>
        <agent command="vlc" arguments="-I dummy %in --sout #transcode{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25,aenc=ffmpeg,acodec=mpga,ab=192,samplerate=44100,channels=2}:standard{access=file,mux=ps,dst=%out} vlc:quit"/>
        <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
      </profile>
    </profiles>
  </transcoding>


Disponibilize vídeos do youtube e músicas do last.fm no mediatomb.

link: http://wiki.flexion.org/InstallingMediaTomb012.html
link: http://www.vanalboom.org/node/14
link: http://www.vanalboom.org/node/16
link: http://juliensimon.blogspot.com/2008/12/mediatomb-012-on-ps3-video-thumbnails.html

YouTube videos

Now, let's go back to the Online Services and enter the YouTube menu. In the mediatomb configuration file, we need to define:

a valid YouTube account (username and password),
the list of video feeds that we'd like to browse.So, in the <accounts> section, add:
<account user="your_YouTube_username" password="your_YouTube_password"/>

And in the <online-content> section, add:
 <YouTube enabled="yes" refresh="28800" update-at-start="yes" purge-after="604800" racy-content="exclude" format="flv" hd="no">
<favorites user="your_YouTube_username"/>
<playlists user="your_YouTube_username"/>
<uploads user="your_YouTube_username"/>
<standardfeed feed="most_viewed" time-range="today"/>
<standardfeed feed="top_rated" time-range="this_week"/>
</YouTube>

This is quite customizable, but no official documentation is out yet. A quick look at the code will give you some pointers, though ;)

Save the changes, restart mediatomb and now you can browse your YouTube playlists.


Comments