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
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Descritores de Arquivos e Swappiness
Solução rápida para o problema do Network Manager conectar mas não navegar
Como instalar no Linux Jogos da Steam só para Windows
Instalando o Team Viewer no Debian Trixie - problema no Policykit
Menu configurações e mudar plano de fundo não funcionam (8)
Erro na atualização dos apps na barra de tarefas (11)