Enviado em 21/09/2011 - 16:05h
Olá a todos!#!/bin/bash
zenity --info --title "Converter XtoAVI" --window-icon '/usr/share/pixmaps/convertxtoavi.png' --text "Bem-vindo ao Converter XtoAVI!
Selecione o arquivo a ser convertido"
input=`zenity --file-selection --multiple --title "Selecione um arquivo rmvb"`
if [ $? = 1 ];
then zenity --error --title "Converter XtoAVI" --text "Conversão cancelada" & exit
fi
clear
zenity --question --title "Converter XtoAVI" --text "A conversão irá criar um arquivo .avi no mesmo diretório do arquivo a ser convertido
Deseja prosseguir com a conversão?"
if [ $? = 1 ];
then zenity --error --title "Convert XtoAVI" --text "Conversão cancelada" & exit
fi
sleep 1s
mencoder "$input" -ovc xvid -oac mp3lame -xvidencopts fixed_quant=4 -o "$input"~.avi | awk -vRS="\r" '$1 ~ /Pos/ {gsub(/Pos:/," ");gsub(/%\)/," ");gsub(/ \(/," ");print $3"\n#Position :\\t"$1"\\nFrame :\\t"$2"\\nPorcentagem concluída :\\t"$3"%\\nFrame Rate :\\t"$4"\\nTempo Restante :\\t"$6; fflush();}' | zenity --progress --title "Converter XtoAVI" --auto-close
if [ $? = 1 ];
then zenity --error --title "Converter XtoAVI" --text "Conversão cancelada" & exit
fi
sleep 1s
zenity --info --title "Convert XtoAVI" --text "Conversão terminada!"
exit
Criar entrada (menuentry) ISO no Grub
Como gerar qualquer emoji ou símbolo unicode a partir do seu teclado
Instalar o VIM 9.1 no Debian 12
Como saber o range de um IP público?
Muitas dificuldades ao instalar distro Linux em Notebook Sony Vaio PCG-6131L (VPCEA24FM)
Slackpkg+ (Slackpkg Plus) está de volta!
Como dividir duas janelas igualmente e lado-a-lado na sua tela