Answer the question
In order to leave comments, you need to log in
How to pass coordinates to capture video from X server interactively to ffmpeg?
I borrowed the command from here.
ffmpeg -f x11grab -s $(slop --noopengl --format "%w"x"%h") -r 60 -i :0.0 -qscale 0 -vcodec huffyuv $(date +"%d.%m.%Y_%H:%M:%S").avi
ffmpeg -f x11grab -s 800x600 -r 60 -i :0.0+200,100 -qscale 0 -vcodec huffyuv $(date +"%d.%m.%Y_%H:%M:%S").avi
Answer the question
In order to leave comments, you need to log in
try xrectsel
under ffmpeg finished it yourself
#!/bin/bash
NAME="$(date +%d.%m.%Y_%H%M%S).gif"
DEFAULT_DURATION=10
echo -ne "Select area which will be recorded"
AREA="$(xrectsel)"
IFS=+ read DIM X Y <<< $AREA
IFS=x read W H <<< $DIM
echo ""
#read -p "Enter recording duration in seconds: " USERDUR
# Duration and output file
if [ $USERDUR -gt 0 ]; then
DURATION=$USERDUR
else
DURATION=$DEFAULT_DURATION
fi
echo "$DURATION sec. Recording has started..."
byzanz-record --cursor --duration=$DURATION --x=$X --y=$Y --width=$W --height=$H /tmp/"$NAME"
echo "Recording has ended."
if [ -f /tmp/"$NAME" ]; then
xviewer /tmp/"$name"
fi
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question