[packman] ffmpeg & qt-faststart

Paolo Pantò munix9 at googlemail.com
Fri Sep 6 20:24:59 CEST 2013


Am 05.09.2013 22:53, schrieb Manfred Tremmel:
> Am Donnerstag, 5. September 2013, 22:09:38 schrieb Paolo Pantò:
>> hi,
>>
>> would it be possible to package qt-faststart with ffmpeg?
>>
>> info:
>> https://github.com/FFmpeg/FFmpeg/blob/master/tools/qt-faststart.c
> 
> Hm, it's part of ffmpeg, but I can't see a configure option to en- or 
> disable it. I have to take a look on it, how to build the binary.

added the patch inline:


--- a/ffmpeg.spec
+++ b/ffmpeg.spec
@@ -365,6 +365,18 @@
 Installieren Sie libffmpeg-devel wenn Sie Anwendungen mit ffmpeg Support
 compilieren wollen.
 
+%package tools
+Summary:        Hyper fast MPEG1/MPEG4/H263/RV and AC3/MPEG audio encoder
+Group:          Productivity/Multimedia/Video/Editors and Convertors
+
+%description tools
+ffmpeg is a hyper fast realtime audio/video encoder, a streaming  server
+and a generic audio and video file converter.
+
+It can grab from a standard Video4Linux video source and convert it into
+several file formats based on DCT/motion compensation encoding. Sound is
+compressed in MPEG audio layer 2 or using an AC3 compatible stream.
+
 %prep
 %setup -q
 %if %{?suse_version} < 1140
@@ -436,6 +448,7 @@
             --enable-libvo-aacenc
 
 make %{?_smp_mflags} V=1
+make %{?_smp_mflags} alltools V=1
 
 %install
 ln -s libavformat libav
@@ -453,6 +466,21 @@
 install -m 644 libavcodec/dvdata.h %{buildroot}%{_includedir}/libavcodec/
 rm -f %{buildroot}%{_libdir}/*.{la,a}
 
+# tools
+install -m 0755 tools/aviocat %{buildroot}%{_bindir}
+install -m 0755 tools/cws2fws %{buildroot}%{_bindir}
+install -m 0755 tools/ffescape %{buildroot}%{_bindir}
+install -m 0755 tools/ffeval %{buildroot}%{_bindir}
+install -m 0755 tools/ffhash %{buildroot}%{_bindir}
+install -m 0755 tools/fourcc2pixfmt %{buildroot}%{_bindir}
+install -m 0755 tools/graph2dot %{buildroot}%{_bindir}
+install -m 0755 tools/ismindex %{buildroot}%{_bindir}
+install -m 0755 tools/pktdumper %{buildroot}%{_bindir}
+install -m 0755 tools/probetest %{buildroot}%{_bindir}
+install -m 0755 tools/qt-faststart %{buildroot}%{_bindir}
+install -m 0755 tools/seek_print %{buildroot}%{_bindir}
+install -m 0755 tools/trasher %{buildroot}%{_bindir}
+
 %post   -n %{libnameavcodec} -p /sbin/ldconfig
 %postun -n %{libnameavcodec} -p /sbin/ldconfig
 
@@ -485,7 +513,10 @@
 %files
 %defattr(-,root,root)
 %doc Changelog COPYING.* CREDITS LICENSE README doc
-%{_bindir}/*
+%{_bindir}/ffmpeg
+%{_bindir}/ffplay
+%{_bindir}/ffprobe
+%{_bindir}/ffserver
 %dir %{_datadir}/ffmpeg
 %{_datadir}/ffmpeg/ffprobe.xsd
 %{_datadir}/ffmpeg/*.ffpreset
@@ -538,4 +569,20 @@
 %{_libdir}/pkgconfig/*.pc
 %{_datadir}/ffmpeg/examples
 
+%files tools
+%defattr(-,root,root)
+%{_bindir}/aviocat
+%{_bindir}/cws2fws
+%{_bindir}/ffescape
+%{_bindir}/ffeval
+%{_bindir}/ffhash
+%{_bindir}/fourcc2pixfmt
+%{_bindir}/graph2dot
+%{_bindir}/ismindex
+%{_bindir}/pktdumper
+%{_bindir}/probetest
+%{_bindir}/qt-faststart
+%{_bindir}/seek_print
+%{_bindir}/trasher
+
 %changelog



> 
>> maybe it makes sense to create an extra ffmpeg-tools package with
>> all or some of the stuff from
>> https://github.com/FFmpeg/FFmpeg/tree/master/tools ?
> 
> Maybe this is usefull.
> 





More information about the Packman mailing list