Browse Source

Cambios menores

master
Luis 1 month ago
parent
commit
a3fa30ce17
  1. 12
      .local/bin/grabar.sh

12
.local/bin/grabar.sh

@ -1,11 +1,13 @@
#!/bin/sh
# Micrófono Webcam [-i sysdefault:CARD=Camera], micrófono por defecto [-i default]
screencast() { ffmpeg \
-f x11grab \
-r 25 \
-s $(xdpyinfo | grep dimensions | awk '{print $2;}') \
-i $DISPLAY \
-f alsa -i default \
-f alsa -i sysdefault:CARD=Camera \
-c:v libx264 -preset ultrafast \
-c:a libvorbis \
"$HOME/screencast-$(date '+%y%m%d-%H%M%S').mp4" &
@ -26,15 +28,19 @@ video() { ffmpeg \
webcam() { ffmpeg \
-f v4l2 \
-r 25 \
-s 640x480 \
-i /dev/video0 \
-video_size 1280x720 \
-f alsa -i sysdefault:CARD=Camera \
-c:v libx264 -preset ultrafast \
-c:a libvorbis \
"$HOME/webcam-$(date '+%y%m%d-%H%M%S').mp4" &
echo $! > /tmp/recordingpid
herbe "[·] Webcam"
}
audio() { ffmpeg \
-f alsa -i default \
-f alsa -i sysdefault:CARD=Camera \
-c:a libvorbis \
"$HOME/audio-$(date '+%y%m%d-%H%M%S').ogg" &
echo $! > /tmp/recordingpid

Loading…
Cancel
Save