Author: sharkcz
Update of /cvs/free/rpms/kino/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv18781
Modified Files:
kino.spec
Added Files:
ffmpeg2dirac.sh
Log Message:
* Tue May 26 2009 Dan Horák <dan at danny.cz> - 1.3.3-3
- add ffmpeg2dirac export script
--- NEW FILE ffmpeg2dirac.sh ---
#!/bin/sh
# written by jan gerber <j(a)v2v.cc>
# profiles added by Dan Dennedy
usage()
{
# Title
echo "Title: Ogg Dirac Export (ffmpeg2dirac)"
# Usable?
which ffmpeg2dirac > /dev/null
[ $? -eq 0 ] && echo Status: Active || echo Status: Inactive
# Type
echo Flags: single-pass file-producer
# Profiles
echo "Profile: High Quality (640x480)"
echo "Profile: Medium Quality (320x240)"
echo "Profile: Broadband Quality (320x240)"
echo "Profile: Low Quality (160x128)"
}
execute()
{
# Arguments
normalisation="$1"
length="$2"
profile="$3"
file="$4"
[ "x$file" = "x" ] && file="kino_export_"`date
+%Y-%m-%d_%H.%M.%S`
# Determine info arguments
size=`[ "$normalisation" = "pal" ] && echo 352x288 || echo
352x240`
video_bitrate=1152
audio_bitrate=224
# Run the command
case "$profile" in
"0" ) ffmpeg2dirac -f dv -x 640 -y 480 -d -v 7 -a 3 -H 48000 -o
"$file".ogv - ;;
"1" ) ffmpeg2dirac -f dv -x 320 -y 240 -d -v 7 -a 3 -H 48000 -o
"$file".ogv - ;;
"2" ) ffmpeg2dirac -f dv -x 320 -y 240 -d -v 5 -a 0 -H 44100 -o
"$file".ogv - ;;
"3" ) ffmpeg2dirac -f dv -x 160 -y 128 -d -v 3 -a 0 -H 22000 -o
"$file".ogv - ;;
esac
}
[ "$1" = "--usage" ] || [ -z "$1" ] && usage
"$@" || execute "$@"
Index: kino.spec
===================================================================
RCS file: /cvs/free/rpms/kino/devel/kino.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- kino.spec 29 Mar 2009 13:18:23 -0000 1.8
+++ kino.spec 26 May 2009 12:03:58 -0000 1.9
@@ -1,12 +1,13 @@
Name: kino
Version: 1.3.3
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Kino is a non-linear DV editor for GNU/Linux
Group: Applications/Multimedia
License: GPLv2+
URL:
http://www.kinodv.org
Source0:
http://dl.sf.net/kino/kino-%{version}.tar.gz
+Source1: ffmpeg2dirac.sh
Patch0: %{name}-udev.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -30,6 +31,8 @@
Requires: ffmpeg
Requires: mjpegtools
Requires: mencoder
+Requires: ffmpeg2dirac
+Requires: ffmpeg2theora
%description
Kino is a non-linear DV editor for GNU/Linux. It features excellent
@@ -55,17 +58,19 @@
--disable-static \
--disable-dependency-tracking \
-%{__make} %{?_smp_mflags}
+make %{?_smp_mflags}
%install
-%{__rm} -rf ${RPM_BUILD_ROOT}
-%{__make} install DESTDIR=${RPM_BUILD_ROOT}
-%{__rm} ${RPM_BUILD_ROOT}%{_libdir}/kino-gtk2/*.la
-ln -sf kino ${RPM_BUILD_ROOT}%{_bindir}/kino2raw
-%{__rm} ${RPM_BUILD_ROOT}%{_datadir}/applications/Kino.desktop
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+rm $RPM_BUILD_ROOT%{_libdir}/kino-gtk2/*.la
+ln -sf kino $RPM_BUILD_ROOT%{_bindir}/kino2raw
+rm $RPM_BUILD_ROOT%{_datadir}/applications/Kino.desktop
ln -s Kino.desktop kino.desktop
+install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts/exports
+
%find_lang kino
desktop-file-install \
@@ -76,11 +81,11 @@
%check
-%{__make} check
+make check
%clean
-%{__rm} -rf ${RPM_BUILD_ROOT}
+rm -rf $RPM_BUILD_ROOT
%files -f kino.lang
%defattr(-,root,root,-)
@@ -100,6 +105,9 @@
%{_includedir}/kino
%changelog
+* Tue May 26 2009 Dan Horák <dan at danny.cz> - 1.3.3-3
+- add ffmpeg2dirac export script
+
* Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.3.3-2
- rebuild for new F11 features