From owner-freebsd-multimedia@FreeBSD.ORG Tue Feb 4 20:24:48 2014 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ECF11B79 for ; Tue, 4 Feb 2014 20:24:48 +0000 (UTC) Received: from mail-lb0-x244.google.com (mail-lb0-x244.google.com [IPv6:2a00:1450:4010:c04::244]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7903116ED for ; Tue, 4 Feb 2014 20:24:48 +0000 (UTC) Received: by mail-lb0-f196.google.com with SMTP id w7so2072444lbi.3 for ; Tue, 04 Feb 2014 12:24:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=jP+MXGHBFuDQv1GEPsoJAlsq9B9huUIrcvQoDseHIjw=; b=M0/errZJsAEXlWVvuD5Qwz0hxHXkv5CJLgvfyF/0Dg3TV0E3yg+pzjZi96FQ3xnmbS +0alwWZlokb4l5Lmsz41K0/jX7v4Jg2+vSCiXjT4FB98C5KSKeBLLiNaHhsx7yMfyIAv XZc40B45O0w8bb/fo/TQpIu33AA4mpVn6O3gKTRyuAGLOWkWmrjxhKEF52qtWN7KGFA6 4CaW6KXZxmhpBVOWUvOdTxp57NxAQN8QlW5ctSxjU5Usp4vebaEqdSCAltHrzmUoIzO+ c099w3AYw5nmETZMtCYkRfTl6z3/VWi7uJV4oSC8912tjZKxhNwQb9yeuaGt6q8lDpcO COZg== MIME-Version: 1.0 X-Received: by 10.112.164.35 with SMTP id yn3mr2960827lbb.45.1391545486484; Tue, 04 Feb 2014 12:24:46 -0800 (PST) Received: by 10.114.175.231 with HTTP; Tue, 4 Feb 2014 12:24:46 -0800 (PST) Date: Tue, 4 Feb 2014 12:24:46 -0800 Message-ID: Subject: Re: hdhomerun & dvr - prefer tvheadend From: Dieter BSD To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Feb 2014 20:24:49 -0000 Bryce writes: > I got a hdhomerun > linux specific Ick! > Please give me suggestions to get this up & running or point me > to good alternatives. You don't need a custom kernel module. Just a driver for your wired ethernet controller. Everything else can be done from userland. Compile hdhomerun_config (a FLOSS utility from Silicondust). Write a simple and reliable (so that it can be run at rtprio) C program that reads data from a port and writes it to a file on disk. Write shell script that takes arguments for tuner number, tv channel, number of minutes to record, program description and generates a filename for the recording, then calls hdhomerun_config and your C program. Create at(1) jobs for unattended recordings. Cron(1) can automate recording the same show every night, week, whatever. The shell script can also generate a log file for each recording with the debug information from hdhomerun_config and whatever other metadata you think might be useful. You now have a bunch of mpeg2ts files on disk to watch using your favorite player software. The hdhomerun can filter by PID, which reduces the network traffic and the file size. You don't want to miss capturing packets, as that generates a nasty glitch, so consider efficiency (speed) when writing the C program. Rtprio reduces the chance of other processes interfering (only the C program needs to be run rtprio). Increasing the size of the network receive buffers helped. I think Silicondust wrote some capture software that might be useful, but by the time they released it I already had my own software working, so I never tried theirs (other than the hdhomerun_config utility).