WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Howto: RPi3 AV Streamer  (Read 1731 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Howto: RPi3 AV Streamer
« on: April 30, 2017, 05:13:14 AM »
There's no doubt a better way to do this, but it works.

Load required extensions:
Code: [Select]
$ tce-load -i tracker rygel adwaita-icon-theme hicolor-icon-theme dconf gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav..the icon themes are not strictly needed, but make navigation easier.

Configure tracker and re-start:
Code: [Select]
$ sudo /usr/local/etc/init.d/dbus start
$ tracker-preferences

add /mnt/sda1/Media [external usb hd with audio/image/video files]
check recurse
remove other folders

$ tracker daemon -s
Starting miners?
  ? Userguides
  ? File System
  ? Extractor
  ? Applications
..the tracker configuration can also be done with "gsettings set.." or dconf-editor

Configure rygel and start:
Code: [Select]
$ vi ~/.config/rygel.conf

[Tracker]
enabled=true
only-export-from=/mnt/sda1/Media
...
title=RPi3

[MediaExport]
enabled=false

[Playbin]
enabled=false

$ rygel
Rygel-Message: rygel-acl.vala:143: No ACL fallback policy found. Using "allow"
Rygel-Message: Rygel v0.32.1 starting?
Rygel-Tracker-Message: rygel-tracker-item-factory.vala:68: Using none as upload directory for object.item.audioItem.musicTrack
Rygel-Tracker-Message: rygel-tracker-item-factory.vala:68: Using none as upload directory for object.item.videoItem
Rygel-Tracker-Message: rygel-tracker-item-factory.vala:68: Using none as upload directory for object.item.imageItem.photo
RygelCore-Message: New plugin 'Tracker' available
RygelServer-Message: rygel-thumbnailer.vala:132: No D-Bus thumbnailer available

I was able to simultaneously listen to hd audio on one device and hd video on another  8)

caveats:

* depending on the number of files to be streamed, rygel startup can take several minutes.
* my tv and ios app plugplay were unable to find the stream directly
* gupnp-av-cp from gupnp-tools was able to set the tv to play audio/images/videos from the stream
* rygel is supposed to work without tracker, but it doesn't
* tracker requires x11 to start various stuff with dbus, but it might be possible manually from the console
« Last Edit: April 30, 2017, 07:39:13 AM by Juanito »