Autor Tópico: [8.04] RecordMyDesktop Sem Som  (Lida 1484 vezes)

Offline Kan

  • Usuário Ubuntu
  • *
  • Mensagens: 698
  • Ubuntu beta-tester
    • Ver perfil
[8.04] RecordMyDesktop Sem Som
« Online: 05 de Novembro de 2008, 20:15 »
Será que é só o meu RecordMyDesktop que não grava com som?
Tentei o script abaixo, mas também não obtive sucesso:
Código: [Selecionar]
#!/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á
Amicus Plato, sed magis amica veritas

Offline elvisricardo

  • Usuário Ubuntu
  • *
  • Mensagens: 164
    • Ver perfil
Re: [8.04] RecordMyDesktop Sem Som
« Resposta #1 Online: 11 de Novembro de 2008, 21:12 »
Bom amigo eu nunca usei esse programa... mas... não tem nenhuma opção nele apara ativar o som ???
já viu se seu microfone esta instalado???  se o volume dele não esta baixo ou ele esta desabilitado ou bloaqueado ????
Ryuzaki L usa Ubunbu linux :D

Offline Kan

  • Usuário Ubuntu
  • *
  • Mensagens: 698
  • Ubuntu beta-tester
    • Ver perfil
Re: [8.04] RecordMyDesktop Sem Som
« Resposta #2 Online: 16 de Novembro de 2008, 20:30 »
não tem nenhuma opção nele apara ativar o som?

Sim.

já viu se seu microfone esta instalado?

Sim, na verdade a questão som que falo é por exemplo eu colocar uma música tocando no Audacious e ao gravar o desktop pelo programa, o vídeo final ficar sonoro. Entende?

[]'s e obrigado pela atenção
Amicus Plato, sed magis amica veritas