View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 18 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Apr 24, 2006 11:40 am 
Offline
Joined: Sun Feb 26, 2006 10:46 am
Posts: 26
Noticed the mplaoyer-resumer.pl, and gave it a try. Thought things were busted until I found a post referencing problems handling filenames with spaces. (Put $inifile in single quotes on line 100, worked here).

Is there a keypress in mplayer to start from the beginning of the video (short of seeking backwards). I was actually thinking that when the video finished, it would reset the position to the beginning, but no such luck.

Any help would be appreciated.
Greg.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 25, 2006 7:43 am 
Offline
Joined: Sun Mar 12, 2006 7:41 pm
Posts: 13
I tried the mplayer-resumer.pl script last night. It worked fine for me.

I let the movie play to the end. mplayer exits and I'm back at the myth screen. If I try to play the movie it returns me directly back to the myth screen. If I try it a second time it starts the movie from the beginning.

Other than that bit of oddness it works like a champ.

I really like this resume for mplayer. It's like a bookmark in the video and is transparent to the user.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 26, 2006 5:02 am 
Offline
Joined: Sun Feb 26, 2006 10:46 am
Posts: 26
Hmmm. I'm still returning to the last frame each time.

What's the 'command line' you're using for mplayer-resumer within myth for video ?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 29, 2006 8:34 pm 
Offline
Joined: Sun Mar 12, 2006 7:41 pm
Posts: 13
After posting the previous message saying it works fine I'm now having issues.

Some videos work fine, some continually repeat the last second of the movie.

Hmmm...more research needed.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 01, 2006 6:15 am 
Offline
Joined: Sun Feb 26, 2006 10:46 am
Posts: 26
Just wondering if file names with spaces is screwing things up somewhere else in the code. Will have to check when I get home.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 01, 2006 10:01 am 
Offline
Joined: Sun Mar 12, 2006 7:41 pm
Posts: 13
Not for me.

All my videos are space-less :-) and it still breaks at times.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 01, 2006 10:04 am 
Offline
Joined: Sun Feb 26, 2006 10:46 am
Posts: 26
Anyone know if the return code on mplayer is different, depending on whether the movie finished by itself, or the user exited ? I suppose this would be the easiest way to script around nuking the 'resumer' stub.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 01, 2006 1:03 pm 
Offline
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location: Mechanicsburg, PA
Wow, people are actually using this :) I don't think anyone ever officially announced it, but I'm glad people have found it. As you've encountered, it's alpha code and has rough edges.

If you're having trouble, the bookmark file is a useful resource. For a video at $path/$filename, the bookmark file is $path/.$filename.resume, e.g. /myth/video/movie1.mpg -> /myth/video/.movie1.mpg.resume

The bookmark file contains an offset corresponding to the number of seconds from the start of the video. You can compare this with the offset reported by mplayer when you run it by hand.

The kind of line we care about looks like this example:
Code:
A:1215.2 V:1215.2 A-V:  0.006 ct:  0.210 207/201 13%  0%  1.9% 0 0 68%

But all we care to look at is the first number.

This should get you started if you want to help debug it. There are definitely bugs in the script and bugs (or lack of features) in mplayer preventing this from working 100%. I haven't looked at the script in a while, but see if you can determine a pattern in the contents of the bookmark file, mplayer's reported timecode, and the behavior you're seeing.

If you just want to zap the bookmark, remove the bookmark file.

_________________
KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 02, 2006 5:25 am 
Offline
Joined: Sun Mar 12, 2006 7:41 pm
Posts: 13
I've made a slight modification to the script. If the script is restarted within five seconds it will clear the xx.resume file and allow the movie to start from time 0.

It can be found at http://knoppmythwiki.org/index.php?page ... ayerResume

Make a backup of /usr/local/bin/mplayer-resumer.pl and move to the /usr/local/bin dir. Be sure it is chmod 755 by the root user.


Good luck and let me know if it works.

Chris


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 02, 2006 11:04 am 
Offline
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location: Mechanicsburg, PA
cyates wrote:
I've made a slight modification to the script. If the script is restarted within five seconds it will clear the xx.resume file and allow the movie to start from time 0.

That's fine as an initial workaround, though I would have just made use of the timestamp of $resumefile instead of writing a text timestamp into a second file. The root cause still needs to be addressed, though, and you've made it more usable in the current buggy cases.

Good work :)

_________________
KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 02, 2006 3:09 pm 
Offline
Joined: Sun Mar 12, 2006 7:41 pm
Posts: 13
Brilliant suggestion, why didn't I think of that :mrgreen:


I'll try the .resume file time code and see how it works. I'm a perl noob so every line of code is hard fought.


Chris


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 02, 2006 3:22 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
I'll have to update the ISO with the new version.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 03, 2006 5:17 am 
Offline
Joined: Sun Feb 26, 2006 10:46 am
Posts: 26
Cesman: would a question in the install script asking if you wanted to enable 'resume' support for videos, and injecting the modified /path/to/mplayer-resumer.pl be viable ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 03, 2006 7:17 am 
Offline
Joined: Sun Mar 12, 2006 7:41 pm
Posts: 13
I've updated the script so it no longer writes .resumer-time files. It gets this info as suggested in a previous post.

Script can be found at

http://knoppmythwiki.org/index.php?page=mplayerResume

or

http://knoppmythwiki.org/index.php?bina ... fc7581.bin


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 03, 2006 8:35 am 
Offline
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location: Mechanicsburg, PA
gfoster wrote:
Cesman: would a question in the install script asking if you wanted to enable 'resume' support for videos, and injecting the modified /path/to/mplayer-resumer.pl be viable ?

Remember, the resumer won't yet work on certain video formats, or any videos played from read-only locations. If such a question is asked, it should be made clear that this is alpha code.

_________________
KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu