Slowdown on WMV and trick play
#1
I alluded to this earlier and have been trying to debug it, but it's difficult as the info bar extends past the edge of my display.

When skipping or jumping forward/backward in WMV files, there is a brief (2-4 second) period where the framerate very noticeably drops, usually to 10-15FPS. It then recovers fine. This is duplicatable on videos where it occurs. Thing is, it doesn't seem to happen on all WMV videos, just the vast majority of them, and the videos that work fine appear to be decoded the same method by the codec data in the info bar. The info bar itself extends past the edge of my display, so I can't see the CPU usage and definitively say it's a CPU issue-- but I can't imagine it is, since I'm running a C2D at 2.93Ghz.

Anyone else run into this?
Reply
#2
Gspot lists the following info:

Container
File Type: ASF (.WMV/.WMV)
Mime Type: video/x-ms-asf
File Length Correct
Sys Bitrate: 1435 kb/s

User Data / Metadata
AudBig GrineviceConfirmanceTemplate:L1
VidBig GrineviceConformanceTemplate:MP@ML
Aud:WM/WMADRCPeakReference:32767
Aud:WM/WMADRCAverageReference:1989
Aud: Windows Media Audio 9.1
Aud: 96 kbps. 44 kHz, stereo 2-pass VBR
Vid:Windows Media Video 9

Audio
Coeec: 0x0161 (WMA v2)
Info: 0x01:44100Hz 96kbp/s tot (2chnls)

Video
Codec: WMV3
Name: WMP v9 (VC-1 Simple/Main)
kbps: 1331
pic: 640x480
Reply
#3
Nobody else has this problem with WMV videos?
Reply
#4
probably not many people have wmv files
since its a MS closed source format the hacks to get wma audio and workign probably arn't the best anyway
Reply
#5
Sure, but other linux media players do work. I'll test out mplayer with the opengl switch later tonight to confirm.
Reply
#6
OK, I tested it out in mplayer with both the gl and gl2 switches. Both work fine; no slowdown when jumping around in the video. Full logs below.

GL1
Code:
rodalpho@fiddler:/media/desktop$ mplayer -vo gl testvid.wmv
MPlayer 1.0rc2-4.1.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     E4500  @ 2.20GHz (Family: 6, Model: 15, Stepping: 13)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing testvid.wmv.
ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO:  [WMV3]  640x480  24bpp  1000.000 fps  1000.0 kbps (122.1 kbyte/s)
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
==========================================================================
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 formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 RGB565 RGB24 RGB32
Decoder is capable of YUV output (flags 0x1b)
VDec: vo config request - 640 x 480 (preferred colorspace: Packed YUY2)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 0x8925250]SwScaler: using unscaled yuv420p -> rgb32 special converter
VO: [gl] 640x480 => 640x480 BGRA
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 96.5 kbit/6.84% (ratio: 12064->176400)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
A:  47.6 V:  47.4 A-V:  0.127 ct:  0.114 307/307  8% 11%  1.3% 0 0
overflow in spectral RLE, ignoring 0.061 641/641  8% 11%  1.3% 0 0
overflow in spectral RLE, ignoring 0.268 798/798  8% 10%  1.0% 0 0
overflow in spectral RLE, ignoring 0.050 1194/1194  7% 11%  1.3% 0 0
overflow in spectral RLE, ignoring 0.086 1247/1247  7% 11%  3.2% 0 0
No bind found for key 'c'.                          7% 10%  1.1% 0 0
No bind found for key 'c'.                          7% 10%  1.0% 0 0
gnome_screensaver_control()05 ct:  0.123 1384/1384  7% 11%  1.0% 0 0
Exiting... (Quit)

GL2
Code:
rodalpho@fiddler:/media/desktop$ mplayer -vo gl2 testvid.wmv
MPlayer 1.0rc2-4.1.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     E4500  @ 2.20GHz (Family: 6, Model: 15, Stepping: 13)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing testvid.wmv.
ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO:  [WMV3]  640x480  24bpp  1000.000 fps  1000.0 kbps (122.1 kbyte/s)
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
==========================================================================
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 formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 RGB565 RGB24 RGB32
Decoder is capable of YUV output (flags 0x1b)
VDec: vo config request - 640 x 480 (preferred colorspace: Packed YUY2)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 0x8925250]SwScaler: using unscaled yuv420p -> bgr24 special converter
VO: [gl2] 640x480 => 640x480 BGR 24-bit
[gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
[gl2] antialiasing off
[gl2] bilinear linear
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 96.5 kbit/6.84% (ratio: 12064->176400)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
gnome_screensaver_control()63 ct:  0.155 889/889  7% 15%  1.2% 0 0
Exiting... (Quit)
Reply
#7
I am having problems with playing wmv-files too. (Sorry for bouncing an old thread btw.)

I cant forward or rewind in a wmv movie. It's really annoying. Now I'm looking for plugins or scripts that will fix this but I can't find anything.

I'm Using XBMC Live 9.04.1 r20654 (Compiled: May 25 2009)
Reply
#8
The slowdown has been somewhat fixed, or at least I don't notice it anymore. Instead, as you noted, trick play is totally broken. I opened ticket 5089 for it over a year ago. XBMC has been unable to seek through WMV files for at least a year and a half.

There's a partial fix using external FFMPEG libraries detailed in this thread. With this fix, WMV movies with constantly extending durations now seek perfectly, but those that were totally unseekable remain so.

I don't see it being fixed anytime soon as the devs don't use this functionality. If you really need to watch WMV files, XBMC (and it's derivatives plex and boxee) probably aren't the best choice for you.
Reply
#9
I think theres only one genre that uses WMV... /giggle
Reply
#10
rodalpho Wrote:I don't see it being fixed anytime soon as the devs don't use this functionality. If you really need to watch WMV files, XBMC (and it's derivatives plex and boxee) probably aren't the best choice for you.

Welcome to open source, where the only bugs fixed are those that directly affect the developers. If its wmv or rmvb, you're fucked. If the developers have no intention of fixing playback of these formats, they should remove all support of them from XBMC so that end users are not given a false hope that playback of said formats will ever work in an acceptable manner in XBMC.
Reply
#11
It's not 100% broken, some movies do work, so I would appreciate it greatly if support wasn't entirely removed.

Beyond that, well, yep. This is the reality of open source software.
Reply
#12
this means I can´t watch porn! .... almost every clip from hdbits is unwatchable in 9.11 !
Image
Reply
#13
CosyCat Wrote:this means I can´t watch porn! .... almost every clip from hdbits is unwatchable in 9.11 !

oh my and I was just about to try the new release in hope that WMV might have been fixed Shocked... I better stay with the only 3/4 broken old release then... No
Reply

Logout Mark Read Team Forum Stats Members Help
Slowdown on WMV and trick play0