Installing the Mplayer vo PS3

"A collection of spu programs to accelerate media related applications for the CellBE ( PS3 ) platform" - unsolo

Moderator: unsolo

master-crown
Posts: 5
Joined: Fri Mar 14, 2008 6:20 am

Post by master-crown »

now i am on the last failure:
i installed libspe2,ps3toolchain, libps3fb etc...
know i patched the mplayer but i gt thse message/error on ssh connection....ydl linux crash /hangs up/ and i must do an restart .. ..
cann somebody help me .... ydl 6.0 is my OS

Code: Select all

mplayer -vo ps3 Basshunter\ -\ Now\ You\'re\ Gone\ \[2007\]\[SkidVid\]_XviD.avi
MPlayer dev-SVN-r26251-4.1.1 (C) 2000-2008 MPlayer Team
AltiVec found
CPU: PowerPC

Playing Basshunter - Now You're Gone [2007][SkidVid]_XviD.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
Detected NON-INTERLEAVED AVI file format.
VIDEO:  [XVID]  720x544  24bpp  29.970 fps  1734.8 kbps (211.8 kbyte/s)
ps3 suboptions:
           debug:0
           noscale:0
           noadj:0
           snapshot:0
[vo_ps3] init_framebuffer: Initialized framebuffer & disabled console
FB is 1280x720 at offset 78x38
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16be, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 44100Hz 2ch s16be (2 bytes per sample)
Starting playback...
VDec: vo config request - 720 x 544 (preferred colorspace: Planar YV12)
[vo_ps3] query_format: Called for Planar YV12 (0x32315659)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.32:1 - prescaling to correct movie aspect.
VO: [ps3] 720x544 => 720x544 Planar YV12
[vo_ps3] query_format: Called for Planar YV12 (0x32315659)
[vo_ps3] control: todo: handle UPDATE_SCREENINFO (32)
[vo_ps3] config: Times called:0 Setting up for src=720x544, suggested dst=720x544, format=Planar YV12 (32315659)
                 vo_fs:0, vo_doublebuffering:1, vo_directrendering:0, vo_screenwidth:0, vo_screenheight:0
[vo_ps3] config: Set vo_screen(width/heigh) to 0x0, forced direct rendering, & double buffering
[vo_ps3] config: src_buf_siz=587520, src_stride[]={720,360,360}, src_p_siz[]={391680,97920,97920}
                     maxWxmaxH=1280x720, offset=0
[vo_ps3] clear: Clearing buffers
[vo_ps3] init_framebuffer: Initialized framebuffer & disabled console
FB is 1280x720 at offset 78x38
[vo_ps3] setup_scale: Using dest WxH:720x544
[vo_ps3] fix_scale: Adjusted image size to WxH:720x544
[vo_ps3] setup_screen: After mplayer aspect changes:
                       vo_dx/dy=204x50, vo_screenwidth/height=1124x644, offset=64204
                       desired image size=720x544
powerpc64 not detected
 manipulating adress space
[vo_ps3] init_spu_medialib: Initialized spu-medialib's spu_yuv2argb_scaler with:
                            720x544=>720x544, offset:64204, maxW:1280


MPlayer interrupted by signal 11 in module: decode_video
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.
unsolo
Posts: 155
Joined: Mon Apr 16, 2007 2:39 am
Location: OSLO Norway

Post by unsolo »

try a few other videos''
some format restrictions still exists unfortunately
Don't do it alone.
zzima
Posts: 10
Joined: Thu Mar 13, 2008 11:57 pm

Post by zzima »

unsolo wrote:try a few other videos''
some format restrictions still exists unfortunately
I've installed spu-medialib, libps3fb, compiled mplayer with latest patches from svn. Everything went fine (except tweaks with spu-medialib: rename spur to spu in config and symlink embedspu, since I'm on YDL 6).

So, When trying to play any content with -vo ps3 I'm getting green and pink garbage on the screen (ps3videomode is 3).

When stopping mplayer (using "q", Esc or just Ctrl+C) - this garbage doesnt disappear and console is not usable.

Here's what I see during playback:

Code: Select all

[root@localhost ~]# mplayer -vo ps3 /media/Viva\ Forever.avi
MPlayer dev-SVN-r26261-4.1.1 (C) 2000-2008 MPlayer Team
AltiVec found
CPU: PowerPC

Playing /media/Viva Forever.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [DIV3]  352x288  24bpp  25.000 fps  527.1 kbps (64.3 kbyte/s)
ps3 suboptions:
           debug:0
           noscale:0
           noadj:0
           snapshot:0
[vo_ps3] init_framebuffer: Initialized framebuffer & disabled console
FB is 1280x720 at offset 36x18
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm: ffmpeg (FFmpeg DivX ;-) (MSMPEG-4 v3))
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16be, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 44100Hz 2ch s16be (2 bytes per sample)
Starting playback...
VDec: vo config request - 352 x 288 (preferred colorspace: Planar YV12)
[vo_ps3] query_format: Called for Planar YV12 (0x32315659)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [ps3] 352x288 => 352x288 Planar YV12
[vo_ps3] query_format: Called for Planar YV12 (0x32315659)
[vo_ps3] control: todo: handle UPDATE_SCREENINFO (32)
[vo_ps3] config: Times called:0 Setting up for src=352x288, suggested dst=352x288, format=Planar YV12 (32315659)
                 vo_fs:0, vo_doublebuffering:1, vo_directrendering:0, vo_screenwidth:0, vo_screenheight:0
[vo_ps3] config: Set vo_screen(width/heigh) to 0x0, forced direct rendering, & double buffering
[vo_ps3] config: src_buf_siz=152064, src_stride[]={352,176,176}, src_p_siz[]={101376,25344,25344}
                     maxWxmaxH=1280x720, offset=0
[vo_ps3] clear: Clearing buffers
[vo_ps3] init_framebuffer: Initialized framebuffer & disabled console
FB is 1280x720 at offset 36x18
[vo_ps3] setup_scale: Using dest WxH:352x288
[vo_ps3] fix_scale: Adjusted image size to WxH:352x288
[vo_ps3] setup_screen: After mplayer aspect changes:
                       vo_dx/dy=428x198, vo_screenwidth/height=1208x684, offset=253868
                       desired image size=352x288
powerpc64 not detected
 manipulating adress space
[vo_ps3] init_spu_medialib: Initialized spu-medialib's spu_yuv2argb_scaler with:
                            352x288=>352x288, offset:253868, maxW:1280
Selected font is fixed-width.
Selected font is fixed-width.
spu_yuv2argb_scaler: Starting Up
spu_yuv2argb_scaler: SRC width 352,DST width 352
spu_yuv2argb_scaler: SRC height 288,DST height 288
spu_yuv2argb_scaler: DST offset 253868
spu_yuv2argb_scaler: No scaling proceeding with direct csc
spu_yuv2argb_scaler: Initiation completed
I already tried various file formats and codec and looks like that's something to do with ps3 output, since it's working fine while output directly in framebuffer.




Also,
latest mplayer-vo patch fails on libvo/video_out.c.

Here's what I see in video_out.c.rej:

Code: Select all

***************
*** 98,103 ****
  #ifdef HAVE_DXR2
  extern vo_functions_t video_out_dxr2;
  #endif
  extern vo_functions_t video_out_dxr3;
  #ifdef HAVE_IVTV
  extern vo_functions_t video_out_ivtv;
--- 98,106 ----
  #ifdef HAVE_DXR2
  extern vo_functions_t video_out_dxr2;
  #endif
+ #ifdef HAVE_PS3
+ extern vo_functions_t video_out_ps3;
+ #endif
  extern vo_functions_t video_out_dxr3;
  #ifdef HAVE_IVTV
  extern vo_functions_t video_out_ivtv;
So I just inserted "extern vo_functions_t video_out_ps3;" in video_out.c manually (they eliminated ifdef in that section).


Here's how I tried to use it:

1) from X11 (Enlightment): opened terminal, set ps3videomode 3 (however, it's my default video mode) and then run "mplayer -vo ps3 file". Seeing rectangle with garbage.

2) from text console: set ps3videomode 3 and run mplayer using the same command as above. The same result.


