ffmpeg/precision
This commit is contained in:
parent
3ba4859231
commit
657636b9c4
1 changed files with 25 additions and 0 deletions
25
sh/ffmpeg.sh
25
sh/ffmpeg.sh
|
@ -38,6 +38,18 @@ usb-Generic_Blue_Microphones_2051BAB04XY8-00.analog-stereo"
|
|||
for argument in "${@}"; do echo "${argument}"; done
|
||||
}
|
||||
|
||||
rwx_ffmpeg_input_dell_precision() {
|
||||
local device="alsa_input.\
|
||||
pci-0000_00_1f.3.analog-stereo"
|
||||
set -- \
|
||||
-f "pulse" \
|
||||
-i "${device}" \
|
||||
-ac "2" \
|
||||
-ar "48000"
|
||||
local argument
|
||||
for argument in "${@}"; do echo "${argument}"; done
|
||||
}
|
||||
|
||||
rwx_ffmpeg_input_file() {
|
||||
local file="${1}"
|
||||
local from="${2}"
|
||||
|
@ -130,6 +142,19 @@ rwx_ffmpeg_output_video_slow() {
|
|||
# │ ffmpeg │ record │
|
||||
# ╰────────┴────────╯
|
||||
|
||||
rwx_ffmpeg_record_hdmi_precision() {
|
||||
local file="${1}"
|
||||
[ -n "${file}" ] || return
|
||||
set -- \
|
||||
$(rwx_ffmpeg_input_hdmi) \
|
||||
$(rwx_ffmpeg_input_dell_precision) \
|
||||
$(rwx_ffmpeg_output_video_fast) \
|
||||
$(rwx_ffmpeg_output_audio_fast) \
|
||||
$(rwx_ffmpeg_output_file "${file}")
|
||||
echo "${@}"
|
||||
ffmpeg "${@}"
|
||||
}
|
||||
|
||||
rwx_ffmpeg_record_hdmi_yeti() {
|
||||
local file="${1}"
|
||||
[ -n "${file}" ] || return
|
||||
|
|
Loading…
Reference in a new issue