Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
0 crawler(s) on-line.
 78 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 Hypex:  15 mins ago
 DiscreetFX:  21 mins ago
 matthey:  1 hr 40 mins ago
 MagicSN:  1 hr 55 mins ago
 agami:  2 hrs 29 mins ago
 AmigaMac:  4 hrs 6 mins ago
 minator:  4 hrs 26 mins ago
 davidf215:  4 hrs 49 mins ago
 Karlos:  5 hrs 26 mins ago
 zipper:  7 hrs 24 mins ago

/  Forum Index
   /  Amiga OS4 Software
      /  mui-mplayer on amigaos4 thread / progress
Register To Post

Goto page ( Previous Page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 Next Page )
PosterThread
Fab 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 16:51:56
#181 ]
Super Member
Joined: 17-Mar-2004
Posts: 1178
From: Unknown

@kas1e

See where this GetTimer is called from in the stacktrace.

 Status: Offline
Profile     Report this post  
kas1e 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 16:59:20
#182 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3550
From: Russia

@Fab

From osdeps/timer_morphos:31 (that from the function GetTimer().

And that crash come from the GetRelativeTime(), which are in the osdeps/timer_morphos:50 by stack trace.

And all of this come from the main / mplayer.c : 3208 , which are:

GetRelativeTime(); // __MORPHOS__

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
Fab 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 17:14:14
#183 ]
Super Member
Joined: 17-Mar-2004
Posts: 1178
From: Unknown

@kas1e

Weird that it would crash, unless if called from another thread (which is not the case here).
So i still suspect the p96pip driver reinitializes something there, in openlibs or whatever.

 Status: Offline
Profile     Report this post  
kas1e 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 17:27:34
#184 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3550
From: Russia

@Fab

You are right, that p96-driver use in the config() fucntion something like:

if (hasGUI == TRUE)
{
TimerInit();
TimerReset(RESET_TIME);
}

(right before planar_2_chunky defines). And TimerInit() open the timer.device in the vo_p96pip_stuff.c - > reiniti of timer -> crash. Disabling of that crap solve the problems.

For now in the "preferences" i still can't see p96_pip (only cgx_wpa)

And dunno how to do by default usage of the p96_pip, and, fallback to cgx_wpa by default if it not works.

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
Thematic 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 17:34:50
#185 ]
Super Member
Joined: 28-Oct-2003
Posts: 1616
From: I'm actually flying into a bug!

Tip for speed and another simple benchmark.

mplayer has often multiple codecs for decoding a specific type of video or especially audio. So for example, I did mplayer -ac help and searched it (with pipe and grep) for "aac". There are two options, faad and ffaac. ffaac is much faster, so it's better for realtime when you don't have extra CPU time.

MUI mplayer is really fast with this. MPlayer SVN-r29532 spent 100 proportional seconds decoding and playing mp4 muxed AAC (with ffaac), whereas MUI mplayer used 79 seconds. For some reason, the difference grows a lot, if there are "distractions" in the background in the form of other tasks - in this case it was MUI OWB.

Last edited by Thematic on 29-Oct-2011 at 05:35 PM.
Last edited by Thematic on 29-Oct-2011 at 05:35 PM.

_________________
: AmigaOneXE (unmod.) 750FX/512 MB +stuff & AmigaOS 4.(0|1)
: A1200/68060&96MB/SCSI/EM1200-Voodoo3 & OS 3.5
: A500/1MB
: Pegasos (ff) 512 MB & MorphOS
Praise seitan.

 Status: Offline
Profile     Report this post  
Thematic 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 17:36:52
#186 ]
Super Member
Joined: 28-Oct-2003
Posts: 1616
From: I'm actually flying into a bug!

@kas1e

Is it listed in -vo help ?

Last edited by Thematic on 29-Oct-2011 at 05:37 PM.

_________________
: AmigaOneXE (unmod.) 750FX/512 MB +stuff & AmigaOS 4.(0|1)
: A1200/68060&96MB/SCSI/EM1200-Voodoo3 & OS 3.5
: A500/1MB
: Pegasos (ff) 512 MB & MorphOS
Praise seitan.

 Status: Offline
Profile     Report this post  
kas1e 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 17:42:47
#187 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3550
From: Russia

@Thematic

Yes. Its just need add some bits to the gui related code (i assume gui/morphos/gui.c) , and somehow make to do it default, and fallback to cgx_wpa when overlay no available.

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
Fab 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 18:24:22
#188 ]
Super Member
Joined: 17-Mar-2004
Posts: 1178
From: Unknown

@kas1e

First, in p96pip driver, control() function, you must advertise this driver has GUI support by adding in the switch case:

case VOCTRL_GUISUPPORT:
return VO_TRUE;


And it should be all that's needed to appear in the GUI output drivers.

 Status: Offline
Profile     Report this post  
kas1e 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 18:37:48
#189 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3550
From: Russia

@Fab
Quote:


First, in p96pip driver, control() function, you must advertise this driver has GUI support by adding in the switch case


Yeah, that works, cool !

Now, all what is need its just make it default, and fallback to cgx_wpa if that not enabled. I assume choicing p96_pip in the prefs and use "save" are the suck-way, and need to change some lines in the preferenseclass.c ?

And another question (maybe last one) :

In the p96 driver, there is function Check_Events present, which check keys (vanilla, raw ones and so on). So, over almost every key, there is used some kind of command like for example for dbl-clicking to make fullscreen:

Quote:

put_command0(MP_CMD_VO_FULLSCREEN);


The put_command0() function itself are based on some arexx-stuff, which imho done different on your version.

So, the question is: can i somehow send MP_CMD_VO_FULLSCREEN to mplayer, by something like "mplayer_send_command(MP_CMD_VO_FULLSCREEN); ?

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
afxgroup 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 18:44:38
#190 ]
Super Member
Joined: 8-Mar-2004
Posts: 1968
From: Taranto, Italy

@kas1e

try to use:

put_command0(MP_CMD_VO_FULLSCREEN);

[Edit]
Sorry
there is another method.. i will search

Last edited by afxgroup on 29-Oct-2011 at 06:47 PM.

_________________
http://www.amigasoft.net

 Status: Offline
Profile     Report this post  
SOFISTISOFTWARE 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 18:45:45
#191 ]
Regular Member
Joined: 25-Dec-2003
Posts: 458
From: Latina, Italy

@kas1e

BRAVO !

_________________
Sam 460EX, 2Gb Ram, Radeon R7 250, AmigaOS4.1 FE
A4000 PPC604@233, Mediator
A1200 PPC603@160, Mediator
uA1 G3@800, 512 Mb [sold]

 Status: Offline
Profile     Report this post  
Fab 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 18:47:30
#192 ]
Super Member
Joined: 17-Mar-2004
Posts: 1178
From: Unknown

@kas1e

The order the drivers appear in the cycle is the same as you put them in video_out.c. So just put p96pip before wpa.

Alternatively, you could specify the list of possible drivers in conf/config (see MorphOS Mplayer archive, even if that line is actually commented, it's there for reference).

As for doubleclicking, the event is already caught by the event handler in cgxcommon.c and MPlayer logic.

It's pointless to add hardcoded fullscreen switch on doubleclicking in the video driver itself (besides some people hate switching to fullscreen on doubleclick, so it really shouldn't be hardcoded).

It's simply done by binding the event in the config file conf/input.conf with MOUSE_BTN0_DBL vo_fullscreen (it's also supplied in MorphOS MPlayer archive).


Last edited by Fab on 29-Oct-2011 at 06:49 PM.

 Status: Offline
Profile     Report this post  
kas1e 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 18:49:13
#193 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3550
From: Russia

@afxgroup

put_command0 are your port specific , and as i see based on Arexx (which done on the fab's code different) , so if i will enable that usage, i can bork arexx-related parts, because of that trying to found a way to send commands without specific functions from your one.

For now all the put_command0 in the p96 driver are commented (just because of undefs).

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
Fab 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 18:49:41
#194 ]
Super Member
Joined: 17-Mar-2004
Posts: 1178
From: Unknown

@kas1e

Don't don't don't. See previous post.

 Status: Offline
Profile     Report this post  
afxgroup 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 18:51:35
#195 ]
Super Member
Joined: 8-Mar-2004
Posts: 1968
From: Taranto, Italy

@kas1e

try something like:

Quote:

mp_cmd_t * cmd = malloc(sizeof(mp_cmd_t));

if(cmd)
{
cmd->pausing = 0;
cmd->id = MP_CMD_VO_FULLSCREEN;
cmd->name = strdup("fullscreen");
cmd->nargs = 0;

if(mp_input_queue_cmd(cmd) == 0)
{
mp_cmd_free(cmd);
}
}


watch out that it is not tested at all. You can take a look at argument name too (if it is correct)

Last edited by afxgroup on 29-Oct-2011 at 06:52 PM.

_________________
http://www.amigasoft.net

 Status: Offline
Profile     Report this post  
Fab 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 18:56:15
#196 ]
Super Member
Joined: 17-Mar-2004
Posts: 1178
From: Unknown

Just a big NO NO.

 Status: Offline
Profile     Report this post  
kas1e 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 18:59:44
#197 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3550
From: Russia

@fab
Quote:


The order the drivers appear in the cycle is the same as you put them in video_out.c. So just put p96pip before wpa.


That one not helps

Quote:

Alternatively, you could specify the list of possible drivers in conf/config (see MorphOS Mplayer archive, even if that line is actually commented, it's there for reference).


That one too (or i do something wrong). I just add here:
vo=p96_pip - no luck, then i try
vo=p96_pip::PLANAR,p96_pip (i.e. the same as commented string) - no luck as well.

But config file itself reads and works (because i change autosync from 30 to 20, and it appears in the gui-prefs)

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
afxgroup 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 19:00:46
#198 ]
Super Member
Joined: 8-Mar-2004
Posts: 1968
From: Taranto, Italy

@Fab

why no? this just put a command in the mplayer queue. what's wrong with it?

_________________
http://www.amigasoft.net

 Status: Offline
Profile     Report this post  
Fab 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 19:03:34
#199 ]
Super Member
Joined: 17-Mar-2004
Posts: 1178
From: Unknown

@kas1e

I'm pretty sure it helps, so you probably didn't move the driver entry to the correct place (like you moved the declaration only but not the actual entry in the array...

As for the config file, the gui actually uses gui.conf.

@afxgroup

The code itself is correct (well looks like), but my point is you shouldn't hardcode this kind of thing, especially when MPlayer lets you do it already by simple configuration options.

Last edited by Fab on 29-Oct-2011 at 07:04 PM.

 Status: Offline
Profile     Report this post  
kas1e 
Re: mui-mplayer on amigaos4 thread / progress
Posted on 29-Oct-2011 19:09:32
#200 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3550
From: Russia

@Fab

Blah, dunno what i do lately, but now i just can't see my p96 driver when do "mplayer -vo help". But, i see it from gui, and i can use it from gui. But not from command line. Uhm..

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
Goto page ( Previous Page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 Next Page )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle