From c5bdfbc886a67a121ff7f1f6b27f33d07b0703cd Mon Sep 17 00:00:00 2001 From: diego Date: Sat, 31 Mar 2007 14:10:44 +0000 Subject: Remove obsolete/unnecessary/trivial scripts and programs. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22856 b3059339-0415-0410-9bf9-f77b7e298cf2 --- TOOLS/Makefile | 2 -- TOOLS/README | 95 ------------------------------------------------------ TOOLS/bios2dump.c | 55 ------------------------------- TOOLS/fastmem.sh | 19 ----------- TOOLS/mem2dump.c | 49 ---------------------------- TOOLS/menc2pass | 30 ----------------- TOOLS/mp.pl | 51 ----------------------------- TOOLS/perlbench.pl | 32 ------------------ TOOLS/sws-test | 19 ----------- TOOLS/x2mpsub.sh | 20 ------------ 10 files changed, 372 deletions(-) delete mode 100644 TOOLS/bios2dump.c delete mode 100755 TOOLS/fastmem.sh delete mode 100644 TOOLS/mem2dump.c delete mode 100755 TOOLS/menc2pass delete mode 100755 TOOLS/mp.pl delete mode 100755 TOOLS/perlbench.pl delete mode 100755 TOOLS/sws-test delete mode 100755 TOOLS/x2mpsub.sh (limited to 'TOOLS') diff --git a/TOOLS/Makefile b/TOOLS/Makefile index 2d9c1fe9c4..50d2db6c5a 100644 --- a/TOOLS/Makefile +++ b/TOOLS/Makefile @@ -6,9 +6,7 @@ OBJS = alaw-gen$(EXESUF) \ asfinfo$(EXESUF) \ avi-fix$(EXESUF) \ avisubdump$(EXESUF) \ - bios2dump$(EXESUF) \ dump_mp4$(EXESUF) \ - mem2dump$(EXESUF) \ movinfo$(EXESUF) \ png2raw$(EXESUF) \ subrip$(EXESUF) \ diff --git a/TOOLS/README b/TOOLS/README index ddf473e60c..5824495165 100644 --- a/TOOLS/README +++ b/TOOLS/README @@ -81,32 +81,6 @@ Usage: subsearch.sh [directory] mplayer -sub `subsearch.sh` movie -x2mpsub.sh - -Author: Gabucino - -Description: Converts the subtitles in the current directory into MPsub - format (subtitles go in ./converted-subtitles/). - -Usage: x2mpsub.sh - - -mp.pl - -Author: Felix Bünemann - -Description: Small helper script that allows to play multiple files with - MPlayer. Wildcards are supported. - -Usage: mp.pl - Where are all possible command line switches - for MPlayer and can be either a list of files, - like file1 file2 file3 and/or a wildcard definition, - like *.avi. - - example: mp.pl -vo x11 /dvd/VIDEO_TS/VTS_05_*.VOB movie.asf - - wma2ogg.pl Author: Peter Simon @@ -137,17 +111,6 @@ Usage: divx2svcd [options] see 'divx2svcd -h' for more info -menc2pass - -Author: Felix Bünemann - -Description: Helper script to ease MEncoder two pass encoding. Give it all - the encoding parameters you would pass to mencoder, but leave - out the (v)pass= suboption. - -Usage: menc2pass - - mencvcd Author: Jürgen Hammelmann @@ -239,27 +202,6 @@ Note: This script uses only MEncode/MPlayer. Check the final log Tech scripts in the TOOLS dir ----------------------------- -fastmem.sh - -Author: Arpi - -Description: benchmark/testbed for fastmemcpy stuff - -Usage: fastmem.sh - - -sws-test - -Author: Michael Niedermayer - -Description: Very simple script to generate PNG images from a video with all - -sws methods. - -Usage: sws-test - - example: sws-test abc.avi 10 160:120 - - calcbpp.pl Author: Moritz Bunkus @@ -296,15 +238,6 @@ Usage: countquant.pl < divx2pass.log the frames then you can safely increase your picture size. -perlbench.pl - -Author: Felix Bünemann - -Description: fastmemcpy benchmark script - -Usage: perlbench.pl - - plotpsnr.pl Author: Jonas Jermann @@ -399,20 +332,6 @@ Note: It does not check or fix the index, to do this use 'mencoder -forceidx -oac copy -ovc copy'. -bios2dump - -Author: Nick Kurshev - -Description: Extract your PC BIOS and save it to file. - -Usage: As argument requires DOS interrupt number in hexadecimal form. - As output - will write 64KB file which will named: - SSSS_OOOO.intXX - where: SSSS - segment of BIOS interrupt handler - OOOO - offset of BIOS interrupt handler - XX - interrupt number which was passed as argument - - checktree.sh Author: Ivo van Poorten @@ -463,20 +382,6 @@ Description: benchmark/testbed for fastmemcpy stuff Note: Also see fastmem.sh. -mem2dump - -Author: Nick Kurshev - -Description: Dump memory block to file. - -Usage: As argument requires absolute address of memory dump and its - length (in hexadecimal form). - As output - will write file which will be named: - memADDR_LEN.dump - where: ADDR - given address of memory - LEN - given length of memory - - movinfo Author: Arpi diff --git a/TOOLS/bios2dump.c b/TOOLS/bios2dump.c deleted file mode 100644 index cdd74e1460..0000000000 --- a/TOOLS/bios2dump.c +++ /dev/null @@ -1,55 +0,0 @@ -/* - bios2dump.c - Was designed to extract BIOS of your PC and save it to file. - Usage: as argument requires DOS interrupt number in hexadecimal form. - as output - will write 64KB file which will named: SSSS_OOOO.intXX - where: SSSS - segment of BIOS interrupt handler - OOOO - offset of BIOS interrupt handler - XX - interrupt number which was passed as argument - Licence: GNU GPL v2 - Copyright: Nick Kurshev -*/ -#include -#include - -int main( int argc, char *argv[]) -{ - FILE * fd_mem, *fd_out; - unsigned short int_seg,int_off; - unsigned long bios_off; - int int_no; - size_t i; - char outname[80]; - unsigned char ch; - if(argc < 2) - { - printf("Usage: %s int_no(in hex)\n",argv[0]); - return EXIT_FAILURE; - } - int_no = strtol(argv[1],NULL,16); - if(!(fd_mem = fopen("/dev/mem","rb"))) - { - perror("Can't open file - /dev/mem"); - return EXIT_FAILURE; - } - fseek(fd_mem,int_no*4,SEEK_SET); - fread(&int_off,sizeof(unsigned short),1,fd_mem); - fread(&int_seg,sizeof(unsigned short),1,fd_mem); - sprintf(outname,"%04X_%04X.int%02X",int_seg,int_off,int_no); - if(!(fd_out = fopen(outname,"wb"))) - { - perror("Can't open output file"); - fclose(fd_mem); - return EXIT_FAILURE; - } - bios_off = (int_seg << 4) + int_off; - bios_off &= 0xf0000; - fseek(fd_mem,bios_off,SEEK_SET); - for(i=0;i<0x10000;i++) - { - fread(&ch,1,1,fd_mem); - fwrite(&ch,1,1,fd_out); - } - fclose(fd_out); - fclose(fd_mem); - return EXIT_SUCCESS; -} diff --git a/TOOLS/fastmem.sh b/TOOLS/fastmem.sh deleted file mode 100755 index fca5e8b344..0000000000 --- a/TOOLS/fastmem.sh +++ /dev/null @@ -1,19 +0,0 @@ - -sync -sleep 2 -./fastmem-k6 -sleep 2 -./fastmem-k7 -sleep 2 -./fastmem-mmx -sleep 2 -./fastmem-sse -sleep 2 -./fastmem2-k6 -sleep 2 -./fastmem2-k7 -sleep 2 -./fastmem2-mmx -sleep 2 -./fastmem2-sse -sleep 2 diff --git a/TOOLS/mem2dump.c b/TOOLS/mem2dump.c deleted file mode 100644 index 9a09694803..0000000000 --- a/TOOLS/mem2dump.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - bios2dump.c - Was designed to dump memory block to file. - Usage: as argument requires absolute address of memory dump and its lenght - (int hexadecimal form). - as output - will write file which will named: memADDR_LEN.dump - where: ADDR - given address of memory - LEN - given length of memory - Licence: GNU GPL v2 - Copyright: Nick Kurshev -*/ -#include -#include - -int main( int argc, char *argv[]) -{ - FILE * fd_mem, *fd_out; - unsigned long i,addr,len; - int int_no; - char outname[80]; - unsigned char ch; - if(argc < 3) - { - printf("Usage: %s address length (in hex)\n",argv[0]); - return EXIT_FAILURE; - } - addr = strtol(argv[1],NULL,16); - len = strtol(argv[2],NULL,16); - if(!(fd_mem = fopen("/dev/mem","rb"))) - { - perror("Can't open file - /dev/mem"); - return EXIT_FAILURE; - } - sprintf(outname,"mem%08X_%08X.dump",addr,len); - if(!(fd_out = fopen(outname,"wb"))) - { - perror("Can't open output file"); - fclose(fd_mem); - return EXIT_FAILURE; - } - fseek(fd_mem,addr,SEEK_SET); - for(i=0;i -# This file comes under GPL, see http://www.gnu.org/copyleft/gpl.html for more -# information on it's licensing. -use strict; -my $mencoder="mencoder"; # Path to MEncoder (including binary name) - -die <<"EOF" unless @ARGV; -Menc2Pass: No arguments given! -Please give all usual encoding parameters you would give to mencoder, but leave -away the pass= suboption. -EOF - -for(my $i=1; $i<=2; $i++) { - my $parm=""; - foreach my $val (@ARGV) { - if($val =~ /-lavcopts/) { - $parm.="$val vpass=$i:"; - } elsif($val =~ /-(divx4)|(xvid)opts/) { - $parm.="$val pass=$i:"; - } else { - $parm.="$val "; - } - } - print "Running $mencoder $parm\n"; - system($mencoder,$parm) - and die "MEncoder pass $i failed!\n" -} - diff --git a/TOOLS/mp.pl b/TOOLS/mp.pl deleted file mode 100755 index 9e69501d5d..0000000000 --- a/TOOLS/mp.pl +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/perl -w -use strict; -# Filename: mp.pl -# Date : created 2001-07-24 -# Author : Felix Buenemann -# Idea by : David Chan -# License : GNU General Public License (GPL) -# (refer to: http://www.fsf.org/licenses/gpl.txt) -# -# Description: -# Small Perl helper script that allows to play multiple files with MPlayer. -# Wildcards are supported (eg. "mp.pl -vo x11 /data/*.avi"). -# -# Configuration: -# If MPlayer is not in your path, give the full -# path to mplayer binary in the line below. -# (example: "/usr/local/bin/mplayer") -use constant MPLAYER => "mplayer"; - -my (@parms, @files); - -die -"mp.pl: No parameters given! - -MPlayer multifile playback helper script 0.9 -Copyleft 2001 by Felix Buenemann - -Syntax: mp.pl - -Where are all possible commandline switches for mplayer and - can be either a list of files, like file1 file2 file3 and/or a -wildcard definition, like *.avi. - -Example: mp.pl -vo x11 /dvd/VIDEO_TS/VTS_05_*.VOB movie.asf -\n" -if ($#ARGV < 0) || ($ARGV[0] =~ m/^--*(h|help)/); - -foreach (@ARGV) { - if(m/^-\w+/) { push @parms, $_ } - elsif(-f $_ && -r _ && -B _) { push @files, $_ } - else { push @parms, $_ } -} -die "No valid files to process!\n" unless @files; -foreach (@files) { - print "Invoking MPlayer for '$_'...\n"; - system(MPLAYER, @parms, $_) - or die "Couldn't execute MPlayer: $!\n"; - ($? >> 8) != 1 - and die "Couldn't properly execute MPlayer, aborting!\n"; -} -# EOF diff --git a/TOOLS/perlbench.pl b/TOOLS/perlbench.pl deleted file mode 100755 index 7b285d9f07..0000000000 --- a/TOOLS/perlbench.pl +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/perl -w -use strict; -use constant CMD => "./fastmem2-k7"; - -sub dobench { - my $i; - my ($runs, $sleep, $command) = @_; - for($i = 0; $i < $runs; $i++) { - sleep $sleep; - system $command; - } -} - -print "Single run of sse bench with 1sec sleep:\n"; -&dobench(1,1,CMD); -print "Sleeping 10seconds before starting next bench!\n"; -sleep 10; -print "10 runs of sse bench with 0sec sleep:\n"; -&dobench(10,0,CMD); -print "Sleeping 10seconds before starting next bench!\n"; -sleep 10; -print "10 runs of sse bench with 1sec sleep:\n"; -&dobench(10,1,CMD); -print "Sleeping 10seconds before starting next bench!\n"; -sleep 10; -print "10 runs of sse bench with 2sec sleep:\n"; -&dobench(10,2,CMD); -print "Sleeping 10seconds before starting next bench!\n"; -sleep 10; -print "10 runs of sse bench with 3sec sleep:\n"; -&dobench(10,3,CMD); -print "Bench finished!\n"; diff --git a/TOOLS/sws-test b/TOOLS/sws-test deleted file mode 100755 index 8ddd911900..0000000000 --- a/TOOLS/sws-test +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -if [ $# -lt 3 ] ; then - echo "sws-test " - echo "example: sws-test abc.avi 10 160:120" - exit 1 -fi - -for i in `seq 0 10` ; do - mplayer -vo png $1 -ss $2 -frames 3 -sws $i -vf scale=$3 - rm 00000001.png - mv 00000002.png sws-`basename $1`-$2-$3-$i.png -done - -#gauss with lowwer variance - mplayer -vo png $1 -ss $2 -frames 3 -sws 7 -vf scale=$3:0:50 - rm 00000001.png - mv 00000002.png sws-`basename $1`-$2-$3-7-50.png - diff --git a/TOOLS/x2mpsub.sh b/TOOLS/x2mpsub.sh deleted file mode 100755 index dd214f3e06..0000000000 --- a/TOOLS/x2mpsub.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -# -# This script converts the subtitles in the current directory into -# MPsub format (into ./converted-subtitles/*) -# -# Gabucino. No warranty. :) -# - -TMP="x2mpsub-$RANDOM" -mkdir "$TMP" -touch "$TMP/$TMP" - -for x in *; do - echo "Converting $x" - mplayer "$TMP/$TMP" -sub "$x" -dumpmpsub -quiet > /dev/null 2> /dev/null - mv dump.mpsub "$TMP/$x" -done - -rm "$TMP/$TMP" -mv "$TMP" converted-subtitles -- cgit v1.2.3