









|
[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
[NMLUG] Video Server
I ran some quick tests to see how well streaming would work with simple
tools.
Server:
Dish Network Reciever
PVR-350
AMD64 3500+
1GB RAM
Client:
Doesn't really matter, decoding isn't that processor intensive.
They are connected via 802.11g wireless
On the server:
mkfifo thevideo;cat thevideo | nc -l -p 8080 &; mencoder /dev/video -oac
mp3lab -vf scale -zoom -xy 400 -ovc xvid -xvidencopts bitrate=300 -ofps 10
-o thevideo
On the client:
mkfifo thevideo; nc server 8080 > thevideo&;mplayer thevideo
nc is netcat, "the TCP/IP swiss army knife"
mkfifo creates a FIFO file
mencoder is part of the mplayer project for encoding video
The server line creates a fifo file called thevideo. Then it dumps the
contents of that file to netcat which listens on port 8080 for a connection.
mencoder takes /dev/video (mpeg2 encoded audio/video from the win-tv card)
and encodes it to mp3 audio w/ xvid video at 300kb/sec, resized to 400x300,
at 10fps and dumps it to thevideo.
The client then connects using netcat and dumps the data to a fifo, and
mplayer is told to play the fifo.
When you quit mplayer, all the streams are automatically closed on both
client and server.
Using jnettop or tcptrack, you can see that this stream takes about 80KB/sec
avg (about 768kbit). The low bitrate means that when there's alot of
motion, the quality degrades. Slowly moving or still images will be very
clear. Size, fps and bitrate can be adjusted based on available bandwidth.
I'm re-emerging mplayer w/ theora and vorbis support to see how it performs
vs xvid and will let you guys know.
Hope this helps you,
Matthew
>From: Aaron Birenboim <aaron@birenboim.com>
>Reply-To: aaron@birenboim.com, New Mexico Linux Users Group Mail
>List <nmlug@nmlug.org>
>To: New Mexico Linux Users Group Mail List <nmlug@nmlug.org>
>Subject: RE: [NMLUG] Video Server
>Date: Sun, 15 Jan 2006 10:11:59 -0700
>
>On Thu, 2006-01-12 at 13:28, MATTHEW BOWIE wrote:
> > I don't have any experience with those particular cameras, but the main
> > problem is going to be getting the data into linux. Most IP video
>solutions
> > come w/ proprietary, Windows only software for stream capture.
>
>I have a plain old NTSC camera I'd like to get on-line.
>Any suggestions for linux-friendly frame/video capture boards?
>
>What might I need to use that ogg video server?
>--
>Aaron Birenboim \ I have an inferiority complex,
>Albuquerque, NM, USA \ but its not a very good one.
>aaron at birenboim.com \
>http://aaron.birenboim.com \
>
>_______________________________________________
>NMLUG mailing list
>NMLUG@nmlug.org
>http://www.nmlug.org/mailman/listinfo/nmlug
|
|