LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mplayer not seeking properly on short videos (https://www.linuxquestions.org/questions/linux-software-2/mplayer-not-seeking-properly-on-short-videos-652944/)

BrianK 07-01-2008 09:07 PM

mplayer not seeking properly on short videos
 
I have a short video - 4.1 seconds long (100 frames @ 24 fps).

I'm trying to extract an image from it using mplayer. I can do this as long as I'm only looking to extract the first frame(s), but when I try to specify a seek location, it's not seeking.

I'm trying to do something like:

Code:

mplayer -ss 00:00:01 some_vid.mp4 -frames 2 -nosound -vo jpeg:outdir=./thumbs
again, this works, but only grabs the first frame rather than the 24th and 25th frame.

Has anyone experienced this? Is there a work around?

I know I could do the whole clip then grab the frame I need, but that takes too long.

emi_ramo 07-02-2008 05:25 AM

Have you tried to add "-idx" to the command? It will create properly the index, normally not created on avi files:
Code:

mplayer -idx -ss 00:00:01 some_vid.mp4 -frames 2 -nosound -vo jpeg:outdir=./thumbs

BrianK 07-02-2008 01:54 PM

Quote:

Originally Posted by emi_ramo (Post 3201289)
Have you tried to add "-idx" to the command? It will create properly the index, normally not created on avi files:
Code:

mplayer -idx -ss 00:00:01 some_vid.mp4 -frames 2 -nosound -vo jpeg:outdir=./thumbs

Unfortunately, that doesn't work - at least not on these mp4s I've been testing. I also tried -forceidx (after seeing your suggestion)

If you're interested, here's the video I've been testing:

http://hero.com/~briank/misc/master_12.nz2.mp4

emi_ramo 07-03-2008 09:04 AM

I've been probing and I couldn't make it work. I also probed to recode the video to another codec before picking up the images, and nothing. It's like -ss option's not at all accepted by mplayer/mencoder. May be you want to fill up a bugreport through http://www.mplayerhq.hu/DOCS/HTML/en...ts_report.html ...


All times are GMT -5. The time now is 10:42 AM.