Showing posts with label acer. Show all posts
Showing posts with label acer. Show all posts

Monday, June 4, 2012

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.