unsolo, any ideas?
zzima
Posts: 10
Joined: Thu Mar 13, 2008 11:57 pm

Post by zzima »

master-crown wrote:now i am on the last failure:
i installed libspe2,ps3toolchain, libps3fb etc...
know i patched the mplayer but i gt thse message/error on ssh connection....ydl linux crash /hangs up/ and i must do an restart .. ..
cann somebody help me .... ydl 6.0 is my OS
Did you solved your problem? I just got the same problem as your and the worst thing, that I can't remember what exactly changed. I just rebuilt everything spu_medialib, mplayer from scratch. Got the same behaviour as you.
zzima
Posts: 10
Joined: Thu Mar 13, 2008 11:57 pm

Post by zzima »

Ok, played with GDB around mplayer and figured following:

Params to run:
-vo ps3 /media/kylie_minogue-2_hearts-proper-x264-2007-mv4u.mkv

Die:
[New Thread 4109780144 (LWP 20030)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 4109780144 (LWP 20030)]
0x0fea6358 in memcmp () from /lib/libc.so.6
Stack:
(gdb) backtrace
#0 0x0fea6358 in memcmp () from /lib/libc.so.6
#1 0x0fb5dfd4 in _base_spe_toe_ear () from /usr/lib/libspe2.so.2
#2 0x0fb5e0b8 in _base_spe_load_spe_elf () from /usr/lib/libspe2.so.2
#3 0x0fb5ef80 in _base_spe_program_load () from /usr/lib/libspe2.so.2
#4 0x0fb551c4 in spe_program_load () from /usr/lib/libspe2.so.2
#5 0x0e75dcc4 in yuvscsc_spe_thread (arg=<value optimized out>) at yuv2argb_scaler.c:73
#6 0x0fcd66d4 in start_thread () from /lib/libpthread.so.0
#7 0x0fcd66d4 in start_thread () from /lib/libpthread.so.0
Previous frame inner to this frame (corrupt stack?)

Does that mean that something wrong with libspe?
zzima
Posts: 10
Joined: Thu Mar 13, 2008 11:57 pm

Post by zzima »

Ok. Found reason. Do not try to install ps3toolchain on YDL 6. Use standard binutils and newlib from YDL rpms. Mplayer built fine and seems that working ok.
zzima
Posts: 10
Joined: Thu Mar 13, 2008 11:57 pm

Post by zzima »

Tried 2 builds of mplayer + vo ps3 patch:

24714 - patched fine, but getting following error during compilation:

Code: Select all

In file included from ../libavutil/common.h&#58;77,
                 from ../libavutil/avutil.h&#58;52,
                 from swscale.h&#58;30,
                 from rgb2rgb.c&#58;31&#58;
../libavutil/internal.h&#58;271&#58; error&#58; static declaration of 'llrint' follows non-static declaration
../libavutil/internal.h&#58;292&#58; error&#58; static declaration of 'round' follows non-static declaration
../libavutil/internal.h&#58;299&#58; error&#58; static declaration of 'roundf' follows non-static declaration
In file included from ../libavutil/common.h&#58;77,
                 from ../libavutil/avutil.h&#58;52,
                 from swscale.h&#58;30,
                 from rgb2rgb.c&#58;31&#58;
I saw this error in this thread, but what is the solution?

26261 - patched with error (fixable), but compiled fine, but I see a lot of green garbage when trying to play any video using ps3 vo (see my previous post in this thread). Howerver, everything fine using fbdev as vo.

What mplayer build is actually working? I have installed spu-medialib and libps3fb from svn latest snapshots.[/code]
User avatar
Skatox
Posts: 4
Joined: Fri Mar 21, 2008 10:27 am
Location: Venezuela
Contact:

Post by Skatox »

same problem here with YDL6
Visit my website: http://www.skatox.com
zzima
Posts: 10
Joined: Thu Mar 13, 2008 11:57 pm

Post by zzima »

unsolo, could you please take a look at this issue? What information you may need from YDL 6 users in order to discover reason of green garbage on YDL 6? Looks like it's common problem on YDL 6. Do you know someone who installed mplayer vo patch on YDL 6?

