Author Topic: Mplayer's state  (Read 1490 times)

pinkeen

  • Guest
Mplayer's state
« on: July 01, 2010, 07:06:22 pm »
Is mplayer a mess for everybody on dingux now?

I copied a standard xvid 700MB movie to the player and tried to play it both in the native player and mplayer under dingux. In the native player it is smooth, everything works fine - ffwd, scaling (it looks like at least bilinear, does the IPU do that?) with zoom and stuff while in the mplayer it takes forever to load, after it loads, it's unwatchable. It skips, hangs, artifcats on the screen, nothing works.

I think that the native player is optimized with this MXM (or how it is called) instructions, right? So it's save to assume that unless somebody who knows mips asm and the process of video decoding, we're stuck with this?

Despite the fact, that I don't know much about the elf binaries and low-level hacking, I have a wild idea. Is it possible to extract libs from the native os from the .hxf file? If so, we could get the entry points to these libs (they're probably ELF, so unless I'm missing something they should be usable under linux) and hack mplayer to use them for decoding...
« Last Edit: July 01, 2010, 07:11:45 pm by pinkeen »

flatmush

  • *
  • Posts: 286
Re: Mplayer's state
« Reply #1 on: July 01, 2010, 07:46:30 pm »
I think that the native player is optimized with this MXM (or how it is called) instructions, right? So it's save to assume that unless somebody who knows mips asm and the process of video decoding, we're stuck with this?
It's called mxu or xburst instructions, these aren't a MIPS standard and aren't fully available without reversing mxu.as, then it would require a really keen programmer to re-implement some of the CODECs with these instructions which I doubt is likely.

Despite the fact, that I don't know much about the elf binaries and low-level hacking, I have a wild idea. Is it possible to extract libs from the native os from the .hxf file? If so, we could get the entry points to these libs (they're probably ELF, so unless I'm missing something they should be usable under linux) and hack mplayer to use them for decoding...
I think you are missing something, all applications/simulators on the native OS use the APP file format. The format is currently quite well known so it would be quite possible to disassemble the functions from it and use them across in linux with little effort if anyone gets time to try. The only issue is getting the compiler (gcc) to allow the SIMD instructions, but then I'm sure you could just use gcc as an assembler for the disassembled code and run the code through mxu.as similar to how it's done in native.