samiamwork / Movist

Movie Player for Mac OS X based on QuickTime & FFmpeg. (Fork of original project on Google Code as it seems to have died)
GNU General Public License v3.0
206 stars 54 forks source link

Next/previos frame controls don't seem to work #36

Open gradha opened 10 years ago

gradha commented 10 years ago

Opening an mp4 file I use the next/prev frame (which default bindings to [ and ]) but the stopped movie is stopped and when I resume it pressing space the frame doesn't change. The only thing I see is in the corner "Previous/Next Frame" but no action.

When the controls are used with the movie playing they stop the movie but do nothing else.

samiamwork commented 10 years ago

Apparently this never was implemented with the ffmpeg backend. The Quicktime/AVFoundation backend should work though.

This is a bit tricky as everything is driven by timestamp and the display layer pulls frames as opposed to having frames pushed to it. This is further complicated by the fact that while you can get the next frame by just dequeueing it regardless of the timestamp, going backwards is harder since you have to actually skip backwards and then decode back up to the previous frame (this is why it's really slow in most video players). I suspect this is why it was never implemented in the first place.

Not that it's impossible, just a pretty big task that possibly requires some architecture changes. Not high on my list of things to do for Movist but I'm happy to provide guidance to anyone who wants to tackle it.