Opened 12 years ago

Closed 9 years ago

#8393 closed bug (fixed)

720p video playback stuttering

Reported by: humdinger Owned by: nobody
Priority: normal Milestone: R1
Component: Audio & Video/Codecs Version: R1/Development
Keywords: stuttering video, ffmpeg Cc: HubertNG@…
Blocked By: Blocking: #8399, #8424
Platform: All

Description

This is hrev43830 (gcc2hybrid).

While older revisions had no (or very few) problems playing 720p videos in MediaPlayer, they now continually stutter and even stop for a second. Sound runs without stuttering in-sync. This is on a Core2Duo 2ghz, 2gb ram, nvidia 7600 Go (using the nvidia driver).
I can't say when exactly it started, I'll embark on a binary search soon. I happen to have an alpha3 installation handy, where it plays without problems. While it's difficult to assess, "top" suggests a CPU usage of about 25% in alpha3 and 35% in hrev43830.

Attached is the ouput of media_server and MediaPlayer when playing the first few seconds of a clip "720p.mkv".

Attachments (5)

media_server-output.txt (4.1 KB ) - added by humdinger 12 years ago.
media_server output playing 720p video
MediaPlayer-output.txt (5.5 KB ) - added by humdinger 12 years ago.
MediaPlayer output playing 720p video
New_MediaPlayer-output.txt (3.3 KB ) - added by humdinger 12 years ago.
the output of MediaPlayer with korli's improved debug output
hrev43877_gcc2.png (111.2 KB ) - added by luroh 12 years ago.
hrev43877_gdb.txt (4.8 KB ) - added by luroh 12 years ago.

Download all attachments as: .zip

Change History (61)

by humdinger, 12 years ago

Attachment: media_server-output.txt added

media_server output playing 720p video

by humdinger, 12 years ago

Attachment: MediaPlayer-output.txt added

MediaPlayer output playing 720p video

comment:1 by anevilyak, 12 years ago

If it's recent, it could possibly be related to ffmpeg updates, but an approximate time frame would be really helpful at determining that.

comment:2 by korli, 12 years ago

Media player output already hints at a "Out of memory" error, to be investigated in VideoConsumer::CreateBuffers().

comment:3 by humdinger, 12 years ago

Turns out, it really seems to be ffmpeg related: hrev43826 plays back OK, hrev43830 doesn't. Between those revisions ffmpeg moved into an optional package. But was it updated at that time as well?

comment:5 by korli, 12 years ago

humdinger: I extended the error message in hrev43871. MediaPlayer should display the bitmap bounds it fails to allocate.

comment:6 by humdinger, 12 years ago

I attached the output of a newly built MediaPlayer to this ticket. The gist:

VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING BUFFER (Index 0 Width 1280 Height 720 Colorspace 8: Out of memory

by humdinger, 12 years ago

Attachment: New_MediaPlayer-output.txt added

the output of MediaPlayer with korli's improved debug output

comment:7 by korli, 12 years ago

It seems to be a normal error message when first trying with overlay.

Could you please put a test file somewhere for me to test?

comment:8 by luroh, 12 years ago

Blocking: 8399 added

comment:9 by luroh, 12 years ago

Here's one affected file that I normally use for testing: http://deathstar.knuttinatoll.net/hammer/bunny-rr.ogv

comment:10 by korli, 12 years ago

Well just tested with gcc2 and gcc4, it works OK.

Looking at your mediaPlayer output again, I noticed the line: "resolve_colorspace: PIX_FMT_NONE => B_RGB32: NULL", which is obviously a problem. FFMpeg should have given something like a YUV colorspace.

Do you use nightlies from haiku-files.org?

comment:11 by humdinger, 12 years ago

I normally build from source, for this binary search I used gcc2hybrid nightly images I downloaded.

comment:12 by humdinger, 12 years ago

I think luroh on IRC was right: MediaPlayer is starving for CPU. Something's not as efficient in ffmpeg since the update in hrev43830. Where in the past the problematic files could be played back with my hardware, now they can't anymore. ffmpeg is single threaded, right? If I disable one CPU, CPU usage goes shortly up to 100%, then the video pauses until the next short spike and so forth.

When both CPUs are activated, their usage are around 50%, so...

I can still play back smaller files, i.e. lower bandwith.

comment:13 by Hubert, 12 years ago

Cc: HubertNG@… added

comment:14 by Hubert, 12 years ago

I have the same. For test I use bunny.mp4 with DemoPackage_Video. I was surprised stuttering 720p because on hrev43696 gcc4h 720p (.mkv) work perfectly in MediaPlayer. Then I tested bunny.mp4 on hrev43696 and play good too. Problem is in new revision. I'll try to send a log of the MediaPlayer from both revision.

comment:15 by Hubert, 12 years ago

hrev43696 gcc4h bunny.mp4

~> /boot/system/apps/MediaPlayer 
open playlist item: bunny.mp4
_InitFromTrack(): keyframes: 1, frame count: 4646149
MediaTrackVideoSupplier::_SwitchFormat() - preferred color space: B_YUV420
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: PIX_FMT_NONE => B_RGB32: NULL
MediaTrackVideoSupplier::_SwitchFormat() -  codec changed colorspace of decoded format (B_YUV420 -> B_RGB32)!
BMediaEventLooper: SchedulingLatency is 750
BMediaEventLooper: SchedulingLatency is 3000
VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING BUFFER (0): Out of memory
VideoConsumer::Connected - COULDN'T CREATE BUFFERS
BMediaRoster::Connect: aborting after BBufferConsumer::Connected, status = 0x80000000
VideoProducer::Connect() - consumer error: Out of memory
BMediaRoster::Connect: aborted
Can't connect the video source to the video window... trying without overlays, error: Out of memory
BMediaRoster::Connect connection established!
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 1, port 201, team 326
BMediaEventLooper: SchedulingLatency is 750
BMediaRoster::Connect connection established!
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: gfx_conv_yuv420p_rgba32_sse2
BMediaEventLooper: SchedulingLatency is 6000
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 2, port 254, team 326

comment:16 by Hubert, 12 years ago

hrev43867 gcc4h

~> /boot/system/apps/MediaPlayer
open playlist item: bunny.mp4
_InitFromTrack(): keyframes: 1, frame count: 4646149
MediaTrackVideoSupplier::_SwitchFormat() - preferred color space: B_YUV420
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: PIX_FMT_NONE => B_RGB32: NULL
MediaTrackVideoSupplier::_SwitchFormat() -  codec changed colorspace of decoded format (B_YUV420 -> B_RGB32)!
BMediaEventLooper: SchedulingLatency is 750
BMediaEventLooper: SchedulingLatency is 3000
VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING BUFFER (0): Out of memory
VideoConsumer::Connected - COULDN'T CREATE BUFFERS
BMediaRoster::Connect: aborting after BBufferConsumer::Connected, status = 0x80000000
VideoProducer::Connect() - consumer error: Out of memory
BMediaRoster::Connect: aborted
Can't connect the video source to the video window... trying without overlays, error: Out of memory
BMediaRoster::Connect connection established!
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 1, port 206, team 273
BMediaEventLooper: SchedulingLatency is 750
BMediaRoster::Connect connection established!
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: gfx_conv_yuv420p_rgba32_sse2
VideoProducer: dropped frame (32)
VideoProducer: dropped frame (34)
VideoProducer: dropped frame (35)
VideoProducer: dropped frame (36)
VideoProducer: dropped frame (38)
VideoProducer: dropped frame (39)
VideoProducer: dropped frame (40)
VideoProducer: dropped frame (41)
VideoProducer: dropped frame (42)
VideoProducer: dropped frame (44)
VideoProducer: dropped frame (45)
VideoProducer: dropped frame (46)
VideoProducer: dropped frame (47)
VideoProducer: dropped frame (49)
VideoProducer: dropped frame (50)
VideoProducer: dropped frame (51)
VideoProducer: dropped frame (52)
VideoProducer: dropped frame (54)
VideoProducer: dropped frame (55)
VideoProducer: dropped frame (56)
VideoProducer: dropped frame (57)
VideoProducer: dropped frame (59)
VideoProducer: dropped frame (60)
VideoProducer: dropped frame (61)
VideoProducer: dropped frame (62)
VideoProducer: dropped frame (64)
VideoProducer: dropped frame (65)
VideoProducer: dropped frame (66)
VideoProducer: dropped frame (68)
VideoProducer: dropped frame (69)
VideoProducer: dropped frame (70)
VideoProducer: dropped frame (71)
VideoProducer: dropped frame (73)
VideoProducer: dropped frame (74)
VideoProducer: dropped frame (75)
VideoProducer: dropped frame (77)
VideoProducer: dropped frame (78)
VideoProducer: dropped frame (79)
VideoProducer: dropped frame (81)
VideoProducer: dropped frame (82)
VideoProducer: dropped frame (83)
VideoProducer: dropped frame (84)
VideoProducer: dropped frame (86)
VideoProducer: dropped frame (87)
VideoProducer: dropped frame (88)
VideoProducer: dropped frame (89)
VideoProducer: dropped frame (91)
VideoProducer: dropped frame (92)
VideoProducer: dropped frame (93)
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 2, port 302, team 273

comment:17 by Hubert, 12 years ago

I wonder... Maybe the problem is somewhere in the patch, which allows new revision play smoothly .rmvb files?

comment:18 by korli, 12 years ago

FFmpeg optional package are updated in hrev43877. Removed --disable-mmx option from the .bep file. Hope this helps!

comment:19 by luroh, 12 years ago

Hm, I've done a clean gcc2 build and MediaPlayer has now started to crash on me in VMware Player when trying to play bunny-rr.ogv. Screenshot attached.

by luroh, 12 years ago

Attachment: hrev43877_gcc2.png added

comment:20 by diver, 12 years ago

I also get crashes on exit now:

Thread 701 caused an exception: Segment violation
[...]
[Switching to team /boot/system/apps/MediaPlayer (696) thread playback manager (701)]
0x00a56163 in BPrivate::processHeap::free () from /boot/system/lib/libroot.so
(gdb) bt
#0  0x00a56163 in BPrivate::processHeap::free () from /boot/system/lib/libroot.so
#1  0x00a5799e in free () from /boot/system/lib/libroot.so
#2  0x0214e11a in AVCodecDecoder::~AVCodecDecoder () from /boot/system/add-ons/media/plugins/ffmpeg
#3  0x0064b856 in BPrivate::media::PluginManager::DestroyDecoder () from /boot/system/lib/libmedia.so
#4  0x0062820c in BMediaTrack::~BMediaTrack () from /boot/system/lib/libmedia.so
#5  0x00617761 in BMediaFile::ReleaseAllTracks () from /boot/system/lib/libmedia.so
#6  0x00617c14 in BMediaFile::_UnInit () from /boot/system/lib/libmedia.so
#7  0x00617454 in BMediaFile::~BMediaFile () from /boot/system/lib/libmedia.so
#8  0x0026ade7 in MediaFileTrackSupplier::~MediaFileTrackSupplier ()
#9  0x00275e98 in Controller::SetTo ()
#10 0x0027582b in Controller::~Controller ()
#11 0x0038a8a6 in BLooper::Quit () from /boot/system/lib/libbe.so
#12 0x0038be85 in BLooper::_QuitRequested () from /boot/system/lib/libbe.so
#13 0x0038a42a in BLooper::DispatchMessage () from /boot/system/lib/libbe.so
#14 0x0038bdad in BLooper::task_looper () from /boot/system/lib/libbe.so
#15 0x0038b99b in BLooper::_task0_ () from /boot/system/lib/libbe.so
#16 0x009dd6d3 in thread_entry () from /boot/system/lib/libroot.so
#17 0x78080fec in ?? ()

comment:21 by korli, 12 years ago

I'll check this tonight. Could you please also check with gcc4?

comment:22 by luroh, 12 years ago

pure gcc4, hrev43877. Terrible stuttering on my single-core old Athlon64 2GHz. I estimate that maybe 1% of the frames are actually rendered on the screen. Also crashes to gdb when exiting, back trace attached.

by luroh, 12 years ago

Attachment: hrev43877_gdb.txt added

comment:23 by korli, 12 years ago

luroh, for gcc4 that's surprising to me, except the crash on exit, which seems to be consistent for both compilers.

I have tried to replicate what we deactivated for GCC2 in the Haiku ffmpeg tree. This doesn't seem to help. What I'll try first is only enable mmx and see if the situation is any better.

comment:24 by luroh, 12 years ago

Just for the record, my gcc4 system is an AMD64 Athlon single-core 2 GHz, 2 GB RAM. The image was built directly to a partition from Ubuntu 11.04, 32-bit, using the latest jam version (jam -q haiku-image). The build was clean (I removed everything in generated/, except for the download folder) and both buildtools and haiku sources were fully updated. I'll be available for more testing tonight.

comment:25 by korli, 12 years ago

hrev43878 brings a GCC2 without SSE, and a fix for crashs on exit.

Humdinger reported a crash with mkv files related to mmx2.

Thread 3798 caused an exception: Segment violation
[...]
[tcsetpgrp failed in terminal_inferior: Invalid Argument]
[Switching to team /boot/system/apps/MediaPlayer (3793) thread
playback manager (3798)]
0x026001e6 in put_h264_qpel16_mc32_mmx2 ()
  from /boot/system/add-ons/media/plugins/ffmpeg
(gdb) bt
#0  0x026001e6 in put_h264_qpel16_mc32_mmx2 ()
  from /boot/system/add-ons/media/plugins/ffmpeg
#1  0x18711010 in ?? ()
#2  0x1010694f in ?? ()
#3  0x10101010 in ?? ()
#4  0x00001010 in ?? ()
#5  0x0f0f0f00 in ?? ()
#6  0x0f0f0b57 in ?? ()
#7  0x0e000a10 in ?? ()
#8  0x0f0e0e0e in ?? ()
#9  0x780f0f0f in ?? ()
#10 0x0e0e0e0f in ?? ()
#11 0x0f0f0f0e in ?? ()
#12 0x0e0f0f10 in ?? ()
#13 0x0f0e0e0e in ?? ()
#14 0x0f0f0f0f in ?? ()
#15 0x0f0f0f0e in ?? ()
#16 0x0f100f0f in ?? ()
#17 0x0f100f0f in ?? ()
#18 0x100f0f0f in ?? ()
#19 0x0f0f0f10 in ?? ()
#20 0x100f0f0f in ?? ()
#21 0x12101011 in ?? ()
#22 0x00100f11 in load_library () from /boot/system/runtime_loader
Previous frame inner to this frame (corrupt stack?)

comment:26 by luroh, 12 years ago

Yes, I'm seeing the same crash on gcc2 hrev43880 with one of my sample files: http://deathstar.knuttinatoll.net/hammer/jambalaya.mp4

comment:27 by diver, 12 years ago

BTW, there is new FFmpeg 0.10.2.

comment:28 by SeanCollins, 12 years ago

I see this with ALL of my mp4 files.

GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-pc-haiku"...(no debugging symbols found)

[tcsetpgrp failed in terminal_inferior: Invalid Argument]
Thread 4229 caused an exception: Segment violation
Reading symbols from /boot/system/runtime_loader...done.
Loaded symbols for /boot/system/runtime_loader
Reading symbols from /boot/system/lib/libbe.so...done.
Loaded symbols for /boot/system/lib/libbe.so
Reading symbols from /boot/system/lib/libgame.so...done.
Loaded symbols for /boot/system/lib/libgame.so
Reading symbols from /boot/system/lib/liblocale.so...done.
Loaded symbols for /boot/system/lib/liblocale.so
Reading symbols from /boot/system/lib/libmedia.so...done.
Loaded symbols for /boot/system/lib/libmedia.so
Reading symbols from /boot/system/lib/libtracker.so...done.
Loaded symbols for /boot/system/lib/libtracker.so
Reading symbols from /boot/system/lib/libtranslation.so...done.
Loaded symbols for /boot/system/lib/libtranslation.so
Reading symbols from /boot/system/lib/libtextencoding.so...done.
Loaded symbols for /boot/system/lib/libtextencoding.so
Reading symbols from /boot/system/lib/libstdc++.r4.so...done.
Loaded symbols for /boot/system/lib/libstdc++.r4.so
Reading symbols from /boot/system/lib/libroot.so...done.
Loaded symbols for /boot/system/lib/libroot.so
Reading symbols from /boot/system/lib/libicudata.so.48.1.1...done.
Loaded symbols for /boot/system/lib/libicudata.so.48.1.1
Reading symbols from /boot/system/lib/libicui18n.so.48.1.1...done.
Loaded symbols for /boot/system/lib/libicui18n.so.48.1.1
Reading symbols from /boot/system/lib/libicuio.so.48.1.1...done.
Loaded symbols for /boot/system/lib/libicuio.so.48.1.1
Reading symbols from /boot/system/lib/libicule.so.48.1.1...done.
Loaded symbols for /boot/system/lib/libicule.so.48.1.1
Reading symbols from /boot/system/lib/libiculx.so.48.1.1...done.
Loaded symbols for /boot/system/lib/libiculx.so.48.1.1
Reading symbols from /boot/system/lib/libicutu.so.48.1.1...done.
Loaded symbols for /boot/system/lib/libicutu.so.48.1.1
Reading symbols from /boot/system/lib/libicuuc.so.48.1.1...done.
Loaded symbols for /boot/system/lib/libicuuc.so.48.1.1
Reading symbols from /boot/system/lib/libroot-addon-icu.so...done.
Loaded symbols for /boot/system/lib/libroot-addon-icu.so
Reading symbols from /boot/system/add-ons/media/plugins/ffmpeg...done.
Loaded symbols for /boot/system/add-ons/media/plugins/ffmpeg
Reading symbols from /boot/system/lib/libnetwork.so...done.
Loaded symbols for /boot/system/lib/libnetwork.so
[tcsetpgrp failed in terminal_inferior: Invalid Argument]
[Switching to team /boot/system/apps/MediaPlayer (4213) thread frame generator (4229)]
0x025ffc96 in put_h264_qpel16_mc12_mmx2 ()
   from /boot/system/add-ons/media/plugins/ffmpeg
(gdb) bt
#0  0x025ffc96 in put_h264_qpel16_mc12_mmx2 ()
   from /boot/system/add-ons/media/plugins/ffmpeg
#1  0x18b61111 in ?? ()
#2  0x1111b251 in ?? ()
#3  0x11111111 in ?? ()
#4  0x00001111 in ?? ()
#5  0x1111111b in ?? ()
#6  0x11110f46 in ?? ()
#7  0x11000f11 in ?? ()
#8  0x11111111 in ?? ()
#9  0x19111111 in ?? ()
#10 0x11111111 in ?? ()
#11 0x11111111 in ?? ()
#12 0x11111111 in ?? ()
#13 0x11111111 in ?? ()
#14 0x11111111 in ?? ()
#15 0x11111111 in ?? ()
#16 0x11111111 in ?? ()
#17 0x11111111 in ?? ()
#18 0x11111111 in ?? ()
#19 0x11111111 in ?? ()
#20 0x11111111 in ?? ()
#21 0x11111111 in ?? ()
#22 0x00111111 in BPrivate::Libroot::gPosixToLowerMap ()
---Type <return> to continue, or q <return> to quit---






comment:29 by luroh, 12 years ago

Blocking: 8424 added

(In #8424) This and other recent problems with ffmpeg are being tracked in #8393.

comment:30 by korli, 12 years ago

Please have a try at hrev43896. Thanks!

comment:31 by luroh, 12 years ago

hrev43896 gcc2: good news, both jambalaya.mp4 and bunny-rr.ogv now play without visible stuttering or high CPU usage on my laptop, although Terminal still reports "Compiler did not align stack variables..." when launching MediaPlayer.
Now off to test the latest rev with ffmpeg 0.10.2.

comment:32 by luroh, 12 years ago

hrev43901 gcc2: works fine, no noticeable change compared to hrev43896.

comment:33 by luroh, 12 years ago

More testing with hrev43901 on weaker hardware, a T42 laptop (single core 1.7 GHz). jambalaya.mp4 still plays fine while bunny-rr.ogv pegs the CPU at times, causing frame drops and intermittent hangs. Using Xubuntu's default media player 'Parole', the T42 plays bunny-rr.ogv without breaking a sweat, mostly keeping the CPU running in its lowest C-state @ 600 MHz.
Next up is testing an older revision.

comment:34 by luroh, 12 years ago

hrev43826 gcc2 plays bunny-rr.ogv just as bad on the T42 as hrev43901 gcc2 does.

comment:35 by korli, 12 years ago

Resolution: fixed
Status: newclosed

Closing as fixed then.

comment:36 by Hubert, 12 years ago

What fixed, gcc4h hrev43925 still dropped frames:

~> /boot/system/apps/MediaPlayer
open playlist item: bunny.mp4
_InitFromTrack(): keyframes: 1, frame count: 4646149
MediaTrackVideoSupplier::_SwitchFormat() - preferred color space: B_YUV420
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: PIX_FMT_NONE => B_RGB32: NULL
MediaTrackVideoSupplier::_SwitchFormat() -  codec changed colorspace of decoded format (B_YUV420 -> B_RGB32)!
BMediaEventLooper: SchedulingLatency is 750
BMediaEventLooper: SchedulingLatency is 3000
VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING BUFFER (Index 0 Width 1280 Height 720 Colorspace 8: Out of memory
VideoConsumer::Connected - COULDN'T CREATE BUFFERS
BMediaRoster::Connect: aborting after BBufferConsumer::Connected, status = 0x80000000
VideoProducer::Connect() - consumer error: Out of memory
BMediaRoster::Connect: aborted
Can't connect the video source to the video window... trying without overlays, error: Out of memory
BMediaRoster::Connect connection established!
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 1, port 206, team 695
BMediaEventLooper: SchedulingLatency is 750
BMediaRoster::Connect connection established!
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: gfx_conv_yuv420p_rgba32_sse2
VideoProducer: dropped frame (80)
VideoProducer: dropped frame (82)
VideoProducer: dropped frame (83)
VideoProducer: dropped frame (84)
VideoProducer: dropped frame (85)
VideoProducer: dropped frame (87)
VideoProducer: dropped frame (88)
VideoProducer: dropped frame (90)
VideoProducer: dropped frame (139)
VideoProducer: dropped frame (141)
VideoProducer: dropped frame (142)

I recall, hrev43696 gcc4h not dropped frames, so where is fixed problem. Is this a sweeping problem under the carpet? We may have to imitate that everything is ok?

comment:37 by Hubert, 12 years ago

Resolution: fixed
Status: closedreopened

comment:38 by korli, 12 years ago

Hubert, sorry for that. I've no idea yet on what could expose the behavior you encounter on gcc4.

Could you try with a gcc2 MediaPlayer? It seems it would possible if you're running gcc4h, and it should load the gcc2 ffmpeg plugin. If it doesn't work, could you try with a gcc2 installation?

in reply to:  33 ; comment:39 by axeld, 12 years ago

Replying to luroh:

Using Xubuntu's default media player 'Parole', the T42 plays bunny-rr.ogv without breaking a sweat, mostly keeping the CPU running in its lowest C-state @ 600 MHz.

Have you made sure both are using the same way to display the file? Ie. overlay vs. bitmap drawing? This can make a huge difference, and would be unrelated to the codec being used. One way to test would be to monitor the CPU load when you are on another workspace.

in reply to:  39 comment:40 by luroh, 12 years ago

Have you made sure both are using the same way to display the file?

Good idea. Yes, both Haiku's MediaPlayer and Xubuntu's VLC (...because Parole doesn't have any option to disable overlay) are using overlay by default to play bunny-rr.ogv. Moving to another workspace in these cases scenarios makes no difference when it comes to CPU usage.

On the other hand, if I force Haiku's MP and Xubuntu's VLC to do bitmap drawing, I can see a sharp drop in CPU usage in both OSes when moving to another workspace.

Version 0, edited 12 years ago by luroh (next)

in reply to:  38 comment:41 by korli, 12 years ago

Replying to korli:

Could you try with a gcc2 MediaPlayer? It seems it would possible if you're running gcc4h, and it should load the gcc2 ffmpeg plugin. If it doesn't work, could you try with a gcc2 installation?

I reproduced the problem but with a heavy 1080p mkv. Seems to be something wrong as CPU isn't full, maybe RAM I/O is saturating.

comment:42 by korli, 12 years ago

Please check with hrev43989. I noticed fewer drops with it.

comment:43 by Hubert, 12 years ago

hrev44016 gcc4h: the same problem :/

When I have a little time (maybe in weekend) I tested gcc2h version.

comment:44 by korli, 12 years ago

hrev44080 now gets multithread decoding.

comment:45 by Premislaus, 12 years ago

Not only dropped frame on 720p. hrev44087 gcc4h

Welcome to the Haiku shell.

~> MediaPlayer
open playlist item: odc.01.avi
_InitFromTrack(): keyframes: 1, frame count: 62793216
MediaTrackVideoSupplier::_SwitchFormat() - preferred color space: B_YUV420
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: gfx_conv_yuv420p_rgba32_sse2
MediaTrackVideoSupplier::_SwitchFormat() -  codec changed colorspace of decoded format (B_YUV420 -> B_RGB32)!
BMediaEventLooper: SchedulingLatency is 750
BMediaEventLooper: SchedulingLatency is 3000
VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING BUFFER (Index 0 Width 512 Height 384 Colorspace 8: Out of memory
VideoConsumer::Connected - COULDN'T CREATE BUFFERS
BMediaRoster::Connect: aborting after BBufferConsumer::Connected, status = 0x80000000
VideoProducer::Connect() - consumer error: Out of memory
BMediaRoster::Connect: aborted
Can't connect the video source to the video window... trying without overlays, error: Out of memory
BMediaRoster::Connect connection established!
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 1, port 343, team 531
BMediaEventLooper: SchedulingLatency is 750
BMediaRoster::Connect connection established!
[mpeg4 @ 0x18148ec0] slice end not reached but screenspace end (-9 left 51E7C8, score= -252)
[mpeg4 @ 0x18148ec0] concealing 768 DC, 768 AC, 768 MV errors
_ToggleFullscreen enter
saving current frame: 234 120 745 583
_ToggleFullscreen leave
VideoProducer: dropped frame (1125)
VideoProducer: dropped frame (1127)
VideoProducer: dropped frame (1630)
_ToggleFullscreen enter
_ToggleFullscreen leave
_ToggleFullscreen enter
saving current frame: 234 120 745 583
_ToggleFullscreen leave
VideoProducer: dropped frame (2009)
_ToggleFullscreen enter
_ToggleFullscreen leave
VideoProducer: dropped frame (2164)
_ToggleFullscreen enter
saving current frame: 234 120 745 583
_ToggleFullscreen leave
VideoProducer: dropped frame (2198)
_ToggleFullscreen enter
_ToggleFullscreen leave
_ToggleFullscreen enter
saving current frame: 234 120 745 583
_ToggleFullscreen leave
VideoProducer: dropped frame (2703)
_ToggleFullscreen enter
_ToggleFullscreen leave
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 3, port 428, team 531
~> MediaPlayer
open playlist item: Le Pacte Des Loups CD1.avi
[mpeg4 @ 0x180f48a0] Invalid and inefficient vfw-avi packed B frames detected
[mpeg4 @ 0x180f3060] Invalid and inefficient vfw-avi packed B frames detected
_InitFromTrack(): keyframes: 1, frame count: 188557440
MediaTrackVideoSupplier::_SwitchFormat() - preferred color space: B_YUV420
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: gfx_conv_yuv420p_rgba32_sse2
MediaTrackVideoSupplier::_SwitchFormat() -  codec changed colorspace of decoded format (B_YUV420 -> B_RGB32)!
BMediaEventLooper: SchedulingLatency is 750
BMediaEventLooper: SchedulingLatency is 3000
VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING BUFFER (Index 0 Width 688 Height 320 Colorspace 8: Out of memory
VideoConsumer::Connected - COULDN'T CREATE BUFFERS
BMediaRoster::Connect: aborting after BBufferConsumer::Connected, status = 0x80000000
VideoProducer::Connect() - consumer error: Out of memory
BMediaRoster::Connect: aborted
Can't connect the video source to the video window... trying without overlays, error: Out of memory
BMediaRoster::Connect connection established!
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 1, port 343, team 620
BMediaEventLooper: SchedulingLatency is 750
BMediaRoster::Connect connection established!
[mpeg4 @ 0x183b5040] Invalid and inefficient vfw-avi packed B frames detected
_ToggleFullscreen enter
saving current frame: 271 100 958 499
_ToggleFullscreen leave
Show context menu
VideoProducer: dropped frame (549)
[mpeg4 @ 0x18057460] Invalid and inefficient vfw-avi packed B frames detected
[NULL @ 0x18057460] Invalid and inefficient vfw-avi packed B frames detected
[NULL @ 0x18057460] Invalid and inefficient vfw-avi packed B frames detected
VideoProducer: dropped frame (551)
VideoProducer: dropped frame (552)
VideoProducer: dropped frame (553)
VideoProducer: dropped frame (554)
[NULL @ 0x18057460] Invalid and inefficient vfw-avi packed B frames detected
[NULL @ 0x18057460] Invalid and inefficient vfw-avi packed B frames detected
_ToggleFullscreen enter
_ToggleFullscreen leave
_ToggleFullscreen enter
saving current frame: 271 100 958 499
_ToggleFullscreen leave
_ToggleFullscreen enter
_ToggleFullscreen leave
_ToggleFullscreen enter
saving current frame: 271 100 958 499
_ToggleFullscreen leave
VideoProducer: dropped frame (1054)
[NULL @ 0x18057460] Invalid and inefficient vfw-avi packed B frames detected
[NULL @ 0x18057460] Invalid and inefficient vfw-avi packed B frames detected
_ToggleFullscreen enter
_ToggleFullscreen leave
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 3, port 428, team 620
~> MediaPlayer
open playlist item: Rome.101.The.Stolen.Eagle.avi
_InitFromTrack(): keyframes: 1, frame count: 133577856
MediaTrackVideoSupplier::_SwitchFormat() - preferred color space: B_YUV420
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: gfx_conv_yuv420p_rgba32_sse2
MediaTrackVideoSupplier::_SwitchFormat() -  codec changed colorspace of decoded format (B_YUV420 -> B_RGB32)!
BMediaEventLooper: SchedulingLatency is 750
BMediaEventLooper: SchedulingLatency is 3000
VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING BUFFER (Index 0 Width 608 Height 336 Colorspace 8: Out of memory
VideoConsumer::Connected - COULDN'T CREATE BUFFERS
BMediaRoster::Connect: aborting after BBufferConsumer::Connected, status = 0x80000000
VideoProducer::Connect() - consumer error: Out of memory
BMediaRoster::Connect: aborted
Can't connect the video source to the video window... trying without overlays, error: Out of memory
BMediaRoster::Connect connection established!
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 1, port 343, team 655
BMediaEventLooper: SchedulingLatency is 750
BMediaRoster::Connect connection established!
_ToggleFullscreen enter
saving current frame: 295 100 902 515
_ToggleFullscreen leave
VideoProducer: dropped frame (330)
VideoProducer: dropped frame (332)
VideoProducer: dropped frame (333)
VideoProducer: dropped frame (334)
VideoProducer: dropped frame (335)
VideoProducer: dropped frame (336)
_ToggleFullscreen enter
_ToggleFullscreen leave
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 3, port 428, team 655
~> MediaPlayer
open playlist item: Rome.101.The.Stolen.Eagle.avi
_InitFromTrack(): keyframes: 1, frame count: 133577856
MediaTrackVideoSupplier::_SwitchFormat() - preferred color space: B_YUV420
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: gfx_conv_yuv420p_rgba32_sse2
MediaTrackVideoSupplier::_SwitchFormat() -  codec changed colorspace of decoded format (B_YUV420 -> B_RGB32)!
BMediaEventLooper: SchedulingLatency is 750
BMediaEventLooper: SchedulingLatency is 3000
VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING BUFFER (Index 0 Width 608 Height 336 Colorspace 8: Out of memory
VideoConsumer::Connected - COULDN'T CREATE BUFFERS
BMediaRoster::Connect: aborting after BBufferConsumer::Connected, status = 0x80000000
VideoProducer::Connect() - consumer error: Out of memory
BMediaRoster::Connect: aborted
Can't connect the video source to the video window... trying without overlays, error: Out of memory
BMediaRoster::Connect connection established!
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 1, port 343, team 682
BMediaEventLooper: SchedulingLatency is 750
BMediaRoster::Connect connection established!
_ToggleFullscreen enter
saving current frame: 295 100 902 515
_ToggleFullscreen leave
VideoProducer: dropped frame (271)
VideoProducer: dropped frame (273)
VideoProducer: dropped frame (274)
VideoProducer: dropped frame (275)
VideoProducer: dropped frame (332)
VideoProducer: dropped frame (634)
[mpeg4 @ 0x185f2c80] slice end not reached but screenspace end (-9 left 78C7BC, score= -760)
[mpeg4 @ 0x185f2c80] concealing 798 DC, 798 AC, 798 MV errors
VideoProducer: dropped frame (1361)
VideoProducer: dropped frame (1422)
VideoProducer: dropped frame (1424)
VideoProducer: dropped frame (1425)
VideoProducer: dropped frame (1426)
VideoProducer: dropped frame (2090)
_ToggleFullscreen enter
_ToggleFullscreen leave
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 3, port 428, team 682
~> MediaPlayer
open playlist item: zx.slayers.tv.10.divx5.ogm
MediaExtractor::MediaExtractor: AllocateCookie for stream 3 failed
MediaExtractor::CreateDecoder can't create decoder for stream 3: General system error
MediaFileTrackSupplier: warning! track index 3 has no duration
MediaFileTrackSupplier: track index 3 has unknown type
_InitFromTrack(): keyframes: 1, frame count: 64481136
MediaTrackVideoSupplier::_SwitchFormat() - preferred color space: B_YUV420
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: gfx_conv_yuv420p_rgba32_sse2
MediaTrackVideoSupplier::_SwitchFormat() -  codec changed colorspace of decoded format (B_YUV420 -> B_RGB32)!
BMediaEventLooper: SchedulingLatency is 750
BMediaEventLooper: SchedulingLatency is 3000
VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING BUFFER (Index 0 Width 640 Height 480 Colorspace 8: Out of memory
VideoConsumer::Connected - COULDN'T CREATE BUFFERS
BMediaRoster::Connect: aborting after BBufferConsumer::Connected, status = 0x80000000
VideoProducer::Connect() - consumer error: Out of memory
BMediaRoster::Connect: aborted
Can't connect the video source to the video window... trying without overlays, error: Out of memory
BMediaRoster::Connect connection established!
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 1, port 343, team 787
BMediaEventLooper: SchedulingLatency is 750
BMediaRoster::Connect connection established!
_InitFromTrack(): keyframes: 1, frame count: 64478064
_ToggleFullscreen enter
saving current frame: 262 100 901 659
_ToggleFullscreen leave
VideoProducer: dropped frame (172)
VideoProducer: dropped frame (174)
VideoProducer: dropped frame (415)
VideoProducer: dropped frame (597)
VideoProducer: dropped frame (1142)
VideoProducer: dropped frame (1505)
VideoProducer: dropped frame (1506)
VideoProducer: dropped frame (1508)
[mpeg4 @ 0x182663e0] ac-tex damaged at 38 4
[mpeg4 @ 0x182663e0] Error at MB: 202
[mpeg4 @ 0x182663e0] concealing 1051 DC, 1051 AC, 1051 MV errors
VideoProducer: dropped frame (1687)
VideoProducer: dropped frame (2050)
VideoProducer: dropped frame (2171)
VideoProducer: dropped frame (2232)
VideoProducer: dropped frame (2534)
_ToggleFullscreen enter
_ToggleFullscreen leave
/dev/net/ralinkVideoProducer: dropped frame (3624)             
_ToggleFullscreen enter
saving current frame: 262 100 901 659
_ToggleFullscreen leave
VideoProducer: dropped frame (4653)
_ToggleFullscreen enter
_ToggleFullscreen leave
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 3, port 428, team 787
~> 
Last edited 12 years ago by Premislaus (previous) (diff)

comment:46 by anevilyak, 12 years ago

What revision of Haiku was that log taken with? And what kind of hardware?

in reply to:  46 comment:47 by Premislaus, 12 years ago

Replying to anevilyak:

What revision of Haiku was that log taken with? And what kind of hardware?

hrev44087 gcc4h

Athlon 64 3500+, 1 GB RAM, Radeon HD 5450

Movies are encoded Xvid and AC3 ACM or MP3, AVI.

Slayers has Divx 5 and Vorbis, OGM.

"When installing K-Lite Codec Pack in Windows, I installs the various programs to manage codecs. So I have no artifacts in the displayed film. Simply change the libavcodec for Xvid decoder. Unfortunately, Haiku does not have such functionality. " - http://dev.haiku-os.org/ticket/8304

On Windows is well.

Maybe bugs in ffmpeg?

Last edited 12 years ago by Premislaus (previous) (diff)

comment:48 by Hubert, 12 years ago

Hey. hrev44101 gcc4h bunny.mp4 play without dropped frame.

~> /boot/system/apps/MediaPlayer
open playlist item: bunny.mp4
_InitFromTrack(): keyframes: 1, frame count: 4646149
MediaTrackVideoSupplier::_SwitchFormat() - preferred color space: B_YUV420
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: PIX_FMT_NONE => B_RGB32: NULL
MediaTrackVideoSupplier::_SwitchFormat() -  codec changed colorspace of decoded format (B_YUV420 -> B_RGB32)!
BMediaEventLooper: SchedulingLatency is 750
BMediaEventLooper: SchedulingLatency is 3000
VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING BUFFER (Index 0 Width 1280 Height 720 Colorspace 8: Out of memory
VideoConsumer::Connected - COULDN'T CREATE BUFFERS
BMediaRoster::Connect: aborting after BBufferConsumer::Connected, status = 0x80000000
VideoProducer::Connect() - consumer error: Out of memory
BMediaRoster::Connect: aborted
Can't connect the video source to the video window... trying without overlays, error: Out of memory
BMediaRoster::Connect connection established!
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 1, port 288, team 5074
BMediaEventLooper: SchedulingLatency is 750
BMediaRoster::Connect connection established!
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: gfx_conv_yuv420p_rgba32_sse2

comment:49 by Premislaus, 12 years ago

hrev44149

Video files from DemoPackage_Video-0.1-2012-02-19.

Tell me what tests I can perform?

Welcome to the Haiku shell.

~> MediaPlayer
open playlist item: bunny.mp4
_InitFromTrack(): keyframes: 1, frame count: 4646149
MediaTrackVideoSupplier::_SwitchFormat() - preferred color space: B_YUV420
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: PIX_FMT_NONE => B_RGB32: NULL
MediaTrackVideoSupplier::_SwitchFormat() -  codec changed colorspace of decoded format (B_YUV420 -> B_RGB32)!
BMediaEventLooper: SchedulingLatency is 750
BMediaEventLooper: SchedulingLatency is 3000
VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING BUFFER (Index 0 Width 1280 Height 720 Colorspace 8: Out of memory
VideoConsumer::Connected - COULDN'T CREATE BUFFERS
BMediaRoster::Connect: aborting after BBufferConsumer::Connected, status = 0x80000000
VideoProducer::Connect() - consumer error: Out of memory
BMediaRoster::Connect: aborted
Can't connect the video source to the video window... trying without overlays, error: Out of memory
BMediaRoster::Connect connection established!
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 1, port 370, team 391
BMediaEventLooper: SchedulingLatency is 750
BMediaRoster::Connect connection established!
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: gfx_conv_yuv420p_rgba32_sse2
VideoProducer: dropped frame (80)
VideoProducer: dropped frame (81)
VideoProducer: dropped frame (83)
VideoProducer: dropped frame (84)
VideoProducer: dropped frame (85)
VideoProducer: dropped frame (86)
VideoProducer: dropped frame (87)
VideoProducer: dropped frame (88)
_ToggleFullscreen enter
saving current frame: 154 114 1018 654
_ToggleFullscreen leave
VideoProducer: dropped frame (169)
VideoProducer: dropped frame (171)
VideoProducer: dropped frame (228)
VideoProducer: dropped frame (230)
VideoProducer: dropped frame (263)
VideoProducer: dropped frame (265)
VideoProducer: dropped frame (266)
VideoProducer: dropped frame (322)
VideoProducer: dropped frame (324)
VideoProducer: dropped frame (325)
VideoProducer: dropped frame (327)
VideoProducer: dropped frame (388)
VideoProducer: dropped frame (390)
VideoProducer: dropped frame (391)
VideoProducer: dropped frame (393)
VideoProducer: dropped frame (529)
VideoProducer: dropped frame (531)
VideoProducer: dropped frame (1204)
VideoProducer: dropped frame (1206)
VideoProducer: dropped frame (1207)
VideoProducer: dropped frame (1263)
VideoProducer: dropped frame (1265)
VideoProducer: dropped frame (1266)
VideoProducer: dropped frame (1268)
VideoProducer: dropped frame (1322)
VideoProducer: dropped frame (1324)
VideoProducer: dropped frame (1325)
VideoProducer: dropped frame (1327)
VideoProducer: dropped frame (1381)
VideoProducer: dropped frame (1383)
VideoProducer: dropped frame (1384)
VideoProducer: dropped frame (1386)
VideoProducer: dropped frame (1499)
VideoProducer: dropped frame (1501)
VideoProducer: dropped frame (1503)
VideoProducer: dropped frame (1617)
VideoProducer: dropped frame (1619)
VideoProducer: dropped frame (1620)
VideoProducer: dropped frame (1681)
VideoProducer: dropped frame (1683)
VideoProducer: dropped frame (1730)
VideoProducer: dropped frame (1732)
VideoProducer: dropped frame (1733)
VideoProducer: dropped frame (1735)
VideoProducer: dropped frame (1848)
VideoProducer: dropped frame (1850)
VideoProducer: dropped frame (1851)
VideoProducer: dropped frame (1907)
VideoProducer: dropped frame (1909)
VideoProducer: dropped frame (1910)
VideoProducer: dropped frame (1966)
VideoProducer: dropped frame (1968)
VideoProducer: dropped frame (1969)
VideoProducer: dropped frame (1971)
VideoProducer: dropped frame (1973)
VideoProducer: dropped frame (2025)
VideoProducer: dropped frame (2027)
VideoProducer: dropped frame (2028)
VideoProducer: dropped frame (2030)
VideoProducer: dropped frame (2032)
VideoProducer: dropped frame (2084)
VideoProducer: dropped frame (2086)
VideoProducer: dropped frame (2087)
VideoProducer: dropped frame (2089)
VideoProducer: dropped frame (2091)
VideoProducer: dropped frame (2151)
VideoProducer: dropped frame (2272)
VideoProducer: dropped frame (2274)
VideoProducer: dropped frame (2275)
VideoProducer: dropped frame (2331)
VideoProducer: dropped frame (2333)
VideoProducer: dropped frame (2334)
VideoProducer: dropped frame (2336)
VideoProducer: dropped frame (2361)
VideoProducer: dropped frame (2363)
VideoProducer: dropped frame (2420)
VideoProducer: dropped frame (2422)
VideoProducer: dropped frame (2785)
VideoProducer: dropped frame (2786)
VideoProducer: dropped frame (2788)
VideoProducer: dropped frame (2789)
VideoProducer: dropped frame (2979)
VideoProducer: dropped frame (2981)
VideoProducer: dropped frame (2982)
BMediaEventLooper: SchedulingLatency is 6000
BMediaTrack::ReadFrames: decoder returned error 0x80004007 (Last buffer)
_ToggleFullscreen enter
_ToggleFullscreen leave
InfoWin::Update(0xffffffff)
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 3, port 427, team 391
~> 

~> MediaPlayer
open playlist item: teaser.avi
_InitFromTrack(): keyframes: 1, frame count: 6944640
MediaTrackVideoSupplier::_SwitchFormat() - preferred color space: B_YUV420
CPU is capable of running MMX SSE1 SSE2 SSE3 
resolve_colorspace: gfx_conv_yuv420p_rgba32_sse2
MediaTrackVideoSupplier::_SwitchFormat() -  codec changed colorspace of decoded format (B_YUV420 -> B_RGB32)!
BMediaEventLooper: SchedulingLatency is 750
BMediaEventLooper: SchedulingLatency is 3000
VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING BUFFER (Index 0 Width 512 Height 384 Colorspace 8: Out of memory
VideoConsumer::Connected - COULDN'T CREATE BUFFERS
BMediaRoster::Connect: aborting after BBufferConsumer::Connected, status = 0x80000000
VideoProducer::Connect() - consumer error: Out of memory
BMediaRoster::Connect: aborted
Can't connect the video source to the video window... trying without overlays, error: Out of memory
BMediaRoster::Connect connection established!
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 1, port 330, team 2298
BMediaEventLooper: SchedulingLatency is 750
BMediaRoster::Connect connection established!
_ToggleFullscreen enter
saving current frame: 499 126 1010 589
_ToggleFullscreen leave
BMediaEventLooper: SchedulingLatency is 6000
BMediaTrack::ReadFrames: decoder returned error 0x80004007 (Last buffer)
_ToggleFullscreen enter
_ToggleFullscreen leave

comment:50 by humdinger, 12 years ago

Maybe the whole issue isn't limited to media playback. For a long time I see seconds long freezing when the system is under stress, e.g. jamming a Haiku image. Maybe jua_'s scheduler efforts will help. At last BeGeistert axeld also mentioned some issues with bonefish's kernel changes last year, but I don't have any details... :)

in reply to:  50 comment:51 by anevilyak, 12 years ago

Replying to humdinger:

Maybe the whole issue isn't limited to media playback. For a long time I see seconds long freezing when the system is under stress, e.g. jamming a Haiku image. Maybe jua_'s scheduler efforts will help. At last BeGeistert axeld also mentioned some issues with bonefish's kernel changes last year, but I don't have any details... :)

Could potentially also be driver-specific issues, at least I haven't observed pauses like what you describe over here, likely with very different hardware.

comment:52 by Hubert, 12 years ago

hrev44459 gcc4h

~> /boot/system/apps/MediaPlayer
open playlist item: bunny.mp4
_InitFromTrack(): keyframes: 1, frame count: 4646149
MediaTrackVideoSupplier::_SwitchFormat() - preferred color space: B_YUV420
CPU is capable of running MMX SSE1 SSE2 SSE3 SSSE3 
resolve_colorspace: PIX_FMT_NONE => B_RGB32: NULL
MediaTrackVideoSupplier::_SwitchFormat() -  codec changed colorspace of decoded format (B_YUV420 -> B_RGB32)!
BMediaEventLooper: SchedulingLatency is 750
BMediaEventLooper: SchedulingLatency is 3000
VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING BUFFER (Index 0 Width 1280 Height 720 Colorspace 8: Out of memory
VideoConsumer::Connected - COULDN'T CREATE BUFFERS
BMediaRoster::Connect: aborting after BBufferConsumer::Connected, status = 0x80000000
VideoProducer::Connect() - consumer error: Out of memory
BMediaRoster::Connect: aborted
Can't connect the video source to the video window... trying without overlays, error: Out of memory
BMediaRoster::Connect connection established!
BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 1, port 331, team 13040
BMediaEventLooper: SchedulingLatency is 750
BMediaRoster::Connect connection established!
CPU is capable of running MMX SSE1 SSE2 SSE3 SSSE3 
resolve_colorspace: gfx_conv_yuv420p_rgba32_ssse3
open playlist item: bunny.mp4
VideoProducer: dropped frame (102)
VideoProducer: dropped frame (103)
VideoProducer: dropped frame (105)
VideoProducer: dropped frame (106)
VideoProducer: dropped frame (107)
VideoProducer: dropped frame (108)
VideoProducer: dropped frame (110)
VideoProducer: dropped frame (111)
VideoProducer: dropped frame (113)
VideoProducer: dropped frame (161)
VideoProducer: dropped frame (163)
VideoProducer: dropped frame (164)
VideoProducer: dropped frame (165)
VideoProducer: dropped frame (167)
VideoProducer: dropped frame (191)
VideoProducer: dropped frame (193)
VideoProducer: dropped frame (285)
VideoProducer: dropped frame (287)
VideoProducer: dropped frame (344)
VideoProducer: dropped frame (346)
VideoProducer: dropped frame (1226)
VideoProducer: dropped frame (1228)
VideoProducer: dropped frame (1229)
VideoProducer: dropped frame (1285)
VideoProducer: dropped frame (1287)
VideoProducer: dropped frame (1288)
VideoProducer: dropped frame (1290)
VideoProducer: dropped frame (1639)
VideoProducer: dropped frame (1641)
VideoProducer: dropped frame (1703)
VideoProducer: dropped frame (1705)
VideoProducer: dropped frame (1752)
VideoProducer: dropped frame (1754)
VideoProducer: dropped frame (1756)
VideoProducer: dropped frame (1870)
VideoProducer: dropped frame (1872)
VideoProducer: dropped frame (1873)
VideoProducer: dropped frame (1929)
VideoProducer: dropped frame (1931)
VideoProducer: dropped frame (1932)
VideoProducer: dropped frame (1988)
VideoProducer: dropped frame (1990)
VideoProducer: dropped frame (1992)
VideoProducer: dropped frame (2047)
VideoProducer: dropped frame (2049)
VideoProducer: dropped frame (2050)
VideoProducer: dropped frame (2106)
VideoProducer: dropped frame (2108)
VideoProducer: dropped frame (2109)
VideoProducer: dropped frame (2111)
VideoProducer: dropped frame (2173)
VideoProducer: dropped frame (2294)
VideoProducer: dropped frame (2296)
VideoProducer: dropped frame (2353)
VideoProducer: dropped frame (2355)
VideoProducer: dropped frame (2357)
VideoProducer: dropped frame (2383)
VideoProducer: dropped frame (2385)
VideoProducer: dropped frame (2807)
VideoProducer: dropped frame (2809)
VideoProducer: dropped frame (2810)
BMediaEventLooper: SchedulingLatency is 6000
BMediaTrack::ReadFrames: decoder returned error 0x80004007 (Last buffer)
BMediaTrack::ReadFrames: decoder returned error 0x80004007 (Last buffer)

comment:53 by vidrep, 9 years ago

Is this still a valid ticket? I tested a variety of 720p videos of different types (.wmv, .mp4 .mov) and all played flawlessly without stuttering or dropping frames, using hrev49046 x86_gcc2.

comment:54 by humdinger, 9 years ago

I can't reproduce anymore, though I don't have the original file anymore. And I also now have a much more powerful CPU (i7-4712MQ@2.3ghz). So, close?

comment:55 by vidrep, 9 years ago

I used the "Pulse" demo to disable all but one core on my system, then played a sequence of 720p videos of different formats. At no time did the cpu load exceed 50%. I'd say close the ticket.

comment:56 by waddlesplash, 9 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.