Installing the Mplayer vo PS3

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

Moderator: unsolo

fusuke
Posts: 19
Joined: Mon Oct 08, 2007 1:27 pm
Location: Vancouver, Canada

flickering

Post by fusuke »

It still flickers outside of X.

I did another test in Runlevel 3: Playback of a 4:3 aspect ratio mpeg.

mplayer -vo ps3 file.mpeg

It starts like any other file, centred on screen at its original non-scaled resolution. The rest of the screen retains whatever was on it before, except it now flickers.

When you go to full screen (press f), the video rescales but once again you get your flickering console text on the sides where you would normally see black bars.

Perhaps this is an issue with init_framebuffer? Is it saving the original screen as a backbuffer, then flipping back and forth? Would it be possible to initialize the frame buffer as a blank screen?
ldesnogu
Posts: 94
Joined: Sat Apr 17, 2004 10:37 pm

Post by ldesnogu »

My understanding was that the framebuffer device is doing the blitting and it is doing so with two buffers. So no matter whether X is running or not, I guess swapping and blitting happen.

@unsolo How is vsync handled?
Laurent
unsolo
Posts: 155
Joined: Mon Apr 16, 2007 2:39 am
Location: OSLO Norway

Post by unsolo »

@fusuke what is the resolution of the mpeg you are playing back and what video output resolutions you have tested ?

@ldesnogu sync is controlled by the video framerate. swapfb (blit and swap) is executed at the time mplayer wants it to be executed.

I have spent a day looking at how to do this in X my best bet is actually to create a fake frame around the video so that you do not get any rendering from the various applications running in X.

Another alternative is to work on some form of overlay blit or overlay X.
Don't do it alone.
fusuke
Posts: 19
Joined: Mon Oct 08, 2007 1:27 pm
Location: Vancouver, Canada

further comments

Post by fusuke »

1) I've discovered why I was having trouble with the DIVX5 file mentioned earlier. It's not because of the format, rather it was due to the non divisibility by 16 of the source width resolution. Is this a firm limitation of spu scaling?

2) After more tests in runlevel 3, I've mitigated the flickering somewhat by keeping the frame free of as much text as possible (including piping mplayer output to /dev/null).

The best would be if you ssh'ed in. That way the framebuffer would be entirely clean for video playback.

3) On my TV I find the best ps3videomode to be vesa (11), just because there's no black bars or overscanning; I maximize playback resolution width while avoiding loss of edges to overscanning (e.g ps3videomode -v 3 -f)

unsolo: my mpeg was 352x288. I have tested vo_ps3 on ps3videomodes 1,3,4 and 11.
unsolo
Posts: 155
Joined: Mon Apr 16, 2007 2:39 am
Location: OSLO Norway

Post by unsolo »

It is not directly easy to solve , its very much dependant on how the data is handeled over to the scaler / csc

If you have width w Height h then line 0 starts at 0 and line 1 starts at 0+w right..

however it has come to my attention that you can force an alignement stride so that line 0 starts at 0 and line 1 starts at 0 + stride[0] maning it will also allow for unaligned data.

if this is true then small modifications need to be made to the scaler to make it dma from line 0+stride[0]*line number.

where stride[0] is the luminance and stride [1] is the crominance.

provided stride[0] is mod 16 and stride [1] is mod 8 there shouldn't be any restrictions..

as long as Y U and V starts mod16

but these are modifications and according to wgarrett it cant allways be thrusted . another thing is the pre processing crop filters that are sometimes applied inbetween.
Don't do it alone.
toxicer
Posts: 17
Joined: Wed Apr 18, 2007 8:38 pm

Post by toxicer »

Hi guys,

thanks for the ps3 vo module.
I just the installation guide and the compilation did work without any issues.
However, when trying to play whatever format Mplayer crashes with the following message:

AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [XVID] 640x288 12bpp 25.000 fps 1187.3 kbps (144.9 kbyte/s)
Clip info:
Software: Nandub v1.0rc2
ps3 suboptions:
debug:0
noscale:0
noadj:0
snapshot:0
[vo_ps3] preinit: Initialized framebuffer & disabled console
FB is 1920x1080 at offset 116x58
==========================================================================
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 - 640 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 2.22:1 - prescaling to correct movie aspect.
VO: [ps3] 640x288 => 640x288 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=640x288, suggested dst=640x288, 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=276480, src_stride[]={640,320,320}, src_p_siz[]={184320,46080,46080}
maxWxmaxH=1920x1080, offset=0
[vo_ps3] clear: Clearing buffers
[vo_ps3] setup_scale: Using dest WxH:640x288
[vo_ps3] fix_scale: Adjusted image size to WxH:640x288
[vo_ps3] setup_screen: After mplayer aspect changes:
vo_dx/dy=524x338, vo_screenwidth/height=1688x964, offset=649484
desired image size=640x288
powerpc64 not detected
manipulating adress space
spu_create(): Invalid argument
[vo_ps3] init_spu_medialib: Initialized spu-medialib's spu_yuv2argb_scaler with:
640x288=>640x288, offset:649484, maxW:1920


MPlayer interrupted by signal 11 in module: av_sync
- 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.
==========================================================================


MPlayer interrupted by signal 11 in module: uninit_vo
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3


MPlayer interrupted by signal 11 in module: uninit_ao

I did not specify any 64bit option during configure and compile and am using a 32bit Gentoo.
I used the normal gcc.
Any hints?

Thanks,
toxicer
unsolo
Posts: 155
Joined: Mon Apr 16, 2007 2:39 am
Location: OSLO Norway

Post by unsolo »

Seems it doesn't want to start up the spe..
is your spufs in order in fstab ?
Don't do it alone.
toxicer
Posts: 17
Joined: Wed Apr 18, 2007 8:38 pm

Post by toxicer »

having
none /spu spufs gid=spu 0 0
in my /etc/fstab
I am getting a
mount: wrong fs type, bad option, bad superblock on none,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
is there a module I have to load?
I searched through the forum but couldn't find something.

Thanks,
toxicer
toxicer
Posts: 17
Joined: Wed Apr 18, 2007 8:38 pm

Post by toxicer »

Ah,

got it working (nearly) by modprobing spufs and then manually mounting
mount -t spufs none /spufs
after creating /spufs.
when playing a movie now my framebuffer is splitted in two parts.
In the upper half the video is shown 3 times.
Any ideas?
toxicer
Posts: 17
Joined: Wed Apr 18, 2007 8:38 pm

Post by toxicer »

ok,

I was too fast. Changing the ps3videomode to v 3 showed the right picture.
But all the time I forgot to enable the -vo ps3 ;)
That means even with a mounted spufs I get:

AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [XVID] 640x288 12bpp 25.000 fps 1187.3 kbps (144.9 kbyte/s)
Clip info:
Software: Nandub v1.0rc2
ps3 suboptions:
debug:0
noscale:0
noadj:0
snapshot:0
[vo_ps3] preinit: Initialized framebuffer & disabled console
FB is 1920x1080 at offset 116x58
==========================================================================
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 - 640 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 2.22:1 - prescaling to correct movie aspect.
VO: [ps3] 640x288 => 640x288 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=640x288, suggested dst=640x288, 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=276480, src_stride[]={640,320,320}, src_p_siz[]={184320,46080,46080}
maxWxmaxH=1920x1080, offset=0
[vo_ps3] clear: Clearing buffers
[vo_ps3] setup_scale: Using dest WxH:640x288
[vo_ps3] fix_scale: Adjusted image size to WxH:640x288
[vo_ps3] setup_screen: After mplayer aspect changes:
vo_dx/dy=524x338, vo_screenwidth/height=1688x964, offset=649484
desired image size=640x288
powerpc64 not detected
manipulating adress space
spu_create(): Invalid argument
[vo_ps3] init_spu_medialib: Initialized spu-medialib's spu_yuv2argb_scaler with:
640x288=>640x288, offset:649484, maxW:1920
A: 0.0 V: 0.0 A-V: 0.016 ct: 0.000 1/ 1 ??% ??% ??,?% 0 0

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.


MPlayer interrupted by signal 11 in module: uninit_vcodec


MPlayer interrupted by signal 11 in module: uninit_vo


MPlayer interrupted by signal 11 in module: uninit_vo


Is that a 32/64 bit problem?
toxicer
Posts: 17
Joined: Wed Apr 18, 2007 8:38 pm

Post by toxicer »

One step further:

Used the wrong mount point.
Now I have:
none on /spu type spufs (rw,gid=spu)

When starting the video now I get the following:

[vo_ps3] config: Set vo_screen(width/heigh) to 0x0, forced direct rendering, & double buffering
[vo_ps3] config: src_buf_siz=276480, src_stride[]={640,320,320}, src_p_siz[]={184320,46080,46080}
maxWxmaxH=1280x720, offset=0
[vo_ps3] clear: Clearing buffers
[vo_ps3] setup_scale: Using dest WxH:640x288
[vo_ps3] fix_scale: Adjusted image size to WxH:640x288
[vo_ps3] setup_screen: After mplayer aspect changes:
vo_dx/dy=244x178, vo_screenwidth/height=1124x644, offset=228084
desired image size=640x288
powerpc64 not detected
manipulating adress space
[vo_ps3] init_spu_medialib: Initialized spu-medialib's spu_yuv2argb_scaler with:
640x288=>640x288, offset:228084, 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.


MPlayer interrupted by signal 11 in module: free_demuxer
[vo_ps3] uninit: Told yuv2argb_scaler to stop
[vo_ps3] uninit: Told yuv2argb_scaler to stop
[vo_ps3] uninit: 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:0
draw_image calls:0
flip_page calls:0
get_image calls:1
Played src xvid_a.avi (640x288) at 640x288
unsolo
Posts: 155
Joined: Mon Apr 16, 2007 2:39 am
Location: OSLO Norway

Post by unsolo »

put this in your /etc/fstab
then run mount /spu

none /spu spufs defaults 0 0
Don't do it alone.
toxicer
Posts: 17
Joined: Wed Apr 18, 2007 8:38 pm

Post by toxicer »

@unsolo:

I reinstalled my system with the latest ubuntu release and trying to compile the spu-medialib with make no-spu.
That worked a few days ago on my gentoo installation; now I'm getting the error:

/usr/bin/ld: powerpc:common64 architecture of input file `../spu/cesof/spu_yuv2argb_scaler_csf.o' is incompatible with powerpc:common output
/usr/bin/ld: powerpc:common64 architecture of input file `../spu/cesof/spu_yuv2rgb_csf.o' is incompatible with powerpc:common output
/usr/bin/ld: powerpc:common64 architecture of input file `../spu/cesof/spu_yuvscaler_csf.o' is incompatible with powerpc:common output
collect2: ld returned 1 exit status
make[1]: *** [lib] Error 1
make[1]: Leaving directory `/home/birdman/ps3/spu-medialib/lib'
make: *** [lib] Error 2

the spu_yuv files are 64bit. I am trying to keep everything on 32bit as too many libs are not 64bit compatible.
Any idea what I can do?
unsolo
Posts: 155
Joined: Mon Apr 16, 2007 2:39 am
Location: OSLO Norway

Post by unsolo »

install the spu-gcc in the ubuntu package or wait a few days.

Make shure its all compiled 32 bit or it will fail.

We are working on a automatic build
Don't do it alone.
toxicer
Posts: 17
Joined: Wed Apr 18, 2007 8:38 pm

Post by toxicer »

Yep,
I did install the ubuntu spu packages and mplayer plays my videos.
The only remaining issue is that I can't stop mplayer. The whole framebuffer gets messed up when hitting ESC and I have to change the runlevel.
unsolo
Posts: 155
Joined: Mon Apr 16, 2007 2:39 am
Location: OSLO Norway

Post by unsolo »

I have heard of the same problem on #IRC from another ubuntu users.
Perhaps this is only a problem on ubuntu..
It is most likely related to how mplayer is shutting down as it needs to kill the spe prior to stopping failing to do so will probably lock up your stystem.

But i am to understand that the vo works and the spe starts now right ?
Don't do it alone.
mksm
Posts: 3
Joined: Thu Nov 01, 2007 10:23 am

Post by mksm »

After a few days reading, reading, reading and then testing, here's what I've got:

OS: 2.6.16-20070425.ydl.3ps3

1- Installed libps3fb, libspe2 and spu-medialib.
2- Installed mplayer (with mplayer-vo patch). Had a few issues here specially with 32/64bit issues. Turned out that I didnt have spu-elf-gcc, only spu-gcc. After tons of reading, I created the symlink and its worked fine (with warnings).

Playback

Code: Select all

VIDEO:  [XVID]  624x352  24bpp  23.976 fps  990.4 kbps (120.9 kbyte/s)
Screen: 1080p
mplayer -vo ps3 -fs -zoom file.avi 
I believe i get the same flickering as reported by fusuke. When playing non-fullscreen, every dynamic portion of the screen (mplayer stats numbers) keeps flashing. When playing in fullscreen there's a gap in the left and upper part of the screen. It seems that the video window is not placed at X=0 and Y=0.

Another issue: when i stop playback, screen does not respond. It just freezes. System still works and responds normally, but nothing is drawn to screen. I need to restart X to correct this.

Anyways, thumbs up! I successfully tested spu-medialib to scale to 1080p and played with no lag/framedrop. I'll be glad to do any further tested or contribute as a developed to this project. Just need sometime to get used to the environment :P

Regards,

mksm
toxicer
Posts: 17
Joined: Wed Apr 18, 2007 8:38 pm

Post by toxicer »

@unsolo: yes, the vo is working and upscaling to 1080p. The only thing to mention is that the mplayer output is being shown directly below the picture but I can suppress this by redirecting the output to /dev/null.
Would you mind if I am spreading an Ubuntu Howto (including some .debs) to a wider community at this point in time or should I wait?
unsolo
Posts: 155
Joined: Mon Apr 16, 2007 2:39 am
Location: OSLO Norway

Post by unsolo »

Thats fine however this VO is intended for use outside X.
For that we are working on a Xv driver.

(I have it working just a bit unstable)
Don't do it alone.
anthraxx
Posts: 27
Joined: Sun Nov 11, 2007 12:14 am

Post by anthraxx »

I also tested the mplayer-vo Patch, and it actually works!
I've got the same problem with the exit-bug.
Playing a video in X shows flickering digital clock (from fluxbox) in fullscreen

Used newest gentoo, videomode 131, HDMI 720p projector.

I also want to mention that i want to use my PS3 as mediacenter, since the fsck first day that thing came out and i buyd it with many $$$. Until now, that damn thing was really not usable as mediacenter because of laggy video, desynced audio etc.
Uhm, in short, i appreciate the work that made this mplayer patch possible. Nice work guys! :-)
I like it! But pls fix the exit bug fast :-)

Since i'm so happy, but had many problems setting the whole thing up (could not get it to work with yellowdog), i made an inital wiki: http://wiki.ps2dev.org/ps3:mediacenter
panu
Posts: 7
Joined: Tue Nov 20, 2007 4:37 am

Post by panu »

I don't know sh*t about anything, but it seems that spu context is detroyed twice. Once when pthrehad running spu_context_run is exiting and second time yuvscsc_destroy-function at yuv2argb_scaler.c.
mickfromperth
Posts: 12
Joined: Thu Nov 22, 2007 12:37 am

TIP

Post by mickfromperth »

One TIP I needed to find an error for the following mplayer output:
---
"spu_create(): No such file or directory"
---

Resolution was to follow this URL:
http://209.85.173.104/search?q=cache:C9 ... =firefox-a
---
$ mkdir /spu
$ echo "none /spu spufs defaults 0 0" >> /etc/fstab
$ mount -a
---

To get a working spufs once you have libspe2.

Mick
User avatar
boxbuilder
Posts: 15
Joined: Sat Nov 17, 2007 3:13 pm

Post by boxbuilder »

Nice work,

With mplayer -vo, I can play a 720p wmv vid (ARGB -> YV12) without skipping, but my video shows up distorted, and covered with green. Also the program robs my framebuffer (I have to give reboot command) If you think this is a bug issue, I would be glad to provide the console info (doesn't look very interesting, no errors).

(I use a YPbPr -> RGBHV box, and video mode 131)

-cabe
User avatar
keepkool
Posts: 59
Joined: Thu Oct 11, 2007 9:20 am
Location: Portugal

Post by keepkool »

my current compiled/patched mversion plays divx, without upscaling and without subtitles and as the following drivers:

Code: Select all

[root@localhost _mp]# mplayer -vo help
MPlayer dev-SVN-r25539-4.1.2 (C) 2000-2007 MPlayer Team
AltiVec found
CPU: PowerPC
Available video output drivers:
        fbdev   Framebuffer Device
        fbdev2  Framebuffer Device
        cvidix  console VIDIX
        null    Null video output
        mpegpes Mpeg-PES to DVB card
        yuv4mpeg        yuv4mpeg output for mjpegtools
        tga     Targa output
        pnm     PPM/PGM/PGMYUV file
        md5sum  md5sum of each frame
after some trys to use mplayer -vo xv video.avi without success :(
because of the ERROR initializing the selected video_out (-vo) device

Code: Select all

mplayer -vo xv video.avi
...
Playing /srv/samba/video.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  576x320  12bpp  23.976 fps  860.7 kbps (105.1 kbyte/s)
Clip info:
 Software: VirtualDubMod 1.5.10.2 (build 2540/release)
Error opening/initializing the selected video_out (-vo) device.
==========================================================================
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)
==========================================================================
I try it again today, with the following steps (like in the past)

Code: Select all

# svn co svn://svn.mplayerhq.hu/mplayer/trunk mplayer 
# svn co svn://svn.ps2dev.org/ps3ware/trunk/mplayer-vo mplayer-vo 
# cd mplayer 
# patch -p0 < ../mplayer-vo/latest.patch 
# ./configure; 
# make && make install
but for my surprise, now I cant even compile it
because of the following error

Code: Select all

make
...
LE64_SOURCE -DHAVE_CONFIG_H    -c -o demuxer.o demuxer.c
demuxer.c&#58; In function 'free_sh_sub'&#58;
demuxer.c&#58;247&#58; error&#58; 'sh_sub_t' has no member named 'ass_track'
demuxer.c&#58;247&#58; warning&#58; implicit declaration of function 'ass_free_track'
demuxer.c&#58;247&#58; error&#58; 'sh_sub_t' has no member named 'ass_track'
make&#91;1&#93;&#58; *** &#91;demuxer.o&#93; Error 1
make&#91;1&#93;&#58; Leaving directory `/usr/src/_mp/mplayer/libmpdemux'
make&#58; *** &#91;libmpdemux/libmpdemux.a&#93; Error 2
it seems to be the current svn version that I checkout today

Code: Select all

Checked out external at revision 11518.
Checked out revision 25702.
Anybody can give me a clue, of how can I compile mplayer with vo

belive me I read many related posts here in this forum,
included this one, but I cant get it to work
if someone as spare time to help me, I really be very happy

PS-how can I checkout version rev. 24714, maybe this works

Thanks in advance
User avatar
keepkool
Posts: 59
Joined: Thu Oct 11, 2007 9:20 am
Location: Portugal

Post by keepkool »

keepkool wrote:PS-how can I checkout version rev. 24714, maybe this works
svn co svn://svn.mplayerhq.hu/mplayer/trunk mplayer -r 24714
User avatar
keepkool
Posts: 59
Joined: Thu Oct 11, 2007 9:20 am
Location: Portugal

Post by keepkool »

after checkout and patch mplayer revision 24714

./configure
make

and BINGO a new error!!!!!
i m a lucky guy ;)

Code: Select all

...
RCE -DHAVE_CONFIG_H   -c -o rgb2rgb.o rgb2rgb.c
In file included from ../libavutil/common.h&#58;61,
                 from ../libavutil/avutil.h&#58;40,
                 from swscale.h&#58;30,
                 from rgb2rgb.c&#58;31&#58;
../libavutil/internal.h&#58;275&#58; error&#58; static declaration of 'llrint' follows non-static declaration
../libavutil/internal.h&#58;296&#58; error&#58; static declaration of 'round' follows non-static declaration
../libavutil/internal.h&#58;303&#58; error&#58; static declaration of 'roundf' follows non-static declaration
make&#91;1&#93;&#58; *** &#91;rgb2rgb.o&#93; Error 1
make&#91;1&#93;&#58; Leaving directory `/usr/src/_mc_24714/mplayer/libswscale'
make&#58; *** &#91;libswscale/libswscale.a&#93; Error 2
maybe someone here can give a tip to skip this new problem!
User avatar
keepkool
Posts: 59
Joined: Thu Oct 11, 2007 9:20 am
Location: Portugal

