Streaming video from N800

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Planet Maemo today there was an article by Daniel Gentleman
(aka thoughtfix) about the lack of camera functionality on the N800,
together with a link
<http://web.media.mit.edu/%7Elifton/snippets/n800_to_sl/> to streaming
video off the N800, which, alas, didn't quite work for me.

But with a little experientation:

0) Install all the gstreamer stuff as per link;

1) On the platform (172.31.0.245), to a Linux box (172.31.0.244), the
   following (slightly modified from n800_to_sl link), 
   as ~/bin/rtpstream.sh

#!/bin/sh

VPORT=5434
APORT=5432
HOST=${1:-172.31.0.244}

gst-launch-0.10 v4l2src ! \
 video/x-raw-yuv,width=176,height=144,framerate=\(fraction\)15/1 ! \
 hantro4200enc stream-type=1 profile-and-level=1001 ! \
 video/x-h263,framerate=\(fraction\)15/1 ! rtph263ppay mtu=1438 ! \
 udpsink host=$HOST port=$VPORT dsppcmsrc ! queue ! \
 audio/x-raw-int,channels=1,rate=8000 ! mulawenc ! rtppcmupay mtu=1438 ! \
 udpsink host=$HOST port=$APORT

2) On the Linux box, the .sdp file from the n800_to_sl link, with host
   address, i.e. /tmp/n800.sdp

v=0
o=- 37 614155991 IN IP4 127.0.0.0
s=QuickTime
t=0 0
a=range:npt=now-
m=audio 5432 RTP/AVP 0
c=IN IP4 172.31.0.245
b=AS:63
m=video 5434 RTP/AVP 96
c=IN IP4 172.31.0.245
a=rtpmap:96 H263-2000/90000
a=fmtp:96  
a=cliprect:0,0,144,176
a=framesize:96 176-144

3) On the N800, pop out the camara and run:

$ ~/bin/rtpstream.sh # assume on PATH, +x etc.

4) On Linux box:

$ vlc /tmp/n800.sdp

5) Watch in amazement.

Can't wait for SIP compatible video from Rtcomm ... please. 

-jh



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux