Author Topic: xine-lib and video playback issues?  (Read 9552 times)

phenigma

  • wants to work for LinuxMCE
  • **
  • Posts: 920
    • View Profile
xine-lib and video playback issues?
« on: March 05, 2011, 02:15:10 pm »
I have a lot of media in a lot of different formats and I've always had trouble getting lmce to play every file I have.

Recently, with 1004, testing I noticed that VDR was using xine-lib 1.2 (xine unstable branch), rather than xine-lib 1.1.x (stable branch).  I figure if it's good enough for VDR then it's good enough for me.  So I've built libxine2 (xine-lib 1.2) and built Xine_Player against it.  Although from the unstable branch of xine-lib it has been very stable for some time and has been very stable running for me.  So, I thought I would offer these packages for others to try out.  For the best results you should also have the 260 (or newer) version of the nvidia drivers.


Installation Instructions for 0810:

Get the nvidia driver v290.10:
Code: [Select]
sudo su -
wget http://us.download.nvidia.com/XFree86/Linux-x86/290.10/NVIDIA-Linux-x86-290.10.run
chmod +x ./NVIDIA-Linux-x86-290.10.run
./NVIDIA-Linux-x86-290.10.run

Grab libxine2 and xine_player and the libav dependecies.  Open the following links in a browser to download:
http://www.4shared.com/archive/rgHapnYc/0810libxine2_xineplayer-201202.html
http://www.4shared.com/archive/pGUK7v7n/libxine2-deps-20120223tar.html

Get the nvidia driver v260.19.36:
---------
sudo su -
wget http://us.download.nvidia.com/XFree86/Linux-x86/260.19.36/NVIDIA-Linux-x86-260.19.36.run
chmod +x ./NVIDIA-Linux-x86-260.19.36.run
./NVIDIA-Linux-x86-260.19.36.run
Grab libxine2 and xine_player.  Open one of the following links in a browser to download:
http://www.4shared.com/file/Stigogow/0810libxine2_xineplayertar.html


Untar the archives to extract the .deb files
Install the libav dependencies & libxine 2, this may report missing dependencies:
Code: [Select]
tar xvf libxine2-deps-20120223.tar.gz
tar xvf 0810xineplayer-libxine2-20120223.tar.gz
dpkg -i *.deb

Install the dependencies and finish installing libxine2:
Code: [Select]
apt-get -f install

YMMV, it works for me.  With the 260 290 driver and libxine2 all video playback issues I've had are fixed.

I'm interested to know if it fixes video playback issues you may be having and if it breaks anything.

J.
« Last Edit: February 23, 2012, 11:48:24 pm by phenigma »

posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2846
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: xine-lib and video playback issues?
« Reply #1 on: March 05, 2011, 04:13:56 pm »
phenigma,

thanks for your efforts. 1004 is not needed as we already do use 1.2 in our test builds.

joerod

  • Veteran
  • ***
  • Posts: 142
    • View Profile
Re: xine-lib and video playback issues?
« Reply #2 on: March 05, 2011, 07:16:59 pm »
not sure if I'm the only one but the link did not exactly work... I took me to the upload site; but after waiting the 60 seconds to download; I got "Page cannot be displayed".  I really want to apply this to see if it fixes some playback issues I have, but I can't download it...
« Last Edit: March 06, 2011, 02:55:21 pm by joerod »

sambuca

  • Guru
  • ****
  • Posts: 439
    • View Profile
Re: xine-lib and video playback issues?
« Reply #3 on: March 05, 2011, 08:10:24 pm »
+1 thanks

I haven't tried it, but I know many playback issues most likely will be fixed with a newer xine version.

I'm not sure if we should try to add this to 810, but if we are, we need more of a step-by-step procedure to build it (if there are any special steps, compared to 1.1), so we can include it in our build scripts, rather than just a deb.
Imho, we need to consider what bugs this would fix in relation to how much work it is to switch, and what possible new issues we might run into.

best regards,
sambuca

phenigma

  • wants to work for LinuxMCE
  • **
  • Posts: 920
    • View Profile
Re: xine-lib and video playback issues?
« Reply #4 on: March 06, 2011, 01:23:02 am »
phenigma,

thanks for your efforts. 1004 is not needed as we already do use 1.2 in our test builds.

Thanks posde, hadn't looked that deep at it, I knew vdr was... great to hear!

J.

btw, the cd2-packages for 1004 builder was out of date (0810 leftovers) when I put the 1004 builder together last week.  Do you have an updated version?
« Last Edit: March 06, 2011, 01:39:49 am by phenigma »

phenigma

  • wants to work for LinuxMCE
  • **
  • Posts: 920
    • View Profile
Re: xine-lib and video playback issues?
« Reply #5 on: March 06, 2011, 01:37:56 am »
+1 thanks

I haven't tried it, but I know many playback issues most likely will be fixed with a newer xine version.

Let me know if you do.  :)  posde says this is baked in for 1004 but not on 0810.

I'm not sure if we should try to add this to 810, but if we are, we need more of a step-by-step procedure to build it (if there are any special steps, compared to 1.1), so we can include it in our build scripts, rather than just a deb.
Imho, we need to consider what bugs this would fix in relation to how much work it is to switch, and what possible new issues we might run into.

