From owner-freebsd-multimedia@FreeBSD.ORG Thu Apr 21 18:38:30 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70523106566C for ; Thu, 21 Apr 2011 18:38:30 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 1A1B18FC19 for ; Thu, 21 Apr 2011 18:38:29 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 195911E0024B; Thu, 21 Apr 2011 20:38:29 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.3) with ESMTP id p3LIbhA2071432; Thu, 21 Apr 2011 20:37:43 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id p3LIbhAN071431; Thu, 21 Apr 2011 20:37:43 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Thu, 21 Apr 2011 20:37:43 +0200 To: Juergen Lock Message-ID: <20110421183743.GA71185@triton8.kn-bremen.de> References: <20110420140438.46071be2@zeus.saul.homeunix.org> <20110421014450.b8d9c0d0.torfinn.ingolfsen@broadpark.no> <201104211724.p3LHOKrN064485@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201104211724.p3LHOKrN064485@triton8.kn-bremen.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-multimedia@freebsd.org Subject: Re: Headless box with PVR-250 - ideas needed X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2011 18:38:30 -0000 On Thu, Apr 21, 2011 at 07:24:20PM +0200, Juergen Lock wrote: > In article <20110420192340.3cdc0136@zeus.saul.homeunix.org> you write: > >On Thu, 21 Apr 2011 01:44:50 +0200 > >Torfinn Ingolfsen wrote: > > > >> On Wed, 20 Apr 2011 14:04:38 -0500 > >> Saul A Peebsen wrote: > > > [...] > > >> Other options: > >> vdr is in ports (I have just tried it briefly, to me it looks as > >> difficult to get working as MythTV was initially). YMMV > > > >Hmmm, VDR can be viewed over the network? > > > Yes it can (via xineliboutput or streamdev plugins, see > > http://wiki.freebsd.org/VDR > > ), but natively it only knows about dvb/atsc tuners using the Linux > /dev/dvb/adapterX api as e.g. provided by the webcamd port for usb > tuners, so for you card you'd either have to port the pvrinput > plugin, > > http://www.linuxtv.org/vdrwiki/index.php/Pvrinput-plugin > > (I'm not sure but the Linux ivtv drivers for your card, > > http://www.ivtvdriver.org/index.php/Main_Page > > probably use the V4L2 (/dev/videoX) api which thus differs from the > one used by the FreeBSD pvrxxx driver so there'd be some more hacking > involved), or maybe as a stopgap solution hack together some input > scripts and channels.conf entries for the iptv plugin, > > http://www.saunalahti.fi/~rahrenbe/vdr/iptv/ > > in: > > /usr/local/etc/vdr/plugins/iptv > > Some sample channels.conf entries for web streams are in > > /usr/local/share/examples/vdr-plugin-iptv/channels.conf.iptv > > and > > /usr/ports/multimedia/vdr-plugin-iptv/files/channels.conf.iptv . > > >> You could run another os on your backend (Linux?) and just run the > >> mythfrontend on your (FreeBSD) desktop. > >> Note: you *must* use the same version of MythTV (actually, the same > >> version of the MythTV protocol) on the frontend as you do on the > >> backend, or ity won't work. > > > >Well, the situation is a little more complicated. I have home network, > >my PC, wifes, one media center and one laptop. All of these have > >one single OS installed and it is Gentoo. My desktop has MythTV backend > >running with pcHDTV 5500. The trouble starts when something is > >recording or Wife wants to watch while I'm watching or I shut down my > >box. So I thought adding one master backend would solve these problems. > >The only box suitable for this job is my home server, which is running > >FreeBSD ... It is not very powerful, thus I got an MPEG encoder > >card ... PVR-250. > > > >> So yes, there are options, none of them perfect. > > > >Well, currently I log into server over SSH, do cat /dev/cxm0 > file.mpg > >where file is created on an NFS shared volume and use mplayer to watch > >it on my desktop, works fine. > >I wonder if there is a way to access /dev/cxm0 over LAN (some magic > >with netcat perhaps?), without logging in over SSH, so Wife could watch > >it from her desktop. SSH login is a little too much for her ... > > If you just want to watch (or record) whatever is coming in on > /dev/cxm0 (i.e. you already select the channel some other way) then > maybe this as /usr/local/etc/vdr/plugins/iptv/vlcinput/cxm0.conf : > > URL="/dev/cxm0" > > and one line in /usr/local/etc/vdr/channels.conf would be enough: > (you can keep the other iptv examples for testing) > > cxm0;IPTV:5000:S=0|P=0|F=EXT|U=vlc2iptv|A=5000:I:0:5=2:6=eng@3:0:0:1:0:0:0 > > If you want the iptv plugin to handle tuning too you'd need one > channels.conf line per channel and would have to extend the > /usr/local/etc/vdr/plugins/iptv/vlc2iptv script to parse the channel > name (the cxm0 above) or number (the two 5000s - both numbers have > to be the same per line) to tune the card, and if that works I guess > you could also try removing the transoding in the final vlc invocation > - maybe the mpeg stream generated by the card is already compatible > enough with what vdr expects. (basically an mpeg2 transport > stream...) I forgot that you have a pretty wimpy cpu, so maybe the live transcoding won't work on your box anyway. If it doesn't, try removing the entire transcoding part i.e. the transcode{vcodec=$VIDEO_CODEC$RESIZE_OPTIONS,acodec=$AUDIO_CODEC,vb=${VIDEO_BITRATE},ab=${AUDIO_BITRATE}}: in your vlc invocation in the vlc2input script, chances are the stream from the card is compatible enough. HTH, Juergen