Thanks
User avatar
Skatox
Posts: 4
Joined: Fri Mar 21, 2008 10:27 am
Location: Venezuela
Contact:

Post by Skatox »

zzima wrote:unsolo, could you please take a look at this issue? What information you may need from YDL 6 users in order to discover reason of green garbage on YDL 6? Looks like it's common problem on YDL 6. Do you know someone who installed mplayer vo patch on YDL 6?

Thanks
I installed the patch wich fails, then add the following code at libvo/video_out.c. :

Code: Select all

#ifdef HAVE_PS3
extern vo_functions_t video_out_ps3;
#endif 
Visit my website: http://www.skatox.com
JeffG
Posts: 2
Joined: Sat Aug 02, 2008 6:16 am

Post by JeffG »

I am following the install instruction at: http://wiki.ps2dev.org/ps3:spu-medialib:install and get stuck at:

> spu # ./configure --host spu-elf

Here is the output:
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for spu-elf-spu-elf-gcc... no
checking for spu-elf-gcc... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
I have ppu-gcc, and spu-gcc installed, but I could not find a place to install spu-elf-gcc.

I am running Ubuntu 7.10 on ps3. Thanks for any help.
Jeff
pseudonimo
Posts: 5
Joined: Thu Aug 14, 2008 11:22 pm

Post by pseudonimo »

I believe spu-gcc and spu-elf-gcc are the same, symlink with

Code: Select all

ln -s spu-gcc spu-elf-gcc
in the directory of spu-gcc (for me it's /usr/bin).
pseudonimo
Posts: 5
Joined: Thu Aug 14, 2008 11:22 pm

Post by pseudonimo »

Can someone post a *full* mplayer svn repository with the revision 24724 that it's supposed to work? Doing

Code: Select all

svn co svn&#58;//svn.mplayerhq.hu/mplayer/trunk@24714 mplayer
doesn't seem to solve it since it looks like mplayer relies on external svn repositories which probably is pulling in Head.

Thanks ;)
pseudonimo
Posts: 5
Joined: Thu Aug 14, 2008 11:22 pm

Post by pseudonimo »

Ok, couldn't wait and hacked a bit :)

A little digging showed that MPlayer had a release from 7-Oct-2007, about the time unsolo launched this. They used a revision close to what he used, and for ffmpeg 10677. Since I wanted to use the exact revision of mplayer, and the current ffmpeg rev doesn't work with this patch, I used this revision close to his.

(found out which dirs used ffmpeg with
for x in $(ls --group-directories-first); do cd $x && svn info && cd .. ; done
)

So the most current method to install MPlayer is
First follow unsolo's steps previous to get mplayer and do:

Code: Select all

svn co svn&#58;//svn.mplayerhq.hu/mplayer/trunk@24714 mplayer
cd mplayer
for x in libavformat libavutil libpostproc libavcodec; do rm -rf $x; done
for x in libavformat libavutil libpostproc libavcodec; do svn co svn&#58;//svn.mplayerhq.hu/ffmpeg/trunk/$&#123;x&#125;@10677 ; done
patch -p0 < ../mplayer-vo/latest.patch
 ./configure
make && make install
Note: Haven't tried more than compiling, (it finished wo errors)
JeffG
Posts: 2
Joined: Sat Aug 02, 2008 6:16 am

Post by JeffG »

pseudonimo wrote:I believe spu-gcc and spu-elf-gcc are the same, symlink with

Code: Select all

