Autoria simples de DVD

Publicado por Luiz Cezar 16/04/2007

[ Hits: 4.248 ]

Homepage: infosegura.eti.br

Download Autoria_DVD.sh




Script para autoria bem simples de DVD (sem menu), colocando ou não uma legenda.

  



Esconder código-fonte

#!/bin/sh

#::::::: Feito por Mestre5 :::::::::

clear
printf "Digite o caminho completo do Filme: \n"
printf "=> "
read filme

clear
printf "Digite o caminho completo da Legenda, se nao houver deixe em branco: \n"
printf "=> "
read legenda

clear
printf "Digite o FPS do filme: \n"
printf "=> "
read fps

clear
printf "Digite o aspect-radio do filme: \n"
printf "=> "
read aspect

if [ "$legenda" != "" ]; then
   clear
   printf "Digite a largura do filme: \n"
   printf "=> "
   read width

   clear
   printf "Digite a altura do filme: \n"
   printf "=> "
   read height

   xml_spumux="/tmp/spumux.xml"
   touch $xml_spumux
   echo '<subpictures> <stream> <textsub filename="'$legenda'" ' > $xml_spumux
   echo 'characterset="ISO8859-1" fontsize="20.0" font="Verdana.ttf" ' >> $xml_spumux
   echo 'horizontal-alignment="center" vertical-alignment="bottom" ' >> $xml_spumux
   echo 'left-margin="60" right-margin="60" top-margin="20" ' >> $xml_spumux
   echo 'bottom-margin="10" subtitle-fps="'$fps'" movie-fps="'$fps'" ' >> $xml_spumux
   echo 'movie-width="'$width'" movie-height="'$height'" ' >> $xml_spumux
   echo '/> </stream> </subpictures>' >> $xml_spumux

   spumux -m dvd -s 0 -P $xml_spumux < $filme > /tmp/movie2.mpg

   rm -f $xml_spumux
fi

mkdir /tmp/DVD
xml_dvdauthor="/tmp/dvdauthor.xml"
touch $xml_dvdauthor
echo '<dvdauthor dest="/tmp/DVD"> <vmgm /> <titleset> <titles> ' > $xml_dvdauthor
echo '<video aspect="'$aspect'" /> '>> $xml_dvdauthor
echo '<audio lang="en" /> <subpicture lang="br" /> ' >> $xml_dvdauthor
if [ "$legenda" != "" ]; then
   echo '<pgc> <vob file="/tmp/movie2.mpg" ' >> $xml_dvdauthor
else
   echo '<pgc> <vob file="'$filme'" ' >> $xml_dvdauthor
fi
echo 'chapters="0,5:00,10:00,15:00,20:00,25:00,30:00,35:00,40:00,45:00,50:00,55:00,1:00:00,1:05:00,1:10:00,1:15:00,1:20:00,1:25:00,1:30:00,1:35:00"/> ' >> $xml_dvdauthor
echo '</pgc> </titles> </titleset> </dvdauthor>' >> $xml_dvdauthor

dvdauthor -x $xml_dvdauthor

rm -f $xml_dvdauthor
if [ "$legenda" != "" ]; then
   rm -rf /tmp/movie2.mpg
fi

clear
cd /tmp/DVD
clear;ls -l

Scripts recomendados

Pendetect

Script simples para ripar CDs de áudio em mp3 com uso do CDDB para nomear as faixas.

Baixando arquivos do MediaFire

Consulta Correios

Pesquisa por arquivos redundantes (idênticos)


  

Comentários
[1] Comentário enviado por diekn em 22/05/2007 - 21:31h

Blz,cara,vou testar pra ver.


Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts