Hi,
I am try to stream video data from one LeopardBoard 368 to another LeopardBoard 368, using the Belkin F5D7050A wireless dongle. My problem is that the client's network hang a few seconds after my server code have been executed. Below shows the code I am using.
Thanks for your help.
My Server code:
PORT=5000
CLIENT_IP=10.42.43.1
gst-launch v4l2src always-copy=FALSE ! video/x-raw-yuv,format=\(fourcc\)NV12, width=640, height=480, \
framerate=\(fraction\)30/1 ! queue ! dmaiaccel ! dmaienc_h264 ratecontrol=1 encodingpreset=2 maxbitrate=400000 targetbitrate=200000 ! rtph264pay ! \
udpsink port=$PORT host=$CLIENT_IP
My Client code:
fbset -disable
gst-launch udpsrc port=$PORT ! 'application/x-rtp, media=(string)video, clock-rate=(int)90000, \
encoding-name=(string)H264, profile-level-id=(string)640028, sprop-parameter-sets=(string)"J2QAKK2EC\
SZuIzSQgSTNxGaSECSZuIzSQgSTNxGaSECSZuIzSQgSTNxGaSEFWuvX1+T+vyfXrrVQgq116+vyf1+T69daq0BQHsg\=\,KO48sA\=\=", \
ssrc=(guint)2963543696, payload=(int)96, clock-base=(guint)872346493, seqnum-base=(guint)43276' ! rtph264depay ! \
dmaidec_h264 ! TIDmaiVideoSink accelFrameCopy=true videoOutput=composite videoStd=D1_NTSC
I create a ad-hoc network by editing the file shown below.
At /etc/init.d/networkiwconfig wlan0 mode ad-hoc; iwconfig wlan0 essid 'test'; iwconfig wlan0 key 0123456789;
At /etc/network/interfacesauto wlan0iface wlan0 inet staticaddress 10.42.43.1netmask 255.255.255.0
Regards,
Irwin Liew