ln -s spu-gcc spu-elf-gcc
in the directory of spu-gcc (for me it's /usr/bin).
Thanks pseduonimo. This worked. Now after I successfully installed mplayer with the ps3 patch, and run a test:
$ mplayer -vo ps3 PlanariaWebVideo.mp4
and here is output
MPlayer dev-SVN-r27465-4.1.3 (C) 2000-2008 MPlayer Team
AltiVec found
CPU: PowerPC

Playing PlanariaWebVideo.mp4.
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [mp4v] 1280x720 24bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
Error opening/initializing the selected video_out (-vo) device.
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16be, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
AO: [oss] 48000Hz 2ch s16be (2 bytes per sample)
Video: no video
Starting playback...
A: 55.8 (55.7) of 60.1 (01:00.0) 7.6%

Exiting... (End of file)
Any idea what the error (in black) means? and how to fix it.

I also tried one avi file, and one mpeg. All got the same error.
Jeff
pseudonimo
Posts: 5
Joined: Thu Aug 14, 2008 11:22 pm

Post by pseudonimo »

No, but is the mp4 format supported?

Try the following list:
  • Open mplayer as root.
    Open several other formats, see if any work (still as root).
    Uninstall that mplayer and install the revisions I mentioned in my previous post
barf
Posts: 8
Joined: Thu Aug 14, 2008 9:41 pm
Location: Norway

Re: Installing the Mplayer vo PS3

Post by barf »

This is an addendum to the installation process done here
unsolo wrote: Dependencies:
spu-medialib & ps3fb must be installed
must be able to find:
libspe2.h
spu-medialib/spu_control.h
spu-medialib/yuv2argb_scaler.h
ps3fb/libps3fb.h
libspu-medialib.a
libps3fb.a

Installation:
install libps3fb (http://forums.ps2dev.org/viewtopic.php?p=59150#59150)
install spu-medialib (http://wiki.ps2dev.org/ps3:spu-medialib:install)
get mplayer (currently tested with rev. 24714)
svn co svn://svn.mplayerhq.hu/mplayer/trunk mplayer
get patch
svn co svn://svn.ps2dev.org/ps3ware/trunk/mplayer-vo mplayer-vo
cd mplayer & patch:
$ patch -p0 < ../mplayer-vo/latest.patch
patching file libvo/video_out.c
patching file libvo/vo_ps3.c
patching file configure
./configure;
make && make install)
To avoid the new dvd issues in mplayer, here is how I installed mplayer vo ps3
1) install libps3fb
2) install spu-medialib However I have not yet acquired a taste for emerge so I used a different howto
Beware that the gcc referenced in crossdev line is dated( You will most likely have to pick the most recent 4.3 build from here
3) Suck down mplayer

Code: Select all

svn co -r 25493 svn&#58;//svn.mplayerhq.hu/mplayer/trunk mplayer25493
4) Suck down the patch

Code: Select all

svn co svn&#58;//svn.ps2dev.org/ps3ware/trunk/mplayer-vo mplayer-vo
5) Apply the patch as follows

Code: Select all

cd mplayer25493
$ patch -p0 < ../mplayer-vo/latest.patch
patching file libvo/video_out.c
patching file libvo/vo_ps3.c
patching file configure

To make the header files available to mplayer source I had to make two symlinks

Code: Select all

ln -s /usr/src/spu-medialib/include/spu-medialib/ ./spu-medialib
ln -s /usr/src/spu-medialib/src/yuv2argb_scaler.h /usr/src/spu-medialib/include/spu-medialib/
and compile

Code: Select all

./configure --enable-ps3
make
make install
barf
Posts: 8
Joined: Thu Aug 14, 2008 9:41 pm
Location: Norway

Post by barf »

Not able to edit it, still something failed, static vs non static stuff
barf
Posts: 8
Joined: Thu Aug 14, 2008 9:41 pm
Location: Norway

Post by barf »

zzima wrote:Tried 2 builds of mplayer + vo ps3 patch:

24714 - patched fine, but getting following error during compilation:

Code: Select all

In file included from ../libavutil/common.h&#58;77,
                 from ../libavutil/avutil.h&#58;52,
                 from swscale.h&#58;30,
                 from rgb2rgb.c&#58;31&#58;
../libavutil/internal.h&#58;271&#58; error&#58; static declaration of 'llrint' follows non-static declaration
../libavutil/internal.h&#58;292&#58; error&#58; static declaration of 'round' follows non-static declaration
../libavutil/internal.h&#58;299&#58; error&#58; static declaration of 'roundf' follows non-static declaration
In file included from ../libavutil/common.h&#58;77,
                 from ../libavutil/avutil.h&#58;52,
                 from swscale.h&#58;30,
                 from rgb2rgb.c&#58;31&#58;
