View Single Post
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#33
Originally Posted by konttori View Post
Well, option -ss 30 should seek to 30 secs in the video, but it doesn't. If you could help in making the call to mplayer to make the snapshot, it would be really cool.
I've fixed this problem.
  • mplayer has a bug where it can't render a single frame - the same issue affects Freevo: change "-frames 1" to "-frames 2" and copy 00000002.jpg to the appropriate filename.
  • The thumbnails are only ever shown at 160x160, change "-scale 320:-3" to "-scale 160:-3": the file size is about a third what it was before. On a device with limited space and CPU, this makes a big difference.
  • If you've got lots of (say) TV episodes ripped from DVDs, 30s can be the same frame in each. Change the start of the command to the following:

Code:
startpos=str(random.randomrange(18,40,1))
command="mplayer -zoom -ss "+startpos+" -nosound ...
You'll have to "rm /media/mmc1/covers/*.avi.jpg" to rescan the images.

Hope that helps,

Andrew
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Now known as
Jaffa