Howto stream Vu+ -> Vu+ (Tuner through DLNA)

Shiro

BH-C
Because in Black Hole images is included the advanced DLNA server Mediatomb you can:
1) Share the media content of your Vu+ boxes
2) Share the tuners streaming through DLNA
3) Share all this with other devices in your home that support DLNA system.

Here is a simple example of a Vu+ Box server and Vu+ client

  • WARNING: WE ASSUME THAT THE IP OF THE SERVER IS 192.168.0.10 BUT YOU HAVE TO CHANGE THIS VALUE WITH THE LOCAL IP OF YOUR SERVER.
  • WARNING2: WHEN YOU STREAM A CHANNEL FROM THE SERVER YOU HAVE TO BE SURE THAT THE SERVER IS PLAYiNG THE CHANNEL YOU WANT TO STREAM OR TO HAVE ANOTHER AVAILABLE TUNER ON THE SERVER. IE. IF THE SERVER IS PLAYING A SAT SERVICE YOU CAN STREAM A DTT SERVICE FROM THE DTTT TUNER.
In this example we will stream RAI2 service from VU+ box server to Vu+ box client
To stream channels you have to add to your mediatomb server each channel you want to share with the channel reference. To know the channel reference of a channel you have to zap to it and then goto main menu->information -> service.
The serviceref of the channel Rai2 that we will use in this example is 1:0:1:2140:3070:13E:820000:0:0:0:

Step 1 Add to your server the channel you want to stream:
  1. Start Mediatomb on you box server (blue->blue->UPnP Server Mediatomb)
  2. Connect from your Pc to Mediatomb webinterface: http://192.168.0.10:49152 (note the default port is 49152 but if it is busy Mediatomb will use the next 49153 .. and so on..)
  3. In Mediatomb interface select Database
  4. Select Video -> All Video
  5. Click the button "Add item"
  6. Select External Link (Url)
  7. Insert: Title: RAI2
  8. Insert Url: http://192.168.0.10:8001/1:0:1:2140:3070:13E:820000:0:0:0:
  9. Insert Mimetype: video/ts
  10. click: Update item
Step 2 Stream from the client

  1. Start Djmount on your box client (blue->blue->UPnPClient Djmount)
  2. Goto Media Player (Main Menu -> Media Player)
  3. Select DLNA -> Mediatomb -> Video -> All Video
  4. Play your service.
  5. If you don'have audio or have a different language select the right audio-track in audio menu
Enjoy by Black Hole !!
 

javier007

Vu+ User
thanks for this excellent tutorial...

could you show us how to make this with sony bravia dlna, because i have tried this method and the television says that the server is not compatible, if it is a problem of the version of mediatomb of the vu, could bh team try to improve this in the next images??

regardsss...
 

Shiro

BH-C
thanks for this excellent tutorial...
could you show us how to make this with sony bravia dlna, because i have tried this method and the television says that the server is not compatible, if it is a problem of the version of mediatomb of the vu, could bh team try to improve this in the next images??
regardsss...

Try this in mediatomb config file:
Code:
    <protocolInfo extend="yes"/><!-- For PS3 support change to "yes" -->
 
    <custom-http-headers>
    <!-- Samsung needs it -->
    <add header="transferMode.dlna.org: Streaming"/>
    <add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000"/>
    </custom-http-headers>
 

Shiro

BH-C
Maybe In the next BH image you will have by default all your channel list included in mediatomb server so you can share Vu+ server tuner with other Vu+ and all DLNA devices in your home.
 

dreamingb

Vu+ Newbie
Try this in mediatomb config file:
Code:
    <protocolInfo extend="yes"/><!-- For PS3 support change to "yes" -->
 
    <custom-http-headers>
    <!-- Samsung needs it -->
    <add header="transferMode.dlna.org: Streaming"/>
    <add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000"/>
    </custom-http-headers>


Excelent work. Can you please tell me where that config file is located? Is it possible to add these channels by telnet? some where in the config?
 

javier007

Vu+ User
Try this in mediatomb config file:
Code:
    <protocolInfo extend="yes"/><!-- For PS3 support change to "yes" -->
 
    <custom-http-headers>
    <!-- Samsung needs it -->
    <add header="transferMode.dlna.org: Streaming"/>
    <add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000"/>
    </custom-http-headers>