Of course.  I figured it'd be nice for people having issues to try rather than to bake it all in before testing.  I'll be using libxine2 regardless, it fixes too many video playback issues for me not to (WAF is way up).  Have fun!

J.

phenigma

  • wants to work for LinuxMCE
  • **
  • Posts: 920
    • View Profile
Re: xine-lib and video playback issues?
« Reply #6 on: March 07, 2011, 03:17:39 am »
not sure if I'm the only one but the link did not exactly work... I took me to the upload site; but after waiting the 60 seconds to download; I got "Page cannot be displayed".  I really want to apply this to see if it fixes some playback issues I have, but I can't download it...

I've added a couple of different download links to the first post, if one isn't working try another.  :)  Let me know how it goes.

J.

RayBe

  • Guru
  • ****
  • Posts: 271
    • View Profile
Re: xine-lib and video playback issues?
« Reply #7 on: March 07, 2011, 11:11:11 pm »
Phenigma,

Will this also resolve the following issue that i am having with playback of .mkv files?
When playing a dvd-rip (.dvd) i can select the subtitle in a orbiter,
when playing the same dvd ripped as .mkv i can not choose the subtitle from a orbiter.

br,
Raymond
When you were born, you were crying and everybody else was laughing.
Live your life so when you die, you are laughing and everybody else is crying.

phenigma

  • wants to work for LinuxMCE
  • **
  • Posts: 920
    • View Profile
Re: xine-lib and video playback issues?
« Reply #8 on: March 08, 2011, 03:32:33 am »
Hmm, I don't know... but you could always try.  I don't have any .mkv files (or anything other than .dvd) with subtitles to try.  If you try it let me know what you find.

J.

joerod

  • Veteran
  • ***
  • Posts: 142
    • View Profile
Re: xine-lib and video playback issues?
« Reply #9 on: March 09, 2011, 05:01:04 am »
I've had a lot of problems playing different kinds of mkv files ...

http://forum.linuxmce.org/index.php?topic=11161.0

and this fixed every single problem, thanks phenigma

phenigma

  • wants to work for LinuxMCE
  • **
  • Posts: 920
    • View Profile
Re: xine-lib and video playback issues?
« Reply #10 on: March 09, 2011, 09:32:34 pm »
You're very welcome.

This is baked in to 1004 already so there should be no issues with it once it reaches a stable state...  until then these changes have fixed every one of my media playback issues as well.  Enjoy!

J.

sambuca

  • Guru
  • ****
  • Posts: 439
    • View Profile
Re: xine-lib and video playback issues?
« Reply #11 on: March 10, 2011, 02:49:10 pm »
Hi

It would be helpful if someone could check if this fixes any of the tickets listed here:
http://svn.linuxmce.org/trac.cgi/ticket/895
http://svn.linuxmce.org/trac.cgi/ticket/817


best regards,
sambuca

purps

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1371
  • If it ain't broke, tweak it
    • View Profile
Re: xine-lib and video playback issues?
« Reply #12 on: March 10, 2011, 03:03:54 pm »
First question I had when I saw this thread was going to be regarding VDPAU; are the instructions in the original post (refering to the nVidia driver) VDPAU-friendly? Should the MD be up and running with VDPAU first before doing this, or should VDPAU be selected after?

Happy to test when I get an MD up and running...

Cheers,
Matt.
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: http://wiki.linuxmce.org/index.php/User:Purps

phenigma

  • wants to work for LinuxMCE
  • **
  • Posts: 920
    • View Profile
Re: xine-lib and video playback issues?
« Reply #13 on: March 11, 2011, 02:33:17 am »
First question I had when I saw this thread was going to be regarding VDPAU; are the instructions in the original post (refering to the nVidia driver) VDPAU-friendly? Should the MD be up and running with VDPAU first before doing this, or should VDPAU be selected after?

I am using VDPAU and that is what the majority of my testing is based around, I also have an Asus EeeBox B202 with intel graphics that does not see benefits of VDPAU but I have installed this on.  It doesn't matter if you have vdpau selected ahead of time or after installing the items I indicate.  The 'vdpau' option in webadmin is only used when Xine_Player is launched on Router Load or Reload.  It has no effect whatsoever on anything else in an MD or Core.  There is never a need to 'rebuild' an MD or re-install a Core.  Select 'vdpau' before or after performing the suggested activities and it'll work either way.  You need to 'Quick Reload Router' for changes with vdpau selection and Xine_Player to take effect.

J.

phenigma

  • wants to work for LinuxMCE
  • **
  • Posts: 920
    • View Profile
Re: xine-lib and video playback issues?
« Reply #14 on: March 11, 2011, 04:03:53 am »
It would be helpful if someone could check if this fixes any of the tickets listed here:
http://svn.linuxmce.org/trac.cgi/ticket/895

This one is fixed.  No problems pausing and resuming either sample video as many times as I could, no crashes.  I have a few dozen movies (mkv and avi) that do not play properly and non of my recorded tv (mpeg2) plays at all under 0810.  I havn't submitted bug reports for them but these updates fixed them up.

http://svn.linuxmce.org/trac.cgi/ticket/817

I have nothing with subtitles in .mkv, or any other, format.  If someone has a sample to post, and tells me how they activate their subtitles so I can replicate the issue, I'd be happy to test it!

J.