Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30

Thread: HOWTO: Play Videos as Screensaver

  1. #11
    Join Date
    May 2010
    Beans
    1

    Unhappy Re: HOWTO: Play Videos as Screensaver

    Hey,
    I tried your HowTo, but the new Screensaver doesn't appear in the screensaver menu.

    I tested the movie.sh script like you told and this runs.

    Do you know my problem?

    OS: Ubuntu 10.04

    I think I found my mistake: Now I entered the whole path and now its listed. (I also added some other lines So now it lokks so:

    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Name=Movie
    Comment=Plays Videos
    TryExec=movie.sh
    Exec=/usr/lib/gnome-screensaver/gnome-screensaver/movie.sh
    StartupNotify=false
    Terminal=false
    Type=Application
    Categories=GNOME;Screensaver;
    OnlyShowIn=GNOME;
    X-Ubuntu-Gettext-Domain=gnome-screensaver
    Last edited by theonlytruth; May 20th, 2010 at 09:08 PM.

  2. #12
    Join Date
    Oct 2007
    Location
    Germany
    Beans
    4
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO: Play Videos as Screensaver

    I wrote out the scripts, and it didn't let my load the video. Mplayer keeps saying that it could not open the video out device. I already tried to change it, to things in the /dev/ folder that looked like it would be for the video. I am running on Ubuntu 9.10, and I also have an ATI graphics card. If you could point me in the right direction, and show me what I'm doing wrong, any help would be greatly appreciated.

  3. #13
    Join Date
    May 2007
    Beans
    54

    Re: HOWTO: Play Videos as Screensaver

    Thanks for a great post, this is really useful. Just a small point, the list of screensavers is not updated automatically when you open screensaver prefs. it only updates apparently when running "dpkg" in 10.04 (not sure on previous).

    I just ran a pending update and the list was refreshed to include the new screensaver. I guess installing something from the repos if you don't have an update pending would do the same.

    Hope that helps someone.

    Cheers
    B

  4. #14
    Join Date
    Jul 2010
    Location
    Germany
    Beans
    76
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Smile Re: HOWTO: Play Videos as Screensaver

    Many many thanks for this brilliant HowTo!
    I'm just pointing the script to a special directory in my Videos folder and it plays everything I throw in there as screensaver. It works like a charm.

    Quote Originally Posted by brendanpiater View Post
    [...] the list of screensavers is not updated automatically when you open screensaver prefs. it only updates apparently when running "dpkg" in 10.04
    Hmm strange... I'm also running 10.04 but the screensaver was in the list soon after I added the .desktop file into the according directory.

    Thanks a bunch for this awesome tutorial!
    In a world without walls and fences, who needs windows and gates? oO

  5. #15
    Join Date
    Jan 2007
    Beans
    7

    Re: HOWTO: Play Videos as Screensaver

    Hi

    Using 10.10 - I have tried the above and all works fine except....

    The videos reset after 10mins.

    Can anyone shine some light on why this is so.

    Many thanks.
    Me

  6. #16
    Join Date
    Jan 2007
    Beans
    7

    Re: HOWTO: Play Videos as Screensaver

    Quote Originally Posted by MattBlack View Post
    Hi

    Using 10.10 - I have tried the above and all works fine except....

    The videos reset after 10mins.

    Can anyone shine some light on why this is so.

    Many thanks.
    Me
    Hi

    This can be aleviated by changing the value of cycle_delay. (gconf-editor -> apps-> gnome-screensaver ) By default this is 10 (mins) changing to 3600 seems to have the desired effect. Setting this to 0 actually sets cycle to 1 min.

    Therefore it seems that even though mode is single it still cycles according to cycle delay.

    Hope this helps other people experiencing this.

    Matt

  7. #17
    Join Date
    Jul 2006
    Beans
    90

    Re: HOWTO: Play Videos as Screensaver

    Great thread! Much thanks! Will be using this for a video box at work for company vids. Figured I'd share my modifications in case they help someone else down the line.

    This is how I ended up doing it:

    Code:
    #! /bin/bash
    
    ## delete previous playlist
    rm -f /home/tv/playlist.pls
    
    ## setup MPlayer aruments, remove -nosound if you want the video
    ## to play sound. If you have to specify the video driver to use
    ## then add that to the list
    MPLAYERARGS="-nolirc -wid $XSCREENSAVER_WINDOW -nostop-xscreensaver -fs"
    
    
    ## find all files in the chosen directory add to playlist 
    find /Storage/Media/Videos/PlayAsScreensaver/* > /home/tv/playlist.pls
    
    ## child pid, no need to modify
    CPID=0
    
    #play freshly generated playlist
    exec mplayer $MPLAYERARGS -loop 0 -shuffle -playlist /home/tv/playlist.pls

  8. #18
    Join Date
    Jul 2006
    Beans
    90

    Re: HOWTO: Play Videos as Screensaver

    Quote Originally Posted by MattBlack View Post
    Hi

    This can be aleviated by changing the value of cycle_delay. (gconf-editor -> apps-> gnome-screensaver ) By default this is 10 (mins) changing to 3600 seems to have the desired effect. Setting this to 0 actually sets cycle to 1 min.

    Therefore it seems that even though mode is single it still cycles according to cycle delay.

    Hope this helps other people experiencing this.

    Matt
    Actually, I'm still having this problem. Ubuntu 10.04. Any Help? I already set the cycle delay to 3600.

  9. #19
    Join Date
    Mar 2010
    Location
    Amsterdam,The Netherlands
    Beans
    8
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Play Videos as Screensaver

    Quote Originally Posted by SSVegito888 View Post
    I'm having a hard time with

    MPLAYERARGS="-nosound -nolirc -wid $XSCREENSAVER_WINDOW -nostop-xscreensaver -fs -really-quiet"




    The part that is giving me errors is:

    -wid $XSCREENSAVER_WINDOW


    the "$XSCREENSAVER_WINDOW" is doing it.

    I am using CentOS 5 and would have posted in the CentOS forums, but I used to use ubuntu so I decided to post here, since you created the script, I figured you'd know the script better than anyone else.


    So, how exactly do I define the variable $XSCREENSAVER_WINDOW


    Thanks,

    SSVegito888

    I'm running Ubuntu 10.04 and I seem to be having the same problem.
    The error message I keep getting when running gnome-screensaver-preferences is:
    "Terminal type `unknown' is not defined."

    And indeed when I put $XSCREENSAVER_WINDOW in quotes, it doesn't give me this error anymore, but also just a black screen to look at. If I completely remove the -wid argument however the same error is back.

    Has anyone had any progress with this?

    Thanks,
    Toost Inc.

  10. #20
    Join Date
    Aug 2006
    Beans
    18

    Re: HOWTO: Play Videos as Screensaver

    Thank you Kazza and bootch!

    Works like charm in ubuntu 10.10

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •