--- mpgtx-1.3.1.orig/debian/README.Debian +++ mpgtx-1.3.1/debian/README.Debian @@ -0,0 +1,12 @@ +mpgtx for Debian +---------------- +I have put previous changes of source code into dpatch files, because +esay using new and old changes. (see changelog) + +I had to patch some new fixes into source code with dpatch, because +upstream seems not active anymore. ++ Support for file names beginning with '[' that aren't ranges. ++ Remove unneeded ';' because of an gcc 3.4 error ++ Suppress repeated messages on 'mpginfo -X', if '-N' is also supplied + +Erik Schanze Thu, 19 Nov 2004 21:20:15 +0100 --- mpgtx-1.3.1.orig/debian/compat +++ mpgtx-1.3.1/debian/compat @@ -0,0 +1,2 @@ +8 + --- mpgtx-1.3.1.orig/debian/mpgtx.de.1 +++ mpgtx-1.3.1/debian/mpgtx.de.1 @@ -0,0 +1,208 @@ +.TH "mpgtx" "1" "06. August 2005" "mpgtx v1.3.1" "Benutzerhandbuch" +.SH "NAME" +mpgtx, mpgsplit, mpgcat, mpgjoin, mpginfo, mpgdemux \- Ver\[:a]ndert mpeg\-Dateien +.SH "\[:U]BERSICHT" +.PP +\fBmpgtx\fP +\fIkommando\fP +[ +\fIoption\fP +] +\fIdatei\fP +[ +\fIbereich\fP +| +\fIdatei\fP +] ... +.SH "BESCHREIBUNG" +.PP +\fBmpgtx\fP kann MPEG\-Dateien auf verschiedene Weise trennen und +zusammenf\[:u]hren. Drei Dateitypen werden zur Zeit unterst\[:u]tzt: +MPEG\ 1 Video\-Dateien, MPEG\ 1/2 Audio\-Dateien (mp1, mp2 und mp3), +MPEG\ 1 System\-Dateien (Audio\- und Video\-Dateien), MPEG\ 2 Programm\-Dateien +(experimentell), MPEG\ 2 Transport\-Dateien (nur Modus Demultiplex und Info). +.PP +\fBmpgtx\fP ist ein GOP\-(Group of Pictures)\-Editor, d.\ h. \fBmpgtx\fP +schneidet MPEG\-Dateien anhand einer Gruppe von Bildern, nicht einzelne +Bilder. Die typische Zeitdauer einer GOP, von ungef\[:a]hr 0,5\ sek. +(ca. 15\ Bilder), begrenzt die maximale Genauigkeit von \fBmpgtx\fP. +.SH "KOMMANDOS" +.IP \fB\-i\fP +Zeigt Informationen \[:u]ber Dateien, wie Dauer, Gr\[:o]\[ss]e, Bitrate usw. +.IP \fB\-j\fP +Verbindet Dateien +.br +(Bereiche k\[:o]nnen angegeben werden, siehe BEREICHE). +.IP \fB\-s\fP +Teilt Dateien in angegebene Bereiche (siehe BEREICHE). +.IP \fB\-d\fP +Demultiplext zusammengesetzte mpeg\-Dateien. +.IP \fB\-T\fP +Ver\[:a]ndert ID3\-Tags von mp3\-Dateien (siehe \fBtagmp3(1)\fP). +.IP \fB\-h\fP +Zeigt einen (nicht sehr) kurzen Hilfe\-Text an. +.IP \fB\-v\fP +Zeigt die Version und beendet sich. +.IP \fB\-#\fP +Wenn +.B # +eine Zahl ist, wird die Datei in diese Anzahl gleichgro\[ss]er Teile geteilt. +.IP \fB\-\-force\fP +Erlaubt Verbinden von inkompatiblen Dateien (manche Spieler sind sehr robust). +.IP \fB\-\-no\-parachute\fP +Verhindert, dass \fBmpgtx\fP auf das Signal SIGSEGV reagiert. Das ist f\[:u]r +die Fehlersuche n\[:u]tzlich. +.PP +Zus\[:a]tzlich kann \fBmpgtx\fP mit den Namen \fBmpgjoin\fP, \fBmpgcat\fP, +\fBmpgsplit\fP, \fBmpgdemux\fP, \fBtagmp3\fP und \fBmpginfo\fP +aufgerufen werden. Das entspricht dem Verhalten: +.IP +.B "mpginfo " +verh\[:a]lt sich wie +.B mpgtx +\-i +.br +.B "mpgsplit" +verh\[:a]lt sich wie +.B mpgtx +\-s +.br +.B "mpgjoin " +verh\[:a]lt sich wie +.B mpgtx +\-j +.br +.B "mpgcat " +verh\[:a]lt sich wie +.B mpgtx +\-j \-o \- +.br +.B mpgdemux +verh\[:a]lt sich wie +.B mpgtx +\-d +.br +.B "tagmp3" +verh\[:a]lt sich wie +.B mpgtx +\-T + +.SH "OPTIONEN" +.IP \fB\-f\fP +Erzwinge das \[:U]berschreiben von Dateien, nicht nachfragen. + +.IP \fB\-Ax\fP +\[:A]ndere die Bild-Proportionen der mpeg\-Datei. G\[:u]ltige Werte sind 1,2,3,4 f\[:u]r die +Proportionen 1:1, 4:3, 16:9 oder 2,2:1. + +.IP \fB\-P\fP +Behalte unn\[:u]tze oder ungew\[:o]hnliche Header in den Teil\-Dateien. + +.IP \fB\-X\fP +Sucht in der gesamten Datei nach einem g\[:u]ltigen Anfang (PACK). + +.IP \fB\-N\fP +Unterdr\[:u]ckt die Fortschrittsanzeige auf der Konsole. Das beschleunigt das +Programm auf den meisten Systemen etwas, auf MacOS\ 9 sehr viel. + +.IP "\fB\-b\fP \fIname\fP" +Jede Ausgabedatei hat die Namensbasis \fIname\fP. + +.IP "\fB\-o\fP \fIdatei\fP" +\fIdatei\fP wird als Ausgabedatei beim Verbinden benutzt (mit dem Kommando +\fIjoin\fP). Wenn als \fIdatei\fP das Zeichen '\-' angegeben wird, landen die +Daten auf der Standardausgabe. + +.SH "BEREICHE" +.PP +Jeder \fIbereich\fP muss nach einem Dateinamen \fIdatei\fP oder einem +anderen \fIbereich\fP stehen. Ein Bereich in einer mpeg\-Datei +kann auf drei Arten angegeben werden: +.br +Bei MacOSX muss \fIbereich\fP in einfache oder doppelte Anf\[:u]hrungszeichen +geschrieben werden! +.IP [a\-b] +von einschlie\[ss]lich Wert \fBa\fP bis einschlie\[ss]lich Wert +\fBb\fP. F\[:u]r halboffene Bereiche verwendet man ]a\-b], [a\-b[ oder ]a\-b[. + +.IP [n/ntot] +Der \fBn\fPte Teil von \fBntot\fP. [1/4] bedeutet das erste Viertel der +angegebenen Datei. + +.IP "{a\-b\-...}" +Mit \fBa\fP,\fBb\fP,\fB...\fP in aufsteigender Folge. Teilt die Datei +in die angegebenen Teile. {55M\-102M} bedeutet 3 Teile, vom Beginn der Datei +bis 55\ MByte, von 55\ MByte bis 102\ MByte und von 102\ MByte bis zum Ende. +.SH "WERTE" +G\[:u]ltige Werte f\[:u]r Bereiche werden in Sekunden oder als Byte\-Offset angegeben. + +.IP Zeitformat +HH:MM:SS.SS , wobei man die Angabe HH: weglassen kann. + +.IP Offset\-Format +Eine Zahl, gefolgt von \fBM\fP f\[:u]r Megabyte oder \fBk\fP f\[:u]r Kilobyte. + +.IP "Leere Werte" +Ein leerer Wert ist g\[:u]ltig und entspricht der zugeh\[:o]rigen Dateigrenze: +.br +[\-10M] entspricht den ersten 10 Megabyte der Datei. +.br +[1:10:04\-] bedeutet von 1\ Stunde 10\ Minuten 4\ Sekunden bis zum Ende der +Datei. +.SH "R\[:U]CKGABEWERTE" +Alle Programme geben bei Erfolg 0 zur\[:u]ck und 1 bei einem Fehler. +.SH "BEISPIELE" +.PP +.IP "mpgjoin movie1.mpg [\-0:32] [45M\-75M] movie2.mpg \-o joined.mpg" +joined.mpg wird die ersten 32 Sekunden von movie1.mpg, gefolgt von 30\ MByte +von movie1.mpg, beginnend bei 45\ MByte und dann die ganze Datei movie2.mpg +enthalten. + +.IP "mpgtx \-124 myfile.mpg \-b output" +myfile.mpg wird in 124 gleichlangen Teilen mit den Namen output\-001.mpg bis +output\-124.mpg abgespeichert. + +.IP "mpgtx \-i Wazzup.mp3" +Zeigt Informationen \[:u]ber die angegebene Datei, wie Dauer, Bitrate an, aber +auch Album, Titelnummer, Liedtitel usw., wenn die Datei einen ID3\-Tag hat. + +.IP "mpgcat myfile.mpg [2/2] | lpr" +Leitet den Inhalt der zweiten H\[:a]lfte von myfile.mpg an den Drucker um, +verbraucht s\[:a]mtlichen Toner und Papier und sorgt daf\[:u]r, dass Sie von Ihrem +Chef entlassen werden... Bitte vorsichtig einsetzen. ;\-) +.SH "FEHLER" +.PP +GOP (Group of Picture) basierend: ist kein Fehler, aber es ist eine +Einschr\[:a]nkung. Wie in \fBBESCHREIBUNG\fP erkl\[:a]rt wurde, schr\[:a]nkt das die +Genauigkeit von \fBmpgtx\fP beim Teilen und Verbinden auf ungef\[:a]hr 15\ Bilder +bzw. 0,5 Sekunden ein. +.PP +Einige Bildst\[:o]rungen (Artefakte) k\[:o]nnen mit schlechten MPEG\-Spielern bei +verbundenen Dateien auftreten. Diese Spieler ber\[:u]cksichtigen nicht das +Broken\-Link\-Flag und verwerfen nicht das erste B\-Bild, dass sie erreicht. +Das ist ein Fehler in deren MPEG\-Entschl\[:u]sselung, nicht in \fBmpgtx\fP. +.SH "AUTOR" +.PP +Laurent Alacoque CopyLeft 2001. +.br +Anpassungen von Chris Danis , copyleft 2001. +.br +Philipp Biermann , copyleft 2002. +.PP +Erik Schanze hat die Manpage angepasst und +ins Deutsche \[:u]bersetzt. +.PP +Neue Releases sind zu finden und Fehler, Patches, Infos zu senden an: +.br +http://mpgtx.sourceforge.net/ +.SH "DANKSAGUNG" +.PP +Godmar Back and Brent Phillips halfen mir das Kommandozeilen\-Interface zu +verbessern. +.br +Volker Moell lehrte mich, rpm\-Paket zu erstellen. Danke Volker. +.br +Jean Fransisco Sytem (alias Nicolas Schieli) half mir einige Fehler zu +beseitigen. +.br +Danke euch Jungs. --- mpgtx-1.3.1.orig/debian/mpgtx.manpages +++ mpgtx-1.3.1/debian/mpgtx.manpages @@ -0,0 +1,2 @@ +debian/tagmp3.de.1 +debian/mpgtx.de.1 --- mpgtx-1.3.1.orig/debian/rules +++ mpgtx-1.3.1/debian/rules @@ -0,0 +1,122 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make + +export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +INSTALL = install +INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644 +INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755 +INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755 +INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755 + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + confflags += --devel +endif +ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + confflags += --devel +else + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Make sure we use the latest autotools helpers. + if test -f config.guess; then \ + mv config.guess config.guess.debsave; \ + fi + ln -sf /usr/share/misc/config.guess . + + # Add here commands to configure the package. + ./configure '$(confflags)' '-prefix=$$(DESTDIR)/usr' '-manprefix=$$(DESTDIR)/usr/share' + + touch configure-stamp + +build: patch-stamp configure-stamp build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: do-clean unpatch + +do-clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) clean + + if test -L config.guess; then \ + rm -f config.guess; \ + if test -e config.guess.debsave; then \ + mv config.guess.debsave config.guess; \ + fi; \ + fi + + # we need no Makefile.diff in *.diff.gz + dh_clean Makefile + +install: build + dh_testdir + dh_testroot + dh_prep + + # Add here commands to install the package into debian/mpgtx. + #$(MAKE) install DESTDIR=$(CURDIR)/debian/mpgtx + ln -sf mpgtx mpgjoin + ln -sf mpgtx mpgsplit + ln -sf mpgtx mpgcat + ln -sf mpgtx mpginfo + ln -sf mpgtx mpgdemux + ln -sf mpgtx tagmp3 + $(INSTALL_DIR) $(CURDIR)/debian/mpgtx/usr/bin + $(INSTALL_DIR) $(CURDIR)/debian/mpgtx/usr/share/man/man1 + $(INSTALL_PROGRAM) mpgtx $(CURDIR)/debian/mpgtx/usr/bin + cp -df mpgdemux mpgjoin mpgcat mpginfo mpgsplit tagmp3 $(CURDIR)/debian/mpgtx/usr/bin + $(INSTALL_FILE) man/mpgtx.1 man/tagmp3.1 $(CURDIR)/debian/mpgtx/usr/share/man/man1 + cd man ; $(MAKE) + cd .. + cp -df ./man/mpgdemux.1 ./man/mpgjoin.1 man/mpgsplit.1 man/mpgcat.1 man/mpginfo.1 \ + $(CURDIR)/debian/mpgtx/usr/share/man/man1 + + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installman + dh_installchangelogs ChangeLog + dh_link usr/share/man/de/man1/mpgtx.1 usr/share/man/de/man1/mpgsplit.1 \ + usr/share/man/de/man1/mpgtx.1 usr/share/man/de/man1/mpgcat.1 \ + usr/share/man/de/man1/mpgtx.1 usr/share/man/de/man1/mpgjoin.1 \ + usr/share/man/de/man1/mpgtx.1 usr/share/man/de/man1/mpginfo.1 \ + usr/share/man/de/man1/mpgtx.1 usr/share/man/de/man1/mpgdemux.1 + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure patch unpatch do-clean --- mpgtx-1.3.1.orig/debian/changelog +++ mpgtx-1.3.1/debian/changelog @@ -0,0 +1,137 @@ +mpgtx (1.3.1-5) unstable; urgency=low + + * Added 25_fix_crash_missing_audio.dpatch, (Closes: #562146) + * Bumped Standard-Version to 3.9.1, no changes needed + * Bumped debhelper version to 8 + + -- Erik Schanze Sun, 13 Feb 2011 14:02:59 +0100 + +mpgtx (1.3.1-4) unstable; urgency=low + + * debian/rules: Added handling of DEB_BUILD_OPTIONS, (Closes: #437584) + + -- Erik Schanze Mon, 13 Aug 2007 20:47:48 +0200 + +mpgtx (1.3.1-3) unstable; urgency=low + + * Added 20_write_header_fix.dpatch, to fix segfault on some MPEGs, + Closes: #410017 + + -- Erik Schanze Sun, 4 Mar 2007 11:35:19 +0100 + +mpgtx (1.3.1-2) unstable; urgency=low + + * Changed maintainers email address + * Changed german umlauts to groff sequences in manpages + * + * Updated watch file + + -- Erik Schanze Sat, 25 Nov 2006 23:23:55 +0100 + +mpgtx (1.3.1-1) unstable; urgency=low + + * New upstream release + * Remove upstream included patches + * Compiled with g++4 + * Added 15_g++4_fixes.dpatch, to fix some warnings + * Bumped Standard-Version to 3.6.2, no changes needed + * Description line now begins lowercase (fixes lintian warning) + + -- Erik Schanze Thu, 7 Jul 2005 20:29:49 +0200 + +mpgtx (1.3-3) unstable; urgency=low + + * Fix 10_filenames_with_brackets.dpatch, it broke multiple ranges + (Closes: #281965) + * Added 08_suppress_info_progress: option -N now prevents repeated infos + on mpginfo -X (Closes: #185291) + + -- Erik Schanze Thu, 19 Nov 2004 21:20:15 +0100 + +mpgtx (1.3-2) unstable; urgency=low + + * New maintainer. Closes: #259741 + * Added dpatch and autotools support + + as build depends in debian/control + + in debian/rules + * Put previous changes into dpatch files: + + 04_debianize_configure for Debian-related changes + + 05_fixes_tagmp3.dpatch, was previously fixed (bug #167313) + + 06_fixes_inline.dpatch, was previously fixed + * Added 10_filenames_with_brackets.dpatch to detect file names beginning + with bracket. Closes: #177169 + * Added 15_fixes_compile_warnings.dpatch against ugly source code + * Added 20_remove_semicolon_for_gcc34.dpatch, Closes: #260657 + * Added debian/watch file, thanks to DEHS team + * Updated README.Debian + * Bumped Standard-Version to 3.6.1, no changes needed + * Pushed debhelper level to 4 + * Translated mpgtx(1) and tagmp3(1) into German, added debian/mpgtx.manpages + and modify /debian/rules for installing it + + -- Erik Schanze Tue, 27 Jul 2004 13:25:22 +0200 + +mpgtx (1.3-1) unstable; urgency=low + + * The "boy-it's-been-a-while" release. + * New upstream version and recompile. (closes: #171286) + + Fixes demuxer ignoring commandline arguments (closes: #136533) + * Fixes tagmp3 error in truncating year when entered interactively + (closes: #167313) + * Modified configure to not test g++ version, as not only does the test no + longer work, but it does not seem to be necessary to disable optimizations + for g++ 3.2. + + -- Chris Danis Sat, 1 Feb 2003 03:15:02 -0500 + +mpgtx (1.1-1) unstable; urgency=low + + * The "I-hope-I'm-using-cvs-buildpackage-correctly" release. + * New upstream version. + + Adds large file support (>2gb files) + + More compatibility with broken/quirky MPEG streams + + tagmp3 now returns 0 on success, not 1 as it was before + + -- Chris Danis Sat, 6 Oct 2001 09:14:58 -0400 + +mpgtx (1.0-1) unstable; urgency=low + + * New upstream version. This fixes compilation warnings with g++-3.0 and + a bug in the demultiplexing routines. This is the first officially + stable release. + + -- Chris Danis Wed, 25 Jul 2001 13:51:00 -0400 + +mpgtx (0.8b-2) unstable; urgency=low + + * Compiling with -O2 instead of -O3, for some reason, makes mpgtx compile + successfully under g++-3.0. I'm baffled, but I tested it on my own + machine and on paer (which is where the compile failed originally). The + Makefile now includes logic to compile with -O2 if using gcc version 3, + and with -O3 otherwise. (Closes: #104983) + + -- Chris Danis Sun, 15 Jul 2001 10:58:08 -0400 + +mpgtx (0.8b-1) unstable; urgency=low + + * New upstream release - tagmp3 now official upstream name, and + some segfault issues fixed. + + -- Chris Danis Tue, 29 May 2001 16:04:16 -0400 + +mpgtx (0.7b-2) unstable; urgency=low + + * Talked with upstream; mp3tag is now tagmp3 to avoid conflict with + mp3blaster's mp3tag. Package patched as such (Closes: #98372) + + -- Chris Danis Fri, 25 May 2001 20:20:40 -0400 + +mpgtx (0.7b-1) unstable; urgency=low + + * Initial Release. (closes: #97823) + + -- Chris Danis Thu, 17 May 2001 11:51:00 -0400 + +Local variables: +mode: debian-changelog +End: --- mpgtx-1.3.1.orig/debian/control +++ mpgtx-1.3.1/debian/control @@ -0,0 +1,24 @@ +Source: mpgtx +Section: sound +Priority: optional +Maintainer: Erik Schanze +Build-Depends: debhelper (>= 8), dpatch, autotools-dev +Standards-Version: 3.9.1 +Homepage: http://mpgtx.sourceforge.net/ + +Package: mpgtx +Architecture: any +Depends: ${shlibs:Depends} +Description: toolbox to manipulate MPEG files (video, system, and audio) + mpgtx is a tool to manipulate MPEG files. Its features include the + following: + . + * mpgtx can currently split and join MPEG 1 video files and most + MPEG audio files. + * mpgtx can fetch detailed information from MPEG 1 and MPEG 2. + * mpgtx can demultiplex MPEG 1 and MPEG 2 files (System layer, Program + layer and Transport Layer). + * mpgtx can add, remove and edit ID3 tags from mp3 files and rename + mp3 files according to their ID3 tags. It reads and writes ID3v1, + but only reads ID3v2. + . --- mpgtx-1.3.1.orig/debian/copyright +++ mpgtx-1.3.1/debian/copyright @@ -0,0 +1,13 @@ +This package was debianized by Chris Danis on +Thu, 17 May 2001 11:51:00 -0400. + +It was downloaded from http://prdownloads.sourceforge.net/mpgtx/ + +Upstream Author: Laurent Alacoque + +Copyright: 2001 Laurent Alacoque + 2001 Chris Danis + 2002 Philipp Biermann + +mpgtx is released under the GPL license. The GPL can be found in +/usr/share/common-licenses/GPL on Debian systems. --- mpgtx-1.3.1.orig/debian/docs +++ mpgtx-1.3.1/debian/docs @@ -0,0 +1,2 @@ +README +TODO --- mpgtx-1.3.1.orig/debian/tagmp3.de.1 +++ mpgtx-1.3.1/debian/tagmp3.de.1 @@ -0,0 +1,124 @@ +.TH "tagmp3" "1" "06. August 2005" "tagmp3 v1.3.1" "User manual" +.SH "NAME " +tagmp3 \- ver\[:a]ndert ID3 Tags +.SH "\[:U]BERSICHT" +.PP +\fBtagmp3\fP +[ +\fB\-n\fP +] +\fImodus\fP +[ +\fIformat\fP +] [ +\fIdatei\fP +] ... +.br +\fBtagmp3\fP \fB\-h\fP +.br +\fBtagmp3\fP \fB\-v\fP +.SH "BESCHREIBUNG" +.PP +\fBtagmp3\fP kann ID3\-Tags von mp3\-Dateien setzen oder entfernen. +Zus\[:a]tzlich k\[:o]nnen im Modus \fImove\fP mp3\-Dateien anhand ihrer ID3\-Tags +verschoben werden. Ein ID3\-Tag ist ein Teil von zus\[:a]tzlichen Informationen, +wie K\[:u]nstlername, Album und Genre. ID3\-Tags werden von den meisten mp3\-Spielern +angezeigt. +.SH "MODUS" +.IP \fIshow\fP +anzeigen der ID3\-Tags der \fIdatei\fP. +.IP \fIset\fP +setzen der ID3\-Tags der \fIdatei\fP anhand von \fIformat\fP. +.IP \fImove\fP +verschieben der \fIdatei\fP anhand von \fIformat\fP. +.IP \fIdel\fP +entfernt den ID3\-Tag der \fIdatei\fP, wenn vorhanden. +.IP \fIlist\fP +zeigt die Kennziffern der Musik\-Genres und deren Bedeutung an. + + +.SH "OPTIONEN" +.IP \fB\-n\fP +Nur anzeigen was zu tun ist, keine Dateien \[:a]ndern. +.IP \fB\-h\fP +Zeigt einen (nicht sehr) kurzen Hilfe\-Text. +.IP \fB\-v\fP +Zeigt Version und beendet sich. +.SH "FORMAT STRING" +Der Format\-STRING ist eine Zeichenkette, die aus keiner oder mehr Anweisungen +besteht. Enthalten sind normale Zeichen (kein %), die nicht interpretiert +werden und Umwandlungsanweisungen, die mit einem entsprechenden Feld im ID3\-Tag +verbunden sind. Jede Anweisung beginnt mit dem Zeichen '%'. Die Folge '%%' +beschreibt das Zeichen '%' selbst. Die Anweisungen und ihre zugeh\[:o]rigen +ID3\-Tag\-Felder sind: +.IP %A +K\[:u]nstlername +.IP %a +Albumname +.IP %t +Liedtitel +.IP %T +Titelnummer +.IP %y +Jahr +.IP %g +Genre +.IP %c +Kommentar +.PP +Im Modus \fIset\fP ist der Format\-STRING eine Liste von ID3\-Tag\-Feldern, +gefolgt von ':' und dem Wert f\[:u]r dieses Feld oder nur '?', um vom Benutzer +den Wert abzufragen. (Siehe BEISPIELE) +.PP +Im Modus \fImove\fP k\[:o]nnen die Anweisungen im Zielpfad eingebaut werden und +sie werden durch den Inhalt des zugeh\[:o]rigen ID3\-Tag\-Feldes ersetzt. +(Siehe BEISPIELE) +.SH "BEISPIELE" +.PP +\fBtagmp3 set "%A:Pink Floyd %a:The Wall %t? %T?" *.mp3\fP +.IP +Bei jeder mp3\-Datei im aktuellen Verzeichnis wird der K\[:u]nstlername +auf 'Pink Floyd' und der Albumname auf 'The Wall' gesetzt. +Bei jeder Datei wird nach dem Titel und der Titelnummer gefragt. Die anderen +Felder bleiben unber\[:u]hrt. Beachten Sie, dass das Genre\-Feld eine Zahl verlangt. +Bekannte Genres k\[:o]nnen im Modus \fIlist\fP angesehen werden. +.PP +\fBtagmp3 move "/home/foo/mp3/%A/%a/%T\-%t.mp3" *.mp3\fP +.IP +Jede mp3\-Datei im aktuellen Verzeichnis wird verschoben nach +/home/foo/mp3///\-.mp3 +.PP +\fBtagmp3 move "%A\-%t.mp3" *.mp3\fP +.IP +Wenn Sie eine flache Hierarchie haben wollen. +.SH "NOTIZEN" +.PP +Im Modus \fImove\fP werden niemals Dateien \[:u]berschrieben. +.PP +Im Modus \fImove\fP werden evtl. neue Verzeichnisse angelegt, die im +Format\-STRING angegeben sind. Jedes neue Verzeichnis muss von Benutzer +best\[:a]tigt werden. +.PP +Wenn eine Datei nicht verschoben werden kann (falscher Dateityp, kein ID3\-Tag +vorhanden oder das Feld ist leer, usw.), dann bleibt sie unber\[:u]hrt. +.PP +Falsche mp3\-Dateien (z.\ B. wav\-Dateien mit der Endung .mp3) werden im Modus +\fImove\fP in das Verzeichnis "fake\-mp3/" verschoben. Im Modus \fIset\fP +werden keine Felder gesetzt, weil das St\[:o]rger\[:a]usche am Ende des Titels +verursachen w\[:u]rde. +.SH "FEHLER" +.PP +Eine Menge :) +.PP +Im Modus \fImove\fP m\[:u]ssen Quell\- und Zielverzeichnis im gleichen Dateisystem +bzw. Partition liegen. +.SH "AUTOR" +.PP +Laurent Alacoque CopyLeft 2001 +.PP +Erik Schanze hat die Manpage angepasst und +ins Deutsche \[:u]bersetzt. +.PP +Neue Releases sind zu finden und Fehler, Patches, Infos zu senden an: +.br +http://mpgtx.sourceforge.net/ --- mpgtx-1.3.1.orig/debian/watch +++ mpgtx-1.3.1/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://qa.debian.org/watch/sf.php/mpgtx/ mpgtx-(.*)(?:\.tar(?:\.gz|\.bz2)?|\.tgz) debian uupdate --- mpgtx-1.3.1.orig/debian/patch-stamp +++ mpgtx-1.3.1/debian/patch-stamp @@ -0,0 +1,2 @@ +Patches applied in the Debian version of : + --- mpgtx-1.3.1.orig/debian/patches/25_fix_crash_missing_audio.dpatch +++ mpgtx-1.3.1/debian/patches/25_fix_crash_missing_audio.dpatch @@ -0,0 +1,28 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 25_fix_crash_missing_audio.dpatch by Erik Schanze +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Prevent crash if joining two files, one with audio, one not +## DP: Closes: 562146, (Thanks to Chris Hooper for the patch) + +@DPATCH@ +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' mpgtx-1.3.1~/mpeg.cxx mpgtx-1.3.1/mpeg.cxx +--- mpgtx-1.3.1~/mpeg.cxx 2011-02-13 13:57:35.664354776 +0100 ++++ mpgtx-1.3.1/mpeg.cxx 2011-02-13 14:00:09.800462553 +0100 +@@ -97,6 +97,16 @@ + } + + if (MpegType == mpeg_AUDIO || MpegType == mpeg_SYSTEM) { ++ if (Audio == NULL) { ++ fprintf (stderr, "File %s is missing an audio layer\n", ++ FileName); ++ return false; ++ } ++ if (peer->Audio == NULL) { ++ fprintf (stderr, "File %s has an audio layer, but %s does not\n", ++ FileName, peer->FileName); ++ return false; ++ } + if (Audio->bitrate != peer->Audio->bitrate) { + fprintf (stderr, "Incompatible audio bitrates %s (%d bps) %s (%d bps)\n", + FileName, Audio->bitrate, --- mpgtx-1.3.1.orig/debian/patches/10_filenames_with_brackets.dpatch +++ mpgtx-1.3.1/debian/patches/10_filenames_with_brackets.dpatch @@ -0,0 +1,72 @@ +#! /bin/sh -e +## 10_filenames_with_brackets.dpatch by Erik Schanze +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: allow file names beginning with bracket, because not all, that +## DP: begins with '[' is a range. Closes: #177169 + +if [ $# -lt 1 ]; then + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2 + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}" + +case "$1" in + -patch) patch -p1 ${patch_opts} < $0;; + -unpatch) patch -R -p1 ${patch_opts} < $0;; + *) + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2 + exit 1;; +esac + +exit 0 + +@DPATCH@ +diff -urNad /home/es/devel/debian/mpgtx/mpgtx-1.3/commandline.cxx mpgtx-1.3/commandline.cxx +--- /home/es/devel/debian/mpgtx/mpgtx-1.3/commandline.cxx 2003-02-01 08:01:59.000000000 +0100 ++++ mpgtx-1.3/commandline.cxx 2004-07-23 19:48:53.000000000 +0200 +@@ -320,6 +320,7 @@ + programname invocation; + bool demux=false; + int tmp_seq; ++ FILE *tmp_file=NULL; + + + +@@ -539,10 +540,30 @@ + + case ']': + case '[': +- // this is a range +- lastarg=range; +- if(!Tab.ParseRange(argv[i])){ +- return 1; ++ // this could be a range or a filename beginning with bracket ++ // so check if it is not a file in current dir ++ tmp_file=fopen(argv[i],"r"); ++ if(tmp_file==NULL){ ++ // this is a range ++ lastarg=range; ++ if(!Tab.ParseRange(argv[i])){ ++ return 1; ++ } ++ } ++ else{ ++ // might be an input file, check! ++ if (lastarg==file && !(want_info)){ ++ // two file arguments encountered, apply 100% range to the first ++ // one ++ Tab.ParseRange("]0-]"); ++ } ++ if(tmp_file) ++ fclose(tmp_file); ++ lastarg=file; ++ if(!Tab.AddFile(argv[i])){ ++ fprintf(stderr,"%s is not a valid mpeg file\n",argv[i]); ++ if(!want_info) return 1; ++ } + } + break; + case '{': --- mpgtx-1.3.1.orig/debian/patches/00list +++ mpgtx-1.3.1/debian/patches/00list @@ -0,0 +1,5 @@ +05_fixes_tagmp3 +10_filenames_with_brackets +15_g++4_fixes +20_write_header_fix +25_fix_crash_missing_audio --- mpgtx-1.3.1.orig/debian/patches/05_fixes_tagmp3.dpatch +++ mpgtx-1.3.1/debian/patches/05_fixes_tagmp3.dpatch @@ -0,0 +1,37 @@ +#! /bin/sh -e +## 05_fixes_tagmp3.dpatch by Erik Schanze +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fixes tagmp3 error in truncating year when entered interactively (bug #167313) + +if [ $# -lt 1 ]; then + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2 + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}" + +case "$1" in + -patch) patch -p1 ${patch_opts} < $0;; + -unpatch) patch -R -p1 ${patch_opts} < $0;; + *) + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2 + exit 1;; +esac + +exit 0 + +@DPATCH@ +diff -urNad /home/es/devel/debian/mpgtx/mpgtx-1.3/id3command.cxx mpgtx-1.3/id3command.cxx +--- /home/es/devel/debian/mpgtx/mpgtx-1.3/id3command.cxx 2001-10-06 15:11:56.000000000 +0200 ++++ mpgtx-1.3/id3command.cxx 2004-07-26 22:18:27.000000000 +0200 +@@ -647,7 +647,7 @@ + // ask user + if (fieldsize>0){ + //any char* +- fgets(target,fieldsize,stdin); ++ fgets(target,fieldsize+1,stdin); + // now remove the trailing \n if any + if (strlen(target)!=0){ + if (target[strlen(target)-1]=='\n') target[strlen(target)-1]=0; --- mpgtx-1.3.1.orig/debian/patches/15_g++4_fixes.dpatch +++ mpgtx-1.3.1/debian/patches/15_g++4_fixes.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 15_g++4_fixes.dpatch by Erik Schanze +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: patch to fix a compiler warning + +@DPATCH@ +diff -urNad --exclude=CVS --exclude=.svn ./mpeg.cxx /tmp/dpep-work.MkYmFC/mpgtx-1.3.1/mpeg.cxx +--- ./mpeg.cxx 2005-04-07 18:49:09.000000000 +0200 ++++ /tmp/dpep-work.MkYmFC/mpgtx-1.3.1/mpeg.cxx 2005-07-07 21:09:34.276365000 +0200 +@@ -765,7 +765,7 @@ + //Given bitrate and FileSize, compute an estimation of the duration. + Video->duration = (FileSize*8.0) / (Video->bitrate*400); + //////////// Begin changes +- marker mymark; ++ marker mymark = 0; + while (true) { + myoffset = FindNextMarker(myoffset, &mymark); + if (mymark == 0xB8) break; --- mpgtx-1.3.1.orig/debian/patches/20_write_header_fix.dpatch +++ mpgtx-1.3.1/debian/patches/20_write_header_fix.dpatch @@ -0,0 +1,62 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 20_write_header_fix.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: There was a problem, if there is not PACK header directly before +## DP: first video. Now there is the correct check for it, before we use +## DP: PACK data. + +@DPATCH@ +diff -urNad mpgtx-1.3.1~/mpegOut.cxx mpgtx-1.3.1/mpegOut.cxx +--- mpgtx-1.3.1~/mpegOut.cxx 2005-04-07 18:49:09.000000000 +0200 ++++ mpgtx-1.3.1/mpegOut.cxx 2007-03-04 12:21:45.000000000 +0100 +@@ -97,12 +97,19 @@ + // correct the packet length before outputing it (stdout is not + // seekable:/ + off_t PACKlength = 0; +- mpeg2stuff_bytes = 4; +- if ((Mpeg->System->first_video_packet[4] & 0xF0) == 0x20) { +- //standard mpeg1 pack +- PACKlength = 12; +- } else { +- if ((Mpeg->System->first_video_packet[4] & 0xC0) == 0x40) { ++ mpeg2stuff_bytes = 4; ++ ++ if ( Mpeg->System->first_video_packet[0] == 0x00 && ++ Mpeg->System->first_video_packet[1] == 0x00 && ++ Mpeg->System->first_video_packet[2] == 0x01 && ++ Mpeg->System->first_video_packet[3] == 0xBA ) ++ { ++ /* we have a PACK in this buffer */ ++ if ((Mpeg->System->first_video_packet[4] & 0xF0) == 0x20) { ++ //standard mpeg1 pack ++ PACKlength = 12; ++ } ++ else if ((Mpeg->System->first_video_packet[4] & 0xC0) == 0x40) { + //new mpeg2 pack : 14 bytes + what stuffing ? + mpeg2stuff_bytes = Mpeg->System->first_video_packet[13] & 0x07; + PACKlength = 14; +@@ -116,7 +123,13 @@ + } + fprintf(stderr,"\n-------\n"); + #endif +- } else { ++ } ++ else ++ { ++ fprintf(stderr, "We found a system packet, but it is not MPEG1 or MPEG2. Bye\n"); ++ exit(1); ++ } ++ } else { + //wazup? + // May 28 2001: maybe there's no pack at all... + byte packetcode = Mpeg->System->first_video_packet[3] & 0xF0; +@@ -160,7 +173,7 @@ + } + // end May 28 + } +- } ++ + fwrite(Mpeg->System->first_video_packet, + 1, PACKlength + mpeg2stuff_bytes, MpegOut); + // now allocate required mem