Sign up here and you can log into the forum!

*Updated 4/27/12* Plugin: VideoScreensaver

The WDTVExt plugin depot. Plugins/libraries/code only

Re: *Updated 4/27/12* Plugin: VideoScreensaver   

Postby leetwanker » Wed Nov 20, 2013 2:48 pm

KAD wrote:yeah, well you seem pretty well adapt to a linux environment
so I'll bet there's quite a few things, that the deeper you get into it, could be improved


Eh, I stumble my way through well enough I suppose. I'm rebooting now. If this works on the first try I'll be a bit surprised.

edit: Well, the symlinks are working. I'm not sure I edited everything needed though. Do #!/usr/bin/bash and #!/bin/sh need to be edited? I'm not sure where to go from here.

I've been waiting for about an hour for VideoLoop.log to be written. Nada. No error messages in messages.txt or dmaosd.log.

So KAD, if not WDTV, what are you using? Or you using b.rad's new firmware? Palace is it?

Current config:
Code: Select all
SCREENSAVER='ON'
MYSCREENSAVER=''
RANDOM_SCREENSAVER='2'
RANDOM_SCREENSAVERDIR='/tmp/mnt/C4F2-4A0D/screensavers'
SCREENSAVER_ON_PAUSE='OFF'
CONTINOUS_PLAY='false'
MULTI_VIDEO='ON'
MULTI_VIDEO_DIR='/tmp/mnt/C4F2-4A0D/screensavers'
1.02.21_V.WDLXTV_LIVE-0.5.2.0
leetwanker
DLX'er
 
Posts: 101
Joined: Sat Dec 08, 2012 7:52 am

Re: *Updated 4/27/12* Plugin: VideoScreensaver   

Postby leetwanker » Wed Nov 20, 2013 7:02 pm

How is this possible?
Code: Select all
# cd /tmp/wdtvext-plugins/VideoScreensaver/bin/
# ls -l
-rwxrwxrwx    1 root     root         4553 Apr 28  2012 VideoLoop
-rwxrwxrwx    1 root     root          529 Dec  1  2011 random_screensaver
# VideoLoop forcestart
-sh: VideoLoop: not found
#
# random_screensaver forcestart
-sh: random_screensaver: not found
#


See, KAD, I told you I was a bumbling, linux n00b!

update: Many hours and many reboots later: I haven't seen a VideoLoop.log pop up since I "fixed" the symlinks.
1.02.21_V.WDLXTV_LIVE-0.5.2.0
leetwanker
DLX'er
 
Posts: 101
Joined: Sat Dec 08, 2012 7:52 am

Re: *Updated 4/27/12* Plugin: VideoScreensaver   

Postby KAD » Wed Nov 20, 2013 8:06 pm

I'm just getting started on this

so far pulled my device
and boot, it's on 1.05.04 flashed - this does not support WDTVext

plugin in thumbdrive with 1.05.04-dev (not released dev version with WDTVext support)
first post of this thread notes development was done while on that firmware, and yes it's ext3 format

and it just works, with no error messages

as for some of your latest error messages

forcestart is only a valid option for VideoLoop
random_screensaver does not accept cmd line arguments, as it only runs on event power off from remote

also to execute you need to preface
Code: Select all
./VideoLoop forcestart


also above I notice your config for MYSCREENSAVER is blank
that field should never be blank


the dot indicates look in current directory

next I'll pull 1.02.21 and test it, be back in a bit
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: *Updated 4/27/12* Plugin: VideoScreensaver   

Postby KAD » Wed Nov 20, 2013 8:20 pm

couldn't find an already downloaded copy of 1.02.21
while I wait for that to complete to answer a few other questions

to increase .js debugging for videoscreensaver do
Code: Select all
config_tool -c VSCREENSAVER_DEBUG=5 && config_tool -s && config_tool -s && reboot

this sets debugging to maximum level
saves config and reboots the device

as for what I've been using I've been on palace, yes the newer WD SMP since just before that alpha was released

there's things I like about it better than the older device, but there's also things I miss from my old WD Live with WDLXTV
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: *Updated 4/27/12* Plugin: VideoScreensaver   

Postby leetwanker » Wed Nov 20, 2013 8:45 pm

Neither of the files can be executed. Pretty weird, right?

Code: Select all
# cd /tmp/mnt/C4F2-4A0D/.wdtvext-plugins/VideoScreensaver/bin/
# ./VideoLoop start
-sh: ./VideoLoop: not found
# ./random_screensaver  start
-sh: ./random_screensaver: not found
#


I've tried doing the same from /tmp where they're both symlinked and also from /tmp/wdtvext-plugins/Videoscreensaver/bin/ (as well as on the flash drive itself, ofc). They just won't execute.

VideoLoop.log just showed it's face again (FINALLY):
Code: Select all
# tail /tmp/VideoLoop.log
sh: VideoLoop: not found
#


Is this a good configuration?
Code: Select all
SCREENSAVER='ON'
MYSCREENSAVER='/tmp/mnt/C4F2-4A0D/MULTI_VIDEO_DIR/earth.from.space.720.mp4'
RANDOM_SCREENSAVER='2'
RANDOM_SCREENSAVERDIR='/tmp/mnt/C4F2-4A0D/MULTI_VIDEO_DIR'
SCREENSAVER_ON_PAUSE='ON'
CONTINOUS_PLAY='false'
MULTI_VIDEO='ON'
MULTI_VIDEO_DIR='/tmp/mnt/C4F2-4A0D/MULTI_VIDEO_DIR'
VSCREENSAVER_DEBUG='5'