sorry, i want try this in mediatomb config file but i don´t find it...i have seen in usr/share/mediatomb but there is not the config file i think it is in another location could you be more specific, thanks a lot...i have read the post of tamaki too where he says the config is here /.mediatomb/config.xml but i don´t find via ftp.i use BH 1.6.6.

Thanks for your patience.

regardsss.
 

angelofsky1980

BlackHole Driver Specialist
sorry, i want try this in mediatomb config file but i don´t find it...i have seen in usr/share/mediatomb but there is not the config file i think it is in another location could you be more specific, thanks a lot...i have read the post of tamaki too where he says the config is here /.mediatomb/config.xml but i don´t find via ftp.i use BH 1.6.6.

Thanks for your patience.

regardsss.

The folder /.mediatomb/ is an hidden folder (because start with dot).
Check with an FTP client to show hidden files and you can find it into / folder of your box with BH :)
 

dreamingb

Vu+ Newbie
Now i have done exactly how you have described. In another vu+ duo under upnp through mediaplayer i found the added channel but when i press on that screen goes black and on left corner stands END. On the display i can see the channel id stands there but no picture. On my samsung tv folder is empty maybe samsung tv dlna client does not supports m3u file?
 

Shiro

BH-C
Now i have done exactly how you have described. In another vu+ duo under upnp through mediaplayer i found the added channel but when i press on that screen goes black and on left corner stands END.

Are you sure that the Vu+ server is playing the service you want to stream ?
 

javier007

Vu+ User
thanks shiro and angelofsky,
i have found the archive config.xml finally and i have written in it the new config but my sony bravia kdl-40w4500 detects a mediatomb error perhaps it is not compatibility.

thanks for your support, i hope BH team will try to improve this in the next images if it is possible.

regardss...
 

dreamingb

Vu+ Newbie
You mean i need to tune to same channel on vu+ duo before i stream that channel at other end? M3U files does not lists under samsung tv do you think there is a solution for that?
 

Logan

Vip
I don't think your tv can play stream files from Vu+ tuner because Sony and Samsumg are not compatible with .m3u files and external url stream.
Nobody can solve this. You can share tuners between Vu+ and Vu+ boxes in Black Hole image as explained by Shiro but you cannot expect that your tv can do.
For ppl that have a Samsung tv and want to try with Vu+ running Mediatomb (music and video) this is a config.xml file that should work.
 

Attachments

  • config.zip
    2 KB · Views: 480

testato

Vu+ User
thanks for the tutorial, i will try e report the results.

a question, when i activate the Tuner Server it create a directory with all .m3u file
i copied this directory on my win7-pc and when lounch one file, with vlc, all work.

After that i deactivated the Tuner Server option but when lounch an .m3u file it continue to work.
It is normal ?
The tuner server option (on port 8001) are always active, also if i deactivate it ?
 

Mito

Administrator
thanks for the tutorial, i will try e report the results.

a question, when i activate the Tuner Server it create a directory with all .m3u file
i copied this directory on my win7-pc and when lounch one file, with vlc, all work.

After that i deactivated the Tuner Server option but when lounch an .m3u file it continue to work.
It is normal ?
The tuner server option (on port 8001) are always active, also if i deactivate it ?
Yes it's normal.
The port used for streaming it's not opened by Tuner Server.
It's the same port used for streaming by web interface.
 

testato

Vu+ User
So the "tuner server" are a trick, it only create the directory with the file, but it is possible create it manually ?
if i create manually this m3u file it will work on older BH too, non only on 1.7.2 ?
 

DanielFran

BH Lover
I have found some details how maybe we can play m3u files in Samsung TV directly.

I did not try because I did not have yet a TV with DLNA, but maybe someone can try make some changes in config file and post here the result.

The idea is to map file extension to a new value that TV like ;)

