Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
92 user(s) are online (82 user(s) are browsing Forums)

Members: 1
Guests: 91

NinjaCyborg, more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 7 8 9 (10) 11 12 13 ... 15 »
Re: Odyssey's MediaPlayer thread
Just popping in
Just popping in


See User information
@ktadd

Can you make a screenshot of this?

Go to top
Re: Odyssey's MediaPlayer thread
Quite a regular
Quite a regular


See User information
@Ami603
Quote:
Can you make a screenshot of this?

Sure. Turns out you don't need to have a video playing in both windows. Just turn off composting in preferences. Open 2 browser windows. Play a video in one window and make full screen, then bring the window in the back to the front or move either window around and you will see the issue. The video "paints" over the other window.

Click to see screen capture

Go to top
Re: Odyssey's MediaPlayer thread
Just popping in
Just popping in


See User information
@ktadd

Ok thank you, I'll see how to fix it

Go to top
Re: Odyssey's MediaPlayer thread
Not too shy to talk
Not too shy to talk


See User information
@ktadd

I confirm the same behaviour on A1222 with Radeon R7 265 with latest RadeonHD drivers

Go to top
Re: Odyssey's MediaPlayer thread
Home away from home
Home away from home


See User information
@Ami603

You need to render into the window's rastport using DoHookClipRects(). Set the CompositeTags() destination rectangle to the clipping region (it's a clipping rectangle, which is perfect for the task).

Hans

Go to top
Re: Odyssey's MediaPlayer thread
Just popping in
Just popping in


See User information
@Hans

It's exactly what we are doing in our Code, don't know why it works on your example and not here.

Go to top
Re: Odyssey's MediaPlayer thread
Just can't stay away
Just can't stay away


See User information
@kas1e

Pushed the first draft of AHI device API implementation. I have been testing it with Youtube. For some reason the initial volume level between audio and GUI is not in sync for me. I have to always touch the volume control.

Regarding implementation, I just randomized something for buffer sizes etc. They may need some tuning.

Signal handling is a bit of a mess. I was using originally more signals to control the playback (pause, resume, kill and AHI) but it was so tricky to get right so I stepped back for a simpler solution. Now the whole thing is more or less dominated by the AHI double-buffering scheme, and it seems to be working, for me at least.

Branch is here https://github.com/capehill/Odyssey/tree/ahi-device-api3 - some testing would be good.






Go to top
Re: Odyssey's MediaPlayer thread
Home away from home
Home away from home


See User information
@Capehill
Cool ! Will check it for sure !

Quote:

For some reason the initial volume level between audio and GUI is not in sync for me. I have to always touch the volume control.


It is the same and for older (current) ahi code, and with your new one ? Or only with new one ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Odyssey's MediaPlayer thread
Just can't stay away
Just can't stay away


See User information
@kas1e

I guess the problem is that I'm not initializing new "volume" field in _Stream struct so if "audioSetVolume()" is not called, it could be 0. Should be simple to fix.

Go to top
Re: Odyssey's MediaPlayer thread
Home away from home
Home away from home


See User information
@Capehill
Tested version with latest fix about initialize volume:

1). all builds without warnings
2). it runs!
3). it works! Tested on html5videoplayer with that "toystory" video, and with couple of youtube vids.
4). At first time noticed there heavier cpu loading, but then realize that debug enabled, so after disabling speed back to the same as with LIBRARY_API version.
5). Tested with all possible ahi settings (be it music unit as 0, or as name of sound card) - in all cases now can run as much as want audio apps at the same time with odyssey.


But i think i got new crash which i didn't before: when i chooice "loop" , in options of player, then after video about to be ended and after a while new loop should be started, i got a crash with such stack trace:

