Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112229 - mplayer-1.0pre7-try2 does not play AVI (mpeg) files via ftp when '-cache-min' part of '-cache' size is less than movie size
Summary: mplayer-1.0pre7-try2 does not play AVI (mpeg) files via ftp when '-cache-min'...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-11 16:11 UTC by Danil Makeyev
Modified: 2006-07-19 13:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danil Makeyev 2005-11-11 16:11:12 UTC
I made such conclusion after many tests and checks. So..

I'm using mplayer-1.0pre7-try2, ffmpeg-0.4.9_p20050906 with "network" flag, 
win32codecs-20050412.

The default '-cache' value is 8Mb, the default '-cache-min' value is 20 
(percents).
I try to run stream from ftp-server with:
$ mplayer -ao arts ftp://10.101.1.197/video/THG_CPU_Cooling.avi
File 'THG_CPU_Cooling.avi' has size ~10,230 Kb. (~10Mb)
I've got:
Connecting to server 10.101.1.197[10.101.1.197]:21 ...
Warning streams need a type !!!!
Cache fill:  0.00% (0 bytes)    Обнаружен AVI формат файла!

And That's all. Nothing happens after that.

Now I set manually '-cache' to 60000 and '-cache-min' to 20, so after minimal 
caching I'll get the part smth about 12Mb.. Look:
$ mplayer -ao arts -cache 60000 -cache-min 20 ftp://10.101.1.197/video/
THG_CPU_Cooling.avi
And I've got my video movie:
Connecting to server 10.101.1.197[10.101.1.197]:21 ...
Warning streams need a type !!!!
Cache fill: 17.05% (10475358 bytes)    Обнаружен AVI формат файла!
VIDEO:  [DIV3]  352x288  24bpp  25.000 fps  276.6 kbps (33.8 kbyte/s)
...
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
...
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))

Let's see what happens with WMV/ASF files:
$ mplayer -ao arts ftp://10.101.1.197/video/extr.wmv
extr.wmv has size ~9,334 Kb.
And I've got OK:
Connecting to server 10.101.1.197[10.101.1.197]:21 ...
Warning streams need a type !!!!
Cache fill:  0.20% (16384 bytes)    Обнаружен ASF формат файла!
Selected audio codec: [ffwmav2] afm:ffmpeg (DivX audio v2 (FFmpeg))
Selected video codec: [wmv9dmo] vfm:dmo (Windows Media Video 9 DMO)

Try to change '-cache' and '-cache-min' less and more:
$ mplayer -ao arts -cache 128 -cache-min 10 ftp://10.101.1.197/video/extr.wmv
And IT'S PLAY!

Now I can not view video-films via ftp :-(
Tried mplayer-1.0pre6-r6 - same things.

Reproducible: Always
Steps to Reproduce:
1. mplayer ftp://xx.yy.zz/file.avi, where file.avi is 20Mb, for example. - NO :(
2. try mplayer -cache 100000 -cache-min 30 ftp://xx.yy.zz/file.avi - WORKS!
3. try mplayer with variuos '-cache' and '-cache-min' values on ftp://xx.yy.zz/
file2.WMV - WORKS!




Portage 2.0.53_rc6 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3, 2.6.13-
gentoo-r5 i686)
=================================================================
System uname: 2.6.13-gentoo-r5 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.12.0_pre9
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -m3dnow -mmmx -msse -mfpmath=sse -pipe -O3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/
share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /
usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -m3dnow -mmmx -msse -mfpmath=sse -pipe -O3"
DISTDIR="/mnt/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/
distributions/gentoo"
LANG="C"
LC_ALL="C"
LINGUAS="ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X acpi aim alsa apm arts avi bash-completion berkdb 
bitmap-fonts bluetooth bzip2 cdparanoia cdr crypt curl dvd dvdr eds emboss 
encode fam fbcon foomaticdb fortran ftp gdbm gif gpm gstreamer gtk gtk2 icq 
imagemagick imap imlib ipv6 javascript jpeg kde libg++ libwww lirc lm_sensors 
mad mikmod mmx mmxext motif mozilla mp3 mpeg msn ncurses nls nptl nptlonly ogg 
oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby samba 
sdl slang socks5 spell sse ssl tcpd tiff truetype truetype-fonts type1-fonts 
udev unicode usb vorbis win32codecs xine xml2 xmms xv zlib linguas_ru 
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-11-12 01:45:08 UTC
Please, post something readable (aka English ASCII), non entities mess, and
reopen then. Thanks.
Comment 2 Danil Makeyev 2005-11-12 03:21:36 UTC
ftp://10.101.1.197/video/thg_vid2_ocing_xp.avi is 11,257Kb file.

$ mplayer ftp://10.101.1.197/video/thg_vid2_ocing_xp.avi
MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE



