diff options
author | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2001-02-24 18:00:00 +0100 |
---|---|---|
committer | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2001-02-24 18:00:00 +0100 |
commit | f2937af95ceaf3a52c327e96571367ef5475b3a1 (patch) | |
tree | 6a4e39714b5741d9dfcb90bdff3e6487f06e07fa /Tools/schnitt/index.php | |
parent | 3fe3c15d5db9c1f3982ffe6dac1ae4ad56d1664d (diff) | |
download | vdr-patch-lnbsharing-vdr-0.71.tar.gz vdr-patch-lnbsharing-vdr-0.71.tar.bz2 |
Version 0.71vdr-0.71
- Fixed 'Transfer Mode' in cases where a non-primary interface was switched to
a channel that only the primary interface can receive (which could happen in
the EPG scanner).
- The EPG scanner now starts with the first channel (it used to start with the
second channel).
- Reacitvated setting the PNR.
- Adapted the frame scanning to the new muxing of the driver.
- The new compile time option REMOTE=NONE can be used to compile VDR without
any remote control support (for applications where it shall be controlled
exclusively via SVDRP).
- The new command line option -D can be used to define which DVB interfaces
a certain instance of VDR shall use.
- The "Left" and "Right" keys are now used to page up and down in lists (thanks
to Martin Hammerschmid). Since the "Timers" menu already uses these keys to
(de)activate timers, this functionality is not available there.
- The "Main" and "Commands" menu now support "hotkeys", which means that if the
first non-blank character of a menu item is a digit in the range 1..9, that
item can be selected by pressing the respective numeric key on the remote
control.
- The channel data in 'channels.conf' now contains the teletext PID (thanks to
Dave Chapman). Existing files will be read normally (and the teletext PID set
to 0), but once they are written back (due to some channel editing) the file
will have the new format.
- The EPG scanner now scans each transponder only once per cycle.
- Deleted recordings are now automatically removed from disk after a while (not
only when disk space is being needed for a new recording).
- Fixed repeat function in LIRC remote control.
- Changed the MAXDVBAPI macro in dvbapi.c to 4 in order to directly support the
maximum possible number of DVB cards.
- The 'Ca' parameter in the default 'channels.conf' has been changed from '2'
to '3' because the VDR prototype now has 3 DVB cards (and currently the CAM
module only works if it is inserted into the last DVB card).
- The "Now", "Next" and "Schedule" menus now remember the current channel and
restore the list when switching between them.
- The "Green" button in the "Recordings" menu can now be used to rewind a
recording and play it from the very beginning.
- Fixed handling ':' in timer filenames and '\n' in timer summaries (see FORMATS).
- When removing recordings empty directories are now removed from the video
directory.
- Added the "schnitt" tools from Matthias Schniedermeyer.
- New SVDRP command MESG to display a short message on the OSD.
- The Perl script 'svdrpsend.pl' can be used to send SVDRP commands to VDR.
- SVDRP can now immediately reuse the same port if VDR is restarted.
- SVDRP now has a timeout after which the connection is automatically closed
(default is 300 seconds, can be changed in "Setup").
- The compile time switch VFAT can be used to make VDR avoid the ':' character
in file names (VFAT can't handle them). Do 'make VFAT=1' to enable this.
- Support for DVB-C (thanks to Hans-Peter Raschke and Peter Hofmann).
See the INSTALL file for more information about the use of VDR with cable.
- Fixed an occasional segfault in the EIT processor.
- A value of '0' for the EPGScanTimeout setup parameter now completely turns off
scanning for EPG data on both single and multiple card systems.
- New setup parameter "PrimaryLimit" that allows to prevent timers from using the
primary DVB interface in multi card systems. Default value is 0, which means
that every timer may use the primary interface.
- The 'active' field of a timer will now be explicitly set to '1' if the user
modifies an active timer (see FORMATS for details).
- The new command line option -w can be used to activate a watchdog that makes
VDR exit in case the main program loop does not respond for more than the
given number of seconds. This is mainly useful in combination with the new
'runvdr' script that restarts VDR in case is has exited.
Diffstat (limited to 'Tools/schnitt/index.php')
-rw-r--r-- | Tools/schnitt/index.php | 215 |
1 files changed, 215 insertions, 0 deletions
diff --git a/Tools/schnitt/index.php b/Tools/schnitt/index.php new file mode 100644 index 0000000..58a288f --- /dev/null +++ b/Tools/schnitt/index.php @@ -0,0 +1,215 @@ +<html> +<head> + <title>Schneiden</title> +</head> +<body bgcolor=#C0C0C0> +<? +if ($level == 0) + { + $dircount=0; + $handle=opendir('/x1/video'); + while ($file = readdir($handle)) { + if ($file != "." && $file != ".." && $file != "epg.data") { + $dir=$file; + $dircount++; + } + } + if ($dircount == 1) { + $level=1; + } + else + { +?> +<center><h1>Sender</h1></center> +<form action="index.php" method="post"> +<input type=hidden name=level value="1"> +<? + $handle=opendir('/x1/video'); + while ($file = readdir($handle)) { + if ($file != "." && $file != ".." && $file != "epg.data") { + echo "<input type=submit name=dir value=\"$file\">\n"; + } + } + closedir($handle); +?> +</form> +<? + } + } +if ($level == 1) + { + $dircount=0; + $handle=opendir("/x1/video/$dir"); + while ($file = readdir($handle)) { + if ($file != "." && $file != "..") { + $dira="$dir/$file"; + $dircount++; + } + } + if ($dircount == 1) { + $dir = $dira; + $level = 2; + } + else + { +?> +<form action="index.php" method="post"> +<input type=hidden name=level value="2"> +<? + echo "<center><h1>Filme/Serien fuer den Sender $dir</h1></center>"; + $handle=opendir("/x1/video/$dir"); + while ($file = readdir($handle)) { + if ($file != "." && $file != "..") { + echo "<input type=submit name=dir value=\"$dir/$file\"><br>\n"; + } + } + closedir($handle); +?> +</form> +<? + } + } +if ($level == 2) + { +if ($aindex) + $index = $aindex; +else if (!$index) + $index = 0; + +if ($dir) + chdir ("/x1/video/$dir"); + +switch ($cindex) { + case "-10000": + if ($index >=10000) + $index -= 10000; + break; + case "-4000": + if ($index >=4000) + $index -= 4000; + break; + case "-2000": + if ($index >=2000) + $index -= 2000; + break; + case "-1000": + if ($index >=1000) + $index -= 1000; + break; + case "-500": + if ($index >=500) + $index -= 500; + break; + case "-100": + if ($index >=100) + $index -= 100; + break; + case "Vorheriges I-Frame": + $pindex = $index - 1; + $fp = popen ("/usr/local/bin/my/getpreviframe.pl $pindex","r"); + $i = fgets($fp,1000); + $index = chop ($i); + pclose ($fp); + break; + case "Naechstes I-Frame": + $index ++; + break; + case "+100": + $index += 100; + break; + case "+500": + $index += 500; + break; + case "+1000": + $index += 1000; + break; + case "+2000": + $index += 2000; + break; + case "+4000": + $index += 4000; + break; + case "+10000": + $index += 10000; + break; + } + +if ($test) + { + $fp = popen ("/usr/local/bin/my/schnitt3.pl $index","r"); + $i = fgets($fp,1000); + pclose ($fp); + $index = chop ($i); + } + +if ($name) + { + $fp = fopen ("cut","w"); + fputs ($fp,"$name\n"); + fclose ($fp); + } + +if ($cut) + { + $fp = fopen ("cut","a"); + fputs ($fp,"$index\n"); + fclose ($fp); + } + +$fp = popen ("/usr/local/bin/my/schnitt.pl $index","r"); +$i = fgets($fp,1000); +pclose ($fp); +$index = chop ($i); + +system ("/usr/local/bin/my/dumpframe /x2/temp/bild.m2v"); +system ("mv output.ppm /x2/temp"); +system ("touch /x2/temp/newpic"); +system ("killall sleep"); +?> +<form action="index.php" method="post"> +<input type=hidden name=level value="2"> +<input type=hidden name=dir value="<?=$dir?>"> +<input type=hidden name=index value=<?=$index?>> +<table width=90% align=center> +<tr> +<td><h1>Index <?=$index?></h1></td> +<td><h1>Dir: <?=$dir?></h1></td> +</tr> +</table> +<table width=80% align=center> +<tr> +<td><input type=submit name=cindex value="-10000"></td> +<td><input type=submit name=cindex value="-4000"></td> +<td><input type=submit name=cindex value="-2000"></td> +<td><input type=submit name=cindex value="-1000"></td> +<td><input type=submit name=cindex value="-500"></td> +<td><input type=submit name=cindex value="-100"></td> +<td><input type=submit name=cindex value="Vorheriges I-Frame"></td> +<td><input type=submit name=cindex value="Naechstes I-Frame"</td> +<td><input type=submit name=cindex value="+100"></td> +<td><input type=submit name=cindex value="+500"></td> +<td><input type=submit name=cindex value="+1000"></td> +<td><input type=submit name=cindex value="+2000"></td> +<td><input type=submit name=cindex value="+4000"></td> +<td><input type=submit name=cindex value="+10000"></td> +</tr> +</table> +<table> +<tr> +<td>Absoluter Index: <input type=text name=aindex size=6></td> +<td><input type=submit name=test value="Schnitt-Test"></td> +<td><input type=submit name=cut value="Mark"></td> +</form> +<form action="index.php" method="post"> +<input type=hidden name=level value="2"> +<input type=hidden name=dir value="<?=$dir?>"> +<input type=hidden name=index value=<?=$index?>> +<td>Titel: <input type=text name=name size=50 maxlength=255></td> +</form> +</tr> +</table> +<? +} +?> +</body> +</html> |