Monday, June 4, 2012

android ip webcam v4l2loopback test

defualt setting did not work on my lubuntu laptop.
but with some searching on the web i found a work around for the video im not working on the audio workaround yet. 6moy2012.


workaround video tested on chease google chrome chat,
and other apps etc...


xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

https://github.com/umlaeute/v4l2loopback/wiki/Mplayer


producer


again a dummy producer, using gstreamer
gst-launch -v videotestsrc ! "video/x-raw-yuv,width=640,height=360,framerate=30/1,format=(fourcc)I420" ! v4l2sink device=/dev/video1



#refresh google crome to gstreamer test patern.
#test worked for me. 6moy2012.

zzzzzzzzzzzzzzzzzzzzzzzzzz

consumer


minimal mplayer playback:

$ mplayer tv:// -tv device=/dev/video1

or use chease and lode dummy video device.

zzzzzzzzzzzzzzzzzzzzzzzz

laptop cam share ass dummy video device.
dummy producer, using gstreamer
dummy:

$ gst-launch -v v4l2src ! videorate ! "video/x-raw-yuv,width=320,height=240,framerate=5/1" ! v4l2sink device=/dev/video1


WORKED shares camera, dummy loopback device.

####



###################

iphone"

$ gst-launch souphttpsrc location=192.168.1.75:8080/strm ! jpegdec ! ffmpegcolorspace ! v4l2loopback device=/dev/video1

---------------------

lenovo a1 tablet???

$ gst-launch souphttpsrc location="http://192.168.1.75:8080/videofeed" ! jpegdec ! ffmpegcolorspace ! v4l2sink device=/dev/video1



consumer

minimal mplayer playback

mplayer tv:// -tv device=/dev/video1


-------------------------

ipwebcam-gst , https://github.com/bluezio/ipwebcam-gst/
download: shell scrypt, https://github.com/bluezio/ipwebcam-gst/


-- pavucontrol
The sound recording device (input)
for your videochat application should be changed to the
'Monitor of Null Sink' using pavucontrol.


--

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
https://github.com/umlaeute/v4l2loopback/wiki/Mplayer

producer

again a dummy producer, using gstreamer
gst-launch -v videotestsrc ! "video/x-raw-yuv,width=640,height=360,framerate=30/1,format=(fourcc)I420" ! v4l2sink device=/dev/video1


#refresh google crome to gstreamer test patern.
#test worked for me. 6moy2012.
zzzzzzzzzzzzzzzzzzzzzzzzzz
consumer

minimal mplayer playback:
$ mplayer tv:// -tv device=/dev/video1

or use chease and lode dummy video device.
zzzzzzzzzzzzzzzzzzzzzzzz
laptop cam share as dummy video device.
dummy producer, using gstreamer
dummy:
$ gst-launch -v v4l2src ! videorate ! "video/x-raw-yuv,width=320,height=240,framerate=5/1" ! v4l2sink device=/dev/video1

WORKED shares camera, dummy loopback device.
####

###################
iphone"

$ gst-launch souphttpsrc location=192.168.1.75:8080/strm ! jpegdec ! ffmpegcolorspace ! v4l2loopback device=/dev/video1


---------------------

lenovo a1 tablet???

$ gst-launch souphttpsrc location="http://192.168.1.75:8080/videofeed" ! jpegdec ! ffmpegcolorspace ! v4l2sink device=/dev/video1




consumer


minimal mplayer playback

mplayer tv:// -tv device=/dev/video1


-------------------------
ipwebcam-gst , https://github.com/bluezio/ipwebcam-gst/
download: shell scrypt, https://github.com/bluezio/ipwebcam-gst/


-- pavucontrol
The sound recording device (input)
for your videochat application should be changed to the
'Monitor of Null Sink' using pavucontrol.


--

mkv vlog on an acer aod d255e netbook laptop

matroska mkv vlog muxing with gstreamer.

tested on lubuntu linux.



#!/bin/bash
#
# test auto vlog1 [ naming] scrypt and capture by rooki wardcraft chobo.
##############################
##ffmpeg -r 15 -b 800k -s 640x400 -f video4linux2 -i /dev/video0 \
## -vcodec msmpeg4v2 -f alsa -ac 2 -vol 512 -i hw:0,0 vlog111div3-vol512_alsa.avi
##
####
#gs mkv 640x480 or small 320x240
###############################
cd /home/username/vlog4gs-mkv &&
sleep 1
pwd &&

sleep 2 &
DIR=/home/username/vlog4gs-mkv

touch vv0.mkv &&

gst-launch v4l2src ! videorate ! video/x-raw-yuv,width=320,height=240,framerate=5/1 ! \
ffmpegcolorspace ! \
tee name="tscreen" ! queue ! autovideosink tscreen. \
! queue ! videorate ! video/x-raw-yuv,framerate=25/2 ! \
theoraenc bitrate=500 ! queue ! matroskamux name=mux alsasrc ! queue ! audioconvert ! vorbisenc quality=0.5 \
! queue ! queue ! mux. mux. ! queue ! tee name=teefile ! queue \
! filesink location=vv0.mkv teefile. &&


sleep 2

for old in `ls ~/vlog4gs-mkv/*0.mkv` ; do today=~/vlog4gs-mkv/mkv_external.mic.video.`date +%F+Hour%H+Min%M+Sec%S`-vlog0video0.MKV ; mv $old $today; done



blogger webpage formatting will clobber the script a little.

ogm acer aod d255e laptop mic gstreamer vlog

getting gstreamer and laptop mic to play well together.
script below works on my acer laptop running lubuntu.

internal mic works but is a lot weeker sounding then a external anolog mic.

mic can be boosted a liitle by gnome alsa mixer.


#!/bin/bash
#
# test auto vlog1 [ naming] scrypt and capture by rooki chobo.
##############################
##ffmpeg -r 15 -b 800k -s 640x400 -f video4linux2 -i /dev/video0 \
## -vcodec msmpeg4v2 -f alsa -ac 2 -vol 512 -i hw:0,0 vlog111div3-vol512_alsa.avi
##
###############################
cd /home/username/vlog2gs-no-timestamp &&
sleep 1
pwd &&

sleep 2 &
DIR=/home/username/vlog2gs-no-timestamp

touch vv0.ogg &&

gst-launch v4l2src ! videorate ! video/x-raw-yuv,width=320,height=240,framerate=5/1 ! \
ffmpegcolorspace ! \
tee name="tscreen" ! queue ! autovideosink tscreen. \
! queue ! videorate ! video/x-raw-yuv,framerate=25/2 ! \
theoraenc bitrate=400 ! queue ! oggmux name=mux alsasrc device=hw 0 ! queue ! audioconvert ! vorbisenc quality=0.2 \
! queue ! queue ! mux. mux. ! queue ! tee name=teefile ! queue \
! filesink location=vv0.ogg teefile. &&


sleep 2

for old in `ls ~/vlog2gs-no-timestamp/*0.ogg` ; do today=~/vlog2gs-no-timestamp/ogm_laptop.mic.video.`date +%F+Hour%H+Min%M+Sec%S`-vlog0video0.OGM ; mv $old $today; done




blogger web page formating will clobber the script layout.