~npisanti/oltremateria

aaa5dbce0378cc7e1a6095b78eb7793fd97bd8bf — Nicola Pisanti 2 months ago 28fd147
cleans up screencast
1 files changed, 1 insertions(+), 19 deletions(-)

M bin/start_screencast.sh
M bin/start_screencast.sh => bin/start_screencast.sh +1 -19
@@ 1,24 1,6 @@
#!/bin/bash

#SCREENCAST_WIDTH="1280"
#SCREENCAST_HEIGHT="720"
#SCREENCAST_X=320
#SCREENCAST_Y=135

SCREENCAST_WIDTH=480
SCREENCAST_HEIGHT=800
SCREENCAST_X=0
SCREENCAST_Y=0

if [ ! -z "$4" ]; then
    SCREENCAST_X="$1"
    SCREENCAST_Y="$2"
    SCREENCAST_WIDTH="$3"
    SCREENCAST_HEIGHT="$4"
fi

S_RESO="$SCREENCAST_WIDTHx$SCREENCAST_HEIGHT"
S_OFF="$SCREENCAST_X,$SCREENCAST_Y"
#ffmpeg -y -f x11grab -s 1920x1080 -i :0.0+0,0 -vcodec libx264 -threads 2 $HOME/Videos/screencast_temp.mkv &

ffmpeg -y -f x11grab -s 1280x720 -i :0.0+320,130 -vcodec libx264 -threads 2 $HOME/Videos/screencast_temp.mkv &