Skip to content

subterraneanbob/mplayer-resumer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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

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 filesystem, 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.

Links

AUR package: https://aur.archlinux.org/packages/mplayer-resumer

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors