[MPlayer-users] create thumbnail problems
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Tue Nov 29 00:15:37 CET 2011
On Mon, Nov 28, 2011 at 08:08:00AM +0000, Shixinpeng wrote:
> Hi, I have mplayer on my SUSE Linux Enterprise Server 10 (x86_64).I have a problem using a command line that uses mplayer to create thumbnail of video.
> This is the command:
> ./mplayer -ss 00:01:34 -noframedrop -nosound -vo jpeg -frames 1 /home/sxp/heikediguo2.ts
> But I got a snapshot with mosaics, which is named mosaics.jpg in the attached file snapshot.rar. So I used another command to solve the mosaic problem.
> ./mplayer -ss 00:01:34 -demuxer lavf -vf screenshot -vo jpeg -lavdopts skiploopfilter=all:skipframe=nonkey -nosound -frames 2 /home/sxp/heikediguo2.ts
> However the first snapshot is gray, which is named gray.jpg in the attached file.
> Any ideas? I appreciate any help. Thanks!
Well, I would assume that will happen when the first frame is not a
keyframe and you specify skipframe=nonkey.
You want -lavdopts wait_keyframe
If your MPlayer version doesn't support it best compile yourself.
More information about the MPlayer-users
mailing list