New package: Updated MPlayer

IRIX/Nekoware development, porting and related topics.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
Axatax_
Posts: 92
Joined: Wed Jan 21, 2015 3:08 pm

Re: New package: Updated MPlayer

Unread postby Axatax_ » Wed Jan 21, 2015 4:24 pm

edit: I see the problem. gcc, we luvs you to death. Emphasis on the object of the preposition. If anyone smarter than me wants to hit this, it seems like the only thing standing between us and a fresher MPlayer with the Irix optimizations inclsuded ...


The above patches target MPlayer 1.1.1 w/MIPSPro (current "official" release as of this post), and do incorporate the previous IRIX optimizations. It was a helluvalot of work.

The issues with this patch that make it less than perfect --

- I haven't ported over the SGI-specific video output driver to the new MPlayer 1.1 VO driver format (working on this). I'm going to finish it, but I'm not convinced it's necessary WRT to the current MPlayer code base. The new OpenGL stuff seems to work like a champ.

- Crash when video post-processing is enabled.

- Crash when x264 video is restarted after a pause.

- Longstanding issue that won't stop me from doing a .tardist -- x264 is still ass. This really needs an expert to go through this (see next post).

Axatax_
Posts: 92
Joined: Wed Jan 21, 2015 3:08 pm

Re: New package: Updated MPlayer

Unread postby Axatax_ » Wed Jan 21, 2015 4:34 pm

Now, here's the really annoying thing --

Both libavcodec and libx264 have native MIPS assembly optimizations in the source tree now. The problem is, it's gcc inline-assembler targeting snapdragon/cell phone-type MIPS CPUs. The ASM could be backported to SGI MIPS with the translation of a handful of SIMD operations (and really, it's just a handful), but all of this needs to be moved to seprate files and broken out from the current C source. I'm looking into this now, but don't have many good examples to go by.

vegac
Posts: 745
Joined: Thu Jan 23, 2003 11:34 am
Contact:

Re: New package: Updated MPlayer

Unread postby vegac » Wed Jan 21, 2015 5:14 pm

Hmmm...when I get back next week maybe I'll start looking at this...
See if I can improve on my 10-year-old SGI vo code now that I can only assume I was so much worse back then :)

Axatax_
Posts: 92
Joined: Wed Jan 21, 2015 3:08 pm

Re: New package: Updated MPlayer

Unread postby Axatax_ » Wed Jan 21, 2015 5:25 pm

See if I can improve on my 10-year-old SGI vo code now that I can only assume I was so much worse back then


You guys that did the initial work are tops++!. MPlayer just got their *hit in order WRT X11 output drivers since the initial work on the Neko MPlayer. I'm a plagarist standing on the shoulders of giants... -->> but itching for a new MPlayer :) Help me out.

User avatar
Raion-Fox
Donor
Donor
Posts: 1333
Joined: Thu Jan 30, 2014 5:01 pm
Location: near King George, Virginia
Contact:

Re: New package: Updated MPlayer

Unread postby Raion-Fox » Wed Jan 21, 2015 8:14 pm

Axatax_ wrote:Now, here's the really annoying thing --

Both libavcodec and libx264 have native MIPS assembly optimizations in the source tree now. The problem is, it's gcc inline-assembler targeting snapdragon/cell phone-type MIPS CPUs. The ASM could be backported to SGI MIPS with the translation of a handful of SIMD operations (and really, it's just a handful), but all of this needs to be moved to seprate files and broken out from the current C source. I'm looking into this now, but don't have many good examples to go by.



Have you looked at Open264 instead of the x264? I dunno if that will run faster on these ancient computers, but its always worth a shot to see.
:O3x02L: R16000 700MHz 8GB RAM kanna
:Octane: R12000 300MHz SI 896MB RAM yuuka
:Octane2: R12000A 400MHz V6 2.5GB RAM
:Indy: (Acclaim) R4600 133MHz XL Graphics 32MB RAM
:Indy: (Challenge S) R4600 133MHz (MIPS III Build Server)
Thinkpad W530 i7 3940XM 3GHz, 32GB, K1000M Windows 8.1 Embedded rin
Thinkpad R40 Pentium M 1.5GHz 2GB RAM kasha

jpstewart
Donor
Donor
Posts: 429
Joined: Tue Sep 21, 2010 3:31 pm
Location: Southwestern Ontario, Canada

Re: New package: Updated MPlayer

Unread postby jpstewart » Thu Jan 22, 2015 7:50 am

Axatax_ wrote:I'd like to know if there is anyone else besides Hamei that has tried this release.

