mplayer -fs -zoom -vo xv %sI navigate and control mythvideo with a pvr-150 remote and LIRC.
The problem: Their is no native feature in mplayer to save the position of a movie when exiting mplayer. So when I'm watching a movie and want to finish it later, I have to start from the beginning and fast-forward through to my last position. Not a huge problem, but easy to fix.
The solution: mplayer-resume. This is a simple shell script that parses the output of mplayer and creates a small text file with the timestamp you left off at (using get_time_pos). The instructions included in the download are very easy to follow, but basically the idea is you paste into your .lircrc file the commands:
Then with the actual script do a:begin
prog = mplayer
button = stop
config = get_time_pos
end
begin
prog = mplayer
button = stop
config = get_filename
end
begin
prog = mplayer
button = stop
config = quit
end
And finally in mythvideo instead of using# cp mplayer-resume /usr/local/bin/
# chmod +x /usr/local/bin/mplayer-resume
mplayer -fs -zoom -vo xv %s
use
mplayer-resume -fs -zoom -vo xv %sOne important note: It seems it makes a difference using the actual stop button on the remote versus the back/exit button. You MUST use the actual stop button for the script to work.
Again, check the included instructions for a more detailed explanation of the process, but it was relatively painless and works quite slick. Good luck..
1 comment:
I've got to hand it to you
Post a Comment