Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Oct 2003 07:43:58 +0200
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        Chris Shenton <chris@shenton.org>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: nuppelvideo "nuvrec", mplayer: no audio on 5.1-CURRENT?
Message-ID:  <20031007074358.69db54c3.steve@sohara.org>
In-Reply-To: <86u16mfcmt.fsf@PECTOPAH.shenton.org>
References:  <86ad8fv13g.fsf@PECTOPAH.shenton.org> <20031006075736.2e4ff86c.steve@sohara.org> <86u16mfcmt.fsf@PECTOPAH.shenton.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Mon, 06 Oct 2003 14:24:10 -0400
Chris Shenton <chris@shenton.org> wrote:

CS> Steve O'Hara-Smith <steve@sohara.org> writes:
CS> 
CS> > On Sun, 05 Oct 2003 17:14:27 -0400
CS> > 	You don't need to do that - you can just set the BKTR_FREQUENCY
CS> > environment variable and nuvrec will tune to that frequency (this
CS> > works for ffmpeg too BTW) - you can also set BKTR_DEV to select the
CS> > input channel.
CS> 
CS> Huh, I don't recall seeing this in the docs and READMEs. I'll RTFM

	Yep - it's missing from the docs. I'm open to suggestions as to
where to document it (both for nuppelvideo and ffmpeg) apart from the
README on ftp.sohara.org :)

CS> again but do you specify the "frequency" or the channel number?  The

	Frequency - I never got channel numbers to do anything useful but
I can find everything by frequency so that's what I implemented. 

CS> Yes, exactly. Can you show me your "vcrdvd" script, or whatnot?

	It's a bit rough around the edges, at the moment and mplex just
barfed on me in a test run so I'm giving tcmplex a whirl.  My straight
vcr script (just makes a VOB that isn't quite DVD compliant) works fine
so I've attached it. When I have the DVD one reliable, clean and portable
I'll stick it on ftp.sohara.org. You'll want to replace the contents of
the stn2freq hash and change the default station.

	Enjoy.

-- 
C:>WIN                                      |     Directable Mirrors
The computer obeys and wins.                |A Better Way To Focus The Sun
You lose and Bill collects.                 |  licenses available - see:
                                            |   http://www.sohara.org/

[-- Attachment #2 --]
#!/usr/bin/perl

my %stn2freq = (
	'ned1' => '216.00',
	'ned2' => '184.00',
	'ned3' => '192.00',
	'rtl4' => '224.00',
	'rtl5' => '232.00',
	'sbs6' => '280.00',
	'yorin' => '240.00',
	'v8' => '672.00',
	'net5' => '272.00',
	'upc' => '176.00',
	'a2' => '264.00',
	'a1' => '256.00',
	'at5' => '512.00',
	'nn9' => '752.00',
	'vrt' => '200.00',
	'ketnet' => '208.00',
	'ngc' => '544.00',
	'enews' => '528.00',
	'tmf' => '288.00',
	'mtv' => '768.00',
	'box' => '560.00',
	'ard1' => '720.00',
	'zdf' => '728.00',
	'bbc1' => '784.00',
	'bbc2' => '792.00',
	'cnn' => '248.00',
	'tv5' => '568.00',
	'rai1' => '520.00',
	'arte' => '536.00',
	'tve' => '656.00',
	'trti' => '632.00',
	'rtm1' => '664.00',
	'canal1' => '384.00',
	'canal2' => '552.00',
	'canal+' => '607.25',
	'video' => '594.00',
);
my $stn = lc (shift @ARGV) || 'upc';
my $duration = (shift @ARGV) || 60;
my $name = (shift @ARGV) || $stn;
$name =~ s/\s+/_/g;
$name =~ s/:/_/g;

my $freq = $stn2freq{$stn};
system '/usr/sbin/mixer vol 0';
system '/usr/sbin/mixer line 100';
system '/usr/sbin/mixer igain 100';
system '/usr/sbin/mixer =rec line';
$ENV{'BKTR_FREQUENCY'} = $freq;
$ENV{'BKTR_DEV'} = 1;
chdir '/video';
exec '/usr/local/bin/ffmpeg', '-s', '768x576', '-interlace', '-tvstd', 'pal', '-vcodec', 'mpeg2video', '-b', 4800, '-acodec', 'mp2', '-ac', '2', '-ab', '224', '-f', 'vob', '-t', 60*$duration, '-y', "$name.vob";

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031007074358.69db54c3.steve>