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
Atualizar o macOS no Mac - Opencore Legacy Patcher
Crie alias para as tarefas que possuam longas linhas de comando - bash e zsh
Criando um gateway de internet com o Debian
Configuração básica do Conky para mostrar informações sobre a sua máquina no Desktop
Aprenda a criar músicas com Inteligência Artificial usando Suno AI
Instalando Zoom Client no Fedora 40
Instalando Navegador Firefox no Debian 12
Bloqueando propagandas no Youtube e outros sites com o uBlocker Origin
Alguém do ramo de educação por aqui? [RESOLVIDO] (10)
Envio de link pelo whatsapp (0)
Sistema da Coréia do Norte - Red Star OS (55)
Como adicionar módulo de saúde da bateria dos notebooks Acer ao kernel... (47)