Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Screenshots from Recordings



-----BEGIN PGP SIGNED MESSAGE-----

On Saturday 07 September 2002 07:51, Jan Grell wrote:
> Hi,
>
> > echo -e "GRAB /tmp/pix.jpg jpeg 50 352 288\nQUIT\n" | netcat
> > my.vdr.machine 2001 which grabs an JPG image with a quality level of 50%
> > to "/tmp/pix.jpg". You could also use the svdrpsend.pl script for this
> > issue...
>
> a simple
>   svdrpsend.pl "GRAB /tmp/vdr-capture-001.jpg"
> grabs full size (768x576) with full quality.
>
> By the way: I would love to have this function on the remote control. The
> filename should be generated automatically from the broadcast's epg title
> and a sequential number.

The following quickhack saves a screenshot to /screenshots (You have to
create that directory first, of course ;) )
It saves images as fullscreen JPGs (768X576). Therefore it figures out, 
what channel your primary DVB card is on and adds that to the name like:

DasErste-20020907-202029.jpg

Format: ChannelName-YYYYMMDD-HHMMSS.jpg

The "script" surely could be better (get the title from EPG), but it works
for me. I just put it on a key on my remote and am able to make screenshots 
whenever I want to :)

One "drawback" is: You actually *are* able to grab screenshots from the
recording you are viewing, but the get named by the last channel viewed 
with your DVB card...

Maybe this is useful for one or the other, too

####### grabImage.sh ################# snip ################################

#!/bin/bash

CHAN=$(svdrpsend.pl chan 2>&1| grep 250 | awk '{print $3$4$5$6}')
svdrpsend.pl "grab /screenshots/${CHAN}-$(date +%Y%m%d-%H%H%S).jpg"

####################################### snap ###############################


Have fun

- -- 
with best regards
- ---
Karsten Mueller
Softwaredevelopment / Keyaccount Manager
RATIO Entwicklungen GmbH
Admiralitaetstr. 59
20459 Hamburg
Email: mailto:kmu@ratio.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iQEVAwUBPXpL+va/7v6IZOEZAQFJ7Qf9EwBo/yUyiXMFG6VqPDURF2/ssvB7M+bM
KgxUZyKLKaIPENVzrEgCC4jjZ3309CrZHsIJubOZWmQwpxPwHn+RzfDok0ZY+ODC
kLZGYIT+aT3SJJHdZOvctILbkip16NJHhO5kYGtNJTEnAj7iME848ZD5PHhbyCue
cecDaG1kNU8hfrZryjtBUj94NV+iP9wQOqta0rHAr4s9ucdP5ek6dIbm3tX2m8zX
/VxfMNEqPuyGMrTLksaUUBp0rf74Ty0Ae4qEKKJE9OaM68/HyAx79SyPBCjGvSse
YQI+CveZhu6OVAOY5i6n37Erm0K6pgaPaZg9AapqYL9DjQvPjIixmA==
=vym+
-----END PGP SIGNATURE-----





Home | Main Index | Thread Index