LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 07-01-2008, 09:07 PM   #1
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
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.
 
Old 07-02-2008, 05:25 AM   #2
emi_ramo
Member
 
Registered: Apr 2007
Location: Barcelona, Spain
Distribution: Debian, KUbuntu
Posts: 213

Rep: Reputation: 36
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
 
Old 07-02-2008, 01:54 PM   #3
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by emi_ramo View Post
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
 
Old 07-03-2008, 09:04 AM   #4
emi_ramo
Member
 
Registered: Apr 2007
Location: Barcelona, Spain
Distribution: Debian, KUbuntu
Posts: 213

Rep: Reputation: 36
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 ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Media player that can read DVD videos properly from hard drive? MheAd Linux - Software 3 07-13-2007 07:31 PM
Playing videos with mplayer Danny M Linux - Newbie 2 02-03-2005 01:50 AM
Mplayer chops off the last bits of short sounds clausawits Linux - Software 0 01-04-2004 12:34 AM
MPlayer videos upside down! GTBlackwell Linux - Software 4 10-09-2003 06:48 PM
newbie seeking advice on properly configuring server marvc Linux - General 3 03-29-2003 03:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration