 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
master-crown
Joined: 14 Mar 2008 Posts: 5
|
Posted: Sun Mar 16, 2008 7:39 am Post subject: |
|
|
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: | 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. |
|
|
| Back to top |
|
 |
unsolo
Joined: 16 Apr 2007 Posts: 155 Location: OSLO Norway
|
Posted: Mon Mar 17, 2008 10:29 am Post subject: |
|
|
try a few other videos''
some format restrictions still exists unfortunately _________________ Don't do it alone. |
|
| Back to top |
|
 |
zzima
Joined: 13 Mar 2008 Posts: 10
|
Posted: Tue Mar 18, 2008 5:03 pm Post subject: |
|
|
| 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: |
[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: |
***************
*** 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? |
|
| Back to top |
|
 |
zzima
Joined: 13 Mar 2008 Posts: 10
|
Posted: Tue Mar 18, 2008 11:56 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
zzima
Joined: 13 Mar 2008 Posts: 10
|
Posted: Wed Mar 19, 2008 12:36 am Post subject: |
|
|
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:
| Quote: |
[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:
| Quote: |
(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? |
|
| Back to top |
|
 |
zzima
Joined: 13 Mar 2008 Posts: 10
|
Posted: Wed Mar 19, 2008 6:02 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
zzima
Joined: 13 Mar 2008 Posts: 10
|
Posted: Thu Mar 20, 2008 7:06 am Post subject: |
|
|
Tried 2 builds of mplayer + vo ps3 patch:
24714 - patched fine, but getting following error during compilation:
| Code: |
In file included from ../libavutil/common.h:77,
from ../libavutil/avutil.h:52,
from swscale.h:30,
from rgb2rgb.c:31:
../libavutil/internal.h:271: error: static declaration of 'llrint' follows non-static declaration
../libavutil/internal.h:292: error: static declaration of 'round' follows non-static declaration
../libavutil/internal.h:299: error: static declaration of 'roundf' follows non-static declaration
In file included from ../libavutil/common.h:77,
from ../libavutil/avutil.h:52,
from swscale.h:30,
from rgb2rgb.c:31:
|
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] |
|
| Back to top |
|
 |
Skatox

Joined: 21 Mar 2008 Posts: 4 Location: Venezuela
|
Posted: Fri Mar 21, 2008 1:47 pm Post subject: |
|
|
same problem here with YDL6 _________________ Visit my website: http://www.skatox.com |
|
| Back to top |
|
 |
zzima
Joined: 13 Mar 2008 Posts: 10
|
Posted: Fri Mar 21, 2008 10:58 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Skatox

Joined: 21 Mar 2008 Posts: 4 Location: Venezuela
|
Posted: Sat Mar 22, 2008 12:21 am Post subject: |
|
|
| 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: |
#ifdef HAVE_PS3
extern vo_functions_t video_out_ps3;
#endif |
_________________ Visit my website: http://www.skatox.com |
|
| Back to top |
|
 |
JeffG
Joined: 02 Aug 2008 Posts: 2
|
Posted: Sat Aug 02, 2008 6:29 am Post subject: |
|
|
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:
| Quote: |
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 |
|
| Back to top |
|
 |
pseudonimo
Joined: 14 Aug 2008 Posts: 5
|
Posted: Thu Aug 14, 2008 11:26 pm Post subject: |
|
|
I believe spu-gcc and spu-elf-gcc are the same, symlink with | Code: | | ln -s spu-gcc spu-elf-gcc | in the directory of spu-gcc (for me it's /usr/bin). |
|
| Back to top |
|
 |
pseudonimo
Joined: 14 Aug 2008 Posts: 5
|
Posted: Thu Aug 14, 2008 11:31 pm Post subject: |
|
|
Can someone post a *full* mplayer svn repository with the revision 24724 that it's supposed to work? Doing | Code: | | svn co svn://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 ;) |
|
| Back to top |
|
 |
pseudonimo
Joined: 14 Aug 2008 Posts: 5
|
Posted: Fri Aug 15, 2008 12:45 am Post subject: |
|
|
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: |
svn co svn://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://svn.mplayerhq.hu/ffmpeg/trunk/${x}@10677 ; done
patch -p0 < ../mplayer-vo/latest.patch
./configure
make && make install
|
Note: Haven't tried more than compiling, (it finished wo errors) |
|
| Back to top |
|
 |
JeffG
Joined: 02 Aug 2008 Posts: 2
|
Posted: Fri Aug 15, 2008 12:41 pm Post subject: |
|
|
| pseudonimo wrote: | I believe spu-gcc and spu-elf-gcc are the same, symlink with | Code: | | 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:
| Quote: | | $ mplayer -vo ps3 PlanariaWebVideo.mp4 |
and here is output
| Quote: |
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 |
|
| Back to top |
|
 |
pseudonimo
Joined: 14 Aug 2008 Posts: 5
|
Posted: Fri Aug 15, 2008 8:13 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
barf
Joined: 14 Aug 2008 Posts: 8 Location: Norway
|
Posted: Sat Aug 16, 2008 7:37 pm Post subject: Re: Installing the Mplayer vo PS3 |
|
|
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: | | svn co -r 25493 svn://svn.mplayerhq.hu/mplayer/trunk mplayer25493 |
4) Suck down the patch | Code: | | svn co svn://svn.ps2dev.org/ps3ware/trunk/mplayer-vo mplayer-vo |
5) Apply the patch as follows | Code: | 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: | 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: | ./configure --enable-ps3
make
make install |
|
|
| Back to top |
|
 |
barf
Joined: 14 Aug 2008 Posts: 8 Location: Norway
|
Posted: Sat Aug 16, 2008 7:59 pm Post subject: |
|
|
| Not able to edit it, still something failed, static vs non static stuff |
|
| Back to top |
|
 |
barf
Joined: 14 Aug 2008 Posts: 8 Location: Norway
|
Posted: Sat Aug 16, 2008 8:42 pm Post subject: |
|
|
| zzima wrote: | Tried 2 builds of mplayer + vo ps3 patch:
24714 - patched fine, but getting following error during compilation:
| Code: |
In file included from ../libavutil/common.h:77,
from ../libavutil/avutil.h:52,
from swscale.h:30,
from rgb2rgb.c:31:
../libavutil/internal.h:271: error: static declaration of 'llrint' follows non-static declaration
../libavutil/internal.h:292: error: static declaration of 'round' follows non-static declaration
../libavutil/internal.h:299: error: static declaration of 'roundf' follows non-static declaration
In file included from ../libavutil/common.h:77,
from ../libavutil/avutil.h:52,
from swscale.h:30,
from rgb2rgb.c:31: |
| This one compiles if you remove the static word from libavutil/internal.h on the lines mentioned... |
|
| Back to top |
|
 |
c99pnn
Joined: 18 Aug 2008 Posts: 5
|
Posted: Mon Aug 18, 2008 3:07 am Post subject: State of the project and my results etc. |
|
|
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! |
|
| Back to top |
|
 |
Strolls
Joined: 18 Aug 2008 Posts: 1
|
Posted: Mon Aug 18, 2008 8:13 am Post subject: Re: State of the project and my results etc. |
|
|
| 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. |
|
| Back to top |
|
 |
lacdenand
Joined: 16 Aug 2008 Posts: 1
|
Posted: Tue Aug 19, 2008 10:31 pm Post subject: What did I wrong ? |
|
|
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... |
|
| Back to top |
|
 |
c99pnn
Joined: 18 Aug 2008 Posts: 5
|
Posted: Sun Aug 24, 2008 3:50 am Post subject: Any hints to reduce tearing? |
|
|
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. |
|
| Back to top |
|
 |
konni
Joined: 28 Sep 2008 Posts: 6
|
Posted: Fri Oct 10, 2008 4:54 am Post subject: green garbage... |
|
|
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: |
mplayer -vo ps3 -fsvideoavi > video.log
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[vo_ps3] control: todo: handle UPDATE_SCREENINFO (32)
spu_yuv2argb_scaler: Starting Up
|
video.log looks like this:
| Code: |
MPlayer dev-SVN-r27739-4.3.2 (C) 2000-2008 MPlayer Team
AltiVec found
CPU: PowerPC
Playing video.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [XVID] 624x352 24bpp 23.976 fps 995.1 kbps (121.5 kbyte/s)
Clip info:
Software: transcode-1.0.2
ps3 suboptions:
debug:0
noscale:0
noadj:0
snapshot:0
[vo_ps3] init_framebuffer: failed to open console - be root disable console text
[vo_ps3] init_framebuffer: Initialized framebuffer & disabled console
FB is 640x524 at offset 0x0
==========================================================================
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: 48000 Hz, 2 ch, s16be, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16be (2 bytes per sample)
Starting playback...
VDec: vo config request - 624 x 352 (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.77:1 - prescaling to correct movie aspect.
VO: [ps3] 624x352 => 624x352 Planar YV12 [fs]
[vo_ps3] query_format: Called for Planar YV12 (0x32315659)
[vo_ps3] config: Times called:0 Setting up for src=624x352, suggested dst=624x352, 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=329472, src_stride[]={624,312,312}, src_p_siz[]={219648,54912,54912}
maxWxmaxH=640x524, offset=0
[vo_ps3] clear: Clearing buffers
[vo_ps3] init_framebuffer: failed to open console - be root disable console text
[vo_ps3] init_framebuffer: Initialized framebuffer & disabled console
FB is 640x524 at offset 0x0
[vo_ps3] setup_scale: Using dest WxH:640x361
[vo_ps3] fix_scale: Adjusted image size to WxH:640x360
[vo_ps3] setup_screen: After mplayer aspect changes:
vo_dx/dy=0x82, vo_screenwidth/height=640x524, offset=52480
desired image size=640x360
powerpc64 not detected
manipulating adress space
[vo_ps3] init_spu_medialib: Initialized spu-medialib's spu_yuv2argb_scaler with:
624x352=>640x360, offset:52480, maxW:640
spu_yuv2argb_scaler: SRC width 624,DST width 640 ??% ??% ??,?% 0 0
spu_yuv2argb_scaler: SRC height 352,DST height 360
spu_yuv2argb_scaler: DST offset 52480
spu_yuv2argb_scaler: Scaling, computing shuffle filters
spu_yuv2argb_scaler: Computing Crshuffle filter
spu_yuv2argb_scaler: Initiation completed
exit from SPU17.7 A-V: 0.002 ct: 0.001 426/426 7% 4% 4.8% 0 0
spu context destroyed
[vo_ps3] cleanup_spu_medialib: Destroyed spu-medialib's scaler/converter
[vo_ps3] uninit: Cleaned up FrameBuffer and re-enabled console.
[vo_ps3] uninit: These SHOULD BE ZERO:
yuvcsc_not_ready:0
[vo_ps3] uninit: Statistics:
draw_frame calls:0
draw_slice calls:5610
draw_image calls:425
flip_page calls:425
get_image calls:172
Played src video.avi (624x352) at 640x360
Exiting... (Quit)
|
now there are lots of warnings but i don't get much information out of it...
help would be highly appreciated! |
|
| Back to top |
|
 |
unsolo
Joined: 16 Apr 2007 Posts: 155 Location: OSLO Norway
|
Posted: Fri Oct 10, 2008 5:15 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
unsolo
Joined: 16 Apr 2007 Posts: 155 Location: OSLO Norway
|
Posted: Thu Oct 16, 2008 8:52 am Post subject: |
|
|
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: | | svn co https://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: | | http://code.google.com/p/speutils/wiki/Installation |
however there is nothing new there for the vo yet.. _________________ Don't do it alone. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|