Page 3 of 12

Re: [App] libScreenShot E/F/H

Posted: Fri Aug 21, 2015 8:33 pm
by blackbox
The ALT method is very good, only I find the Image resolution is too small

Re: [App] libScreenShot E/F/H

Posted: Fri Aug 21, 2015 8:40 pm
by zoelechat
blackbox wrote:the Image resolution is too small
Can't do anything about that, I didn't choose... Better than nothing, no? :)

Re: [App] libScreenShot E/F/H

Posted: Fri Aug 21, 2015 9:03 pm
by blackbox
I not criticize you works :D on the contrary, am very grateful for this
I not give up hope for more libScreenShot support on T-GFS :)

Re: [App] libScreenShot E/F/H

Posted: Sat Aug 22, 2015 7:05 pm
by mad_ady
You guys realize, of course that this screenshot module + ir control module + a simple webinterface can be combined to have a "remote desktop" connection to your tv? Add in some ssh tunnels and you can visually control the tv from anywhere! Could be used to help a relative or to keep an eye on what the kids are watching... I like it! Can't wait for root :)

Re: [App] libScreenShot E/F/H

Posted: Mon Oct 26, 2015 6:16 pm
by smart_lover
How can I get file name of screenshot from log file?
I used following commands, But I think TV takes some time to store image to its memory.And we have to use some sleep, but how?!

Code: Select all

samyGOso -A -B -l /mnt/opt/privateer/usr/libso/libScreenShot.so JPG PATH:/dtv/usb/sda1/Screenshot/
grep "/dtv/usb/sda1/Screenshot/" /dtv/ScreenShot.log
I want to give file name like "20151027000817.jpg" with a single(maybe long) command. I use semicolon to split my commands without success! Everytime I execute my commands I can only see following result from my all commands and grep commands does not execute(I think).

Code: Select all

samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
Injecting '/mnt/opt/privateer/usr/libso/libScreenShot.so' resident: '0'
Succeeded.

Re: [App] libScreenShot E/F/H

Posted: Mon Oct 26, 2015 6:19 pm
by zoelechat
1ST POST wrote:Logfile is written to /dtv/ScreenShot.log and shows some useful infos:
SpoilerShow

Code: Select all

[ScreenShot] lib_init, >>>
[ScreenShot] Found data in frame buffer layer: 0
[ScreenShot] Frame buffer address: 0x48021000
[ScreenShot] [Alert] TEXT:'Capture !'
[ScreenShot] Resolution: 1280x720
[ScreenShot] Raw size: 0x384000
[ScreenShot] JPEG address: 0x9185158
[ScreenShot] JPEG size: 86703 (Quality: 100)
[ScreenShot] * Stored to /dtv/usb/sda1/20150615163616_OSD.jpg
[ScreenShot] [Alert] TEXT:20150615163616_OSD.jpg
[ScreenShot] Capture process took: 1088ms
[ScreenShot] <<< lib_deinit
No way to know filename until file is written :)
But it's just timestamp...

Re: [App] libScreenShot E/F/H

Posted: Mon Oct 26, 2015 6:27 pm
by smart_lover
zoelechat wrote: No way to know filename until file is written :)
But it's just timestamp...
I already know! But What about some sleep command between two commands?
My question is how can I execute three commands in one line in linux.
1:Screenshot with libScreenShot
2:some sleep
3:get file name with grep

Re: [App] libScreenShot E/F/H

Posted: Mon Oct 26, 2015 6:33 pm
by zoelechat

Code: Select all

command1 ; sleep 2 ; command3
:)
How about a script? Would be only one command.

Re: [App] libScreenShot E/F/H

Posted: Mon Oct 26, 2015 6:44 pm
by smart_lover
It works! How can I execute following commands in a single script?

Code: Select all

samyGOso -A -B -l /mnt/opt/privateer/usr/libso/libScreenShot.so J
PG PATH:/dtv/usb/sda1/Screenshot/ ; sleep 2 ; grep "/dtv/usb/sda1/Screenshot/" /
dtv/ScreenShot.log
But I want to get exactly file name(like 20151027004331.jpg) instead of this:

Code: Select all

samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
Injecting '/mnt/opt/privateer/usr/libso/libScreenShot.so' resident: '0'
Succeeded.
[ScreenShot] * Stored to /dtv/usb/sda1/Screenshot//20151027004331.jpg


Re: [App] libScreenShot E/F/H

Posted: Mon Oct 26, 2015 6:58 pm
by zoelechat
To use a script, just paste commands in a script :)

Otherwise to get only filename using a "single" command:

Code: Select all

samyGOso -A -B -l /mnt/opt/privateer/usr/libso/libScreenShot.so JPG PATH:/dtv/usb/sda1/Screenshot > /dev/null ; sleep 2 ; grep "/dtv/usb/sda1/Screenshot" /dtv/ScreenShot.log | sed s/.*20/20/
(will work only until 31/12/2099 :D )