Yes, I did a month or so ago. (When Nekochan was down, and so I forgot to post about it when the site came back on-line.) Other than the speex dependancy, I saw no problems with the mplayer package in /beta. It played about half of the videos I threw at it. The other half just displayed a black window. But those videos all show the same behaviour on my Linux box, too. So there's nothing wrong with the SGI/IRIX/MIPS Pro port of the code. MPlayer behaved consistently across platforms and for that reason I give the /beta package my stamp of approval (and give you my gratitude).
:Indigo2IMP: :Octane: :Indigo: :O3x0:
Sun SPARCstation 20, Blade 2500, T5240
HP C8000

User avatar
Raion-Fox
Donor
Donor
Posts: 1333
Joined: Thu Jan 30, 2014 5:01 pm
Location: near King George, Virginia
Contact:

Re: New package: Updated MPlayer

Unread postby Raion-Fox » Thu Jan 22, 2015 9:17 am

I downloaded it last night, it plays most of my XviD files with only the occasional dropped frame. h264 I still have some issues with, but its probably lack of CPU muscle more than anything. 480p x264, FWIW, was what I tried.
:O3x02L: R16000 700MHz 8GB RAM kanna
:Octane: R12000 300MHz SI 896MB RAM yuuka
:Octane2: R12000A 400MHz V6 2.5GB RAM
:Indy: (Acclaim) R4600 133MHz XL Graphics 32MB RAM
:Indy: (Challenge S) R4600 133MHz (MIPS III Build Server)
Thinkpad W530 i7 3940XM 3GHz, 32GB, K1000M Windows 8.1 Embedded rin
Thinkpad R40 Pentium M 1.5GHz 2GB RAM kasha

Axatax_
Posts: 92
Joined: Wed Jan 21, 2015 3:08 pm

Re: New package: Updated MPlayer

Unread postby Axatax_ » Fri Jan 23, 2015 4:07 pm

The newer x264 w/MPlayer 1.1.1 can passibly play 480p on my dual 600 Octane with some command-line kung-fu.

Now that I know you guys are still down with this, I'm going to package up the MPlayer 1.1.1 and maybe you guys can give it a spin (with the understanding it's not 100% yet).

I'm not going to do a whole .tardist yet, just the binary and new x264 lib you can run from a seperate directory.

Axatax_
Posts: 92
Joined: Wed Jan 21, 2015 3:08 pm

Re: New package: Updated MPlayer

Unread postby Axatax_ » Fri Jan 23, 2015 9:01 pm

OK,

I've uploaded neko_mplayer-1.1.1.tar.gz to /incomming.

I don't have any more personal space to host this file (I have 10MB on my FTP, and this file is like 15MB). Hopefully someone with mod. access can do something with this, or someone else can provide some web space (maybe an Axatax directory on the FTP site :mrgreen: )

Anyhow, this is the latest and greatest MPlayer for IRIX.

1. Install and get the MPlayer in Nekoware /beta working with all dependencies (libdvdread, libdvdnav and libdvdcss).
2. Install neko_gnomeicontheme-2.10.1.tardist from /current.
3. Untar MPlayer-1.1.1.tar.gz into /usr/local (has to be here for now).
4. Run /usr/local/MPlayer-1.1.1/run-mplayer.sh, and you should be good to hook.

This is beta, probably alpha stuff, and the latest patches are included under the /patches directory.

If this totally sucks for you, please get your head into the code and help make this awesome. There's really just a *few* total show-stoppers with this patch, but I'm nearing the end of my abilities with this. Help out. Help everyone here out.

vegac
Posts: 745
Joined: Thu Jan 23, 2003 11:34 am
Contact:

Re: New package: Updated MPlayer

Unread postby vegac » Sat Jan 24, 2015 7:22 pm

When I get home Monday I'll see about getting you some FTP space...

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8145
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Re: New package: Updated MPlayer

Unread postby nekonoko » Sun Jan 25, 2015 8:03 pm

Axatax_ wrote:OK,

I've uploaded neko_mplayer-1.1.1.tar.gz to /incomming.


Available at ftp://ftp.nekochan.net/pub/downloads/contrib/axatax/
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
hamei
Posts: 10433
Joined: Tue Feb 24, 2004 4:10 pm
Location: over the rainbow

Re: New package: Updated MPlayer

Unread postby hamei » Sun Jan 25, 2015 11:16 pm

ALMOST !

Code: Select all

urchin 19% pwd
/usr/local/MPlayer-1.1.1
urchin 20% run-mplayer.sh
 6117:/usr/local/MPlayer-1.1.1/bin/mplayer: rld: Fatal Error: Cannot Successfully map soname 'libdca.so.1' under any
 of the filenames /usr/nekoware/lib/libdca.so.1:/usr/local/lib/libdca.so.1:/work/pango-1.28.4/pango/.libs/libdca.so.1:
