[MPlayer-users] Can't read property length from avi file
Bart van Deenen
bart.vandeenen at gmail.com
Wed Sep 24 09:44:53 CEST 2008
Hi all
I'm running into a problem with an avi file that plays correctly (Linux
mplayer, kaffeine, various Windows players). The file is 37 seconds, but
mplayer can not get its length: "pausing get_property length" returns an
error. The slave command get_time_length gives 30 ms of total time.
I also notice that the <- and -> keys for moving around in the video don't
work correctly.
The avi file is from a Canon camcorder.
When I get the fileproperties->metainfo (from KDE) I see:
Length: 00:37
Resolution: 640x480
Frame Rate: 30 fps
Video Codec: mjpg
Audio Codec: Microsoft PCM
So KDE seems to read the read video length. Kaffeine also gets the length from
the file, its position scrollbar works correctly.
Any ideas about this, and how to work around it or fix it?
Thanks
Bart van Deenen
kubu:~/Desktop$ mplayer -idle -slave -quiet
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3000+ (Family: 15, Model: 4, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
loadfile '/home/bvandeenen/Desktop/MVI_0680.AVI'
Playing /home/bvandeenen/Desktop/MVI_0680.AVI.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [MJPG] 640x480 24bpp 30.000 fps 11365.6 kbps (1387.4 kbyte/s)
Clip info:
Digitization Time: SUN MAR 30 17:03:05 2008
Software: CanonMVI06
[VO_XV] Could not grab port 126.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 1 ch, s16le, 705.6 kbit/100.00% (ratio: 88200->88200)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [oss] 44100Hz 1ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar 422P)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8
[swscaler @ 0x8821230]SwScaler: BICUBIC scaler, from yuv422p to yuv420p using
MMX2
[swscaler @ 0x8821230]SwScaler: using 4-tap MMX scaler for horizontal
luminance scaling
[swscaler @ 0x8821230]SwScaler: using 4-tap MMX scaler for horizontal
chrominance scaling
[swscaler @ 0x8821230]SwScaler: using 1-tap MMX "scaler" for vertical scaling
(YV12 like)
[swscaler @ 0x8821230]SwScaler: 640x480 -> 640x480
VO: [xv] 640x480 => 640x480 Planar YV12
pause
pausing get_property length
Failed to get value of property 'length'.
pausing get_time_length
ANS_LENGTH=0.03
Exiting... (Quit)
More information about the MPlayer-users
mailing list