Video/Audio Streaming mit dem Nokia N810

Facts

Audiostream

gst-launch dsppcmsrc \
  ! audio/x-raw-int,channels=1,rate=8000 \
  ! audioconvert \
  ! speexenc \
  ! oggmux \
  ! shout2send ip=ba.unserabschluss.de port=9000 password=password streamname=n810.ogg description="Audio Stream N810" mount=n810.ogg

Kram

Schema

    v4lsrc  | raw-audio(UDPsink :10002) - (UDPsrc n810:10002) Audio - vorbisenc |
N810        |                                                                   |- |  PC
  dsppcmsrc |     h263 (UDPsink :10001) - (UDPsrc n810:10001) Video - theoraenc |  |
                                                                                   |
                                             --------------------------------------|
                                             | 
                                          oggmuxx
                                             | 
                                         shout2send

Server auf den N810

#!/bin/sh
gst-launch-0.10 \
  v4l2src \
    ! video/x-raw-yuv,width=320,height=240,framerate=\(fraction\)8/1 \
    ! hantro4200enc intra-mode=true stream-type=1 profile-and-level=1001 bit-rate=500 \
    ! video/x-h263,framerate=\(fraction\)8/1 \
    ! tcpserversink port=10002 \
  dsppcmsrc \
    ! queue \
    ! audio/x-raw-int,channels=1,rate=8000 \
    ! mulawenc \
    ! tcpserversink port=10001

Mit RTP / SDP-File ... (alter Ansatz)

 16 #gst-launch-0.10 v4l2src ! \
 17 #video/x-raw-yuv,width=320,height=240,framerate=\(fraction\)8/1 ! \
 18 #hantro4200enc intra-mode=true stream-type=1 profile-and-level=1001 bit-rate=250 ! \
 19 #video/x-h263,framerate=\(fraction\)8/1 ! rtph263ppay mtu=1438 ! \
 20 #udpsink host=$HOST port=$VPORT dsppcmsrc ! queue ! \
 21 #audio/x-raw-int,channels=1,rate=8000 ! mulawenc ! rtppcmupay mtu=1438 ! \
 22 #udpsink host=$HOST port=$APORT


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 127.0.0.1
b=AS:63
m=video 5434 RTP/AVP 96
c=IN IP4 127.0.0.1
a=rtpmap:96 H263-2000/90000
a=fmtp:96
a=cliprect:0,0,144,176
a=framesize:96 176-144

gst-launch gnomevfssrc location=file:///home/yvesf/n810.sdp ! sdpdemux name=sdpd debug=true \{ oggmux name=mux ! shout2send ip=ba.unserabschluss.de port=9000 password=asd streamname=bastream1.ogg description="BA V/A Stream 1" mount=bastream1.ogg \} \{ sdpd. ! application/x-rtp,media=video ! decodebin ! videorate ! video/x-raw-yuv,width=320,height=240,framerate=\(fraction\)8/1 ! theoraenc ! mux. \} \{ sdpd. ! application/x-rtp,media=audio ! decodebin ! audio/x-raw-int,channels=1,rate=8000 ! audioconvert ! vorbisenc ! queue ! mux. \}