Results 1 to 5 of 5

Thread: Using VLC, Movie Player, or basic video player, how can i play until X time?

  1. #1
    Join Date
    May 2005
    Location
    At home
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Using VLC, Movie Player, or basic video player, how can i play until X time?

    Hello,

    Using one of the media players installed on my linux computer (I have VLC, Movie Player, Banshee media player, Gnome MPlayer), how can I play a media file but make playback stop at X time?
    For instance, there is a 1minute:58 second movie (We have wmv and mov versions of the same movie) and we want playback to automatically stop at 1 minute, 44 seconds.

    I prefer to use VLC, because we plan on playing the clips on a Windows computer. I prefer to use a free program that is available for both Windows and Linux.

    Thank you so much!

  2. #2
    Join Date
    Feb 2006
    Beans
    1,086
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Using VLC, Movie Player, or basic video player, how can i play until X time?

    Using vlc:
    Code:
    vlc --stop-time N filename
    where N is in seconds.

    With mplayer:
    Code:
    mplayer -endpos hh:mm:ss filename
    where hh:mm:ss is the number of hours, minutes, and seconds that you want to file to play for.

  3. #3
    Join Date
    May 2005
    Location
    At home
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Using VLC, Movie Player, or basic video player, how can i play until X time?

    glennric,

    I ran the following VLC command
    vlc --stop-time 104 '/home/[myusername]/Downloads/life.mov'
    The mov file is 1 minute and 58 seconds long. I wanted VLC to stop playback at 1 minute and 44 seconds (I had 104 in the terminal command because 1 minute plus 44 seconds equals 104 seconds). But VLC played the mov file until the very end (1:58).

    What am I doing wrong?

  4. #4
    Join Date
    May 2005
    Location
    At home
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    The correct VLC command in Linux.

    Quote Originally Posted by glennric View Post
    Using vlc:
    Code:
    vlc --stop-time N filename
    where N is in seconds.
    Glennric,
    I think your command is correct for Windows
    (According to http://www.videolan.org/doc/play-howto/en/ch04.html:
    Windows users have to use the --option-name="value" syntax instead of the --option-name value syntax.
    In Linux, we must add the hyphen:
    Code:
    vlc --stop-time-N filename
    Last edited by hanzj; July 17th, 2012 at 06:27 AM.

  5. #5
    Join Date
    Feb 2006
    Beans
    1,086
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: The correct VLC command in Linux.

    Quote Originally Posted by hanzj View Post
    Glennric,
    I think your command is correct for Windows
    I don't run windows. Only Ubuntu Linux. I tested the command exactly as I gave it and it works. You can put an equality between the command line flag and its parameter and it will also work. According to the website you linked I am correct. On windows you have to put the equality between, but on linux it works both ways.
    Windows users have to use the --option-name="value" syntax instead of the --option-name value syntax.
    By the way, putting a hyphen in does not work at all.

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
  •