Author Topic: Xine, x264, VC1 (mkv), and VDPAU  (Read 9193 times)

THEVILLAIN

  • Regular Poster
  • **
  • Posts: 41
    • View Profile
Xine, x264, VC1 (mkv), and VDPAU
« on: April 24, 2010, 07:59:39 pm »
I have xine with x264,VC1 (mkv) support via VDPAU working on the command line.   I can launch with 'DISPLAY=:0 xine -V vdpau -fg --no-logo filename' and it works on the MD.  The MD is set to use VDPAU/auto.   However when I try to launch it with the orbiter it fails with: (xine player log below).    How do I check what the orbiter is using to call xine ?

05      04/23/10 23:52:28.081           Xine_Player::CMD_Play_Media() stopping PSS <0xb6d3ab90>
05      04/23/10 23:52:28.081           Xine_Stream_Factory::GetStream streamID is 0 <0xb6d3ab90>
05      04/23/10 23:52:28.163           I'm unable to initialize m_pXine's 'opengl' video driver. Falling to 'xshm'. <0xb6d3ab90>
05      04/23/10 23:52:28.289           I'm unable to initialize m_pXine's 'auto' audio driver. <0xb6d3ab90>
05      04/23/10 23:52:28.296           Stream audio/video initialization failed <0xb6d3ab90>
05      04/23/10 23:52:28.296           Cannot create new stream with ID=1052 <0xb6d3ab90>
05      04/23/10 23:52:28.297           Xine_Player::CMD_Play_Media() stream is NULL, aborting - init failure? <0xb6d3ab90>
05      04/23/10 23:52:28.297           Xine_Player::CMD_Stop_Media() with corresponding stream id 1052 (nil). <0xb6d3ab90>
05      04/23/10 23:52:28.297           Xine_Player::CMD_Stop_Media() stream is NULL, aborting - init failure? <0xb6d3ab90>
05      04/24/10 0:18:30.974            Going to rotate logs... <0xb6d3ab90>


 Available xine's plugins:
   -Audio output:
     alsa, oss, esd, none, file.

   -Video output:
     vdpau, aadxr3, dxr3, xv, raw, SyncFB, opengl, aa, xshm, caca, none, sdl,
     vidixfb, vidix, fb.

   -Demuxer:
     anx, avi, slave, asf, yuv4mpeg2, pva, fli, nsv, mng, iff, matroska, real,
     ogg, quicktime, aud, aiff, flac, nsf, realaudio, snd, tta, voc, vox, wve,
     idcin, ipmovie, vqa, wc3movie, roq, str, film, smjpeg, fourxm, vmd,
     flashvideo, mpeg_block, mpeg_pes, mpeg-ts, mpeg, dts, ac3, wav, cdda,
     rawdv, mpc, yuv_frames, mp3, shn, sputext, elem, vc1es, aac.

   -Input:
     FILE, pnm, http, DVB, DVD, CD, mms, VCD, v4l_radio, v4l_tv, rtsp, VCDO,
     tcp, pvr, stdin, rtp.

   -Subpicture:
     dxr3-spudec, spudec, spucmml, spucc, sputext, spudvb.

   -Post processing:
     unsharp, pp, noise, expand, fill, invert, eq, denoise3d, boxblur, tvtime,
     goom, upmix, upmix_mono, stretch, volnorm, switch, oscope, fftscope,
     fftgraph, eq2, mosaico.

   -Audio decoder:
     gsm610, mad, ffmpegaudio, realadec, mpc, vorbis, nsf, a/52, dvaudio, dts,
     faad, qta, pcm, win32a.

   -Video decoder:
     dxr3-mpeg2, vdpau_vc1, vdpau_mpeg12, vdpau_h264, mpeg2, realvdec,
     ffmpegvideo, theora, win32v, bitplane, yuv, qtv, rgb, ffmpeg-wmv9,
     ffmpeg-wmv8.
« Last Edit: April 24, 2010, 09:19:29 pm by THEVILLAIN »

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Xine, x264, VC1 (mkv), and VDPAU
« Reply #1 on: April 27, 2010, 07:48:47 pm »
I have exactly the same problem on my 0810 installation. System is uptodate. Codecs are installed. 
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5479
  • DOES work for LinuxMCE.
    • View Profile
