[MPlayer-users] -sstep vs seek

tuitfun tuitfun at yahoo.co.th
Thu Jun 28 21:17:45 CEST 2007


hello,

i am trying to make movies thumbnails by using this command:
mplayer -benchmark -nosound -quiet -zoom -vf scale=420:-3,tile=2:2 -vo
jpeg:outdir=. -sstep 60 file.avi

it works most of the time except with .avi files. the output pictures would all
be from the same frame. it seems -sstep doesn't work with .avi files and maybe
other types of files. here's the output:
MPlayer 1.0rc1-3.4.2 (C) 2000-2006 MPlayer Team
CPU: AMD Turion(tm) 64 Mobile Technology ML-28 (Family: 15, Model: 36,
Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
c:/windows/fonts/arial.ttf doesn't look like a bitmap font description,
ignoring
.
Cannot load bitmap font: c:/windows/fonts/arial.ttf

Playing d:\file.avi.
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO:  [XVID]  640x480  12bpp  29.970 fps  1205.6 kbps (147.2 kbyte/s)
Clip info:
 Software: Nandub v1.0rc2
jpeg: Parsing suboptions.
jpeg: Progressive JPEG disabled.
jpeg: Baseline JPEG enabled.
jpeg: Suboptions parsed OK.
Opening video filter: [tile=2:2]
Opening video filter: [scale w=420 h=-3]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 8 -> 8
SwScaler: reducing / aligning filtersize 8 -> 8
SwScaler: reducing / aligning filtersize 8 -> 6
SwScaler: reducing / aligning filtersize 5 -> 4

SwScaler: BICUBIC scaler, from yuv420p to rgb24 using MMX2
SwScaler: using 8-tap MMX scaler for horizontal luminance scaling
SwScaler: using 8-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (BGR)
SwScaler: 640x480 -> 420x315
Opening video filter: [expand]
Expand: -1 x -1, -1 ; -1, osd: 0, aspect: 0.000000, round: 1
VO: [jpeg] 848x638 => 848x638 RGB 24-bit  [zoom]
jpeg: . - Output directory already exists and is writable.
[mpeg4 @ 00B2DC90]warning: first frame is no keyframe
[mpeg4 @ 00B2DC90]warning: first frame is no keyframe
[mpeg4 @ 00B2DC90]warning: first frame is no keyframe
[mpeg4 @ 00B2DC90]warning: first frame is no keyframe
[mpeg4 @ 00B2DC90]warning: first frame is no keyframe
[mpeg4 @ 00B2DC90]warning: first frame is no keyframe
[mpeg4 @ 00B2DC90]warning: first frame is no keyframe
[mpeg4 @ 00B2DC90]warning: first frame is no keyframe
[mpeg4 @ 00B2DC90]warning: first frame is no keyframe
[mpeg4 @ 00B2DC90]warning: first frame is no keyframe


after trying a lot of things, i found that seeking and frame_steping with
-input instead of -sstep does work with .avi files:
mplayer -benchmark -nosound -quiet -zoom -vf scale=420:-3,tile=2:2 -vo
jpeg:outdir=. -input file=cmd.txt file.avi
file cmd.txt contains:
pause
pausing seek 60
frame_step
pausing seek 60
frame_step
pausing seek 60
frame_step
pausing seek 60
frame_step
pausing seek 60
frame_step
pausing seek 60
frame_step
pausing seek 60
frame_step
quit


however, the second command doesn't work with some other kinds of files, e.g.
.wmv files. the output pictures would have some repeated frames. the print out
didn't even say if something went wrong:
MPlayer 1.0rc1-3.4.2 (C) 2000-2006 MPlayer Team
CPU: AMD Turion(tm) 64 Mobile Technology ML-28 (Family: 15, Model: 36,
Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
c:/windows/fonts/arial.ttf doesn't look like a bitmap font description,
ignoring
.
Cannot load bitmap font: c:/windows/fonts/arial.ttf

Playing d:\file.wmv.
ASF file format detected.
VIDEO:  [WMV3]  720x540  24bpp  30.000 fps    0.0 kbps ( 0.0 kbyte/s)
jpeg: Parsing suboptions.
jpeg: Progressive JPEG disabled.
jpeg: Baseline JPEG enabled.
jpeg: Suboptions parsed OK.
Opening video filter: [tile=2:2]
Opening video filter: [scale w=420 h=-3]
==========================================================================
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
GetOutput r=0x0   size:1166400  align:1
StreamCount r=0x0  1  1
Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 RGB565
RGB24 RGB32
Decoder is capable of YUV output (flags 0x1b)
VDec: vo config request - 720 x 540 (preferred colorspace: Packed YUY2)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 8 -> 8
SwScaler: reducing / aligning filtersize 8 -> 8
SwScaler: reducing / aligning filtersize 8 -> 7
SwScaler: reducing / aligning filtersize 5 -> 4

SwScaler: BICUBIC scaler, from yuv420p to rgb24 using MMX2
SwScaler: using 8-tap MMX scaler for horizontal luminance scaling
SwScaler: using 8-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (BGR)
SwScaler: 720x540 -> 420x315
Opening video filter: [expand]
Expand: -1 x -1, -1 ; -1, osd: 0, aspect: 0.000000, round: 1
VO: [jpeg] 848x638 => 848x638 RGB 24-bit  [zoom]
jpeg: . - Output directory already exists and is writable.
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
==========================================================================
Audio: no sound
Starting playback...

Exiting... (Quit)

so, the question is: is there an option that would seek correctly with all
files types? btw, i am aware of -vf framestep=1800 option, but it seems to
decode every frame so it's really really really slow for me. :(

wow, this is a long email. thanks a lot for your help,
tuit




       
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/



More information about the MPlayer-users mailing list