With UdpVideo Lite it is possible to use an Android device to receive full screen JPEG streams on port 5678. You can send JPEGs of any dimensions to it, up to 64k in size per frame.
It works beautifully with any 3D goggles for Android, including Google Cardboard and Durovis Dive. Compatible with GStreamer UDP streaming (JPEG only for now).
This is the v0.1, first release of the app. The software is still in plain development, though. Next revision will include H264 decoding, Headtracking and other useful features yet to be disclosed.
The app was submitted as a freeware to Google Play, and should appear soon in the following URL:
play.google.com/store/apps/details?id=com.imersiva.udpvideo
HOW TO STREAM TO UDPVIDEO USING GSTREAMER
Here are two GStreamer scripts that I wrote as a starting point to send video to the app: one 2D (sends just one camera) and one 3D (sends two usb cameras so you can use a goggle and see in true 3D).
First, the 2D version:# GStreamer 2D streaming -- Sends UDP JPEG to specific target IP on port 5678
# (which here is expected to be the UdpVideo Android app)
# example call: ./ststream.sh /dev/video0 192.168.0.10
# written by imerso | imersiva.com
v1="/dev/video0";
ip="192.168.0.10";
if [ "$1" != "" ]; then v1=$1; fi
if [ "$2" != "" ]; then ip=$2; fi
echo Streaming: $v1 to $ip
gst-launch-0.10 \
v4l2src device=$v1 ! video/x-raw-yuv, width=320, height=240, framerate=30/1 ! \
jpegenc quality=55 ! udpsink host=$ip port=5678 sync=false
Finally, the 3D version: # GStreamer 3D streaming -- Sends two side-by-side UDP JPEG to specific target IP on port 5678
# (which here is expected to be the UdpVideo Android app)
# you need two webcams connected to the usb!
# example call: ./ststream.sh /dev/video0 /dev/video1 192.168.0.10
# written by imerso | imersiva.com
v1="/dev/video0";
v2="/dev/video1";
ip="192.168.0.10";
if [ "$1" != "" ]; then v1=$1; fi
if [ "$2" != "" ]; then v2=$2; fi
if [ "$3" != "" ]; then ip=$3; fi
echo Streaming: $v1 and $v2 to $ip
gst-launch-0.10 \
v4l2src device=$v1 ! video/x-raw-yuv, width=320, height=240, framerate=30/1 ! videobox border-alpha=0 ! \
videomixer name=mixme ! \
jpegenc quality=55 ! udpsink host=$ip port=5678 sync=false \
v4l2src device=$v2 ! video/x-raw-yuv, width=320, height=240, framerate=30/1 ! videobox left=-320 ! mixme.
This is just a preliminar revision and more features are being developed.
Feel free to comment and suggest features.
Main page of LinkedBots.net
MAY YOU LOVE to watch 3D VR video collections