From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 1 20:33:57 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 077031065695; Sat, 1 Jan 2011 20:33:57 +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 A92BC8FC16; Sat, 1 Jan 2011 20:33:56 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id B2A591E0099B; Sat, 1 Jan 2011 21:33:54 +0100 (CET) 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 p01KTt2l050975; Sat, 1 Jan 2011 21:29:55 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id p01KTsuB050974; Sat, 1 Jan 2011 21:29:54 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Sat, 1 Jan 2011 21:29:54 +0100 To: Juergen Lock Message-ID: <20110101202954.GA49944@triton8.kn-bremen.de> References: <20101122001722.GA60138@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101122001722.GA60138@triton8.kn-bremen.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: andreas.guenther@hftl.de, freebsd-multimedia@FreeBSD.org, Pawel Pekala , denis.loh@hftl.de, lme@FreeBSD.org, Alexander Leidinger Subject: Re: So i wanted to test the vdr upnp plugin on FreeBSD... 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: Sat, 01 Jan 2011 20:33:57 -0000 On Mon, Nov 22, 2010 at 01:17:22AM +0100, Juergen Lock wrote: > ..which turned out to be easier said than done: Besides some > porting work for FreeBSD I had to hunt and patch several bugs, and > did initial upgrading to libupnp 1.6.9 (because that's whats in > ports, the plugin apparently was only tested up to 1.6.6.) And I > also had to patch two nasty bugs in libupnp that caused vdr to spin > one core at 100% and malloc() 32 GB... (I probably should submit > those to the pupnp-devel list too, will do that later.) > Did that a while ago, the patches have been committed to the libupnp repo and will be on 1.6.10 and 1.8.0: http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTim94GgD%3D%2Bkog7GDcSXKbA9sHaA3gXzpG%2BqiSpon%40mail.gmail.com&forum_name=pupnp-devel Pavel, are you ok with me adding them to the devel/upnp port or do you want me to send a formal PR? The patches are also here: http://people.freebsd.org/~nox/dvb/libupnp-patches/ > I've put the shar here: > > http://people.freebsd.org/~nox/dvb/vdr-plugin-upnp-20101121a.shar > > (to be used together with my latest vdr port shar on FreeBSD, see here: > > http://people.freebsd.org/~nox/dvb/ > and http://lists.freebsd.org/pipermail/freebsd-multimedia/2010-November/011392.html Updated shar at: http://people.freebsd.org/~nox/dvb/vdr-plugin-upnp-20110101a.shar The port now creates a dir /var/cache/vdr-upnp for the plugin's metadata db so you can test the plugin like this: vdr ... '-Pupnp -i lo0 -vvvvv --dbdir=/var/cache/vdr-upnp' I've removed #if 0'd debug code from one patch and I've added another patch to fix seeking in streamed vdr recordings, xbmc now plays back recordings until the end and not only the beginning of (some of) them. (HD recordings are still ignored tho, and xmbc still gets the length wrong once in a while and fast forward/ rewind in xbmc also still doesn't work properly with all of them, but at least the wrong length also happens when passing that one recording where that happens to xbmc directly via the filesystem without the plugin so at least _that_ bug must be in xbmc - and thus, maybe also the remaining fast forward/rewind ones?) > > As noted in the pkg-descr its still an alpha version so no guarantee > the port will work for you, I could only test it with xbmc where > after all my bugfixing streaming of live tv (hd and sd) and of vdr > recordings now work, recordings only sd tho but that seems to be a > known issue. > > Here's a rundown of the patches for the plugin: (below > multimedia/vdr-plugin-upnp/ in the shar) > Patches also at: http://people.freebsd.org/~nox/dvb/vdr-plugin-upnp-patches/ > files/patch-Makefile > only needed for the FreeBSD port itself > > files/patch-badvideo > ignore bad/unrecognized recordings (instead of crashing vdr) > > files/patch-freebsd > FreeBSD portability patches > > files/patch-fromgit > patch merged from the plugin git > > files/patch-iconv > add missing charset conversion (upnp expects utf-8...) > (I see there's also leftover #if 0'd debug code in > there, will remove that later) > Fixed. > files/patch-libupnp1.6.9 > patches for libupnp 1.6.9 > > files/patch-livetv-channelname > always list channel names with live tv (makes channels > easier to find at least with xbmc) > > files/patch-size_t > size_t *printf fixes (affectig 64 bit hosts) > > files/patch-strncpy > bad use of strncpy() > New patch: files/patch-recplayer-seek fix seeking in streamed recordings > And the libupnp patches: > > ports-patches/devel/upnp/files/patch-upnp-src-gena-gena_device.c > another size_t varargs fix (again affectig 64 bit hosts) > > ports-patches/devel/upnp/files/patch-upnp-src-genlib-net-http-webserver.c > wrong args to http_MakeMessage > > Some of the patches may apply with offsets cause I manually sorted > them, you can ignore that, patch(1) will dtrt. Enjoy, :) Juergen From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 1 21:02:10 2011 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1D68106566B for ; Sat, 1 Jan 2011 21:02:10 +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 5EE278FC12 for ; Sat, 1 Jan 2011 21:02:10 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 6AB4F1E0011A; Sat, 1 Jan 2011 22:02:09 +0100 (CET) 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 p01L17Rs052631; Sat, 1 Jan 2011 22:01:07 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id p01L17EZ052630; Sat, 1 Jan 2011 22:01:07 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Sat, 1 Jan 2011 22:01:07 +0100 To: Juergen Lock Message-ID: <20110101210107.GA52409@triton8.kn-bremen.de> References: <201012260042.oBQ0gPCn091412@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201012260042.oBQ0gPCn091412@triton8.kn-bremen.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: grarpamp , multimedia@freebsd.org Subject: Re: FreeBSD support for modern TV tuners? 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: Sat, 01 Jan 2011 21:02:10 -0000 Small update: On Sun, Dec 26, 2010 at 01:42:25AM +0100, Juergen Lock wrote: > Hi! > > In article <4D161D9C.6030100@gmail.com> you write: > >Thanks for the response! :-) > > > > > >See below: > > > >On 12/25/2010 10:39 AM, grarpamp wrote: > >> Hope no one minds the slight change of subject line > >> as it really comes down to drivers. Then you can plop > >> MythTV, etc on top. > >> > >> If you know of more support / work on HD, please add it :) > >> > >> All the current Hauppauge US boards are here. No idea about > >> PAL, other than some chips include that as a bonus. > >> http://hauppauge.com/site/products/prods_hvr_internal.html > >> > >> No idea about other manufacturers. > >> > >> Here's the only FreeBSD CX88 drivers/projects I've found: > >> http://corona.homeunix.net/cx88wiki > >> > Yes that's in ports as: > > http://www.freshports.org/multimedia/cx88 > > (and afaik at least the dvb-s(2) hw some of those cards have still > isn't supported.) > > >> I've not yet found anyone in FreeBSD land working on the > >> HVR-2250 / SAA7164 / NXP NGene: > >> http://www.tridentmicro.com/producttree/tv/pc-tv/saa/saa7164/ > >> > >> There's this guy under Linux, don't know about FreeBSD for it: > >> http://pchdtv.com/ HD-5500 > >> > >> Here's some Linux drivers/projects to contact/port if need be: > >> http://kernellabs.com/hg > >> http://www.steventoth.net/blog/products/hvr-2250/ > >> > >> Some related FreeBSD items: > >> http://www.selasky.org/hans_petter/video4bsd/ > > That's webcamd, see below. > > >> http://video4bsd.sourceforge.net/ Fritz Katz, frtzkatz at yahoo > >> http://wiki.freebsd.org/HDTV > >> http://www.freebsd.org/releases/8.1R/hardware.html > >> > >> Lastly, would a HVR-2250 as bounty help? > >> > > > >If the card is supported under FreeBSD then I would be much inclined to > >go for it! > > > > > >I mean does it have FM radio and DAB capabilities too?? > > > >I checked the site for it: > > > >http://www.hauppauge.com/site/products/data_hvr2250.html > > > > > >It says it's got FM tuner but DAB?? Is that streamed over DVB-T?? As in > >for North America ATSC or UK would be FreeView? > > While you are looking for pci cards with native FreeBSD drivers > don't forget to also look at webcamd, > > http://www.freshports.org/multimedia/webcamd > > which should let you use many of those usb dvb (and atsc?) tuners > that are also supported on Linux since webcamd essentially runs > Linux usb v4l/dvb drivers on FreeBSD in userland: > > http://www.linuxtv.org/wiki/index.php/DVB-C_USB_Devices > http://www.linuxtv.org/wiki/index.php/DVB-S_USB_Devices > http://www.linuxtv.org/wiki/index.php/DVB-S2_USB_Devices > http://www.linuxtv.org/wiki/index.php/DVB-T_USB_Devices > http://www.linuxtv.org/wiki/index.php/ATSC_USB_Devices > > (and there are also analog usb video devices that may work tho > those are probably less interesting nowadays: > > http://linuxtv.org/wiki/index.php/Video_via_USB > ) > > Another advantage of webcamd is it provides essentially the same > /dev/dvb/adapterX (resp. /dev/videoX for analog) interface as on > Linux so software from Linux can be used with less porting effort, > and indeed I have used at least the mplayer, kaffeine, and vlc ports > with webcamd and usb dvb tuners (and w_scan and szap-s2), and of > course :) also my vdr ports that I posted a Call for testing for > not too long ago: > > http://lists.freebsd.org/pipermail/freebsd-multimedia/2010-November/011392.html > > (and others have used mythtv too.) > > I'm in europe so I can't test atsc (and know little about it), but > at least theoretically what is supported of that in e.g. vdr (or > mythtv?) should work with webcamd too, here are two related threads > I found on the vdr list: > > http://linuxtv.org/pipermail/vdr/2010-October/023777.html > http://linuxtv.org/pipermail/vdr/2010-October/023793.html > > Tuners I have personally tested: > > - dvb-s2: PCTV 452e Sat HDTV Pro USB driven by: > > /usr/ports/multimedia/webcamd/work/webcamd-0.1.18/v4l-dvb/linux/drivers/media/dvb/dvb-usb/pctv452e.c > > Seems to work alright for me now, including for (fta) dvb-s2 hdtv. > (The same driver appears to also support TechnoTrend TT-connect > S2-3600 and TechnoTrend TT-connect S2-3650 CI so those have good > chances of working with webcamd too; note this driver is imported > from the Linux s2-liplianin dvb tree because it's still(?) not > in mainline Linux v4l-dvb.) > > - dvb-s2: TeVii S660 driven by: > Btw, I was told TerraTec Cinergy S2 USB seems to be the same or very similar hardware so probably will have similar issues. > /usr/ports/multimedia/webcamd/work/webcamd-0.1.18/v4l-dvb/linux/drivers/media/dvb/dvb-usb/dw2102.c > > Seems to be very picky wrt on which usb controllers it actually > works, (like it made even Linux' `lspci' Correction: `lsusb'. > hang on an onboard ATI > SB700 until I unplugged it again, and you can find reports on the > web of other users having problems too) - and even after I found > a pci usb card that it works on with Linux it still wouldn't do > anything useful on FreeBSD with webcamd. > > - dvb-t: MSI DIGIVOX Duo and LC-Power LC-USB-DVBT driven by: > > /usr/ports/multimedia/webcamd/work/webcamd-0.1.18/v4l-dvb/linux/drivers/media/dvb/dvb-usb/af9015.c > > (btw variations of this chipset seem to be in a lot of at least > the cheaper dvb-t tuners currently being sold here.) > > The MSI DIGIVOX Duo needs a workaround (patch) I described in this > posting: > > http://lists.freebsd.org/pipermail/freebsd-multimedia/2010-December/011509.html > > and even with that applied only one of its two tuners can actually > be used or I get stream corruptions. The LC-Power LC-USB-DVBT > is a single tuner device and works as is, but note there is/was > different older(?) hw sold under the same name that is not af9015(6) > but ec168 i.e. it would be driven by > > /usr/ports/multimedia/webcamd/work/webcamd-0.1.18/v4l-dvb/linux/drivers/media/dvb/dvb-usb/ec168.c > > which _probably_ will also work but I haven't tested it. (hdtv > also not tested as there is none broadcast via dvb-t here, but I > see no reason why that shouldn't work too where it's available.) > > And finally, some links are also here: > > http://people.freebsd.org/~nox/dvb/ > > HTH, > Juergen From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 1 21:51:21 2011 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A3151065670; Sat, 1 Jan 2011 21:51:21 +0000 (UTC) (envelope-from arundel@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4140F8FC13; Sat, 1 Jan 2011 21:51:21 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p01LpLYG081880; Sat, 1 Jan 2011 21:51:21 GMT (envelope-from arundel@freefall.freebsd.org) Received: (from arundel@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p01LpL9g081876; Sat, 1 Jan 2011 21:51:21 GMT (envelope-from arundel) Date: Sat, 1 Jan 2011 21:51:21 GMT Message-Id: <201101012151.p01LpL9g081876@freefall.freebsd.org> To: alexbl@FreeBSD.org, arundel@FreeBSD.org, freebsd-multimedia@FreeBSD.org From: arundel@FreeBSD.org Cc: Subject: Re: kern/113950: [sound] [patch] [request] add per-vchan mixer support 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: Sat, 01 Jan 2011 21:51:21 -0000 Synopsis: [sound] [patch] [request] add per-vchan mixer support State-Changed-From-To: suspended->closed State-Changed-By: arundel State-Changed-When: Sat Jan 1 21:47:37 UTC 2011 State-Changed-Why: I believe stable/8 and HEAD have support for vpcs. I'm not sure, if this has been MFC'ed to stable/7, however if this isn't the case chances are very slim it will happen before stable/7 goes EoL. Thus close this PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=113950