Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Jump to End of recording?
Hi all,
At 18.41 27-10-2003 +0100, Martin Elsner wrote:
>While cutting my recordings I was wondering if there is a quick way to
>jump to the end of a recording or jump in steps of 10 minutes or so? To
>go through the whole movie with fast forward isnt that fast and spoils
>you if you havent seen the movie ;-)
For this same need (moving fast around the end of a recording), I wrote a
"one command" script :-), that copy below; of course, the best is to put it in
reccmds.conf :
genmarks
----------------------------------------------------------------------------
------
#!/bin/sh
# Generate a initial mark and other 7 at the end of a record, each 5 minutes.
# (first, build a inverted list of I-frames, then generate the marks...)
hexdump -e"8/1 \"%02x \" \"\\n\"" $1/index.vdr | cut -b13-14 | nl -ba -nrz
-w7 -s: | grep \:01 | cut -f1 -d: | tac | awk '
BEGIN{ n=-1 } END{ print "0:0:0.1" } {
if (n<0) q=9999999
else q=p-$1
if (n<6 && q>=7500) {
ff=$1%25
s=int($1/25)
hh=int(s/3600)
s=s-hh*3600
mm=int(s/60)
ss=s%60
print hh ":" mm ":" ss "." ff
p=$1
n+=1
}
}' > $1/marks.vdr
echo Done!
----------------------------------------------------------------------------
------
Best regards:
--
Roberto Deza Asensio
Universidad de Navarra
Data Procesing Center
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index