Re: Xine, x264, VC1 (mkv), and VDPAU
« Reply #2 on: April 28, 2010, 05:55:21 am »
xine-ui is not used. Xine_Player is a DCE device that links directly to libxine.

Please check /etc/pluto/xine.conf to be sure that it is writing out the configuration file correctly.

You should also check wizard > media directors, and check the Video Accelleration dropdown, to make sure it is set to auto.

Failing this, you should load glxinfo, and look at the /var/log/Xorg.0.log file to see that the NVIDIA drivers are being loaded.

-Thom

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Xine, x264, VC1 (mkv), and VDPAU
« Reply #3 on: April 28, 2010, 09:25:40 am »
Thanks a lot, Tom, for your informative answer. Will try to follow by your recommendations tonight and see what happens.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Xine, x264, VC1 (mkv), and VDPAU
« Reply #4 on: April 29, 2010, 11:53:10 pm »
Well, I set hardware accelerator to 'auto' for the MD. It didn't help. My xine.conf is here and glxinfo output is here. Will be very appreciated if somebody look at them and check if they are correct.

Thank in advance.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5479
  • DOES work for LinuxMCE.
    • View Profile
Re: Xine, x264, VC1 (mkv), and VDPAU
« Reply #5 on: April 30, 2010, 12:11:39 am »
your video driver is set to xv in the xine config. This is wrong. You have something set incorrectly in your media director's video configuration.

-Thom

phenigma

  • wants to work for LinuxMCE
  • **
  • Posts: 924
    • View Profile
Re: Xine, x264, VC1 (mkv), and VDPAU
« Reply #6 on: April 30, 2010, 01:09:07 am »
The driver is set to xv in my /etc/pluto/xine.conf file but VDPAU is working just fine with hardware acceleration set to VDPAU in the webadmin here.  HD content is playing on my ION with 10% cpu usage.  I believe that video settings in /etc/pluto/xine.conf are ignored now.

Code: [Select]
Changeset 22398
Timestamp:
    10/26/09 15:55:32 (6 months ago)
Author:
    pos
Message:

    Refs #383 - Always use web settings for video.driver used by xine

J.

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Xine, x264, VC1 (mkv), and VDPAU
« Reply #7 on: April 30, 2010, 09:03:17 am »
I run vdpauinfo and it didn't give me any info about VDPAU. It seems that there is some problem with nvidia driver on my installation. At the beginning I downloaded and installed the driver manually. But now it's done using package. So, possible there is some conflict. I think the easiest way is make a fresh installation 0810.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

phenigma

  • wants to work for LinuxMCE
  • **
  • Posts: 924
    • View Profile
Re: Xine, x264, VC1 (mkv), and VDPAU
« Reply #8 on: May 01, 2010, 01:17:23 am »
Are you running an 8300 GS?  The 8300 supports vdpau (except certain h264 streams) but the 8300 GS does not support vdpau.

J.

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Xine, x264, VC1 (mkv), and VDPAU
« Reply #9 on: May 01, 2010, 12:51:11 pm »
Are you running an 8300 GS?  The 8300 supports vdpau (except certain h264 streams) but the 8300 GS does not support vdpau.

J.

According to lspci out put I have 8300 (integrated):
Code: [Select]
VGA compatible controller: nVidia Corporation GeForce 8300 (rev a2)Unfortunately I cannot find any other information in the spec of my M3N78-EM. But where you find information that 8300GS doesn't support VDPAU? I thought that all cards series 8XXX and 9XXX should support it.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

phenigma

  • wants to work for LinuxMCE
  • **
  • Posts: 924
    • View Profile
Re: Xine, x264, VC1 (mkv), and VDPAU
« Reply #10 on: May 02, 2010, 01:50:25 am »
A GeForce 8300 supports VDPAU, but a GeForce 8300 GS does not.  See: http://us.download.nvidia.com/XFree86/Linux-x86/195.36.15/README/supportedchips.html.  

Even though the GeForce 8300 supports VDPAU there are different feature sets that different cards support, see http://us.download.nvidia.com/XFree86/Linux-x86/195.36.15/README/vdpausupport.html the 8300 supports feature set B with the exception of certain H.264 streams.

