View previous topic :: View next topic |
Author |
Message |
chuanshi n00b
Joined: 01 Feb 2006 Posts: 38
|
Posted: Fri Aug 04, 2006 1:22 pm Post subject: Mplayer seeking [Partially Solved] |
|
|
From the mplayer man page:
keyboard control
<- and ->
Seek backward/forward 10 seconds.
up and down
Seek backward/forward 1 minute.
pgup and pgdown
Seek backward/forward 10 minutes.
I'm having 2 problems with this:
1) It's not actually seeking the specified time; "10" seconds is actually skipping forward 13ish seconds (according to the OSD), and "1 minute" is more like a minute and 10ish seconds
2) How do I change these default values? I've tried "seek=whatever" in my ~/.mplayer/config, but it doesn't seem to be working properly
Last edited by chuanshi on Sat Aug 05, 2006 1:13 am; edited 1 time in total |
|
Back to top |
|
|
Emopig Apprentice
Joined: 15 Mar 2006 Posts: 188
|
Posted: Fri Aug 04, 2006 2:44 pm Post subject: |
|
|
Video is a complex thing, in some video formats you can only scan forward or backward to key frames, which store the entire image, intermediate frames only store the difference between the previous frame or the previous and next frame.
With variable bitrate video and audio and synchronisation and interleaving and God knows what else, I wouldn't expect seeking some video formats to be accurate. _________________ 2.6.35 / Gnome 2.30
Athlon64 3500+ / 1.5 GB / Asus A8N VM CSM |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
|
Back to top |
|
|
chuanshi n00b
Joined: 01 Feb 2006 Posts: 38
|
Posted: Sat Aug 05, 2006 1:11 am Post subject: |
|
|
Okay, so I read the man page and tried to fiddle around with my input.conf and here are my results:
setting:
Code: | RIGHT seek +10
LEFT seek -10 |
into my input.conf gives me exactly the same situation as leaving it blank (13 secondish seeking). Okay, that's fine, let's see what happens when i decrease these values:
Code: | RIGHT seek +8
LEFT seek -8 |
lets me seek forward 11ish seconds at a time but will not let me seek backwards... at all
I get the same with +5 or -5 and +6 -6, so I've concluded that any value less than 10 simply does not allow you to seek backwards )=
Okay, so i've come to these conclusions after playing around with varying values greater than and less than 10:
1) changing the amount of time you can seek backwards is pretty much impossible, any value less than 10 will not allow you to seek, any value 10 or greater will let you seek backwards the same amount of time (approximately 6 seconds)
2) changing the forward seek value, X will (on average) let you seek forward X+3 seconds the first time the right arrow is pressed, and up to about X+10 seconds on additional presses
I guess Emopig is right, video is pretty complex, and thinking that seeking was just a straightforward manner of "play exactly what you did 10 seconds ago" or "skip 10 seconds ahead" was fairly naive of me.
On the other hand, I'm still curious as to the cause of this: is it mplayer, the video formats, my computer?
Well anyway, I guess I'll have to settle for this rather roundabout (and not really fully functional) solution to get me something similar to winamp's "skip forward 5 seconds" feature:
Code: | RIGHT seek +2
LEFT seek -10 |
If anyone has a better idea or knows more about this, please come forward and help. Until then, I guess I'll just put [Partially Solved] in the subject line. |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Sat Aug 05, 2006 1:14 am Post subject: |
|
|
The other thing is that you're probably dealing with video that is variable framerate. In that case, mplayer won't calculate the seek positions correctly.
You can check to see if it is vfr by running a benchmark on it.
Code: | mplayer -benchmark foo.video -ovc null -nosound |
If you see the demuxer spitting out messages about changed framerate, then it's variable framerate. _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
|
|
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 vote in polls in this forum
|
|