bad performance playing DV type 2 files
I'm having terrible performance playing DV type 2 files. Does anyone have any suggestions for speeding up performance? I think it is using a Microsoft DirectShow codec. Is there a different library for DV videos I can use or a different codec to download? I can play DIVX movies full screen with no problems. Also, the DV movie has lines through it. Do I need to de-interlace or anti-alias the video? Can this be done on the fly while playing? Athlon 1Ghz, Mandrake 9.0, mtrr, mplayer 0.90rc4 Thanks, Michael Here is my -v output when I play the movie: [mike@fuzzymonkey mike]$ mplayer -v -vo xv /movies/wedding/wedding-camera1-001.avi Using GNU internationalization Original domain: messages Original dirname: /usr/share/locale Current domain: mplayer Current dirname: /usr/local/share/locale MPlayer 0.90rc4-3.2 (C) 2000-2003 Arpad Gereoffy (see DOCS) CPU: Advanced Micro Devices Athlon K75 Pluto,Orion (Family: 6, Stepping: 2) Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory Reading config file /home/mike/.mplayer/config Reading /home/mike/.mplayer/codecs.conf: can't open '/home/mike/.mplayer/codecs.conf': No such file or directory Reading /usr/local/etc/mplayer/codecs.conf: 50 audio & 135 video codecs CommandLine: '-v' '-vo' 'xv' '/movies/wedding/wedding-camera1-001.avi' get_path('font/font.desc') -> '/home/mike/.mplayer/font/font.desc' font: can't open file: /home/mike/.mplayer/font/font.desc font: can't open file: /usr/local/share/mplayer/font/font.desc init_freetype Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay Using Linux hardware RTC timing (1024Hz). get_path('input.conf') -> '/home/mike/.mplayer/input.conf' Can't open input config file /home/mike/.mplayer/input.conf : No such file or directory Can't open input config file /usr/local/etc/mplayer/input.conf : No such file or directory Falling back on default (hardcoded) input config get_path('wedding-camera1-001.avi.conf') -> '/home/mike/.mplayer/wedding-camera1-001.avi.conf' Playing /movies/wedding/wedding-camera1-001.avi Not an URL! File size is 1057332168 bytes AVI file format detected. list_end=0x138 ======= AVI Header ======= us/frame: 33366 (fps=29.971) max bytes/sec: 4147200 padding: 0 MainAVIHeader.dwFlags: (16) HAS_INDEX frames total: 8505 initial: 0 streams: 2 Suggested BufferSize: 0 Size: 720 x 480 list_end=0xD4 ==> Found video stream: 0 ======= STREAM Header ======= Type: vids FCC: dvsd (64737664) Flags: 0 Priority: 0 Language: 0 InitialFrames: 0 Rate: 1000000/33366 = 29.971 Start: 0 Len: 8505 Suggested BufferSize: 0 Quality -1 Sample size: 0 found 'bih', 40 bytes of 40 ======= VIDEO Format ====== biSize 40 biWidth 720 biHeight 480 biPlanes 1 biBitCount 24 biCompression 1685288548='dvsd' biSizeImage 1036800 =========================== list_end=0x138 ==> Found audio stream: 1 ======= STREAM Header ======= Type: auds FCC: (0) Flags: 0 Priority: 0 Language: 0 InitialFrames: 0 Rate: 32000/1 = 32000.000 Start: 0 Len: 36323596 Suggested BufferSize: 0 Quality -1 Sample size: 2 found 'wf', 16 bytes of 18 ======= WAVE Format ======= Format Tag: 1 (0x1) Channels: 2 Samplerate: 32000 avg byte/sec: 128000 Block align: 4 bits/sample: 16 cbSize: 0 list_end=0x3F0174A0 Found movie at 0x144 - 0x3F0174A0 Reading INDEX block, 17010 chunks for 8505 frames (fpos=0x3f0174a8) AVI index offset: 0x0 (movi=0x144 idx0=0x144 idx1=0x11FC) Auto-selected AVI audio ID = 1 Auto-selected AVI video ID = 0 AVI: Searching for audio stream (id:1) AVI video size=1020600000 (8505) audio size=36323596 (9080899) VIDEO: [dvsd] 720x480 24bpp 29.97 fps 28771.8 kbps (3512.2 kbyte/s) [V] filefmt:3 fourcc:0x64737664 size:720x480 fps:29.97 ftime:=0.0334 get_path('sub/') -> '/home/mike/.mplayer/sub/' ========================================================================== Opening audio decoder: [pcm] Uncompressed PCM audio decoder dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer AUDIO: 32000 Hz, 2 ch, 16 bit (0x10), ratio: 128000->128000 (1024.0 kbit) Selected audio codec: [pcm] afm:pcm (Uncompressed PCM) ========================================================================== X11 opening display: :0 vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF) vo: X11 running at 1152x864 with depth 24 and 32 bpp (":0" => local display) [x11] Detected wm supports layers. [x11] Using workaround for Metacity bugs. [x11] Detected wm supports NetWM. [x11] Detected wm supports FULLSCREEN state. ========================================================================== Opening video decoder: [dshow] DirectShow video codecs get_path('registry') -> '/home/mike/.mplayer/registry' Decoder supports the following YUV formats: YUY2 UYVY Decoder is capable of YUV output (flags 0x9) VDec: vo config request - 720 x 480 (preferred csp: Packed YUY2) [PP] Using codec's postprocessing, max q = 4. Trying filter chain: vo VDec: using Packed YUY2 as output csp (no 0) Movie-Aspect is undefined - no prescaling applied. VO Config (720x480->720x480,flags=0,'MPlayer',0x32595559) VO: [xv] 720x480 => 720x480 Packed YUY2 VO: Description: X11/Xv VO: Author: Gerd Knorr <kraxel@goldbach.in-berlin.de> and others Xvideo image format: 0x32595559 (YUY2) packed Xvideo image format: 0x32315659 (YV12) planar Xvideo image format: 0x30323449 (I420) planar Xvideo image format: 0x59565955 (UYVY) packed using Xvideo port 68 for hw scaling [xv] dx: 0 dy: 0 dw: 720 dh: 480 INFO: Win32/DShow video codec init OK! Selected video codec: [qdv] vfm:dshow (Sony Digital Video (DV)) ========================================================================== Checking audio filter chain for 32000Hz/2ch/16bit -> 32000Hz/2ch/16bit... [libaf] Adding filter dummy [dummy] Was reinitialized, rate=32000Hz, nch = 2, format = 0x00000001 and bps = 2 AF_pre: af format: 2 bps, 2 ch, 32000 hz, little endian signed int AF_pre: 32000Hz 2ch Signed 16-bit (Little-Endian) ao2: 32000 Hz 2 chans Signed 16-bit (Little-Endian) audio_setup: using '/dev/dsp' dsp device audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian)) audio_setup: using 2 channels (requested: 2) audio_setup: using 32000 Hz samplerate (requested: 32000) audio_setup: frags: 128/128 (1024 bytes/frag) free: 131072 AO: [oss] 32000Hz 2ch Signed 16-bit (Little-Endian) (2 bps) AO: Description: OSS/ioctl audio output AO: Author: A'rpi Building audio filter chain for 32000Hz/2ch/16bit -> 32000Hz/2ch/16bit... [dummy] Was reinitialized, rate=32000Hz, nch = 2, format = 0x00000001 and bps = 2 [dummy] Was reinitialized, rate=32000Hz, nch = 2, format = 0x00000001 and bps = 2 Starting playback... XXX initial v_pts=0.000 a_pos=4272 (0.033) *** [vo] Allocating mp_image_t, 720x480x16bpp YUV packed, 691200 bytes get_path('subfont.ttf') -> '/home/mike/.mplayer/subfont.ttf' New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. [xv] dx: 0 dy: 0 dw: 720 dh: 480 A: 4.4 V: 3.9 A-V: 0.488 ct: 0.387 117/117 41% 26% 7.3% 104 0 0% ************************************************ **** Your system is too SLOW to play this! **** ************************************************ Possible reasons, problems, workarounds: - Most common: broken/buggy _audio_ driver - Try -ao sdl or use ALSA 0.5 or the OSS emulation of ALSA 0.9. - Experiment with different values for -autosync, 30 is a good start. - Slow video output - Try a different -vo driver (-vo help for a list) or try -framedrop! - Slow CPU - Don't try to play a big DVD/DivX on a slow CPU! Try -hardframedrop. - Broken file - Try various combinations of -nobps -ni -forceidx -mc 0. - Slow media (NFS/SMB mounts, DVD, VCD etc) - Try -cache 8192. - Are you using -cache to play a non-interleaved AVI file? - Try -nocache. Read DOCS/video.html and DOCS/sound.html for tuning/speedup tips. If none of this helps you, read DOCS/bugreports.html. Broken pipe 5.5 A-V: 0.871 ct: 0.547 165/165 42% 25% 8.4% 151 0 0%
participants (1)
-
Michael D. Spiceland