got 1080p video (was: bluray) to work
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    ok,

    Here is a link to my article on playing 1080p movies that use h.264 compression on MOS on a G5.
    There is also a section on setting up the Ambient Desktop to allow double clicking on 1080p movies.
    This is a compilation of all of my fooling around with this sort of thing.


    http://bettyboopdatabase.0usa.com/mos/docs/1080p.html

    The link to my personal knowledgebase:

    http://bettyboopdatabase.0usa.com/mos/mos.html
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »25.07.13 - 00:22
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12163 from 2003/5/22
    From: Germany
    > http://bettyboopdatabase.0usa.com/mos/docs/1080p.html

    From there:

    "MOS 3.2 comes with grunch, it is in sys:applications/grunch/grunch."

    Are you sure this is the case?
  • »25.07.13 - 07:47
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    Pretty sure.
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »25.07.13 - 09:23
    Profile Visit Website
  • MorphOS Developer
    geit
    Posts: 1049 from 2004/9/23
    Quote:

    bash64 wrote:
    Pretty sure.



    You are wrong. Grunch was never part of the os.

    Geit
  • »25.07.13 - 09:53
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Quote:

    bash64 wrote:
    ok,

    Here is a link to my article on playing 1080p movies that use h.264 compression on MOS on a G5.

    http://bettyboopdatabase.0usa.com/mos/docs/1080p.html




    Sorry, but i insist, this is really wrong. There's no significant cost in using the GUI (probably less than 0.01%). Just make sure you're using the same settings and that's it.

    You can test it from shell using
    sys:applications/mplayer/mplayer -gui 1 -cache 65536 -lavdopts skiploopfilter=all -framedrop yourfile

    We can also benchmark it if you really need a proof. :)

    [ Edited by Fab 25.07.2013 - 11:17 ]
  • »25.07.13 - 10:16
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    ok.
    Lets see the benckmarks.
    I will test on my system using the -gui switch.

    Currently the video I am using plays correctly from the shell but fails to play correctly from GMPlayer.
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »25.07.13 - 15:35
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    I will correct the 'grunch comes with mos 3.2' mistake.
    I have an article on installing grunch so that will do.
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »25.07.13 - 15:45
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    NOTE:

    Grunch mistake removed. First article now describes how to download grunch.

    -framedrop was added to the mplayer options at the last minute out of habit. I would agree that there is no visible performance boost from this but there defintely is from -lavdopts skiploopfilter=all.


    Other issues fixed with site.
    Ambient desktop unfinished article removed.

    Whatever benchmark tools you use I will need a copy to do my testng also.
    I guess mplayer has built in benchmarking.
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »25.07.13 - 20:21
    Profile Visit Website
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    To benchmark, use

    mplayer -gui 1 -benchmark -nosound -ao null -lavdopts skiploopfilter=all yourfile

    and then

    mplayer -benchmark -nosound -ao null -lavdopts skiploopfilter=all yourfile

    Assuming you didn't change other settings specifically for the GUI (especially display output driver), then you shouldn't see any kind of visible difference.

    I just tried with a 65s 1080p video file on my powermac g5 @2.3GHz:

    MPlayer -benchmark -nosound -ao null -lavdopts skiploopfilter=all "Work:Star Trek Into Darkness - Teaser.mp4"
    BENCHMARKs: VC: 35.080s VO: 17.294s A: 0.000s Sys: 2.141s = 54.515s
    BENCHMARK%: VC: 64.3488% VO: 31.7240% A: 0.0000% Sys: 3.9272% = 100.0000%

    MPlayer -gui 1 -benchmark -nosound -ao null -lavdopts skiploopfilter=all "Work:Star Trek Into Darkness - Teaser.mp4"
    BENCHMARKs: VC: 36.501s VO: 17.627s A: 0.000s Sys: 0.285s = 54.413s
    BENCHMARK%: VC: 67.0811% VO: 32.3955% A: 0.0000% Sys: 0.5233% = 100.0000%

    As you can see, it's very close, both taking 54s to decode and display. And that's just expected. I repeat, the video driver is basically the very same except it displays in a mui window, the gui controls take almost nothing to refresh and all the rest (decoder, options and so on) are the same for both gui and non gui modes.

    The video is taken from: http://www.digital-digest.com/movies/Star_Trek_Into_Darkness_1080p_Teaser_Trailer.html




    [ Edited by Fab 26.07.2013 - 10:47 ]
  • »26.07.13 - 09:27
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    I just finished Frankenweenie.
    I will get back with you in a sec...
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »26.07.13 - 15:35
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    ok, I think I know where we misunderstand each other.

    I am not refering to the -gui option when I talk about slowdown.
    I am refering to gmplayer which cannot play frankenweenie or any other 1080p video to save its life.
    To me, GMPlayer is GUI.
    MPlayer is shell.
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »26.07.13 - 15:39
    Profile Visit Website
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Quote:

    bash64 wrote:
    ok, I think I know where we misunderstand each other.

    I am not refering to the -gui option when I talk about slowdown.
    I am refering to gmplayer which cannot play frankenweenie or any other 1080p video to save its life.
    To me, GMPlayer is GUI.
    MPlayer is shell.




    But using -gui 1 (as first parameter) or using gmplayer is strictly equivalent. They both enable the GUI.

    GMPlayer is just a standalone icon, with GUI tooltype enabled. That way, when run from workbench, it triggers the gui, just like running mplayer -gui 1 would. EXACTLY the same. :)

    [ Edited by Fab 26.07.2013 - 18:10 ]
  • »26.07.13 - 17:08
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    I tried using -gui without a 1 .
    oops.
    Let me try that....


    ok, with -gui 1 I get the exact same play window that I get using mplayer from the shell.


    I launched gmplayer by itself and I no longer get the pretty, pretty buttons like I used to.
    Not sure why, but it won't play the movie right.
    Sever lag.
    I get the gui window items, just not the buttons like forward, backward, etc...

    I have all the GUI options checkmarked but the toolbar buttons are gone.
    Maybe I need to re-install.

    BTW: Since gmplayer doesnt use the config file then there is no way to tell it to do -lavdopts skiploopfilter=all is there?
    Without that option no movie will play right.
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »26.07.13 - 19:01
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Tom01
    Posts: 182 from 2009/9/20
    Certainly GMPlayer is reading the conf file.
    MPlayer in GUI mode is not slower than in shell mode.
    When the mplayer window is resizeable, then overlay mode is enabled.
    When the mplayer window has a fixed size, then initializing the overlay mode has failed somehow.

    [ Edited by Tom01 26.07.2013 - 21:52 ]
  • »26.07.13 - 19:44
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    Actually the author claims it does not read the config file but uses its own called gui.conf


    Quote Fab:

    Well, just for your information, only the "GUI" tooltype is considered. All the others have strictly no effect since a long time. So it's unrelated to what you did with tooltypes. And GUI version just uses the same parameters as the command line mode except for the parameters you can set in settings window (which are then saved in conf/gui.conf).


    [ Edited by bash64 26.07.2013 - 20:12 ]
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »27.07.13 - 00:08
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    Anyways, the fun continues.

    I deleted and reinstalled mplayer using grunch.

    GMPlayer cannot play the movie without severe lag but the shell can.

    I am running on MOS 3.2 on a powermac G5 2.3ghz with ati 9600 Pro video card.

    My desktop is 1920x1080x24bit.

    I don't think overlay has anything to do with it as it works from the shell on this desktop.

    I am using the defualt cgx_overlay_gui video driver for gmplayer.



    If you have the exact same setup please try both modes.
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »27.07.13 - 01:01
    Profile Visit Website
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Quote:

    bash64 wrote:
    Actually the author claims it does not read the config file but uses its own called gui.conf


    Quote Fab:

    Well, just for your information, only the "GUI" tooltype is considered. All the others have strictly no effect since a long time. So it's unrelated to what you did with tooltypes. And GUI version just uses the same parameters as the command line mode except for the parameters you can set in settings window (which are then saved in conf/gui.conf).



    No i don't say that. Conf/config is definitely used in gui mode. It's just a *couple* settings are overridden by gui.conf (like vide driver and the others you can see in this file). So for instance, skiploopfilter option will be read from conf/config even in gui mode.

    I strongly suspect you have a duplicate mplayer somewhere else that gmplayer standalone icon uses instead of the one in the current directory. Tha would explain all your very weird observations that really don't make much sense.

    And if you run mplayer with -gui 1 as FIRST parameter you definitely get the gui.
  • »27.07.13 - 05:33
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12163 from 2003/5/22
    From: Germany
    > I strongly suspect you have a duplicate mplayer somewhere else that gmplayer
    > standalone icon uses instead of the one in the current directory. Tha would
    > explain all your very weird observations that really don't make much sense.

    This sentence from his "unofficial MorphOS knowledgebase" might give something away I think:

    "Copy mplayer to the C: folder in your system so that it will launch from anywhere:
    > copy sys:applications/mplayer/mplayer c:
    "
  • »27.07.13 - 10:24
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    Yes, I do copy mplayer into C: so it can be run from anywhere.
    So you say gmplayer runs C:mplayer rather than sys:applications/mplayer/mplayer?
    What difference does this make?

    I am guessing it cannot find the conf folder with the conf file.
    Is there supposed to be an assign for mplayer?
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »27.07.13 - 11:45
    Profile Visit Website
  • MorphOS Developer
    geit
    Posts: 1049 from 2004/9/23
    Quote:

    bash64 wrote:
    Yes, I do copy mplayer into C: so it can be run from anywhere.
    So you say gmplayer runs C:mplayer rather than sys:applications/mplayer/mplayer?
    What difference does this make?

    I am guessing it cannot find the conf folder with the conf file.
    Is there supposed to be an assign for mplayer?



    Just use full path or create a link. Third and easiest way is to simply add SYS:Application/MPlayer to path from within the user-startup.

    Geit



    [ Edited by geit 27.07.2013 - 14:01 ]
  • »27.07.13 - 12:00
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    Well,

    I deleted c:mplayer and now it all works and there is no lag.
    My mistake in thinking of mplayer as a stand alone binary.


    To create a link in C: for mplayer, does MorphOS use the linux ln command?
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »27.07.13 - 12:04
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    nevermind. i used ln -s as in linux.

    ln -s sys:applications/mplayer/mplayer mplayer

    it works right now.
    mplayer -gui 1 launches the full gui when using the link

    real sorry about all of that.
    i feel really bad now.
    if one of my friends had done something so dumb i would have been livid.
    i did wonder why mplayer did not have an assign a couple of times but never followed through on the logic.
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »27.07.13 - 12:15
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    This would be the end of this thread.

    I added the symbolic link info the my article.

    All things are working correclt now.

    I will go feel really bad for a while.
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »27.07.13 - 12:24
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    P.S.

    It was discussed that 1920x1080x24bit might not use overlay.
    In this mode on my 9600 pro the windows chunk around on the screen.

    If I lower to 1920x1080x16bit the chunking goes away and everything is as smooth as silk.
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »27.07.13 - 12:32
    Profile Visit Website