for those that want to try vdr on FreeBSD... (dvb with webcamd)

Juergen Lock nox at
Sun May 2 19:12:16 UTC 2010


 I took jpulz' vdr 1.7.14 patches: (hi, you never seem to be on irc
when I am... :)

and made q&d ports of those and of a few more plugins and two webinterfaces
so I can now use FreeBSD as a pc dvb-s2 dvr:

 I don't know if/when I'll be able finish these to make them commit-ready
(or even port all of the other plugins that people might want to use),
if anyone wants to take over from here or at least help they are most

 Note: vdr 1.7.14 is the development branch so expect bugs!  (I mostly
used it because the stable branch (1.6) doesn't support dvb-s2...)

 FreeBSD notes:

0. See my earlier threads on the freebsd-multimedia list about webcamd
   and the usb dvb-s2 tuner I use; the relevant webcamd ports and
   frieds have been updated now so you _should_ be able to just use
   those.  (I see no reason why dvb-t or dvb-c tuners wouldn't work
   also as long as webcamd supports them, I just haven't tested any.)

1. Before you start installing these ports add the vdr user and group
   to /usr/ports/UIDs:

	vdr:*:988:988::0:0:vdr user:/nonexistent:/usr/sbin/nologin

   and to /usr/ports/GIDs:


   (you don't have to use 988, I just didn't want the id to conflict with
   new ports being committed too quickly...), and then either mount an extra
   fs with enough space for the recordings on /video or create a video dir
   elsewhere where there is space, symlink it to /video and make it
   writable for vdr.  (or if you do have one big / then you can create
   the dir on there too ofc, I just disabled the mkdir in the port to
   avoid inadvertently filling up ppl's small / fs.)

2. I didn't make rc.d scripts yet so for now you need to start vdr as
   well as the vdradmin-am webinterface manually, look in the README.s
   of the individual (plugins, vdradmin-am) ports for any needed options.
   My current vdr startup line is:

	vdr -P"xineliboutput --local=none --remote=127.1:37890" -Pskinenigmang -Pfemon -Posdpip '-Posdteletext --directory=/usr/tmp --cache-system=packed --max-cache=128' -P"streamdev-server" -P"live -i127.1" -Pepgsearch -Pcontrol

   Oh and I skipped install of a lot of locales for now too...

3. Of all the video output methods only xineliboutput and streamdev
   seem to work (and the vdr-live webinterface browser streaming which
   also uses streamdev), jpulz also has patches for softdevice so I made
   a port for that too but it only gave me a black screen...  streamdev
   doesn't have an osd so you probably want xineliboutput at least for
   the first setup.

   I was unable to test xineliboutput's vdpau support since I no longer
   have nvidia (and miwi's issues with the nvidia blob on amd64 don't
   exactly encourage me to try it again soon...) - on the radeon here
   using xorg 7.4's video-ati driver with xv xineliboutput via vdr-sxfe,

	vdr-sxfe --video=xv --hotkeys xvdr://

   (vdr-sxfe gets installed by the xineliboutput plugin port) as well as any
   other player that knew the xvdr protocol (xineliboutput with osd) were
   unable to play h264 hd channels (I suspect they use too much cpu; I tried
   xine and both the kde3 and kde4 versions of kaffeine,

	xine "xvdr://"
	kaffeine "xvdr+tcp://127.1:37890"
	/usr/local/kde4/bin/kaffeine "xvdr+tcp://127.1:37890"

   ), only mplayer and (sometimes) totem/gstreamer (incluing the totem
   browser plugin invoked by the vdr-live webinterface) apparently were
   efficient enough to decode h264 on this PhenomII cpu in software:

	mplayer -mc 10 -cache 8192 -demuxer lavf

   (or using streamdev:

	mplayer -mc 10 -cache 8192 -demuxer lavf

   - channel 302 is arte hd in my channels.conf.)

4. I have no idea if the lirc support works on FreeBSD (and webcamd doesn't
   seem to support dvb tuner remotes yet anyway), so you probably will
   have to use keyboard control for now.  I have included an example
   remote.conf for vdr-sxfe and the multimedia/vdr-plugin-control plugin
   that you can access by telnet (default port is 2002), I have put the
   menu button on the tab and insert keys and OK on the return key, see


   for the full keybindings list.  (If you start vdr in the foreground
   and keep that shell open you should be able to use that for keyboard
   control also, the control plugin just gives me an osd too for when I
   use mplayer...)

   Oh and the webinterfaces have point-and-click remotes too but I prefer
   keyboard control.

5. The example channels.conf is the one that comes with the vdr sources,
   its for Astra 19.2E and a little outdated (also doesn't have hd channels
   yet), if you receive something else and don't want to go hunting for a
   suitable channels.conf on the web you can use w_scan for which I put a
   port here earlier:

   Remember to use -o7 for vdr 1.7, see the w_scan homepage for options
   and examples:

   Also note you probably will only need to use w_scan once initially,
   this vdr version by default should look for new transponders itself
   when it does its epg scan during idle times unles you disable that

5. I ported two webinterfaces because I only learned about vdr-live
   later which seems to be faster and uses fewer resources meaning you
   could probably turn a pretty wimpy box into a vdr server as long as
   you keep the actual watching (especially of h264 hd) to a faster box
   connected over the network.  The vdr-plugin-live webinterface by
   default listens on port 8008:


   and vdradmin_am listens on 8001:


   And the streamdev plugin has a (simple) webinterface too if you point
   a browser at it: (instead of a player)


6. I may have forgot some other manual installation steps, if you
   notice something just post a followup...  Most of vdr's own
   configuration including plugins should be available in the osd
   under `Setup'.

 And finally, here are some links about vdr and the plugins and
webinterfaces I made ports for:

0. vdr 1.7.14:

1. xineliboutput-1.0.5 cvs snapshot from 20100414:

2. streamdev-0.5.0 cvs snapshot from 20100426:

3. live-0.2.0:

4. live also depends on cxxtools and tntnet which I also had to port:

5. epgsearch-0.9.25.beta16:

6. femon-1.7.7:

7. osdpip-0.1.0:

8. osdteletext-0.8.3:

9. skinenigmang-0.1.1:
	(sorry for de in the second link but at least there are pics...)

10. softdevice 0.5.0 cvs snapshot from 20100414:

10. control-0.0.2a-45yavdr1 with ubuntu yavdr patches:

11. vdradmin_am-3.6.7:

 Enjoy! :)

More information about the freebsd-multimedia mailing list