The reason I had MYSCREENSAVER blank was so playing the single file it wouldn't get in the way of the RANDOM or MULTI. But I've fixed it now as you can see. I did fix it, right? lol
1.02.21_V.WDLXTV_LIVE-0.5.2.0
leetwanker
DLX'er
 
Posts: 101
Joined: Sat Dec 08, 2012 7:52 am

Re: *Updated 4/27/12* Plugin: VideoScreensaver   

Postby leetwanker » Wed Nov 20, 2013 9:35 pm

Okay. Apparently I'm missing libraries of some sort...

Code: Select all
# file VideoLoop
VideoLoop: Bourne-Again shell script text executable
# ldd VideoLoop
$       not a dynamic executable
#


From: http://www.dedoimedo.com/computers/linux-binary-not-found.html
All right, let's see what ldd reports:

ldd <filename>
not a dynamic executable

But that's not true. We know this is a dynamically linked executable. We know that it used to work just fine in previous versions of our operating system. And yes, please verify that you're not running ldd against a wrapper script, because it is not an executable.

So what now? The answer is: If the system reports an executable is not an executable, you are most likely missing the correct version of libraries, all of them, for your binary. Most importantly, you're missing the right version of GLIBC too. This usually happens when you try to run 32-bit programs on 64-bit systems.


I have no idea what OS they're even talking about but linux being linux, I think this is the root of my problem. Some library in 1.05.04.dev isn't included in 1.02.21. Once I install that library I imagine I'll be A.O.K. So, how do we find it?
1.02.21_V.WDLXTV_LIVE-0.5.2.0
leetwanker
DLX'er
 
Posts: 101
Joined: Sat Dec 08, 2012 7:52 am

Re: *Updated 4/27/12* Plugin: VideoScreensaver   

Postby KAD » Wed Nov 20, 2013 9:55 pm

version 1.4 in first post

tested working on 1.02.21 flashed firmware

let me know if that works
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: *Updated 4/27/12* Plugin: VideoScreensaver   

Postby leetwanker » Wed Nov 20, 2013 10:08 pm

KAD wrote:version 1.4 in first post

tested working on 1.02.21 flashed firmware

let me know if that works



Code: Select all
# ./VideoLoop
-sh: ./VideoLoop: not found
# ldd VideoLoop
$       not a dynamic executable
#
# ldd random_screensaver
$       not a dynamic executable
#


VideoLoop & random_screensaver still not executable.

Can you ldd <filename> both of those on your system and tell me what it gives you back? Pretty sure you somehow have a library that I don't.

Code: Select all
# tail /tmp/VideoLoop.log
sh: /tmp/VideoLoop: not found
sh: /tmp/VideoLoop: not found
#
1.02.21_V.WDLXTV_LIVE-0.5.2.0
leetwanker
DLX'er
 
Posts: 101
Joined: Sat Dec 08, 2012 7:52 am

Re: *Updated 4/27/12* Plugin: VideoScreensaver   

Postby KAD » Wed Nov 20, 2013 10:13 pm

I'm not familiar with ldd

I've turned things off for the night
did you try and let the screensaver actually kick in by itself after 5 minutes

and again correct usage would be

Code: Select all
/path/to/VideoLoop forcestart


and
Code: Select all
/path/to/random_screensaver
remember random_screensaver will not start playback or produce output, it just changes some values

if you still don't get it working, I'll look again tomorrow
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: *Updated 4/27/12* Plugin: VideoScreensaver   

Postby leetwanker » Wed Nov 20, 2013 10:24 pm

KAD wrote:I'm not familiar with ldd

I've turned things off for the night
did you try and let the screensaver actually kick in by itself after 5 minutes

and again correct usage would be

Code: Select all
/path/to/VideoLoop forcestart


and
Code: Select all
/path/to/random_screensaver
remember random_screensaver will not start playback or produce output, it just changes some values

if you still don't get it working, I'll look again tomorrow


That's cool. Appreciate your help. Yeah I waited for the screensaver to kick on, just got the stock one. That's what made the VideoLoop.log I posted above. I didn't know about ldd until tonight either. I was in the /Videoscreensaver/bin/ folder when I tried executing them earlier is why I didn't use the full path. Here's full path results:

Code: Select all
# ./tmp/mnt/C4F2-4A0D/.wdtvext-plugins/VideoScreensaver/bin/VideoLoop forcestart
-sh: ./tmp/mnt/C4F2-4A0D/.wdtvext-plugins/VideoScreensaver/bin/VideoLoop: not found
# ./tmp/mnt/C4F2-4A0D/.wdtvext-plugins/VideoScreensaver/bin/random_screensaver
-sh: ./tmp/mnt/C4F2-4A0D/.wdtvext-plugins/VideoScreensaver/bin/random_screensaver: not found
#
# ls -l /tmp/mnt/C4F2-4A0D/.wdtvext-plugins/VideoScreensaver/bin/
-rwxrwxrwx    1 root     root         4553 Apr 28  2012 VideoLoop
-rwxrwxrwx    1 root     root          529 Dec  1  2011 random_screensaver
#

Does it say not found when you do this on your system?

When ldd says the file's not an executable when you know it is (and file <filename> confirms it is), apparently that means there's a dynamic library missing on your system. Learn something new everyday I guess.

Notes:
For all your libs: # ldconfig -p
1.02.21_V.WDLXTV_LIVE-0.5.2.0
leetwanker
DLX'er
 
Posts: 101
Joined: Sat Dec 08, 2012 7:52 am

PreviousNext

Return to WDTVExt plugins

Who is online

Users browsing this forum: No registered users and 1 guest