forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Installing the Mplayer vo PS3
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> spu-medialib
View previous topic :: View next topic  
Author Message
fusuke



Joined: 08 Oct 2007
Posts: 19
Location: Vancouver, Canada

PostPosted: Fri Oct 12, 2007 6:09 am    Post subject: flickering Reply with quote

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?
Back to top
View user's profile Send private message
ldesnogu



Joined: 17 Apr 2004
Posts: 95

PostPosted: Fri Oct 12, 2007 6:57 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
unsolo



Joined: 16 Apr 2007
Posts: 155
Location: OSLO Norway

PostPosted: Fri Oct 12, 2007 7:16 am    Post subject: Reply with quote

@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.
Back to top
View user's profile Send private message
fusuke



Joined: 08 Oct 2007
Posts: 19
Location: Vancouver, Canada

PostPosted: Fri Oct 12, 2007 4:33 pm    Post subject: further comments Reply with quote

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.
Back to top
View user's profile Send private message
unsolo



Joined: 16 Apr 2007
Posts: 155
Location: OSLO Norway

PostPosted: Sat Oct 13, 2007 1:52 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
toxicer



Joined: 18 Apr 2007
Posts: 17

PostPosted: Wed Oct 24, 2007 7:58 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
unsolo



Joined: 16 Apr 2007
Posts: 155
Location: OSLO Norway

PostPosted: Thu Oct 25, 2007 1:39 pm    Post subject: Reply with quote

Seems it doesn't want to start up the spe..
is your spufs in order in fstab ?
_________________
Don't do it alone.
Back to top
View user's profile Send private message
toxicer



Joined: 18 Apr 2007
Posts: 17

PostPosted: Fri Oct 26, 2007 3:47 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
toxicer



Joined: 18 Apr 2007
Posts: 17

PostPosted: Fri Oct 26, 2007 3:52 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
toxicer



Joined: 18 Apr 2007
Posts: 17

PostPosted: Fri Oct 26, 2007 4:02 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
toxicer



Joined: 18 Apr 2007
Posts: 17

PostPosted: Fri Oct 26, 2007 4:22 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
unsolo



Joined: 16 Apr 2007
Posts: 155
Location: OSLO Norway

PostPosted: Fri Oct 26, 2007 5:37 am    Post subject: Reply with quote

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

none /spu spufs defaults 0 0
_________________
Don't do it alone.
Back to top
View user's profile Send private message
toxicer



Joined: 18 Apr 2007
Posts: 17

PostPosted: Wed Oct 31, 2007 2:00 am    Post subject: Reply with quote

@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?
Back to top
View user's profile Send private message
unsolo



Joined: 16 Apr 2007
Posts: 155
Location: OSLO Norway

PostPosted: Wed Oct 31, 2007 7:37 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
toxicer



Joined: 18 Apr 2007
Posts: 17

PostPosted: Thu Nov 01, 2007 12:04 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
unsolo



Joined: 16 Apr 2007
Posts: 155
Location: OSLO Norway

PostPosted: Thu Nov 01, 2007 12:20 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
mksm



Joined: 01 Nov 2007
Posts: 3

PostPosted: Thu Nov 01, 2007 11:11 am    Post subject: Reply with quote

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:
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
Back to top
View user's profile Send private message
toxicer



Joined: 18 Apr 2007
Posts: 17

PostPosted: Fri Nov 02, 2007 1:03 am    Post subject: Reply with quote

@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?
Back to top
View user's profile Send private message
unsolo



Joined: 16 Apr 2007
Posts: 155
Location: OSLO Norway

PostPosted: Fri Nov 02, 2007 1:48 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
anthraxx



Joined: 11 Nov 2007
Posts: 27

PostPosted: Mon Nov 12, 2007 11:48 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
panu



Joined: 20 Nov 2007
Posts: 7

PostPosted: Wed Nov 21, 2007 1:42 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
mickfromperth



