[MPlayer-users] Problem with playing mpeg2 files smoothly

Martin Grim mgrim at freeler.nl
Sun Aug 24 22:09:53 CEST 2003


Hi,

> Did you try -mc 0 and -nosound?

Yes: even with -nosound the hick-ups keep occuring. There are hardly any frames 
dropped with sound enabled (even with the framedrop enabled), so I didn't 
expect the problem to be with the A-V sync.

> what does mplayer say when the hiccups occur?

Not much realy. The only noticable things are the visable and audible hick-ups 
and an increased CPU consumption (graphical performance meter in the task bar).

> Did you try with -vc ffmpeg12 ?

I did, but this didn't help. I think I've tried most logical combinations of 
mpeg12 devices and codecs.

> You could also tell a lot about your hardware, kernel
> version, soundsystem (alsa,oss,etc.) etc.

This my system:
OS
    Red Hat 8.0
    Linux 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux

libc
    -rwxr-xr-x    2 root     root      1235468 Sep  6  2002 /lib/libc-2.2.93.so
    
XFree
    XFree86 Version 4.2.0 (Red Hat Linux release: 4.2.0-72) / X Window System

build programs
    gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
    GNU ld version 2.13.90.0.2 20020802
    GNU assembler 2.13.90.0.2 20020802

processor
    vendor_id       : GenuineIntel
    model name      : Intel(R) Pentium(R) 4 CPU 2.40GHz
    cpu MHz         : 2405.485
    cache size      : 512 KB
    flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
                      cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht
                      tm

Video card
    XFX GeForce 4 MX440 64Mb DDR 
    nvidia: loading NVIDIA Linux x86 nvidia.o Kernel Module  1.0-4349

Sound
    something on board (Asus) with OSS and ALSA

> $me at localhost $ mplayer -v shitty-mpegfile.mpg

Below there is the output of mplayer with -v. Everythings outputed is given. 
Completely at the end the mplayer.conf file is given.

Any tip is GREATLY appriciated!

Regards,

Martin


-- output of mplayer

[mgrim at Kweetal movies]$ mplayer -v -ao oss -vo sdl -vc ffmpeg12 -vfm ffmpeg  
5_minuten_test.mpg 
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer 0.90rc5-3.2 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Intel  (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file /usr/local/etc/mplayer/mplayer.conf
Reading config file /home/mgrim/.mplayer/config
Reading /home/mgrim/.mplayer/codecs.conf: 50 audio & 136 video codecs
CommandLine: '-v' '-ao' 'oss' '-vo' 'sdl' '-vc' 'ffmpeg12' '-vfm' 'ffmpeg' 
'5_minuten_test.mpg'
get_path('font/font.desc') -> '/home/mgrim/.mplayer/font/font.desc'
Font /home/mgrim/.mplayer/font/font.desc loaded successfully! (0 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/home/mgrim/.mplayer/input.conf'
Parsing input config file /home/mgrim/.mplayer/input.conf
Input config file /home/mgrim/.mplayer/input.conf parsed : 0 binds
get_path('5_minuten_test.mpg.conf') -> 
'/home/mgrim/.mplayer/5_minuten_test.mpg.conf'

Playing 5_minuten_test.mpg
Not an URL!
File size is 302608388 bytes
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x83cfe08  
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x83cfe08  
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x83cfe08  
Checking for REAL
DEMUXER: freeing demuxer at 0x83cfe08  
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x83cfe08  
Searching demuxer type for filename 5_minuten_test.mpg ext: .mpg
Checking for MOV
DEMUXER: freeing demuxer at 0x83d0670  
Checking for VIVO
header block 1 size: 0
DEMUXER: freeing demuxer at 0x83d0670  
DEMUXER: freeing demuxer at 0x83d0670  
DEMUXER: freeing demuxer at 0x83d0670  
DEMUXER: freeing demuxer at 0x83d0670  
DEMUXER: freeing demuxer at 0x83d0670  
DEMUXER: freeing demuxer at 0x83d0670  
DEMUXER: freeing demuxer at 0x83d0670  
Checking for PVA
DEMUXER: freeing demuxer at 0x83d0670  
system stream synced at 0xD (0)!
==> Found video stream: 0
MPEG-PS file format detected.
==> Found audio stream: 0
Searching for sequence header... OK!
VIDEO:  MPEG2  720x576  (aspect 3)  25.00 fps  8000.0 kbps (1000.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/home/mgrim/.mplayer/sub/'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: made decode tables with MMX optimization
mp3lib: using MMX optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer II, 48000 Hz 384 kbit Stereo, BPF: 1152
Channels: 2, copyright: No, original: No, CRC: Yes, emphasis: 0
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 48000->192000 (384.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
SDL: Using driver: x11
SDL: deactivating XScreensaver/DPMS
SDL: X11 Resolution 1280x1024
==========================================================================
Forced video codec: ffmpeg12
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffmpeg12] vfm:ffmpeg (FFmpeg MPEG 1/2)
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[libaf] Adding filter dummy 
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 
2
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int 
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
ao2: 48000 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 48000 Hz samplerate (requested: 48000)
audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 
2
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 
2
Starting playback...
[ffmpeg] aspect_ratio: 1.777778
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (720x576->1024x576,flags=0,'MPlayer',0x32315659)
VO: [sdl] 720x576 => 1024x576 Planar YV12 
VO: Description: SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
VO: Author: Ryan C. Gordon <icculus at lokigames.com>, Felix Buenemann 
<atmosfear at users.sourceforge.net>
SDL: Using 0x32315659 (Planar YV12) image format
SDL: using hardware-surface
SDL: setting windowed mode
*** [vo] Allocating (slices) mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
*** [vo] Allocating (slices) mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
*** [vo] Allocating (slices) mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
MPEG Stream reached EOF-0.003 ct:  0.051  7123/7123  18%  3%  5.7% 9 0 0%
ds_fill_buffer: EOF reached (stream: audio)  
MPEG Stream reached EOF 0.005 ct:  0.052  7125/7125  18%  3%  5.7% 9 0 0%
ds_fill_buffer: EOF reached (stream: video)  
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)  
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)  
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)  
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)  
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)  
EOF code: 1  85.2 A-V:  0.004 ct:  0.053  7125/7125  18%  3%  5.7% 9 0 0%

Uninit audio filters...
[libaf] Removing filter dummy 
uninit audio: mp3lib
uninit video: ffmpeg
DEMUXER: freeing demuxer at 0x83d0670  
DEMUXER: freeing sh_audio at 0x83ba518  
DEMUXER: freeing sh_video at 0x83ba458  
SDL: activating XScreensaver/DPMS
vo: x11 uninit called but X11 not inited..

Exiting... (End of file)


$ cat mplayer.conf
#
# mplyer configuration file
#

autosync=50
nocache=1
#cache=8192
monitoraspect=1.3333
nojoystick=1
nolirc=1
stop_xscreensaver=1
stereo=0



More information about the MPlayer-users mailing list