Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Users

Streaming video from N800

 

 

Maemo users RSS feed   Index | Next | Previous | View Threaded


jh+maemo at daria

Aug 19, 2007, 7:56 AM

Post #1 of 4 (1699 views)
Permalink
Streaming video from N800

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
_______________________________________________
maemo-users mailing list
maemo-users[at]maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


f.koester at tarent

Aug 20, 2007, 5:13 AM

Post #2 of 4 (1645 views)
Permalink
Re: Streaming video from N800 [In reply to]

Am Sonntag, 19. August 2007 16:56 schrieb Jonathan Hudson:
> 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
> _______________________________________________
> maemo-users mailing list
> maemo-users[at]maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-users

The instructions from
<http://web.media.mit.edu/%7Elifton/snippets/n800_to_sl/> did not work for me
either but yours work - Thanks!

Fabian

--
tarent Gesellschaft für Softwareentwicklung und IT-Beratung mbH

Heilsbachstr. 24, 53123 Bonn    | Poststr. 4-5, 10178 Berlin
fon: +49(228) / 52675-0         | fon: +49(30) / 27594853
fax: +49(228) / 52675-25        | fax: +49(30) / 78709617
durchwahl: +49(228) / 52675-17  | mobil: +49(171) / 7673249

Geschäftsführer:
Boris Esser, Elmar Geese, Thomas Müller-Ackermann
HRB AG Bonn 5168
Ust-ID: DE122264941


quim.gil at nokia

Aug 20, 2007, 9:14 PM

Post #3 of 4 (1645 views)
Permalink
Re: Streaming video from N800 [In reply to]

Hi, this is a good example of a recipe that would make
http://maemo.org/community/wiki/ bigger, better and more useful to the
maemo newcomers.

On Mon, 2007-08-20 at 14:13 +0200, ext Fabian Köster wrote:
> Am Sonntag, 19. August 2007 16:56 schrieb Jonathan Hudson:
> > 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
> > _______________________________________________
> > maemo-users mailing list
> > maemo-users[at]maemo.org
> > https://lists.maemo.org/mailman/listinfo/maemo-users
>
> The instructions from
> <http://web.media.mit.edu/%7Elifton/snippets/n800_to_sl/> did not work for me
> either but yours work - Thanks!
>
> Fabian
>
> _______________________________________________
> maemo-users mailing list
> maemo-users[at]maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-users
--
Quim Gil - http://maemo.org

_______________________________________________
maemo-users mailing list
maemo-users[at]maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


jh+maemo at daria

Aug 21, 2007, 10:30 AM

Post #4 of 4 (1632 views)
Permalink
Re: Streaming video from N800 [In reply to]

Done.

On Tue, 21 Aug 2007 07:14:56 +0300
Quim Gil <quim.gil[at]nokia.com> wrote:

> Hi, this is a good example of a recipe that would make
> http://maemo.org/community/wiki/ bigger, better and more useful to the
> maemo newcomers.
>
_______________________________________________
maemo-users mailing list
maemo-users[at]maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users

Maemo users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.