I recently realized, that I just have to announce streams by UPnP to access them using my Asus O!Play device.
- Installation of Ubuntu’s MediaTomb:
apt-get install mediatomb
- Call http://VDR_HOST:49152/ for configuration.
- Add a new container with a name like Live-TV to your database.
- I changed the name of my MediaTomb in
/etc/mediatomb/config.xmlto something unique.
apt-get install sqlite3) will now help to access the MediaTomb database directly.
- I opened the MediaTomb database:
- I queried the ID (in my case
2) of the new container:
select id from mt_cds_object where dc_title like '%Live%TV%';
- I queried the maximum ID (in my case also
select max(id) from mt_cds_object;
- Before the following statements write into the database, we have to stop MediaTomb:
- The following lines for the shell will fill the first 20 channels as references into the container:
container=2; max=2 for i in $(seq 1 20); do ii="$(printf "%02d" "$i")"; id="$(($max + $i))" echo " insert into mt_cds_object values( $id,NULL,$container,10,'object.item.videoItem','Ch$ii', 'http://MyVDRHostname:3000/EXT/$i',NULL, 'dc%3Adescription=VDR%2AChannel%2A$ii',NULL, '0~protocolInfo=http-get%3A%2A%3Avideo%2Fmpeg%3A%2A~~',0, 'video/mpeg',1,NULL,NULL );" done | sqlite3 /var/lib/mediatomb/mediatomb.db
- Start MediaTomb afterwards:
- Reloading the container I can now see the 20 channel references. Each provides an external Link of class
object.item.videoItemand mime type
Finally the O!Play will show the list of channels in the UPnP section.