Commit 642a394a authored by Diego Pasqualin's avatar Diego Pasqualin
Browse files

Add package le-vlc-captura


Signed-off-by: default avatarDiego Pasqualin <dpasqualin@c3sl.ufpr.br>
parent 6207ceb5
#!/bin/bash
# gerar.sh
# Copyright (c) 2006 by Bruno Ribas <ribas@ufpr.br>
DIRTMP=$(mktemp -d)
VERSAO=$(cat VERSAO)
#arrumar versao
#$1 tipo de incremento
MAJOR=$(echo $VERSAO| cut -d'.' -f1)
MINOR=$(echo $VERSAO| cut -d'.' -f2)
REVISION=$(echo $VERSAO| cut -d'.' -f3)
case $1 in
Minor)
((MINOR++))
REVISION=0
;;
Major)
((MAJOR++))
MINOR=0
REVISION=0
;;
help)
echo "Uso: $0 Major|Minor|Revision"
echo ' Major - Altera versao Major'
echo ' Minor - Altera versao Minor'
exit
;;
*)
((REVISION++))
;;
esac
VERSAO="${MAJOR}.${MINOR}.${REVISION}"
echo "$VERSAO" > VERSAO
#Compila a documentacao do pacote no diretorio doc/
#cd doc/
#hevea -text *.tex
#hevea -text *.tex
#cd ../
cp -r pacote $DIRTMP
#Copia a documentacao compilada para dentro do pacote.
#cp doc/*.txt $DIRTMP/pacote/usr/share/doc/prd-*
cd $DIRTMP
find . -name ".svn" -exec rm -rf {} \; &>/dev/null
sed -i -e "s/Version:/Version: $VERSAO/" pacote/DEBIAN/control
fakeroot dpkg -b pacote .
cd -
cp $DIRTMP/*deb .
rm -rf $DIRTMP
# vim:tabstop=4:shiftwidth=4:encoding=iso-8859-1
Package: le-vlc-captura
Version:
Section: misc
Priority: optional
Architecture: i386
Depends: vlc
Maintainer: Joselio Carneiro <joselio@thinnet.com.br>
Description: Permite ao usuário escolher qual será o dispositivo de captura para o VLC, entre a WebCam e o Dispositivo de Captura Padrão
#!/bin/bash
#
# Copyright (C) 2004-2013 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
#
# This file is part of le-interface
#
# le-interface is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
ZENITYCMD="zenity --list --text='Escolha a opção de Edição de Vídeo' --radiolist --column 'Opções' --column 'Dispositivo'"
CAPTURA=""
WEBCAM=""
for dev in $(ls /dev/video*); do
if v4l-info $dev | grep -q "em28xx"; then
CAPTURA="$dev"
ZENITYCMD="$ZENITYCMD FALSE 'Dispositivo de captura de vídeo composto'"
ZENITYCMD="$ZENITYCMD FALSE 'Dispositivo de captura S-Video'"
elif v4l-info "$dev" | grep -q "uvcvideo"; then
WEBCAM="$dev"
ZENITYCMD="$ZENITYCMD FALSE 'Captura de vídeo usando WEBCAM'"
fi
done
ZENITYCMD=$(echo $ZENITYCMD | sed s/FALSE/TRUE/)
if test -z "$CAPTURA" && test -z "$WEBCAM"; then
ZENITYCMD="zenity --error --text='Nenhum dispositivo de captura encontrado.'"
else
ZENITYCMD="$ZENITYCMD --height=220 --width=450"
fi
RESP=$(eval $ZENITYCMD)
if [ "$RESP" = "Captura de vídeo usando WEBCAM" ]; then
vlc v4l2://$WEBCAM :input-slave=alsa://hw:0,0
fi
if [ "$RESP" = "Dispositivo de captura de vídeo composto" ]; then
vlc v4l2://$CAPTURA :v4l2-standard=NTSC :input-slave=alsa://hw:1,0 :v4l2-input=1 :v4l2-width=640 :v4l2-height=480
fi
if [ "$RESP" = "Dispositivo de captura S-Video" ]; then
vlc v4l2://$CAPTURA :v4l2-standard=NTSC :input-slave=alsa://hw:1,0 :v4l2-input=0 :v4l2-width=640 :v4l2-height=480
fi
[Desktop Entry]
Version=1.0
Name=VLC Captura de Vídeo
Comment=Read, capture, broadcast your multimedia streams
Name[es]=Reproductor multimedia VLC
Comment[es]=Lea, capture y emita sus contenidos multimedia
Name[fr]=Lecteur multimédia VLC
Comment[fr]=Lire, capturer, diffuser vos flux multimedia
Name[sv]=Mediaspelaren VLC
Comment[sv]=Allmän uppspelare av film och musik
Name[ru]=Медиаплеер VLC
Comment[ru]=Универсальный проигрыватель видео и аудио
Name[pl]=Odtwarzacz multimediów VLC
Comment[pl]=Odczytywanie, przechwytywanie i nadawanie strumieni multimedialnych
Name[lt]=VLC grotuvas
Comment[lt]=Groti, įrašyti, siųsti daugialypės terpės kūrinius
Name[ja]=VLCメディアプレイヤー
Comment[ja]=マルチメディアストリームの読み込み、キャプチャー、ブロードキャスト
Exec=le-vlc-captura.sh
Icon=vlc
Terminal=false
Type=Application
Categories=AudioVideo;Player;
MimeType=video/dv;video/mpeg;video/x-mpeg;video/msvideo;video/quicktime;video/x-anim;video/x-avi;video/x-ms-asf;video/x-ms-wmv;video/x-msvideo;video/x-nsv;video/x-flc;video/x-fli;application/ogg;application/x-ogg;application/x-matroska;audio/x-mp3;audio/x-mpeg;audio/mpeg;audio/x-wav;audio/x-mpegurl;audio/x-scpls;audio/x-m4a;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;application/vnd.rn-realmedia;audio/x-real-audio;audio/x-pn-realaudio;application/x-flac;audio/x-flac;application/x-shockwave-flash;misc/ultravox;audio/vnd.rn-realaudio;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-wav;audio/x-pn-windows-acm;image/vnd.rn-realpix;video/vnd.rn-realvideo;audio/x-pn-realaudio-plugin;application/x-extension-mp4;audio/mp4;video/mp4;video/mp4v-es;x-content/video-vcd;x-content/video-svcd;x-content/video-dvd;x-content/audio-cdda;x-content/audio-player;video/x-flv;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment