Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
im looking for command line option for mplayer that would specify how many frames to skip per second (or something like that).
i have an application that is using mplayer as a backend processor, and this skipping functionality is needed because i would like to generate a snapshot every second of the movie (for a filmstrip component).
i have been looking around and dont really see anything that will do what i need, but mplayer has so many options i would almost bet there is a way.
The '-r' option specify the rate, in frames per second. In the above command the rate is '.1', so one frame grab is generated for each 10 seconds of video.
ok i tried that and it works just as i need it to, though i am surprised that mplayer does not have that available too. i would have figured that if ffmpeg had something mplayer would make it available as well. i guess i would have figured wrong.
i came across an option that does not seem to be well documented for mplayer (or rather, i just didnt find it until now..)
-sstep
it specifies how many seconds to skip between reads. it seems to work well so far.
i had been using the other solution with ffmpeg with no problems. however i am making heavy use of EDL files, which are unsupported by ffmpeg, and it was causing extra work to work around that limitation.
-x
PS. it looks like this may not be as exact due to mplayer only being able to seek to the next keyframe. i am coming out with image counts that do not match the video length. hmm ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.