null/usr/lib32/libdca.so.1:/usr/lib32/internal/libdca.so.1:/lib32/libdca.so.1:/opt/lib32/libdca.so.1:/usr/nekoware/lib/libdca.so.1.1:
/usr/local/lib/libdca.so.1.1:/work/pango-1.28.4/pango/.libs/libdca.so.1.1:/usr/lib32/libdca.so.1.1:/usr/lib32/internal/libdca.so.1.1:
/lib32/libdca.so.1.1:/opt/lib32/libdca.so.1.1:
urchin 21%

no biggy ...

Code: Select all

urchin 18% pwd
/usr/people/dev/libdca-0.0.5

oh crap

Code: Select all

cc-1094 cc: ERROR File = audio_out_wav.c, Line = 166
  The constant array dimension size is not a positive integral type.

          int16_t words[0];
                        ^

cc-1094 cc: ERROR File = audio_out_wav.c, Line = 167
  The constant array dimension size is not a positive integral type.

          int32_t dwords[0];
                         ^

2 errors detected in the compilation of "audio_out_wav.c".
gmake[2]: *** [audio_out_wav.lo] Error 1

Still, looks promising. We're close !

Code: Select all

urchin 1# ldd mplayer
        libm.so  =>      /usr/lib32/libm.so     
        libgen.so  =>    /usr/lib32/libgen.so   
        libiconv.so.3  =>        /usr/nekoware/lib/libiconv.so.3       
        libpng.so.3  =>  /usr/nekoware/lib/libpng.so.3 
        libz.so.1  =>    /usr/nekoware/lib/libz.so.1   
        libjpeg.so.63  =>        /usr/nekoware/lib/libjpeg.so.63       
        libungif.so.5  =>        /usr/nekoware/lib/libungif.so.5       
        libdvdread.so.5  =>      /usr/nekoware/lib/libdvdread.so.5     
        libfreetype.so.7  =>     /usr/nekoware/lib/libfreetype.so.7     
        libfontconfig.so.2  =>   /usr/nekoware/lib/libfontconfig.so.2   
        libbz2.so  =>    /usr/nekoware/lib/libbz2.so   
        libmad.so.1  =>  /usr/nekoware/lib/libmad.so.1 
        libspeex.so.2  =>        /usr/nekoware/lib/libspeex.so.2       
 1553: 14:41:57 mplay: rld: Fatal Error exit/longjmp: Cannot Successfully map soname 'libdca.so.1'
 under any of the filenames /usr/nekoware/lib/libdca.so.1:/usr/local/lib/libdca.so.1:/work/pango-1.28.4/pango/.libs/libdca.so.1:
null/usr/lib32/libdca.so.1:/usr/lib32/internal/libdca.so.1:/lib32/libdca.so.1:/opt/lib32/libdca.so.1:/usr/nekoware/lib/libdca.so.1.1:
/usr/local/lib/libdca.so.1.1:/work/pango-1.28.4/pango/.libs/libdca.so.1.1:/usr/lib32/libdca.so.1.1:/usr/lib32/internal/libdca.so.1.1:
/lib32/libdca.so.1.1:/opt/lib32/libdca.so.1.1:
 
I spent a fortune on booze, birds, and fast cars ... the rest I just squandered

User avatar
duck
Donor
Donor
Posts: 737
Joined: Mon Oct 27, 2003 5:22 pm
Location: Jakobstad, Finland
Contact:

Re: New package: Updated MPlayer

Unread postby duck » Mon Jan 26, 2015 11:17 am

hamei wrote:ALMOST !

Code: Select all

cc-1094 cc: ERROR File = audio_out_wav.c, Line = 166
  The constant array dimension size is not a positive integral type.

          int16_t words[0];



Aah, GCC coders.

Code: Select all

int16_t words[1];


alternatively

Code: Select all

int16_t *words;


depending on what madness they're doing. The latter may need some additional bolt tightening.
:Octane: halo, octane Image knightrider, d i g i t a l AlphaPC164, pond, soekris net6501, misc cool stuff in a rack
N.B.: I tend to talk out of my ass. Do not take it too seriously.

Axatax_
Posts: 92
Joined: Wed Jan 21, 2015 3:08 pm

Re: New package: Updated MPlayer

Unread postby Axatax_ » Mon Jan 26, 2015 5:05 pm

Neko,

Thank you very much!


Guys with the issues --

The other 2 libs (libdca and the new libx264) are in the that archive. How are you launching MPlayer? There is a shell script in there that should set the library path and run MPlayer. The patches for libdca and x264 are also included. If you're having trouble building these, make sure you've patched them.

Axatax_
Posts: 92
Joined: Wed Jan 21, 2015 3:08 pm

Re: New package: Updated MPlayer

Unread postby Axatax_ » Mon Jan 26, 2015 5:06 pm

I'm just going to make a tardist to make this easier. Give me a an hour or so to wrap this up (I've already done the .spec/.idbs -- just gotta packge it).


Return to “SGI: Development”

Who is online

Users browsing this forum: No registered users and 2 guests