J.
« Last Edit: May 02, 2010, 02:00:19 am by phenigma »

THEVILLAIN

  • Regular Poster
  • **
  • Posts: 41
    • View Profile
Re: Xine, x264, VC1 (mkv), and VDPAU
« Reply #11 on: May 02, 2010, 06:06:40 pm »
Turns out my problem was xine_player was using /usr/local/lib and my source compiled xine was using /usr/src.  Thanks lsof | grep xine.
I removed the files in/usr/local/lib/xine and rebuilt the library cache with ldconfig.  Now xine_player is using the correct plugins.

lspci
01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400 GS (rev a1)


Somehow during my troubleshooting /usr/bin/xine lost the ability to play VC1 files through vdpau.  Xine_player log below.


05      05/01/10 15:25:26.470           Xine_Player::EVENT_Playback_Started(streamID=1003) <= AV info <0xae301b90>
05      05/01/10 15:25:36.463           [ID: 1003]  CHAPTER:0 POS:0 TITLE:0 SUBTITLE:-1 AUDIO:-1 TOTAL:0 (seek 0) t.c. ctr 0 freq 1, <0xad0feb90>
05      05/01/10 15:25:36.464           Socket::SendData sendbytes==0 <0xb6d81b90>
05      05/01/10 15:25:36.464           Read media A/V information: []/[] => []/[] <0xb6d81b90>
05      05/01/10 15:25:36.464           Xine_Player::EVENT_Playback_Started(streamID=1003) <0xb6d81b90>
05      05/01/10 15:25:36.464           Xine_Player::CMD_Play_Media() ended for filename: filenaame.mkv with stream 0x9306cc8. <0xb6d81b90>
05      05/01/10 15:25:36.465           Socket::ReceiveData 0x924b4f0 failed, bytes left 0 start: 1380000 1: 0 1b: 0 2: 0 2b: 0 m_Socket: 6 Command_Impl1 Dev #58 <0xb6d81b90>
05      05/01/10 15:25:36.465           Socket::ReceiveString2 ReceiveData failed m_Socket: -1 Command_Impl1 Dev #58 <0xb6d81b90>
01      05/01/10 15:25:36.465           Receive string failed in HandleRequestSocket 18:ReceiveData failed Command_Impl1 Dev #58 <0xb6d81b90>
05      05/01/10 15:25:36.465           Dumping 1 locks <0xb6d81b90>
05      05/01/10 15:25:36.465           finished check for exceptions <0xb6d81b90>
05      05/01/10 15:25:36.465           OL: (0x924b63c) (>125) MessageQueue Command_Impl.cpp l:822 time: 6:00:00p (1272745536 s) thread: 3076008848 Rel: Y Got: Y <0xb6d81b90>
05      05/01/10 15:25:36.466           Destroying all active streams <0xb76036c0>
05      05/01/10 15:25:36.466           Xine_Player::EVENT_Playback_Completed(streamID=1003) <0xb76036c0>
05      05/01/10 15:25:36.534           TCPIP: Closing connection to -1 (m_pNotificationSocket) 0x9306e90 m_Socket: -1 <0xb10feb90>
05      05/01/10 15:25:36.564           XineStreamEventListener called on non-initialized stream - aborting command <0xae301b90>
05      05/01/10 15:25:36.973           Destroyed stream with ID=1003 <0xb76036c0>
05      05/01/10 15:25:37.094           Dropping all sockets... <0xb76036c0>
05      05/01/10 15:25:37.113           TCPIP: Closing connection to -1 (m_pNotificationSocket) 0x9309018 m_Socket: -1 <0xadb00b90>