This one compiles if you remove the static word from libavutil/internal.h on the lines mentioned...
c99pnn
Posts: 5
Joined: Mon Aug 18, 2008 2:53 am

State of the project and my results etc.

Post by c99pnn »

Hi guys, just got into the game here. Thank you dev team for doing this, and all for documenting your problems and solutions.

1. Everything seems to be set up allright, I have the same problem as many of you seem to have, with returning to console from playback with ps3 vo. Is this still an issue or do I lack the latest greatest of something you think?

2. mplayer -vo ps3 plays my files. Tested a couple of different 720p materials. Performance is not what one might hope, low framerate and tearing. Not sure if I can see a difference from using fbdev. Could this be an issue with my files, or is this what I get? I'm just curious if this is the current state of the libs, or if I have something not quite right set up?

3. What is peoples results this far? Has anyone got things up and running to a satisfactory level? In that case, did you follow the steps in this tutorial, or is it outdated?

4. Is there a way to get accelerated playback in X yet?

5. With firmware <=210 did people manage to use the RSX to acceelrate video playback/do scaling? How was that compared to this track? Just curious, couse I offcourse updated before I knew...

Lastly, sorry if my questions are redundant, but I had problems finding information on this, as it seems to be a bit spread out amongst the forums and threads.

Thanks!
Strolls
Posts: 1
Joined: Mon Aug 18, 2008 7:51 am

Re: State of the project and my results etc.

Post by Strolls »

c99pnn wrote:2. mplayer -vo ps3 plays my files. Tested a couple of different 720p materials. Performance is not what one might hope, low framerate and tearing. Not sure if I can see a difference from using fbdev. Could this be an issue with my files, or is this what I get? I'm just curious if this is the current state of the libs, or if I have something not quite right set up?
That sounds about par for the course. I found that (with a 1080p screen) I was getting stuttering playing standard def materierials (DVDs?) without the VO, so the VO has made a tremendous difference here. With 720p I think you may get satisfactory results *with the right codec*, but I wouldn't swear to that. AIUI things are improving.
c99pnn wrote:4. Is there a way to get accelerated playback in X yet?
AIUI there has been work on this, but it's still pretty experimental.
c99pnn wrote:5. With firmware <=210 did people manage to use the RSX to accelerate video playback/do scaling? How was that compared to this track? Just curious, couse I offcourse updated before I knew...
The RSX isn't intended to be accessible under Linux, so IMO trying to use it is a waste of time. I'd love Sony to offer a freer firmware which allowed full access to it, but IMO trying to hack it is a flawed approach. But then I may be biased, because I expect a usable firmware for my games console, too. At the time of the 2.10 upgrade the hack that did "allow access to the RSX" didn't actually do anything useful. I don't know if anyone's kept a console back without updates and done anything useful with it since then, but I doubt it. I don't think you're missing out.

The cell should be able to offer quite adequate graphics acceleration - enough at least for your 1080p playback, and prolly wobbly windows, too, if someone were interested in implementing that. It's just not there yet.
lacdenand
Posts: 1
Joined: Sat Aug 16, 2008 8:58 pm

What did I wrong ?

Post by lacdenand »

Hello,

I installed mplayer 27471 on my XUbuntu 7.10, I also patched it with the latest.patch adapted as follows at the beginning :

Index: libvo/video_out.c
===================================================================
--- libvo/video_out.c (revision 25493)
+++ libvo/video_out.c (working copy)
@@ -99,2 +99,3 @@
extern vo_functions_t video_out_dxr2;
+extern vo_functions_t video_out_ps3;
extern vo_functions_t video_out_dxr3;
@@ -173,6 +173,7 @@
&video_out_fbdev,
&video_out_fbdev2,
#endif
+ &video_out_ps3,
#ifdef CONFIG_SVGALIB
&video_out_svga,
#endif

mplayer compiled correctly, and work without using -vo ps3 option (but with no scaling event in full screen, only black border).

When I try the -vo ps3 option, I get a black screen and it hangs, q or ESC doesn't work (I need to use ALT-CTRL-BACKSPACE). I also tried a pre-compiled version called mplauer-ps3, and I get a very close result.