Post by keepkool »

Just to say :
Dont need to repply my questions anymore, problem solved...
anthraxx
Posts: 27
Joined: Sun Nov 11, 2007 12:14 am

Post by anthraxx »

I've got the exact same error's as keepkool if i check out revision 24714 and try to compile, so dont do it.

But, i've another problem:
I have gentoo with upgraded kernel (Linux localhost 2.6.23-ps3 #1).
I've checkout'ed and recompiled spumedialib, libps3fb, mplayer with mplayer-vo patch today (21. jan).
After pressing q or esc in mplayer, the console freezes, last message i see is "[vo_ps3] cleanup_spu_medialib: Destroyed spu-medialib's scaler/converter".
The much friendlier "[vo_ps3] uninit: Cleaned up FrameBuffer and re-enabled console." is not shown.
Reseting with ps3videomode does not work (still frozen).
Playing another movie with mplayer (started over ssh) does work.

sample output:
localhost ~ # /opt/mplayer-vo/bin/mplayer -vo ps3 SENCORED.avi
MPlayer dev-SVN-r25827-4.1.2 (C) 2000-2008 MPlayer Team
AltiVec found
CPU: PowerPC

Playing /mnt/firestarter/incoming/new/a.avi
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [XVID] 640x352 12bpp 23.976 fps 839.8 kbps (102.5 kbyte/s)
Clip info:
Software: VirtualDubMod 1.5.10.2 (build 2540/release)
ps3 suboptions:
debug:0
noscale:0
noadj:0
snapshot:0
[vo_ps3] init_framebuffer: Initialized framebuffer & disabled console
FB is 1280x720 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 OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16be (2 bytes per sample)
Starting playback...
VDec: vo config request - 640 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.82:1 - prescaling to correct movie aspect.
VO: [ps3] 640x352 => 640x352 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=640x352, suggested dst=640x352, 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=337920, src_stride[]={640,320,320}, src_p_siz[]={225280,56320,56320}
maxWxmaxH=1280x720, offset=0
[vo_ps3] clear: Clearing buffers
[vo_ps3] init_framebuffer: Initialized framebuffer & disabled console
FB is 1280x720 at offset 0x0
[vo_ps3] setup_scale: Using dest WxH:640x352
[vo_ps3] fix_scale: Adjusted image size to WxH:640x352
[vo_ps3] setup_screen: After mplayer aspect changes:
vo_dx/dy=320x184, vo_screenwidth/height=1280x720, offset=235840
desired image size=640x352
powerpc64 not detected
manipulating adress space
[vo_ps3] init_spu_medialib: Initialized spu-medialib's spu_yuv2argb_scaler with:
640x352=>640x352, offset:235840, maxW:1280
New_Face failed. Maybe the font path is wrong. 1 ??% ??% ??,?% 0 0
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
spu_yuv2argb_scaler: Starting Up
spu_yuv2argb_scaler: SRC width 640,DST width 640
spu_yuv2argb_scaler: SRC height 352,DST height 352
spu_yuv2argb_scaler: DST offset 235840
spu_yuv2argb_scaler: No scaling proceeding with direct csc
spu_yuv2argb_scaler: Initiation completed
exit from SPU21.1 A-V: 0.001 ct: 0.006 508/508 6% 3% 1.6% 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:4048
draw_image calls:484
flip_page calls:484
get_image calls:302
Played src /mnt/firestarter/incoming/new/a.avi (640x352) at 640x352

Exiting... (Quit)


any ideas?
anthraxx
Posts: 27
Joined: Sun Nov 11, 2007 12:14 am

Post by anthraxx »

i forgot: i'm in 32ul...
anthraxx
Posts: 27
Joined: Sun Nov 11, 2007 12:14 am

Post by anthraxx »

i did some leet printf() style debugging, and solved the problem by deleting the two calls to ioctl:
//ioctl(cd, KDSETMODE, KD_GRAPHICS);
Post Reply