mirror of
https://github.com/mpv-player/mpv
synced 2025-01-12 01:49:33 +00:00
Remove obsolete/unnecessary/trivial scripts and programs.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22856 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d898f5c990
commit
c5bdfbc886
@ -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) \
|
||||
|
95
TOOLS/README
95
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 <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 @@ Usage: divx2svcd <input_avi> [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=<n> suboption.
|
||||
|
||||
Usage: menc2pass <options>
|
||||
|
||||
|
||||
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 <video-file> <start-pos> <res>
|
||||
|
||||
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
|
||||
|
@ -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;
|
||||
}
|
@ -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
|
@ -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;
|
||||
}
|
@ -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"
|
||||
}
|
||||
|
51
TOOLS/mp.pl
51
TOOLS/mp.pl
@ -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
|
@ -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";
|
@ -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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user