I reinstalled/recompiled libspe2 and spu-medialib, but with no more success (using gcc 4.2).

What else could I try ? I'm afraid to need your help...
c99pnn
Posts: 5
Joined: Mon Aug 18, 2008 2:53 am

Any hints to reduce tearing?

Post by c99pnn »

Ok guys, things seem to be up n running as it should. spu-top gives me mplayer as expected. I'm a bit surprised thoug, to see a fair amount of tearing, even on low def. videos. Any hints of how I can reduce that, some mplayer settings etc?

Many thanks.
konni
Posts: 6
Joined: Sun Sep 28, 2008 11:58 pm

green garbage...

Post by konni »

hey, after some troubles i managed to compile speutils, spu-medialib and the latest svn-version of mplayer like explained here...
at first all worked nicely but since today something fails, all i see is green stuff...

started mplayer with:

Code: Select all

mplayer -vo ps3 -fsvideoavi > video.log
mplayer&#58; could not connect to socket
mplayer&#58; No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
&#91;AO OSS&#93; audio_setup&#58; Can't open audio device /dev/dsp&#58; No such file or directory
&#91;vo_ps3&#93; control&#58; todo&#58; handle UPDATE_SCREENINFO &#40;32&#41;
spu_yuv2argb_scaler&#58; Starting Up
video.log looks like this:

Code: Select all

MPlayer dev-SVN-r27739-4.3.2 &#40;C&#41; 2000-2008 MPlayer Team
AltiVec found
CPU&#58; PowerPC

Playing video.avi.
AVI file format detected.
&#91;aviheader&#93; Video stream found, -vid 0
&#91;aviheader&#93; Audio stream found, -aid 1
VIDEO&#58;  &#91;XVID&#93;  624x352  24bpp  23.976 fps  995.1 kbps &#40;121.5 kbyte/s&#41;
Clip info&#58;
 Software&#58; transcode-1.0.2
ps3 suboptions&#58;
           debug&#58;0
           noscale&#58;0
           noadj&#58;0
           snapshot&#58;0
&#91;vo_ps3&#93; init_framebuffer&#58; failed to open console - be root disable console text
&#91;vo_ps3&#93; init_framebuffer&#58; Initialized framebuffer & disabled console
FB is 640x524 at offset 0x0
==========================================================================
Opening video decoder&#58; &#91;ffmpeg&#93; FFmpeg's libavcodec codec family
Selected video codec&#58; &#91;ffodivx&#93; vfm&#58; ffmpeg &#40;FFmpeg MPEG-4&#41;
==========================================================================
==========================================================================
Opening audio decoder&#58; &#91;mp3lib&#93; MPEG layer-2, layer-3
AUDIO&#58; 48000 Hz, 2 ch, s16be, 128.0 kbit/8.33% &#40;ratio&#58; 16000->192000&#41;
Selected audio codec&#58; &#91;mp3&#93; afm&#58; mp3lib &#40;mp3lib MPEG layer-2, layer-3&#41;
==========================================================================
AO&#58; &#91;alsa&#93; 48000Hz 2ch s16be &#40;2 bytes per sample&#41;
Starting playback...
VDec&#58; vo config request - 624 x 352 &#40;preferred colorspace&#58; Planar YV12&#41;
&#91;vo_ps3&#93; query_format&#58; Called for Planar YV12 &#40;0x32315659&#41;
VDec&#58; using Planar YV12 as output csp &#40;no 0&#41;
Movie-Aspect is 1.77&#58;1 - prescaling to correct movie aspect.
VO&#58; &#91;ps3&#93; 624x352 => 624x352 Planar YV12  &#91;fs&#93;
&#91;vo_ps3&#93; query_format&#58; Called for Planar YV12 &#40;0x32315659&#41;
&#91;vo_ps3&#93; config&#58; Times called&#58;0 Setting up for src=624x352, suggested dst=624x352, format=Planar YV12 &#40;32315659&#41;
                 vo_fs&#58;0, vo_doublebuffering&#58;1, vo_directrendering&#58;0, vo_screenwidth&#58;0, vo_screenheight&#58;0