This config file is used by a Buba, but probably we can reuse some elements for our VU+:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<config version="1" xmlns="http://mediatomb.cc/config/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/1 http://mediatomb.cc/config/1.xsd">
 
        <server>
 
      <interface>eth1</interface>
     
          <ui enabled="yes">
                <accounts enabled="no" session-timeout="30">
                  <account user="mediatomb" password="mediatomb"/>
                </accounts>
            </ui>
 
            <name>bubba</name>
      <manufacturerURL>http://www.excito.com/</manufacturerURL>
      <modelname>BUBBA|TWO</modelname>
      <modelnumber>1.0.0</modelnumber>
            <udn>uuid:7460cfad-c089-468b-866e-6936039a3e2d</udn>
            <home>/var/lib/mediatomb</home>
            <webroot>/usr/share/mediatomb/web</webroot>
     
      <storage>
                <mysql enabled="yes">
          <host>localhost</host>
                    <username>mediatomb</username>
                    <database>mediatomb</database>
          <password>RSA5EhrKLXUV</password>
                </mysql>
            </storage>
 
            <protocolInfo extend="yes"/><!-- For PS3 support change to "yes" -->
 
            <custom-http-headers>
                <!-- Samsung needs it -->
                <add header="transferMode.dlna.org: Streaming"/>
                <add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000"/>
            </custom-http-headers>
 
    <!--    <extended-runtime-options>
          <ffmpegthumbnailer enabled="yes">
          <thumbnail-size>128</thumbnail-size>
          <seek-percentage>5</seek-percentage>
          <filmstrip-overlay>yes</filmstrip-overlay>
          <workaround-bugs>no</workaround-bugs>
      </ffmpegthumbnailer>
      <mark-played-items enabled="no" suppress-cds-updates="yes">
          <string mode="prepend">*</string>
      </mark-played-items> 
        </extended-runtime-options> -->
 
        </server>
 
        <import hidden-files="no">
      <scripting script-charset="UTF-8">
            <common-script>/usr/share/mediatomb/js/common.js</common-script>
            <playlist-script>/usr/share/mediatomb/js/playlists.js</playlist-script>
            <virtual-layout type="builtin">
              <import-script>/usr/share/mediatomb/js/import.js</import-script>
            </virtual-layout>
      </scripting>
      <mappings> 
              <extension-mimetype ignore-unknown="no">
          <map from="mp3" to="audio/mpeg"/>
          <map from="ogg" to="application/ogg"/>
          <map from="asf" to="video/x-ms-asf"/>
          <map from="asx" to="video/x-ms-asf"/> 
          <map from="wma" to="audio/x-ms-wma"/> 
          <map from="wax" to="audio/x-ms-wax"/>
          <map from="wmv" to="video/x-ms-wmv"/>
          <map from="wvx" to="video/x-ms-wvx"/>
          <map from="wm" to="video/x-ms-wm"/>
          <map from="wmx" to="video/x-ms-wmx"/>
          <map from="m3u" to="audio/x-mpegurl"/>
          <map from="pls" to="audio/x-scpls"/>
          <map from="flv" to="video/x-flv"/>
          <map from="avi" to="video/x-avi"/>
          <map from="vob" to="video/x-vob"/>
          <map from="mkv" to="video/x-mkv"/>
              </extension-mimetype>
          <mimetype-upnpclass>
          <map from="audio/*" to="object.item.audioItem.musicTrack"/>
          <map from="video/*" to="object.item.videoItem"/>
          <map from="image/*" to="object.item.imageItem"/> 
          </mimetype-upnpclass>
 
          <mimetype-contenttype>
          <treat mimetype="audio/mpeg" as="mp3"/>
          <treat mimetype="application/ogg" as="ogg"/>
          <treat mimetype="audio/x-flac" as="flac"/>
          <treat mimetype="image/jpeg" as="jpg"/>
          <treat mimetype="audio/x-mpegurl" as="playlist"/>
          <treat mimetype="audio/x-scpls" as="playlist"/>
          <treat mimetype="audio/x-wav" as="pcm"/>
          <treat mimetype="audio/L16" as="pcm"/>
          <treat mimetype="video/x-msvideo" as="avi"/>
          <treat mimetype="video/x-divx" as="avi"/>
          <treat mimetype="video/mp4" as="mp4"/>
          <treat mimetype="video/x-vob" as="avi"/>
          <treat mimetype="video/x-matroska" as="mkv"/>
          </mimetype-contenttype>
      </mappings>
        </import>
 
        <transcoding enabled="no"/>
 
    </config>
 

fabiogesto

Vu+ Newbie
I've configured the tunner A (Configuration = Tuner: loop through to B ,and B: Normal disecq A/B)​
Now, I wonder if I can be watching a HD channel on TV and another HD channel in my computer via xbmc at the same time ,it is possibel?
 
Top