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.