Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An mplayer wrapper script that will resume playback of previously-stopped video where you left off. Written by Bob Igo.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 common
Octocat-spinner-32 doc
Octocat-spinner-32 CHANGELOG
Octocat-spinner-32 INSTALL
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
README.md

Mplayer-resumer

An mplayer wrapper script that will resume playback of previously-stopped video where you left off. Written by Bob Igo.

Dependencies

Documentation

Consult the included man page.

Installation from Source

To build from source, see the included INSTALL text document.

Links

  • logoArch: in the AUR.

Usage

Usage is trivial... simply call the wrapper-script in place of mplayer.

Example: $ mplayer-resumer [options] [path/]filename

If this script is restarted within $tdiff (default 5 seconds) then it will delete the file used to keep track of the videos resume position.

Rationale

Watching 90 % of a video and stopping causes you to return to the beginning again the next time you watch it. Remembering where you were in the video and resuming at that position is a much nicer behavior for the user. By default, mplayer spits out timecode information that tells you where you are in the video, to the tenth of a second. Mplayer also supports a seek feature on the command-line. We can make use of these features to write an mplayer wrapper that will remember the last position in a video file and resume to it on playback.

Design Limitation

If the video file to be played is on a read-only file system, or otherwise lives in a location that cannot be written to, resume will fail. This is because the current implementation uses a file parallel to the video file to store the timecode.

Something went wrong with that request. Please try again.