I am able to use ffmpeg to capture a screen video and have read the docs for ffmpeg and elsewhere online, but I'm still trying to find a way to capture the audio from the audio output port of the computer with ffmpeg, not the audio input from a microphone, while capturing the screen video. Is there an easy way to do this without having to cross connect the physical connections? I suppose I could use an audio splitter to pass the audio output to the external speakers and the audio input, but that would involve a little external wiring. I have tried to use what the docs say, but it doesn't work. I am using Debian Linux 11.7 and PulseAudio.
This is what I'm currently using to capture just the video part:
My monitor uses 1920x1200@60 fps. I am using an Intel i5 quad-core CPU running at 3.4 GHz. I have 16 GB of physical RAM.
I'd like to be able to record the audio from an existing local video as it is playing. I will also need to be able to record audio from a microphone input too so I can make tutorial videos.
Signed,
Matthew Campbell
This is what I'm currently using to capture just the video part:
Code:
#!/bin/bash
#
# Captures a screen recording.
if [ -z "$1" ] || [ -z "$2" ]; then
echo "Usage cap <output frame rate> <filename.ext>"
echo "The type of video file will be determined by the extension."
exit 1
fi
# Using 15 fps should be sufficient for a tutorial video.
# These values were tested and proven using a .vob video file.
# BITRATE 15M for 5-15 fps
# BITRATE 16M for 20-30 fps
BITRATE="16M"
# BUFSIZE 10M for 5-30 fps
BUFSIZE="10M"
FRAMERATE="$1"
# PROBESIZE 15M for 5-30 fps
PROBESIZE="30M"
PROG="/usr/bin/ffmpeg"
SYNC="/usr/bin/sync"
"$PROG" -f x11grab -r 60 -probesize "$PROBESIZE" -video_size 1920x1200 -i :0.0 -r "$FRAMERATE" -b:v "$BITRATE" -minrate "$BITRATE" -maxrate "$BITRATE" -bufsize "$BUFSIZE" "$2"
"$SYNC"
exit 0
# EOF
My monitor uses 1920x1200@60 fps. I am using an Intel i5 quad-core CPU running at 3.4 GHz. I have 16 GB of physical RAM.
I'd like to be able to record the audio from an existing local video as it is playing. I will also need to be able to record audio from a microphone input too so I can make tutorial videos.
Signed,
Matthew Campbell