Find the answer to your Linux question:
Results 1 to 3 of 3
I'm using the -loop 0 option at command line to force play of a video to repeat in an endless loop. I want to to add an option to pause/dwell ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2011
    Posts
    12

    pausing mplayer while in loop mode


    I'm using the -loop 0 option at command line to force play of a video to repeat in an endless loop. I want to to add an option to pause/dwell the play for a few seconds at the end of the file before starting again at beginning. I've been unsuccessful with an internet search and read through the man pages.

  2. #2
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    636
    Why not use a loop to execute the mplayer that makes use of sleep such as:
    Code:
    while 1 == 1; do mplayer your_arguments_without_the_loop_option ; sleep 5 ; done

  3. #3
    Just Joined!
    Join Date
    Jun 2011
    Posts
    12
    Quote Originally Posted by alf55 View Post
    Why not use a loop to execute the mplayer that makes use of sleep such as:
    Code:
    while 1 == 1; do mplayer your_arguments_without_the_loop_option ; sleep 5 ; done
    This works. Thanks.

    Minor detail: The mplayer window blinks closed and then opens again quickly with sleep set to 0. Might not be ideal but this is the best suggestion I've gotten. Totem has been suggested but I haven't been able to figure out how to enable the correct options in Totem.

Posting Permissions

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