Subject: Re: MpegTv
To: =?iso-8859-1?Q?P=E5llen?= <pollen@astrakan.hig.se>
From: Antti Kantee <pooka@iki.fi>
List: port-i386
Date: 04/09/2000 00:24:18
On Fri Apr 07 2000 at 22:21:21 +0200, Pållen wrote:

> I heard that someone had a version of mtv that could play sound on
> netbsd. An old non threaded version for freebsd iirc.
> 
> I'd be happy if someone would send that file to me.

I can't remember what issues I had with the FreeBSD version, but for
some reason I got stuck with BSDI version. It can't play audio directly,
but you can kludge around it reasonably by using mpg123, even the sync
is not that bad (just remember to put some buffer). Here's what I use:

babylon5:1:~> alias mp
mtvp -a2 !* | mpg123 -b 2048 -

If for some reason the beginning of the mpeg is corrupted and the sound
goes out of sync, I use this alias to play it from an abitrary location:

babylon5:5:~> alias tp
tail -c !{#:1}000000 `[ -f header ] && echo header` !#:2-$ | mtvp -a2 - | mpg123 -b 1024 -

header is a file created by dd, it contains ten-ish kilobytes of data
from the beginning of the mpeg.

-- 
Antti Kantee <pooka@iki.fi>