85 audio & 196 video codecs
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing ftp://10.101.1.197/video/Danzz/movies/Fun/downloaded/thg_vid2_ocing_xp.
avi.
Connecting to server 10.101.1.197[10.101.1.197]:21 ...
Warning streams need a type !!!!
Cache fill:  0.10% (8192 bytes)    AVI file format detected.

Sometimes Cache fill is 0.00%, sometimes 0.10% as you can see. And here is the 
stop.

Setting up -cache to 128mb and -cache-min to 20 percents I've got full caching 
of video and it's playing:
$ mplayer -cache 128000 -cache-min 20 ftp://10.101.1.197/video/
thg_vid2_ocing_xp.avi
MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE



85 audio & 196 video codecs
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing ftp://10.101.1.197/video/Danzz/movies/Fun/downloaded/thg_vid2_ocing_xp.
avi.
Connecting to server 10.101.1.197[10.101.1.197]:21 ...
Warning streams need a type !!!!
Cache fill:  8.79% (11526456 bytes)    AVI file format detected.
VIDEO:  [DIVX]  720x576  24bpp  25.000 fps  451.8 kbps (55.2 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 22050 Hz, 2 ch, s16le, 56.0 kbit/7.94% (ratio: 7000->88200)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 22050Hz/2ch/s16le -> 22050Hz/2ch/s16le...
AF_pre: 22050Hz/2ch/s16le
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or 
directory
alsa-init: 1 soundcard found, using: default
alsa: 22050 Hz/2 channels/4 bpf/30104 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 22050Hz 2ch s16le (2 bps)
Building audio filter chain for 22050Hz/2ch/s16le -> 22050Hz/2ch/s16le...
Starting playback...
[mpeg4 @ 0x858c970]looks like this file was encoded with (divx4/(old)xvid/
opendivx) -> forcing low_delay flag
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 720x576 => 720x576 Planar YV12

danzz@sentinel ~ $ mplayer -ao arts -cache 128 -cache-min 20 ftp://bsd.novline.
net/video/mif.avi
MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE



85 audio & 196 video codecs
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing ftp://bsd.novline.net/video/mif.avi.
Resolving bsd.novline.net for AF_INET...
Connecting to server bsd.novline.net[81.9.28.170]:21 ...
Warning streams need a type !!!!
Cache fill: 18.75% (24576 bytes)    AVI file format detected.

And again: 18.75%, I've waited for 20 minutes. nothing.

Now I'm trying to play WMV video:

$ mplayer -ao arts ftp://ftp.metacom.ru/files/proverka/la2video.wmv
MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE



85 audio & 196 video codecs
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing ftp://ftp.metacom.ru/files/proverka/la2video.wmv.
Resolving ftp.metacom.ru for AF_INET...
Connecting to server ftp.metacom.ru[217.175.17.243]:21 ...
Warning streams need a type !!!!
Cache fill:  0.29% (24576 bytes)

Caching is processing normally, no freezings.

Now I set a less -cache size value:
$ mplayer -ao arts -cache 256 -cache-min 20 ftp://ftp.metacom.ru/files/proverka/
la2video.wmv
MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE



85 audio & 196 video codecs
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing ftp://ftp.metacom.ru/files/proverka/la2video.wmv.
Resolving ftp.metacom.ru for AF_INET...
Connecting to server ftp.metacom.ru[217.175.17.243]:21 ...
Warning streams need a type !!!!
Cache fill: 18.75% (49152 bytes)    ASF file format detected.
VIDEO:  [WMV3]  640x480  24bpp  1000.000 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
 name: Lineage II Movie
 author: JanaKiska
 copyright: 2004
 comments:
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 135.9 kbit/9.63% (ratio: 16990->176400)
Selected audio codec: [ffwmav2] afm:ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
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:921600  align:1
StreamCount r=0x0  1  1
Decoder supports the following YUV formats: YV12 YUY2 UYVY YVYU   ▒
Decoder is capable of YUV output (flags 0x1b)
VDec: vo config request - 640 x 480 (preferred csp: Packed YUY2)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 640x480 => 640x480 Planar YV12
Selected video codec: [wmv9dmo] vfm:dmo (Windows Media Video 9 DMO)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/2ch/s16le
[AO ARTS] Connected to sound server.
[AO ARTS] Stream opened.
[AO ARTS] buffer size: 20480
[AO ARTS] buffer size: 2048
AO: [arts] 44100Hz 2ch s16le (2 bps)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Starting playback...
A:   7.2 V:   3.4 A-V:  3.804 ct:  0.044  12/ 12 ??% ??% ??,?% 0 0 0%

And a movie plays part by part!

What information can I post more? Maybe strace of some such try?
Comment 3 Steve Dibb (RETIRED) gentoo-dev 2006-07-19 13:20:09 UTC
Please test with more recent versions of mplayer (1.0_pre8) and report back if still an issue.