Mercurial > mplayer.hg
changeset 22838:c13fe81f024c
Remove obsolete/unnecessary/trivial scripts and programs.
author | diego |
---|---|
date | Sat, 31 Mar 2007 14:10:44 +0000 |
parents | 2e506e1c8d85 |
children | a5fb0006b2ee |
files | TOOLS/Makefile TOOLS/README TOOLS/bios2dump.c TOOLS/fastmem.sh TOOLS/mem2dump.c TOOLS/menc2pass TOOLS/mp.pl TOOLS/perlbench.pl TOOLS/sws-test TOOLS/x2mpsub.sh |
diffstat | 10 files changed, 0 insertions(+), 372 deletions(-) [+] |
line wrap: on
line diff
--- a/TOOLS/Makefile Sat Mar 31 13:37:29 2007 +0000 +++ b/TOOLS/Makefile Sat Mar 31 14:10:44 2007 +0000 @@ -6,9 +6,7 @@ asfinfo$(EXESUF) \ avi-fix$(EXESUF) \ avisubdump$(EXESUF) \ - bios2dump$(EXESUF) \ dump_mp4$(EXESUF) \ - mem2dump$(EXESUF) \ movinfo$(EXESUF) \ png2raw$(EXESUF) \ subrip$(EXESUF) \
--- a/TOOLS/README Sat Mar 31 13:37:29 2007 +0000 +++ b/TOOLS/README Sat Mar 31 14:10:44 2007 +0000 @@ -81,32 +81,6 @@ 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 <parameters> <files> - Where <parameters> are all possible command line switches - for MPlayer and <files> 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 @@ 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=<n> suboption. - -Usage: menc2pass <options> - - mencvcd Author: Jürgen Hammelmann @@ -239,27 +202,6 @@ 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 <video-file> <start-pos> <res> - - example: sws-test abc.avi 10 160:120 - - calcbpp.pl Author: Moritz Bunkus @@ -296,15 +238,6 @@ 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 @@ '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 @@ 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
--- a/TOOLS/bios2dump.c Sat Mar 31 13:37:29 2007 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -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 <nickols_k@mail.ru> -*/ -#include <stdio.h> -#include <stdlib.h> - -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; -}
--- a/TOOLS/fastmem.sh Sat Mar 31 13:37:29 2007 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -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
--- a/TOOLS/mem2dump.c Sat Mar 31 13:37:29 2007 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -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 <nickols_k@mail.ru> -*/ -#include <stdio.h> -#include <stdlib.h> - -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<len;i++) - { - fread(&ch,1,1,fd_mem); - fwrite(&ch,1,1,fd_out); - } - fclose(fd_out); - fclose(fd_mem); - return EXIT_SUCCESS; -}
--- a/TOOLS/menc2pass Sat Mar 31 13:37:29 2007 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -#!/usr/bin/perl -w -# Helper script to ease MEncoder two pass encoding -# Copyleft 2001 by Felix Buenemann <atmosfear@users.sourceforge.net> -# 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=<n> 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" -} -
--- a/TOOLS/mp.pl Sat Mar 31 13:37:29 2007 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ -#!/usr/bin/perl -w -use strict; -# Filename: mp.pl -# Date : created 2001-07-24 -# Author : Felix Buenemann <atmosfear at users.sourceforge.net> -# Idea by : David Chan <prometheus at theendofthetunnel.org> -# 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 <parameters> <files> - -Where <parameters> are all possible commandline switches for mplayer and -<files> 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
--- a/TOOLS/perlbench.pl Sat Mar 31 13:37:29 2007 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -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";
--- a/TOOLS/sws-test Sat Mar 31 13:37:29 2007 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -#!/bin/sh - -if [ $# -lt 3 ] ; then - echo "sws-test <video-file> <start-pos> <res>" - 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 -
--- a/TOOLS/x2mpsub.sh Sat Mar 31 13:37:29 2007 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -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