From owner-freebsd-multimedia@FreeBSD.ORG Fri Feb 12 07:59:41 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 21ACA106566B for ; Fri, 12 Feb 2010 07:59:41 +0000 (UTC) (envelope-from mrechberger@gmail.com) Received: from mail-fx0-f226.google.com (mail-fx0-f226.google.com [209.85.220.226]) by mx1.freebsd.org (Postfix) with ESMTP id A99938FC14 for ; Fri, 12 Feb 2010 07:59:40 +0000 (UTC) Received: by fxm26 with SMTP id 26so2100236fxm.13 for ; Thu, 11 Feb 2010 23:59:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=LWeCaxnf6kd80zVYhvVlFmJkRMi+duaxUjJGPpdhmkc=; b=HIP/YhCKXPxybgEBvgsj1LROJzevzLbAU0WAeYqL6rruZfmOrN/m0YLQQZnUcgoFV0 DtIQikmQdrPYm4UpWOwEoUY4z+8whNh/h7hhQkC7MoP4ZoMC7GNoEKMyGa9Q/loks46Q +zJPCbv1rQcvybTsmpDd5jMQvXeXAua2z5AM4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=glgyHZi3cvWxPVe/PAOhVTIe8L9/vOcpCwCEZTR/wO3IiuY0d/a9NmZh3oFOW2Bx5S Vq1USWOfny/FP0sCQXW91QF9EE8h0RYm2FB4lgSahEagTj6DjBbTh1vd+kB9QNyWhpKp d0mh1xgDkFP+xbfoMb8ZaS6LVLSSkdiuNsZ44= MIME-Version: 1.0 Received: by 10.87.35.15 with SMTP id n15mr2135224fgj.14.1265961579629; Thu, 11 Feb 2010 23:59:39 -0800 (PST) In-Reply-To: <201002120825.21588.max@love2party.net> References: <201002120825.21588.max@love2party.net> Date: Fri, 12 Feb 2010 08:59:39 +0100 Message-ID: From: Markus Rechberger To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: DVB/ATSC library? 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: Fri, 12 Feb 2010 07:59:41 -0000 > +1 ... I have a driver for PCI attached mantis cards. =A0It simply export= s a > buffer with the raw mpeg ts stream to userland where it also handles the > frontend programming. =A0The missing link is something to make sense of t= he mpeg > ts stream. > > IMHO, the v4l2 api is terribly broken by design - as it mandates at least= one > copy per ts-frame (possibly more than one), but as it is unlikely that we= will > convince enough people to get behind a sensible API now, I'd also like to= have > a lib that bridges the gap. > there's the DVB API available for DVB/ATSC The v4l2 API is just to be used with analog TV (and some mpeg analog grabbers .. this is a little bit messed up yes). But clearly there's a separation. Linux DVB has 2 APIs actually * DVB API v3 * DVB API v5.x (DVB-S2 aka S2-API) both APIs are fairly easy but VDR, Kaffeine and MythTV (not entirely sure about MythTV) nowadays only support the S2-API only, it is very easy to write a DVB API v5.0 to v3 wrapper. Have you had a look at frontend.h of linuxtv? This is more or less the most important API which you should support. The section filtering/demux filtering in kernelspace is something I would consider to be optional. BSD should definitely support it (best is in userspace). Markus