When I run xine manually on the command line, I get:
load_plugins: probing demux 'matroska'
xine: found demuxer plugin: matroska demux plugin
audio discontinuity #1, type is 0, disc_off 0
waiting for in_discontinuity update #1
video discontinuity #1, type is 0, disc_off 0
vpts adjusted with prebuffer to 47755
demux_matroska: Track 1, V_MPEG4/ISO/AVC eng
demux_matroska: Track 2, A_DTS eng
demux_matroska: Track 3, A_VORBIS eng
load_plugins: plugin vdpau_h264 will be used for video streamtype 4d.
done parsing extradata
load_plugins: plugin dts will be used for audio streamtype 05.
av_offset=0 pts
spu_offset=0 pts
xine_play
vdpau_h264_reset
dpb_free_all, used: 0
done parsing extradata
ao_flush (loop running: 1)
play_internal ...done
assert: demux.c:561: _x_demux_send_data: Assertion `size > 0' failed.[
audio discontinuity #2, type is 3, disc_off 473590350
ebml: read error
waiting for in_discontinuity update #2
video discontinuity #2, type is 3, disc_off 473590350
vpts adjusted with prebuffer to 31961009
input_cache: read calls: 1095407, main input read calls: 218015
input_cache: seek_calls: 230413, main input seek calls: 217855
xine_dispose
shutdown audio
shutdown video
dpb_free_all, used: 0
xine_exit: bye!
Segmentation fault (core dumped)


I looked at the code, if size is zero, there there is a demux problem.  This is the 1.1.16 code branch for xine-vdpau.

Anyone know whats wrong ?

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Xine, x264, VC1 (mkv), and VDPAU
« Reply #12 on: May 04, 2010, 12:27:07 pm »
It looks like GE8300 works incorrectly with the latest nvidia drivers installed in LinuxMCE - http://forum.linuxmce.org/index.php?topic=10062.0.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

THEVILLAIN

  • Regular Poster
  • **
  • Posts: 41
    • View Profile
Re: Xine, x264, VC1 (mkv), and VDPAU
« Reply #13 on: May 10, 2010, 04:32:46 pm »
How can I re-compile just pluto-xine-player from source ?

I don't see anything I the developers sections about just one package.
Assume I have setup a chroot, thats already run all the prepare scripts for a full build.

# ls -l /usr/local/lib/libxine*
-rw-r--r-- 1 root root    901 2010-05-10 08:54 /usr/local/lib/libxine-interface.la
-rwxr-xr-x 1 root root   1021 2010-05-10 08:54 /usr/local/lib/libxine.la
lrwxrwxrwx 1 root root     16 2010-05-10 08:56 /usr/local/lib/libxine.so -> libxine.so.2.0.0
lrwxrwxrwx 1 root root     16 2010-05-10 08:56 /usr/local/lib/libxine.so.2 -> libxine.so.2.0.0
-rwxr-xr-x 1 root root 352092 2010-05-10 08:54 /usr/local/lib/libxine.so.2.0.0




# /usr/pluto/bin/Xine_Player                                                                                                                                                                  
/usr/pluto/bin/Xine_Player: error while loading shared libraries: libxine.so.1: cannot open shared object file: No such file or directory

This soft link doesn't work.
lrwxrwxrwx 1 root root     16 2010-05-10 00:55 /usr/local/lib/libxine.so.1 -> libxine.so.2.0.0

# cat /usr/local/lib/pkgconfig/libxine.pc
prefix=/usr/local
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
libdir=${exec_prefix}/lib
includedir=${prefix}/include

datarootdir=${prefix}/share
datadir=${datarootdir}

xinelibdir=${libdir}/xine
xinedatadir=${datadir}/xine

acflags=-I ${prefix}/share/aclocal
plugindir=${xinelibdir}/plugins/2.0
scriptdir=${xinedatadir}/scripts
localedir=${datadir}/locale
objcflags=  -pipe  -Wall -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute -Werror-implicit-function-declaration -Wstrict-aliasing=2 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wpointer-arith -g

xine_list=${bindir}/xine-list-1.2

Name: libxine
Description: The xine engine library
Version: 1.1.90
Requires.private:
Libs: -L${libdir} -lxine
Libs.private:  -lz -lresolv -lnsl  -pthread  -lrt
Cflags: -I${includedir}
Cflags.private:
« Last Edit: May 10, 2010, 05:31:18 pm by THEVILLAIN »

douglas_fr

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
Re: Xine, x264, VC1 (mkv), and VDPAU
« Reply #14 on: May 17, 2010, 09:39:23 pm »
HI !!
i reinstall linuxmce 810 (version 14/05/10) but xine player don't play hd movie (.m2ts) with vdpau but xine player play hd movie with xv or opengl !!
same thing with mplayer !!
Before hd movie with vdpau ok
there is a solution to solve this problem ?
Thanks