diff options
Diffstat (limited to 'ffrec')
-rwxr-xr-x | ffrec | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -29,7 +29,7 @@ screencast() { \ -f alsa -thread_queue_size 1024 -i default \ -c:v h264 \ -crf 0 -preset ultrafast -c:a aac \ - "$HOME/screencast-$(date '+%y%m%d-%H%M-%S').mp4" & + "$HOME/screencast-$(date '+%y%m%d-%H%M%S').mp4" & echo $! > /tmp/recordingpid } @@ -39,7 +39,7 @@ video() { ffmpeg \ -s "$(getdim)" \ -i "$DISPLAY" \ -c:v libx264 -qp 0 -r 30 \ - "$HOME/video-$(date '+%y%m%d-%H%M-%S').mkv" & + "$HOME/video-$(date '+%y%m%d-%H%M%S').mkv" & echo $! > /tmp/recordingpid } @@ -47,7 +47,7 @@ webcamhidef() { ffmpeg \ -f v4l2 \ -i /dev/video0 \ -video_size 1920x1080 \ - "$HOME/webcam-$(date '+%y%m%d-%H%M-%S').mkv" & + "$HOME/webcam-$(date '+%y%m%d-%H%M%S').mkv" & echo $! > /tmp/recordingpid } @@ -55,7 +55,7 @@ webcam() { ffmpeg \ -f v4l2 \ -i /dev/video0 \ -video_size 640x480 \ - "$HOME/webcam-$(date '+%y%m%d-%H%M-%S').mkv" & + "$HOME/webcam-$(date '+%y%m%d-%H%M%S').mkv" & echo $! > /tmp/recordingpid } @@ -64,19 +64,19 @@ audio() { \ ffmpeg \ -f alsa -i default \ -c:a flac \ - "$HOME/audio-$(date '+%y%m%d-%H%M-%S').flac" & + "$HOME/audio-$(date '+%y%m%d-%H%M%S').flac" & echo $! > /tmp/recordingpid } askrecording() { \ - choice=$(printf "video\\nvideo selected\\naudio\\nscreencast\\nwebcam\\nwebcam (hi-def)" | dmenu -i -c -l 6 -p "Record:") + choice=$(printf "Video\\nVideo selected\\nAudio\\nScreencast\\nWebcam\\nWebcam (hi-def)" | dmenu -i -c -l 6 -p "Record:") case "$choice" in - video) video;; + Video) video;; *selected) videoselected;; - audio) audio;; - screencast) screencast;; - webcam) webcam;; - "webcam (hi-def)") webcamhidef;; + Audio) audio;; + Screencast) screencast;; + Webcam) webcam;; + "Webcam (hi-def)") webcamhidef;; esac } @@ -97,7 +97,7 @@ videoselected() -video_size "$W"x"$H" \ -i :0.0+"$X,$Y" \ -c:v libx264 -qp 0 -r 30 \ - "$HOME/box-$(date '+%y%m%d-%H%M-%S').mkv" & + "$HOME/box-$(date '+%y%m%d-%H%M%S').mkv" & echo $! > /tmp/recordingpid } |