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
Desktop Linux ganha fôlego enquanto distros refinam experiência e segurança
Wayland em alta, IA em debate e novos ventos para distros e devices
Qt 6.10 e Python 3.14 puxam o ritmo do software livre nesta quarta
Atualizações de Apps, Desktop e Kernel agitam o ecossistema Linux nesta terça-feira
Como mudar o nome de dispositivos Bluetooth via linha de comando
Adicionando o repositório backports no Debian 13 Trixie
Não tenho som no meu Kali linux (0)
Erro ao fazer remaster usando Penguin eggs (2)
Primeiras impressões do Debian 13 (25)
Meu Amigo não consegue entrar em meu mundo, via tailscale, hamachi e z... (1)