&#91;vo_ps3&#93; config&#58; Set vo_screen&#40;width/heigh&#41; to 0x0, forced direct rendering, & double buffering
&#91;vo_ps3&#93; config&#58; src_buf_siz=329472, src_stride&#91;&#93;=&#123;624,312,312&#125;, src_p_siz&#91;&#93;=&#123;219648,54912,54912&#125;
                     maxWxmaxH=640x524, offset=0
&#91;vo_ps3&#93; clear&#58; Clearing buffers
&#91;vo_ps3&#93; init_framebuffer&#58; failed to open console - be root disable console text
&#91;vo_ps3&#93; init_framebuffer&#58; Initialized framebuffer & disabled console
FB is 640x524 at offset 0x0
&#91;vo_ps3&#93; setup_scale&#58; Using dest WxH&#58;640x361
&#91;vo_ps3&#93; fix_scale&#58; Adjusted image size to WxH&#58;640x360
&#91;vo_ps3&#93; setup_screen&#58; After mplayer aspect changes&#58;
                       vo_dx/dy=0x82, vo_screenwidth/height=640x524, offset=52480
                       desired image size=640x360
powerpc64 not detected
 manipulating adress space
&#91;vo_ps3&#93; init_spu_medialib&#58; Initialized spu-medialib's spu_yuv2argb_scaler with&#58;
                            624x352=>640x360, offset&#58;52480, maxW&#58;640
spu_yuv2argb_scaler&#58; SRC width 624,DST width 640 ??% ??% ??,?% 0 0 
spu_yuv2argb_scaler&#58; SRC height 352,DST height 360
spu_yuv2argb_scaler&#58; DST offset 52480
spu_yuv2argb_scaler&#58; Scaling, computing shuffle filters
spu_yuv2argb_scaler&#58; Computing Crshuffle filter
spu_yuv2argb_scaler&#58; Initiation completed
exit from SPU17.7 A-V&#58;  0.002 ct&#58;  0.001 426/426  7%  4%  4.8% 0 0 
spu context destroyed
&#91;vo_ps3&#93; cleanup_spu_medialib&#58; Destroyed spu-medialib's scaler/converter
&#91;vo_ps3&#93; uninit&#58; Cleaned up FrameBuffer and re-enabled console.
&#91;vo_ps3&#93; uninit&#58; These SHOULD BE ZERO&#58;
        yuvcsc_not_ready&#58;0
&#91;vo_ps3&#93; uninit&#58; Statistics&#58;
        draw_frame calls&#58;0
        draw_slice calls&#58;5610
        draw_image calls&#58;425
        flip_page calls&#58;425
        get_image calls&#58;172
   Played src video.avi &#40;624x352&#41; at 640x360

Exiting... &#40;Quit&#41;
now there are lots of warnings but i don't get much information out of it...
help would be highly appreciated!
unsolo
Posts: 155
Joined: Mon Apr 16, 2007 2:39 am
Location: OSLO Norway

Post by unsolo »

Hi guys sorry for not addressing this issue earlier
I will do an attempt to make a patch to the current mplayer svn trunk that works
however issues related to your distributions will probably not be addressed.

as mentioned in the last post here the spu-medialib trunk is moved and has a dependency called speutils but thats in the current dev tree we will se if these issues are related to the lib or to the vo

please wait for an update
Don't do it alone.
unsolo
Posts: 155
Joined: Mon Apr 16, 2007 2:39 am
Location: OSLO Norway

Post by unsolo »

Ok found one big bad bug solved that and removed the need for libps3fb while at it..

you can also now use it on the ps3 as a normal user without need to change any permissions however via ssh you must run it as root..

anyhow the mplayer-vo latest can be found here

Code: Select all

 svn co https&#58;//spu-medialib.svn.sourceforge.net/svnroot/spu-medialib spu-medialib 
if you want to complile the latest spu-medialib you need to fetch and install speutils first

Code: Select all

 http&#58;//code.google.com/p/speutils/wiki/Installation 
however there is nothing new there for the vo yet..
Don't do it alone.
Post Reply