From owner-freebsd-multimedia@FreeBSD.ORG Mon Nov 22 00:19:44 2010 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 425D01065670; Mon, 22 Nov 2010 00:19:44 +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 EFFD28FC17; Mon, 22 Nov 2010 00:19:43 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 778AD1E0097F; Mon, 22 Nov 2010 01:19:42 +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 oAM0HO19061329; Mon, 22 Nov 2010 01:17:24 +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 oAM0HNlY061328; Mon, 22 Nov 2010 01:17:23 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Mon, 22 Nov 2010 01:17:22 +0100 To: freebsd-multimedia@FreeBSD.org Message-ID: <20101122001722.GA60138@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: andreas.guenther@hftl.de, c0rn@o2.pl, denis.loh@hftl.de, lme@FreeBSD.org, Alexander Leidinger Subject: 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: Mon, 22 Nov 2010 00:19:44 -0000 ..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.) 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/011368.html ) 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) 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) 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() 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