Joined: 22 Nov 2007
Posts: 12

PostPosted: Mon Nov 26, 2007 10:48 pm    Post subject: TIP Reply with quote

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:C9iHN9XaoXYJ:blaagg.tadkom.net/2007/08/+%22spu_create():+No+such+file+or+directory%22&hl=en&ct=clnk&cd=1&gl=au&client=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
Back to top
View user's profile Send private message
boxbuilder



Joined: 17 Nov 2007
Posts: 15

PostPosted: Thu Jan 03, 2008 11:18 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
keepkool



Joined: 11 Oct 2007
Posts: 59
Location: Portugal

PostPosted: Sun Jan 13, 2008 10:12 am    Post subject: Reply with quote

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

Code:
[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:
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:
# 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:
make
...
LE64_SOURCE -DHAVE_CONFIG_H    -c -o demuxer.o demuxer.c
demuxer.c: In function 'free_sh_sub':
demuxer.c:247: error: 'sh_sub_t' has no member named 'ass_track'
demuxer.c:247: warning: implicit declaration of function 'ass_free_track'
demuxer.c:247: error: 'sh_sub_t' has no member named 'ass_track'
make[1]: *** [demuxer.o] Error 1
make[1]: Leaving directory `/usr/src/_mp/mplayer/libmpdemux'
make: *** [libmpdemux/libmpdemux.a] Error 2


it seems to be the current svn version that I checkout today
Code:
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
Back to top
View user's profile Send private message
keepkool



Joined: 11 Oct 2007
Posts: 59
Location: Portugal

PostPosted: Mon Jan 14, 2008 3:57 am    Post subject: Reply with quote

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

svn co svn://svn.mplayerhq.hu/mplayer/trunk mplayer -r 24714
Back to top
View user's profile Send private message
keepkool



Joined: 11 Oct 2007
Posts: 59
Location: Portugal

PostPosted: Mon Jan 14, 2008 6:42 am    Post subject: Reply with quote

after checkout and patch mplayer revision 24714

./configure
make

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

Code:
...
RCE -DHAVE_CONFIG_H   -c -o rgb2rgb.o rgb2rgb.c
In file included from ../libavutil/common.h:61,
                 from ../libavutil/avutil.h:40,
                 from swscale.h:30,
                 from rgb2rgb.c:31:
../libavutil/internal.h:275: error: static declaration of 'llrint' follows non-static declaration
../libavutil/internal.h:296: error: static declaration of 'round' follows non-static declaration
../libavutil/internal.h:303: error: static declaration of 'roundf' follows non-static declaration
make[1]: *** [rgb2rgb.o] Error 1
make[1]: Leaving directory `/usr/src/_mc_24714/mplayer/libswscale'
make: *** [libswscale/libswscale.a] Error 2


maybe someone here can give a tip to skip this new problem!
Back to top
View user's profile Send private message
keepkool



Joined: 11 Oct 2007
Posts: 59
Location: Portugal

PostPosted: Tue Jan 15, 2008 8:43 pm    Post subject: Reply with quote

Just to say :
Dont need to repply my questions anymore, problem solved...
Back to top
View user's profile Send private message
anthraxx



Joined: 11 Nov 2007
Posts: 27

PostPosted: Tue Jan 22, 2008 12:49 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
anthraxx



Joined: 11 Nov 2007
Posts: 27

PostPosted: Tue Jan 22, 2008 1:16 am    Post subject: Reply with quote

i forgot: i'm in 32ul...
Back to top
View user's profile Send private message
anthraxx



Joined: 11 Nov 2007
Posts: 27

PostPosted: Tue Jan 22, 2008 3:59 am    Post subject: Reply with quote

i did some leet printf() style debugging, and solved the problem by deleting the two calls to ioctl:
//ioctl(cd, KDSETMODE, KD_GRAPHICS);
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> spu-medialib All times are GMT + 10 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
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