Será que é só o meu RecordMyDesktop que não grava com som?
Tentei o script abaixo, mas também não obtive sucesso:
#!/usr/bin/env bash
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
AUDIO_FILE="/tmp/$$.ogg"
VIDEO_FILE="/tmp/$$.ogv"
OUTPUT_FILE=$1
AUDIO_CMD="parec | sox -t raw -r 44100 -s -2 -c 2 - $AUDIO_FILE"
VIDEO_CMD="recordmydesktop --no-sound -o $VIDEO_FILE"
# Parse through options (especially the double dash)
END_CMD_FLAGS=0
for p in "$@"; do
if [ $p == "--" ]; then
END_CMD_FLAGS=1
elif [ $END_CMD_FLAGS -ne 0 ]; then
VIDEO_CMD="$VIDEO_CMD $p"
fi
done
# If multiple options are passed without the double dash
if [[ $END_CMD_FLAGS -eq 0 && $# -gt 1 ]]; then
echo "RecordMyDesktop with PulseAudio support
$0 OUTPUT_FILENAME.ogg [ -- OPTIONS ]
Include options for recordmydesktop after the double dash
"
exit 1
fi
echo "Audio command: $AUDIO_CMD"
echo "Video command: $VIDEO_CMD"
echo "Output file: $OUTPUT_FILE"
# Prompt to ask file overwrite
if [ -a $OUTPUT_FILE ]; then
read -p "$OUTPUT_FILE already exists. Overwrite [y/N] "
if [[ ! $REPLY =~ ^[yY] ]]; then
exit 0
fi
fi
# Executing of commands
bash -c "${AUDIO_CMD}" &
bash -c "$VIDEO_CMD"
# Kill parec
kill -s int %1
echo "Audio and video files created. Muxing with oggz-tools.."
oggzmerge -o $OUTPUT_FILE $AUDIO_FILE $VIDEO_FILE
rm $AUDIO_FILE
rm $VIDEO_FILE
echo "$0 done. Your file $OUTPUT_FILE has been created."
# end of file
Alguém faz gravações com o RecordMyDesktop com som?
Grato desde já