Stack trace:
(
0x5783B900native kernel module kernel+0x0003f22c
(0x5783B910native kernel module kernel+0x0003f328
(0x5783B950native kernel module newlib.library.kmod+0x00007be4
(0x5783B960Odyssey:_ZN7WebCoreL13read_callbackEPvPci()+0x26c (section 1 0x182854)
(
0x5783BA00Odyssey:file_read()+0x28 (section 1 0x18EDC8)
(
0x5783BA10Odyssey:ffurl_read()+0xe8 (section 1 0x1CC9D90)
(
0x5783BA40Odyssey:fill_buffer()+0xe0 (section 1 0x1CF7570)
(
0x5783BA70Odyssey:avio_read()+0x80 (section 1 0x1CF7994)
(
0x5783BAA0Odyssey:append_packet_chunked()+0x90 (section 1 0x1CEA73C)
(
0x5783BAE0Odyssey:mov_read_packet()+0x284 (section 1 0x1CD53C8)
(
0x5783BB70Odyssey:ff_read_packet()+0xf4 (section 1 0x1CEE4B8)
(
0x5783BC10Odyssey:read_frame_internal()+0xcc (section 1 0x1CF18D0)
(
0x5783BDA0Odyssey:av_read_frame()+0x4a8 (section 1 0x1CF2650)
(
0x5783BE10Odyssey:ac_read_package()+0x3c (section 1 0x18F8B0)
(
0x5783BE80Odyssey:_ZN7WebCore18MediaPlayerPrivate5demuxERbS1_S1_S1_S1_()+0x154 (section 1 0x188FD8)
(
0x5783BEC0Odyssey:_ZN7WebCore18MediaPlayerPrivate10playerLoopEv()+0x440 (section 1 0x18962C)
(
0x5783BF60Odyssey:_ZN7WebCore18MediaPlayerPrivate15playerLoopStartEPv()+0x2c (section 1 0x189E1C)
(
0x5783BF70Odyssey:_ZN3WTFL16threadEntryPointEPv()+0x128 (section 1 0x19A33AC)
(
0x5783BF90native kernel module dos.library.kmod+0x0002a40c
(0x5783BFC0native kernel module kernel+0x0006b268
(0x5783BFD0native kernel module kernel+0x0006b2b0


But it seems random , at least can't reproduce it right now again. Try to run some video , set it on loop and wait a bit (i also will try to made more tests in that terms)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Odyssey's MediaPlayer thread
Home away from home
Home away from home


See User information
@Ami603

Quote:
It's exactly what we are doing in our Code, don't know why it works on your example and not here.

Which rastport are you using? IIRC, it's pretty easy to access the wrong one via the Window struct.

Hans

Go to top
Re: Odyssey's MediaPlayer thread
Home away from home
Home away from home


See User information
@Hans
Relevant parts in current version:


Part where Composite call done:

https://github.com/kas1e/Odyssey/blob/ ... owbbrowserclass.cpp#L3672


Part where DoHookClipRect done:

https://github.com/kas1e/Odyssey/blob/ ... owbbrowserclass.cpp#L4036


Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Odyssey's MediaPlayer thread
Home away from home
Home away from home


See User information
@kas1e

The problem is in line 3718 & 3719:
COMPTAG_DestWidth,hookData->right,
COMPTAG_DestHeight,hookData->bottom,

The width and height should be the width and height of the clip rectangle, which comes from msg. It should be something like:
COMPTAG_DestWidth, msg->Bounds.MaxX - msg->Bounds.MinX,
COMPTAG_DestHeight, msg->Bounds.MaxY - msg->Bounds.MinY,

Hans

Go to top
Re: Odyssey's MediaPlayer thread
Home away from home
Home away from home


See User information
@Hans
Thanks ! But while it fix our overlapping issue when more than one window is used, it leave us with 2 new issues:

1. With that change i have vertical black line in about 35% from the left side of the video (open in new tab for fullsize):

Resized Image

2. When i move another window on top of one with video, sometime i had some strange horisontal artifact-kind line on the left-top side of second window (open in new tab for fullsize):

Resized Image

I assume both bugs may have same roots ?

Go to top
Re: Odyssey's MediaPlayer thread
Just can't stay away
Just can't stay away


See User information
@kas1e & Ami603

I also note some tearing while watching a video, could something be done to get rid of it (some kind of vsync) ?

Go to top
Re: Odyssey's MediaPlayer thread
Home away from home
Home away from home


See User information
@kas1e

I missed the +1:
COMPTAG_DestWidth, msg->Bounds.MaxX - msg->Bounds.MinX + 1,
COMPTAG_DestHeight, msg->Bounds.MaxY - msg->Bounds.MinY + 1,

Hopefully that'll fix both of the problems you showed.

Hans

Go to top
Re: Odyssey's MediaPlayer thread
Home away from home
Home away from home


See User information
@Hans
Yeah, that did the trick ! Thanks! Commited: https://github.com/kas1e/Odyssey/commi ... e4de7f0b9126560fb8933efef

Noticed through another issue when i had compositing effects disabled in gui : when i move any window over the one with composited video , it leave some artifacts for a frame, which disappear on a next one , and which effect i didn't have when compositing effects enabled. See what i mean:

https://youtu.be/V515ja6lhWw

Not sure through if it something to worry about, but as it different between compositing effects enabled/disabled, i just think maybe it's something we need to take care of. Not big deal for sure, but if things can be better why not :)


@K-L
I seems don't have tearing. Do you have vsync works everywhere else, right ? (i had issue with VSYNC which was very visibly with warp3dnova logo demo (can be good test case for), and it ends up being bad VGA cable , and things fixes when i replace it on HDMI one).

Go to top
Re: Odyssey's MediaPlayer thread
Just can't stay away
Just can't stay away


See User information
@kas1e

I'm using an HDMI cable with an R7 250. I have no tearing with Emotion (but I have some tearing with MPlayer).

Go to top
Re: Odyssey's MediaPlayer thread
Home away from home
Home away from home


See User information
@kas1e

Quote:
@Hans
Yeah, that did the trick ! Thanks! Commited: https://github.com/kas1e/Odyssey/commi ... e4de7f0b9126560fb8933efef

Great!

Quote:
Noticed through another issue when i had compositing effects disabled in gui : when i move any window over the one with composited video , it leave some artifacts for a frame, which disappear on a next one , and which effect i didn't have when compositing effects enabled. See what i mean:

https://youtu.be/V515ja6lhWw

Not sure through if it something to worry about, but as it different between compositing effects enabled/disabled, i just think maybe it's something we need to take care of. Not big deal for sure, but if things can be better why not :)

Not quite sure why that happens, although it's a minor issue because those areas are being cleared to black.

Maybe its related to the window's refresh method, or the black areas are drawn by the background fill hook. If there's a background fill hook active, then a custom one could be written to fill in the missing part of the current frame.

Hans

Go to top
Re: Odyssey's MediaPlayer thread
Home away from home
Home away from home


See User information
@Hans
Yeah, that for sure of not real needs to be deal with, as anyway those ones who have compositing video should have compositing effects enabled. But even if they didn't , everything works, and that difference not worth of time wasting.

@Capehill
Doesn't you mind if i update main repo with your ahi-rewrite, and made another beta, so all can test if it just on my setup i have random crash when video about to be looped ?



Go to top

  Register To Post
« 1 ... 7 8 9 (10) 11 12 13 ... 15 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project