From 6fbc033536e31be21353bb43628102c8bee699c8 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Sun, 12 May 2019 22:31:09 -0400 Subject: some file re arranging --- Scripts/.config/Scripts/audio_alsa.sh | 24 ------------------- Scripts/.config/Scripts/casting/audio_alsa.sh | 24 +++++++++++++++++++ Scripts/.config/Scripts/casting/screencast.sh | 7 ++++++ Scripts/.config/Scripts/casting/screencast_alsa.sh | 28 ++++++++++++++++++++++ .../.config/Scripts/casting/screencast_pulse.sh | 27 +++++++++++++++++++++ Scripts/.config/Scripts/flash_win.sh | 13 ---------- Scripts/.config/Scripts/screencast.sh | 7 ------ Scripts/.config/Scripts/screencast_alsa.sh | 28 ---------------------- Scripts/.config/Scripts/screencast_pulse.sh | 27 --------------------- 9 files changed, 86 insertions(+), 99 deletions(-) delete mode 100755 Scripts/.config/Scripts/audio_alsa.sh create mode 100755 Scripts/.config/Scripts/casting/audio_alsa.sh create mode 100755 Scripts/.config/Scripts/casting/screencast.sh create mode 100755 Scripts/.config/Scripts/casting/screencast_alsa.sh create mode 100755 Scripts/.config/Scripts/casting/screencast_pulse.sh delete mode 100755 Scripts/.config/Scripts/flash_win.sh delete mode 100755 Scripts/.config/Scripts/screencast.sh delete mode 100755 Scripts/.config/Scripts/screencast_alsa.sh delete mode 100755 Scripts/.config/Scripts/screencast_pulse.sh (limited to 'Scripts') diff --git a/Scripts/.config/Scripts/audio_alsa.sh b/Scripts/.config/Scripts/audio_alsa.sh deleted file mode 100755 index 6d31fa7..0000000 --- a/Scripts/.config/Scripts/audio_alsa.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -#This is the ffmpeg command that the screencast shortcut in i3 will run. - -#Picks a file name for the output file based on availability: - -if [[ -f ~/output.flac ]] - then - n=1 - while [[ -f $HOME/output_$n.flac ]] - do - n=$((n+1)) - done - filename="$HOME/output_$n.flac" - else - filename="$HOME/output.flac" -fi - -#The actual ffmpeg command: - -ffmpeg -y \ - -f alsa -ar 44100 -i hw:1 \ - $filename - diff --git a/Scripts/.config/Scripts/casting/audio_alsa.sh b/Scripts/.config/Scripts/casting/audio_alsa.sh new file mode 100755 index 0000000..6d31fa7 --- /dev/null +++ b/Scripts/.config/Scripts/casting/audio_alsa.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +#This is the ffmpeg command that the screencast shortcut in i3 will run. + +#Picks a file name for the output file based on availability: + +if [[ -f ~/output.flac ]] + then + n=1 + while [[ -f $HOME/output_$n.flac ]] + do + n=$((n+1)) + done + filename="$HOME/output_$n.flac" + else + filename="$HOME/output.flac" +fi + +#The actual ffmpeg command: + +ffmpeg -y \ + -f alsa -ar 44100 -i hw:1 \ + $filename + diff --git a/Scripts/.config/Scripts/casting/screencast.sh b/Scripts/.config/Scripts/casting/screencast.sh new file mode 100755 index 0000000..59183c3 --- /dev/null +++ b/Scripts/.config/Scripts/casting/screencast.sh @@ -0,0 +1,7 @@ +#! /bin/bash + +# record screen using this +ffmpeg -video_size 1920x1080 -framerate 25 -f x11grab -i :0.0 output.mp4 + +# merge audo using this +#ffmpeg -i output.mp4 -itsoffset 0.0 -i aud2.m4a -codec copy -shortest output2.mp4 diff --git a/Scripts/.config/Scripts/casting/screencast_alsa.sh b/Scripts/.config/Scripts/casting/screencast_alsa.sh new file mode 100755 index 0000000..d234689 --- /dev/null +++ b/Scripts/.config/Scripts/casting/screencast_alsa.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +#This is the ffmpeg command that the screencast shortcut in i3 will run. + +#Picks a file name for the output file based on availability: + +if [[ -f ~/output.mkv ]] + then + n=1 + while [[ -f $HOME/output_$n.mkv ]] + do + n=$((n+1)) + done + filename="$HOME/output_$n.mkv" + else + filename="$HOME/output.mkv" +fi + +#The actual ffmpeg command: + +ffmpeg -y \ +-f x11grab \ +-s $(xdpyinfo | grep dimensions | awk '{print $2;}') \ +-i :0.0 \ +-thread_queue_size 1024 \ + -f alsa -ar 44100 -i hw:1 \ + -c:v libx264 -r 30 -c:a flac $filename + #-c:v ffvhuff -r 30 -c:a flac $filename diff --git a/Scripts/.config/Scripts/casting/screencast_pulse.sh b/Scripts/.config/Scripts/casting/screencast_pulse.sh new file mode 100755 index 0000000..4befd85 --- /dev/null +++ b/Scripts/.config/Scripts/casting/screencast_pulse.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +#This is the ffmpeg command that the screencast shortcut in i3 will run. + +#Picks a file name for the output file based on availability: + +if [[ -f ~/output.mkv ]] + then + n=1 + while [[ -f $HOME/output_$n.mkv ]] + do + n=$((n+1)) + done + filename="$HOME/output_$n.mkv" + else + filename="$HOME/output.mkv" +fi + +#The actual ffmpeg command: + +ffmpeg -y \ +-f x11grab \ +-s $(xdpyinfo | grep dimensions | awk '{print $2;}') \ +-i :0.0 \ + -f pulse -ac 1 -ar 44100 -i alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone_REV8-00.analog-stereo \ + -c:v libx264 -r 30 -c:a flac $filename + #-c:v ffvhuff -r 30 -c:a flac $filename diff --git a/Scripts/.config/Scripts/flash_win.sh b/Scripts/.config/Scripts/flash_win.sh deleted file mode 100755 index 0bccca7..0000000 --- a/Scripts/.config/Scripts/flash_win.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -#Flashes the active window. - -#Requires transset-df and a composite manager, like xcompmgr. - -transset-df -a -m 0 -sleep .1 -transset-df -a -x 1 -sleep .1 -transset-df -a -m 0 -sleep .1 -transset-df -a -x 1 diff --git a/Scripts/.config/Scripts/screencast.sh b/Scripts/.config/Scripts/screencast.sh deleted file mode 100755 index 59183c3..0000000 --- a/Scripts/.config/Scripts/screencast.sh +++ /dev/null @@ -1,7 +0,0 @@ -#! /bin/bash - -# record screen using this -ffmpeg -video_size 1920x1080 -framerate 25 -f x11grab -i :0.0 output.mp4 - -# merge audo using this -#ffmpeg -i output.mp4 -itsoffset 0.0 -i aud2.m4a -codec copy -shortest output2.mp4 diff --git a/Scripts/.config/Scripts/screencast_alsa.sh b/Scripts/.config/Scripts/screencast_alsa.sh deleted file mode 100755 index d234689..0000000 --- a/Scripts/.config/Scripts/screencast_alsa.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -#This is the ffmpeg command that the screencast shortcut in i3 will run. - -#Picks a file name for the output file based on availability: - -if [[ -f ~/output.mkv ]] - then - n=1 - while [[ -f $HOME/output_$n.mkv ]] - do - n=$((n+1)) - done - filename="$HOME/output_$n.mkv" - else - filename="$HOME/output.mkv" -fi - -#The actual ffmpeg command: - -ffmpeg -y \ --f x11grab \ --s $(xdpyinfo | grep dimensions | awk '{print $2;}') \ --i :0.0 \ --thread_queue_size 1024 \ - -f alsa -ar 44100 -i hw:1 \ - -c:v libx264 -r 30 -c:a flac $filename - #-c:v ffvhuff -r 30 -c:a flac $filename diff --git a/Scripts/.config/Scripts/screencast_pulse.sh b/Scripts/.config/Scripts/screencast_pulse.sh deleted file mode 100755 index 4befd85..0000000 --- a/Scripts/.config/Scripts/screencast_pulse.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -#This is the ffmpeg command that the screencast shortcut in i3 will run. - -#Picks a file name for the output file based on availability: - -if [[ -f ~/output.mkv ]] - then - n=1 - while [[ -f $HOME/output_$n.mkv ]] - do - n=$((n+1)) - done - filename="$HOME/output_$n.mkv" - else - filename="$HOME/output.mkv" -fi - -#The actual ffmpeg command: - -ffmpeg -y \ --f x11grab \ --s $(xdpyinfo | grep dimensions | awk '{print $2;}') \ --i :0.0 \ - -f pulse -ac 1 -ar 44100 -i alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone_REV8-00.analog-stereo \ - -c:v libx264 -r 30 -c:a flac $filename - #-c:v ffvhuff -r 30 -c:a flac $filename -- cgit v1.2.3