LinuxMCE Forums

General => Users => Topic started by: phenigma on March 05, 2011, 02:15:10 pm

Title: xine-lib and video playback issues?
Post by: phenigma 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.
Title: Re: xine-lib and video playback issues?
Post by: Marie.O 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.
Title: Re: xine-lib and video playback issues?
Post by: joerod 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...
Title: Re: xine-lib and video playback issues?
Post by: sambuca 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
Title: Re: xine-lib and video playback issues?
Post by: phenigma 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?
Title: Re: xine-lib and video playback issues?
Post by: phenigma 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.
Title: Re: xine-lib and video playback issues?
Post by: phenigma 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.
Title: Re: xine-lib and video playback issues?
Post by: RayBe 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
Title: Re: xine-lib and video playback issues?
Post by: phenigma 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.
Title: Re: xine-lib and video playback issues?
Post by: joerod 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 (http://forum.linuxmce.org/index.php?topic=11161.0)

and this fixed every single problem, thanks phenigma
Title: Re: xine-lib and video playback issues?
Post by: phenigma 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.
Title: Re: xine-lib and video playback issues?
Post by: sambuca 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/895)
http://svn.linuxmce.org/trac.cgi/ticket/817 (http://svn.linuxmce.org/trac.cgi/ticket/817)


best regards,
sambuca
Title: Re: xine-lib and video playback issues?
Post by: purps 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.
Title: Re: xine-lib and video playback issues?
Post by: phenigma 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.
Title: Re: xine-lib and video playback issues?
Post by: phenigma 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 (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 (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.
Title: Re: xine-lib and video playback issues?
Post by: sedgington on April 18, 2011, 06:44:57 pm
Seems to work for me as well. Thanks!

BTW, the second step of installing the pluto-xine-player....deb is no longer needed as it appears that the most recent upgrade of 8.10 contains a later version. This step downgraded the file so I did an apt-get install pluto-xine-player which seems to have installed the later version.
One error I got with this step is that "Alsa not installed yet. Can't run alsaconf" is this correct? Should I install alsa and then re-run it? Thanks again.
Title: Re: xine-lib and video playback issues?
Post by: joerod on April 28, 2011, 08:22:33 pm
I recently updated an md with the "updated" version of xine-player via apt-get, but it apprerently does not contain the same fix phenigma implemented; because I again had some videos that would not work.  After reapplying the downloaded .deb everything went back to good... So, I would recommend not updating xine-player via apt-get just install the deb manually...
Title: Re: xine-lib and video playback issues?
Post by: phenigma on May 07, 2011, 06:33:13 pm
Sorry guys.  I've been away from my computers for a while due to health issues.  The pluto-xine-player from the 0810 repository will use the libxine1.  So if it is upgraded from the repo it will revert to old playback capabilities.

The updated .deb for pluto-xine-player in the first post of this thread will use libxine2.  It will say that it is a 'downgrade' when you manually install the .deb.  I highly recommend using libxine2 and the updated pluto-xine-player, they work great for all my media issues.  Because I've been away I'm not sure if there have been updates to pluto-xine-player since I built the package.  If there have been I can build a new one to stay current with the svn tree.  There has been no interest in having these updates added to svn.

Since this, and a few other additions/bug fixes, are things I use as permanent replacments I may look into setting up a small repository somewhere so these can be grabbed automatically with apt.

I am also experimenting with the 1004 libxine2 (again) as I am having issues in 1004 with AAC multi-channel audio content, and some video, which I got working in 0810 with up to date source of libxine2 and by updating the libfaad2 included with libxine2 as it was old.

J.
Title: Re: xine-lib and video playback issues?
Post by: maverick0815 on May 09, 2011, 10:40:16 pm
I just tried it out and it works nicely on my MD. Though the nvidia driver complained during install, that the x-server was running and that causes installation to fail.
However I was able to watch a beforehand unplayable mkv.
Great job :-)
Title: Re: xine-lib and video playback issues?
Post by: phenigma on May 09, 2011, 10:49:45 pm
Terrific!  Great to hear.  I do actually have the nvidia driver packaged up for 0810 running with DKMS and it doesn't complain at all for me.  I'll see about getting it updated in the first post when I have a chance.

J.
Title: Re: xine-lib and video playback issues?
Post by: LmceCape on May 24, 2011, 07:15:24 pm
Hi There

I have followed all the steps mentioned to fix .mkv files, but it has not helped, when I play a .mkv file it is just stuttering, the Nvidia drivers and Libxine2 fixed the 100% CPU but the video is still terrible, is there anything else that I can try?

NVIDIA-Linux-x86-260.19.36.run - Done
libxine2 - Done
pluto-xine-player - was already a later version
VDPAU - Done

MD = Zotac ION ATOM 330



Regards
LMCEcape
Title: Re: xine-lib and video playback issues?
Post by: joerod on May 25, 2011, 12:09:18 am
I have the same exact pci-x nvidia card in three mds two of which work great; the third seems to have an issue like yours.  I'm thinking there something with the card and I'm going to be trading it for one of the other mds to test.

the video starts fine, but then after a while the cpu usage jumps to nearly 100% and the video gets studdering... the wierd part is that its the same exact card on each md.  Don't know if that helps at all there LmceCape; but I'll let you know if my troubles seem to stem from the card itself.
Title: Re: xine-lib and video playback issues?
Post by: LmceCape on May 25, 2011, 07:55:00 am
Hi Joerod

Mine never starts fine it always studders, since I installed libxine2 and Nvidia-260.19.36 the CPU is fine.

 I don't know what else to try.

These boards are supposed to be able to run 1080p HD content.

LMCEcape

Title: Re: xine-lib and video playback issues?
Post by: purps on May 25, 2011, 10:42:14 am
Do the graphics have the maximum amount of RAM dedicated to them in BIOS?
Title: Re: xine-lib and video playback issues?
Post by: LmceCape on May 25, 2011, 04:13:03 pm
The only thing I can manipulate in the bios as far as graphics goes is the framebuffer and it is set to 512 (max)

Nothing I do seems to help ???

Title: Re: xine-lib and video playback issues?
Post by: purps on May 25, 2011, 04:42:08 pm
Yeah that's what I meant.

I have to say, that before I applied this fix, MKVs would either play or not play (mostly not play) - I never saw any juddering.

Maybe try using UI1 temporarily, see if that's anything to do with it? Sorry, clutching at straws here. Is this a new mobo, or have you had it working before?

If it were me, I would be tempted to attach a hard disk, stick ubuntu on it, and see if you get smooth playback with that. Then you'll know whether it's the hardware.

Cheers,
Matt.
Title: Re: xine-lib and video playback issues?
Post by: LmceCape on May 26, 2011, 05:38:51 pm
OK here are the results

Got a test ASUS EB1501 from a friend, installed it as an MD and followed all the xine,libxine,nvidia stuff with the same results.

Installed Windows 7 on both.

Windows: The all my HD .MKV files run perfectly on both PCs', no problems.

As MDs': Both have perfect sound, if leave them on XV, the picture is much better but it runs out of CPU in about 2min. If set to VDPAU the CPU usage is low but the Video shudders horribly.

So, the hardware can play 1080P full HD MKV files under windows.

What do I try next?
Title: Re: xine-lib and video playback issues?
Post by: joerod on May 26, 2011, 08:33:22 pm
I still haven't had a chance to troubleshoot my problem yet, but I'm pretty sure its my video card.  Anyways; I've heared alot of people talking about this being extremely common due to network problems.  I think I'm pretty safe ruleing this out for my issue given that the other two mds play hd content just fine.  But as for LmceCape I would prolly try the ubuntu usb stick trick and try to play hd content straight from the computer not the network... or at least try to somehow rule out network bandwidth deficiency
Title: Re: xine-lib and video playback issues?
Post by: Marie.O on May 26, 2011, 08:36:51 pm
If anyone has an MKV that they have problems with playing, please PM me with a location where I can download it from, to test it locally.
Title: Re: xine-lib and video playback issues?
Post by: joerod on May 26, 2011, 08:47:41 pm
when this patch first came out 95% of my videos worked that didn't work before and i read (somewhere on the internet, not on these forums) that this is a problem with the compression of some mkv headers and I had to use mkvmerge and choose "no compression" before muxing.  Then the new file that came out worked awesome.  I think this may help some folks so we don't have to bother posde so much...
Title: Re: xine-lib and video playback issues?
Post by: maverick0815 on May 31, 2011, 11:30:52 am
it looks like there are a  lot of updates being pumped out right now...are there any current plans to include this one too?
Title: Re: xine-lib and video playback issues?
Post by: Marie.O on May 31, 2011, 02:21:52 pm
no
Title: Re: xine-lib and video playback issues?
Post by: phenigma on May 31, 2011, 03:49:59 pm
I have followed all the steps mentioned to fix .mkv files, but it has not helped, when I play a .mkv file it is just stuttering, the Nvidia drivers and Libxine2 fixed the 100% CPU but the video is still terrible, is there anything else that I can try?

NVIDIA-Linux-x86-260.19.36.run - Done
libxine2 - Done
pluto-xine-player - was already a later version
VDPAU - Done
MD = Zotac ION ATOM 330


The later version of pluto-xine-player means you are using the pluto-xine-player from the lmce repository which will use the old libxine.  There have been lots of updates recently that would overwrite the .deb I provided, which is also getting outdated now.  I will look at building a more recent version soon.  Until then you can install the .deb in the first post using dpkg and see if that helps.

J.
Title: Re: xine-lib and video playback issues?
Post by: LmceCape on May 31, 2011, 06:43:01 pm
Hi Guys

I have left the .mkv for now, trying to get normal functionality before moving to the more serious stuff.

I was hosting a party this weekend and found out the hard way that the LMCE basics are not working.

1. Tried to play some old music videos (avi) across the house and found that when you try and use the floor plan on those files, they only play properly on the MD where you start it from, on the other MDs' it staggers. Those where some really old AVIs', but never the less would play fine on any ONE MD but badly accross multiple MDs'

2. I added a playlist with the newer AVIs' and .mpg files and the staggering was gone but the media was completely out of sink. If you then sink them it goes out of sink when the next track/video starts (music files or video files).

3. Workaround for the party was to start the playlists from the core and go to the FloorPlan and add the MDs'. Then the MDs' are in sink but the Core/Hybrid is about 3-5 sec behind. This is fine because my core is in the garage, but what if it where a hybrid?

4. What would I do if my Core was actually a just Core with no sound card or MD runnuing?, then I would not be able to start the media on the core so as to sink the MDs'

5. I was always under the impression that when you go to the FloorPlan it was always streamed from the Core, it seems that I was wrong.

6. Today I booted my old core to test and it behaves exactly the same.

Is anyone else aware of this?
Is this how it has always been?

LMCEcape  ???




Title: Re: xine-lib and video playback issues?
Post by: Marie.O on May 31, 2011, 07:21:10 pm
LMCEape,

could you please open a new thread on this, and maybe add a ticket detailing what's happening.

Thanks.
Title: Re: xine-lib and video playback issues?
Post by: LmceCape on June 01, 2011, 07:15:36 am
will do
Title: Re: xine-lib and video playback issues?
Post by: bugui on June 05, 2011, 06:13:53 am
phenigma,
I'm running 0810 and libxine2 but I found problems when I trying to play a .dvd file, and pluto-xine-player crash...
Did you test it with DVDs over 0810?

Thanks in advance,
HernĂ¡n
Title: Re: xine-lib and video playback issues?
Post by: phenigma on June 06, 2011, 12:29:45 am
.dvd files work great for me in 0810.  Mine are all NTSC with AC3 audio.

Could you post your Xine_Player log (to pastebin or somewhere) when you try to play a .dvd file.  NTSC or PAL dvd? 

J.
Title: Re: xine-lib and video playback issues?
Post by: bugui on June 09, 2011, 06:23:16 am
Hi,
I have PAL DVDs.
It's happens when you the movie starts, for instance... I can see the trailers ok, and after the menu area, the players stops.

Hernan
Title: Re: xine-lib and video playback issues?
Post by: tschak909 on June 09, 2011, 09:32:53 am
You need to upgrade your plugins. There were some changes to the media player over the last few weeks, and the resulting plugins had to be rebuilt.

-Thom
Title: Re: xine-lib and video playback issues?
Post by: joerod on June 09, 2011, 10:57:07 pm
Just a follow up on my earlier post.... My MD was studdering on HD mkv after a few minutes (sometimes seconds) of playback.   I noticed that when playback began to studder xine cpu usage would jump to nearly 100%.  I thought there was something wrong with xine-lib (vdpau), but other mds worded find (and use the same exact pci-x card).

After cleaning out the case a little and replacing one of the case fans (I guess it gave it a little better circulation); everything works fine. Turns out the card was overheating (at least that the only thing I can come up with). Just a FYI...  this xine-lib update really fixed all the mkv issues I've had.
Title: Re: xine-lib and video playback issues?
Post by: bugui on September 13, 2011, 09:15:56 am
Hey guys,
Libxine2 works great, with the following configuration:
libxine2 and pluto-xine-player 2.0.0.44.11071324189 and lastes nvidia drivers.

Just one issue that I found was try to play a .mkv file that has video, audio, and subs tracks.
It just playback the file and you get a grey screen, the subs and audio, (you can't see the video because you will see a grey screen).
It's seams like it is related with vdpau and "pluto-xine-player 2.0.0.44.11071324189".
One thing that I tried was change the vdpau acceleration to xv, and you can see the video but it's not an intelligent solution for my Zotac HD-ID11, because the 1080p videos are unwachable.

Could someone provide to me a new version of pluto-xine-player to be used with libxine2 ?
I think that the newers version of pluto-xine could fix this issue.
 
Thanks in advance,

Sorry by my english,
Regards,
Hernan
Title: Re: xine-lib and video playback issues?
Post by: phenigma on September 15, 2011, 04:41:21 pm
At some point I will build a new one but I don't have the time right now.

J.
Title: Re: xine-lib and video playback issues?
Post by: bugui on September 16, 2011, 07:01:20 am
Thanks phenigma, that will be great.

Thanks
Bugui
Title: Re: xine-lib and video playback issues?
Post by: bugui on November 02, 2011, 05:51:13 am
phenigma, Could you build a new update of this?
Thanks
Hernan
Title: Re: xine-lib and video playback issues?
Post by: phenigma on November 04, 2011, 11:27:52 pm
New pluto-xine-player built this afternoon.  I've updated the archive link in the first post.

J.
Title: Re: xine-lib and video playback issues?
Post by: purps on November 06, 2011, 03:13:51 pm
After a few weeks away from LMCE I am now attempting a new install. I look forward to trying this out, thanks for doing it.
Title: Re: xine-lib and video playback issues?
Post by: sedgington on November 11, 2011, 07:09:33 pm
I went through these instructions and got 8.10 to play flawlessly with the mythtv frontend over hdmi. Thanks!

However when it comes to libxine, xine player crashes when you try and start up a DVD under video with the plea that:

I'm unable to initialize m_pXine's 'alsa' audio driver. <0xb6498b90>

I went back to /etc/pluto/xine.conf and changed the audio.driver setting back to "auto" and it gave me the same plea.

Reading around various posts it seems that it might be caused by another program hijacking alsa and not releasing it (for example mythtv) but without pursuing this further, I wondered it anyone had a similar problem or had ideas about how to overcome it.

I have the 1.0.24.2 alsa drivers installed and the latest libxine2 and pluto-xine dpkg packages from phenigma.

My only other thought is that I have 3 devices available from the NVIDIA driver install, and I have set up one device as default as per the instructions in ~/.asoundrc   and /home/linuxmce/.asoundrc:


pcm.!default {
      type hw
      card 1
      device 7 
}



Would there be a way to tell xine to use a different device, say 1,9? It doesn't work by just going in and setting the audio.alsa setting in xine.conf. 

As you can tell, alsa is a big black box to me so I need some help troubleshooting what went wrong, since mythtv uses this fix so perfectly.

here is my aplay -l if that helps:

root@moon272:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC887 Analog [ALC887 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC887 Digital [ALC887 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Thanks!
Title: Re: xine-lib and video playback issues?
Post by: phenigma on November 15, 2011, 06:47:21 pm
After a few weeks away from LMCE I am now attempting a new install. I look forward to trying this out, thanks for doing it.

You're welcome.  I hope it works as well for you as it does for me.

I went through these instructions and got 8.10 to play flawlessly with the mythtv frontend over hdmi. Thanks!

Great to hear!  I havn't actually tested with mythtv.

I went back to /etc/pluto/xine.conf and changed the audio.driver setting back to "auto" and it gave me the same plea.

This should work as 'auto' or 'alsa'.

Reading around various posts it seems that it might be caused by another program hijacking alsa and not releasing it (for example mythtv) but without pursuing this further, I wondered it anyone had a similar problem or had ideas about how to overcome it.

I don't expect this is an issue unless you've installed extra software that may hijack the audio card.

I have the 1.0.24.2 alsa drivers installed and the latest libxine2 and pluto-xine dpkg packages from phenigma.

My only other thought is that I have 3 devices available from the NVIDIA driver install, and I have set up one device as default as per the instructions in ~/.asoundrc   and /home/linuxmce/.asoundrc:


pcm.!default {
      type hw
      card 1
      device 7 
}

I don't believe I altered /etc/asound.conf or any .asoundrc files. 

Make sure you have enabled 'Passthrough' for ac3 & dts in the webadmin for the media director in question.

I use the following in my xine.conf.

Code: [Select]
audio.device.alsa_pcm_device:hdmi
audio.device.alsa_passthrough_device:hdmi
audio.device.alsa_surround40_device:hdmi
audio.device.alsa_surround51_device:hdmi
audio.output.speaker_arrangement:Pass Through

As you can tell, alsa is a big black box to me so I need some help troubleshooting what went wrong, since mythtv uses this fix so perfectly.

Alsa config is very cryptic, I havn't found any really good resources for configuring.

here is my aplay -l if that helps:
...

I have my motherboard's onboard sound disabled in bios so that it is not detected and doesn't interfere in anyway with my configuration.

J.
Title: Re: xine-lib and video playback issues?
Post by: phenigma on December 23, 2011, 09:24:56 pm
Updated the archive in the first post to include a newer libxine2 from the yavdr ppa recompiled for intrepid.  For best results use the nvidia 285 driver with it.  Merry Christmas and happy media playing!

J.
Title: Re: xine-lib and video playback issues?
Post by: gurumaia on January 03, 2012, 01:52:39 pm
Updated the archive in the first post to include a newer libxine2 from the yavdr ppa recompiled for intrepid.  For best results use the nvidia 285 driver with it.  Merry Christmas and happy media playing!

J.

Just as a feedback, I tried to install the current package linked in the first post and was unable to resolve its dependencies. It requires libavcodec52 which was nowhere to be found on the repos configured on my MD. I was able to find libavcodec51 but not 52. I was also able to find libavcodec52 on the linuxmce jaunty repo but was afraid to add that repo to my sources.list and break something else.
I then proceeded to install the previous version still linked in the original post and everything went smoothly.
720p MKV playback is MUCH better now, with almost no framerate issues. Prior to installing this it was unwatchable.
Video is still a little dark but it might be an issue with the actual file I'm testing with. It's an old file and I don't remember if it looked good on my windows box or not.
I'll test 1080p playback tonight and report back with my findings.
If help is needed to setup a repo for this package, I can try and help, as it is too helpful not to be easily available.
Title: Re: xine-lib and video playback issues?
Post by: kyfalcon on January 03, 2012, 04:10:55 pm
Do an apt-get install mplayer.

That should pull the codec you are looking for.
Title: Re: xine-lib and video playback issues?
Post by: kyfalcon on January 03, 2012, 04:21:45 pm
By the way I am seeing something similar on my Zotac box. I installed the MD ran the AVWizard and chose HDMI for sound. I then went and installed the alsa 24 drivers etc. Changed my sound conf, ran alsa mixer and unmuted everything and now I have sound in everything when running from the command prompt, but only have sound from mythtv when running from the oribitor, ie no sound for xine or mplayer when playing music or video from orbiter.

Is this possibly a permissions issue?
Title: Re: xine-lib and video playback issues?
Post by: gurumaia on January 03, 2012, 05:18:29 pm
Do an apt-get install mplayer.

That should pull the codec you are looking for.

I think I now know what the problem might be. the medibuntu repo fails on apt-get update. Something about GPG verification failing. On the core it goes fine but on the MD it fails. I'll check it out when I get home.
Thanks for the help!
Title: Re: xine-lib and video playback issues?
Post by: phenigma on January 03, 2012, 06:51:14 pm
Your medibuntu repo is fine, the gpg error is telling you the signing key is missing, it will not affect the repo.  The key is added to the core during installation, it must not be included in /usr/pluto/bin/Diskless_CreateTBZ.sh or it would be automatically applied to the MD as well. 

I left the original libxine2 version linked in the post in case anyone had problems with the updated version.

libavcodec52 will not be immediately available to you through any intrepid repos I know of.  I apparently neglected to include the dependencies (new libav build).    I have updated the first post with the latest libav dependencies.  Let me know how it goes and if you have any more missing dependencies.

J.
Title: Re: xine-lib and video playback issues?
Post by: gurumaia on January 03, 2012, 07:44:55 pm
Your medibuntu repo is fine, the gpg error is telling you the signing key is missing, it will not affect the repo.  The key is added to the core during installation, it must not be included in /usr/pluto/bin/Diskless_CreateTBZ.sh or it would be automatically applied to the MD as well. 

I left the original libxine2 version linked in the post in case anyone had problems with the updated version.

libavcodec52 will not be immediately available to you through any intrepid repos I know of.  I apparently neglected to include the dependencies (new libav build).    I have updated the first post with the latest libav dependencies.  Let me know how it goes and if you have any more missing dependencies.

J.

Awesome, I'll try to install it tonight. Should I expect a difference in performance between the version I have installed and this new version?
Title: Re: xine-lib and video playback issues?
Post by: phenigma on January 03, 2012, 09:52:31 pm
I don't really expect performance increases, but definitely compatibility updates.  Some people were having problems playing back media recorded with some hand-held digital video recorders.  The updated 285 nvidia driver and newer libxine2 seemed to fix these issues for some people.

J.
Title: Re: xine-lib and video playback issues?
Post by: phenigma on January 04, 2012, 11:00:15 pm
First post updated with link to nvidia 290 drivers, lots of bug fixes over the 285 version.  Xine has now officially released xine 1.2.0 so I hope to update the libxine package this weekend sometime.

J.
Title: Re: xine-lib and video playback issues?
Post by: bugui on January 11, 2012, 10:57:22 am
Hey guys,
I upgraded xine-ui and I can see the .mkv movies with subtitles !!!!


dcerouter_1024067:/home/hernan# apt-cache policy xine-ui
xine-ui:
  Installed: 0.99.7~hg20111005-0yavdr3~lucid
  Candidate: 0.99.7~hg20111005-0yavdr3~lucid
  Version table:
 *** 0.99.7~hg20111005-0yavdr3~lucid 0
        500 http://deb.linuxmce.org/ubuntu/ lucid/beta2 Packages
        100 /var/lib/dpkg/status
     0.99.5+cvs20070914-2.1 0
        500 http://ar.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        500 http://archive.ubuntu.com/ubuntu/ lucid/universe Packages


Hernan
Title: Re: xine-lib and video playback issues?
Post by: phenigma on January 12, 2012, 01:06:30 am
Well isn't that interesting...  Thanks for the info!

I'll try to include that with the next 0810 libxine build I do, so those on 0810 can benefit from this.  I haven't had a chance to build libxine1.2 final yet like I said, but decoding wise it shouldn't be much different than the existing build I posted.

J.
Title: Re: xine-lib and video playback issues?
Post by: Marie.O on January 12, 2012, 11:51:26 am
I have copied parts of the YaVDR PPA into our repo, to ease the installation of the VDR parts. This is for 1004. YaVDR are very good at providing fairly up-to-date xine and mplayer debs. Glad that it works not only for the happy VDR users, but also for the poor souls still needing to run MythTV ;P
Title: Re: xine-lib and video playback issues?
Post by: Itsik on February 15, 2012, 01:43:39 am
I get an error trying to install the pluto-xine-player. I tried reinstalling the libavcodec52 once again (this time with no error in the end) but I still get the same error trying the install the pluto-xine-player

Code: [Select]
root@moon49:~/Desktop# dpkg -i pluto-xine-player_2.0.0.44.11110425106_i386.deb
dpkg: regarding pluto-xine-player_2.0.0.44.11110425106_i386.deb containing pluto-xine-player, pre-dependency problem:
 pluto-xine-player pre-depends on libxine2 (>= 1.1.90)
  libxine2 is not installed but configs remain.
dpkg: error processing pluto-xine-player_2.0.0.44.11110425106_i386.deb (--install):
 pre-dependency problem - not installing pluto-xine-player
Errors were encountered while processing:
 pluto-xine-player_2.0.0.44.11110425106_i386.deb

Trying to reinstall libxine2 gives me:
Code: [Select]
root@moon49:~/Desktop# dpkg -i libxine2_1.2.0~hg20111113.2230-1yavdr1~intrepid_i386.deb
Selecting previously deselected package libxine2.
(Reading database ... 119563 files and directories currently installed.)
Unpacking libxine2 (from libxine2_1.2.0~hg20111113.2230-1yavdr1~intrepid_i386.deb) ...
dpkg: dependency problems prevent configuration of libxine2:
 libxine2 depends on libpostproc51 (>= 4:0.6-1~) | libpostproc-extra-51 (>= 4:0.6-1~); however:
  Version of libpostproc51 on system is 3:0.svn20080206-12ubuntu3.3.
  Package libpostproc-extra-51 is not installed.
dpkg: error processing libxine2 (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db ...
Errors were encountered while processing:
 libxine2

What am I doing wrong ?

thnx
itsik
Title: Re: xine-lib and video playback issues?
Post by: kyfalcon on February 15, 2012, 07:23:32 pm
Looks like you might have to uninstall libpostproc51 first.
Title: Re: xine-lib and video playback issues?
Post by: phenigma on February 17, 2012, 03:29:40 pm
I get an error trying to install the pluto-xine-player. I tried reinstalling the libavcodec52 once again (this time with no error in the end) but I still get the same error trying the install the pluto-xine-player

What am I doing wrong ?

thnx
itsik

I don't have access to my system at the moment.  I'll check into this later tonight and get back to you.  It looks like I may have missed a dependency in the archive.

J.
Title: Re: xine-lib and video playback issues?
Post by: phenigma on February 18, 2012, 07:25:44 pm
I missed a dependency for libxine2, I aplogize for that.  The first post has been updated and there is a new archive there that includes the updated libpostproc51 that libxine2 was built against.  Good luck!  Let me know if you have any other issues.

J.
Title: Re: xine-lib and video playback issues?
Post by: Itsik on February 19, 2012, 12:49:37 am
Thnx phenigma, but it still doesn't work

Code: [Select]
root@moon49:~/Desktop# dpkg -i lib*.deb
(Reading database ... 119962 files and directories currently installed.)
Preparing to replace libavcodec52 4:0.7.1.rc1-1ubuntu1~ph1 (using libavcodec52_0.7.1.rc1-1ubuntu1~ph1_i386.deb) ...
Unpacking replacement libavcodec52 ...                                                                             
Preparing to replace libavutil50 4:0.7.1.rc1-1ubuntu1~ph1 (using libavutil50_0.7.1.rc1-1ubuntu1~ph1_i386.deb) ... 
Unpacking replacement libavutil50 ...                                                                             
Preparing to replace libpostproc51 4:0.7.1~rc1-1ubuntu1~ph1 (using libpostproc51_0.7.1~rc1-1ubuntu1~ph1_i386.deb) ...
Unpacking replacement libpostproc51 ...                                                                             
Preparing to replace libxine-dev 1.2.0~hg20111113.2230-1yavdr1~intrepid (using libxine-dev_1.2.0~hg20111113.2230-1yavdr1~intrepid_i386.deb) ...
Unpacking replacement libxine-dev ...                                                                                                         
Preparing to replace libxine2-dbg 1.2.0~hg20111113.2230-1yavdr1~intrepid (using libxine2-dbg_1.2.0~hg20111113.2230-1yavdr1~intrepid_i386.deb) ...                                                                                                                                               
Unpacking replacement libxine2-dbg ...                                                                                                         
Preparing to replace libxine2-doc 1.2.0~hg20111113.2230-1yavdr1~intrepid (using libxine2-doc_1.2.0~hg20111113.2230-1yavdr1~intrepid_all.deb) ...
Unpacking replacement libxine2-doc ...                                                                                                         
Preparing to replace libxine2 1.2.0~hg20111113.2230-1yavdr1~intrepid (using libxine2_1.2.0~hg20111113.2230-1yavdr1~intrepid_i386.deb) ...       
Unpacking replacement libxine2 ...                                                                                                             
Setting up libavutil50 (4:0.7.1.rc1-1ubuntu1~ph1) ...                                                                                           

dpkg: dependency problems prevent configuration of libpostproc51:
 libpostproc51 depends on libavutil50 (<< 4:0.7.1~rc1-99) | libavutil-extra-50 (<< 4:0.7.1~rc1-99); however:
  Version of libavutil50 on system is 4:0.7.1.rc1-1ubuntu1~ph1.                                             
  Package libavutil-extra-50 is not installed.                                                             
dpkg: error processing libpostproc51 (--install):                                                           
 dependency problems - leaving unconfigured                                                                 
Setting up libxine2-doc (1.2.0~hg20111113.2230-1yavdr1~intrepid) ...
dpkg: dependency problems prevent configuration of libxine2:
 libxine2 depends on libpostproc51 (>= 4:0.6-1~) | libpostproc-extra-51 (>= 4:0.6-1~); however:
  Package libpostproc51 is not configured yet.
  Package libpostproc-extra-51 is not installed.
dpkg: error processing libxine2 (--install):
 dependency problems - leaving unconfigured
Setting up libavcodec52 (4:0.7.1.rc1-1ubuntu1~ph1) ...

dpkg: dependency problems prevent configuration of libxine-dev:
 libxine-dev depends on libxine2 (= 1.2.0~hg20111113.2230-1yavdr1~intrepid); however:
  Package libxine2 is not configured yet.
dpkg: error processing libxine-dev (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libxine2-dbg:
 libxine2-dbg depends on libxine2 (= 1.2.0~hg20111113.2230-1yavdr1~intrepid); however:
  Package libxine2 is not configured yet.
dpkg: error processing libxine2-dbg (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 libpostproc51
 libxine2
 libxine-dev
 libxine2-dbg

Any idea ?
Title: Re: xine-lib and video playback issues?
Post by: phenigma on February 19, 2012, 03:47:53 pm
Try an "apt-get -f install" and see what that does for you.  Otherwise I will set up a test machine today and get this sorted out.  I apologize for the issues you're having.

J.
Title: Re: xine-lib and video playback issues?
Post by: Itsik on February 19, 2012, 11:22:17 pm
First of all, no need to apologize and thanks for all you efforts :)
I tried what you suggested and it wants to uninstall just about everything:

Code: [Select]
root@moon49:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  x11-apps sg3-utils mythtv-frontend pwgen libglib1.2ldbl libconvert-binhex-perl libtext-bidi-perl libsoap-lite-perl libmtp8 liblzo1
  mythtv-common xcompmgr xfonts-scalable libemail-find-perl lsof libgtk1.2 libcrypt-ssleay-perl pluto-sdl-helpers libnet-ssleay-perl
  libfame-0.9 libclass-methodmaker-perl libxml-perl pluto-confirm-dependencies mythtv-database libhtml-fromtext-perl x11-xfs-utils toolame
  libregexp-common-perl libpvm3 mysql-server-5.0 amarok-common lmce-windowutils libxml-twig-perl libexporter-lite-perl libfftw3-3 libsgutils1
  transcode-doc beep libmyth-0.23-0 libarchive-zip-perl libsox0 libossp-uuid-perl libsdl-sge pluto-avwizard-skin-basic libmime-tools-perl
  libxml-libxslt-perl xmltv-util libossp-uuid15 libnet-domain-tld-perl lmce-mythtv-scripts xfonts-75dpi ethtool libttf2 libxml-dom-perl xinput
  pluto-libresolution pluto-x-scripts wmctrl liblog-tracemessages-perl libhtml-tableextract-perl xloadimage mysql-server alsa-utils
  msttcorefonts libnet-ip-perl libhid0 libmjpegtools0c2a libnet-dns-perl pluto-hal-device-finder libtunepimp5 libifp4 cabextract xinit pvm
  mythtv-doc libdate-manip-perl libgpod3-nogtk x11-session-utils libhttp-cache-transparent-perl libwww-mechanize-perl libiso9660-5
  flashplugin-nonfree libsox-fmt-base libfs6 libgpod-common sox xfonts-100dpi libfile-slurp-perl liblingua-preferred-perl libgtk1.2-common
  libconfuse0 libxml-xpath-perl libfcgi-perl libunicode-string-perl libxml-writer-perl libasound2-plugins libsox-fmt-alsa alsa-base
  libemail-address-perl mjpegtools xorg linux-sound-base libio-socket-ssl-perl libxml-regexp-perl libdigest-hmac-perl libemail-valid-perl
  libquicktime1 libgraphicsmagick1 libxp6 libvcdinfo0 pluto-mcr-remote libxmltv-perl libnjb5 libterm-progressbar-perl libofa0 libmpeg2-4
  libdigest-sha1-perl
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  amarok amarok-engine-xine dragonplayer kubuntu-desktop libpostproc51 libxine-dev libxine1 libxine2 libxine2-dbg mythtv-backend
  phonon-backend-xine pluto-avwizard pluto-mythtv-player pluto-nvidia-video-drivers pluto-orbiter pluto-xine-player transcode xine-ui
0 upgraded, 0 newly installed, 18 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 146MB disk space will be freed.
Do you want to continue [Y/n]?


any idea whats next ?

thnx
Itsik
Title: Re: xine-lib and video playback issues?
Post by: phenigma on February 22, 2012, 08:44:34 pm
First of all, no need to apologize and thanks for all you efforts :)
I tried what you suggested and it wants to uninstall just about everything:

any idea whats next ?

thnx
Itsik

I've tested this here locally and it looks like I've mucked up the dependencies and the libpostproc51 I supplied is not the correct build of the .deb.

I will re-do the build in the next few days and re-post proper dependencies.

Sorry for the frustration.  You can use the older version (the text with the strike-through) in the first post until I get this rebuilt.  Should have it ready before the end of the weekend.

J.
Title: Re: xine-lib and video playback issues?
Post by: phenigma on February 23, 2012, 11:50:19 pm
Updated.  I've redone the two tar files, proper dependencies (and all of them) are included.  I've done a test install and it works. 

J.
Title: Re: xine-lib and video playback issues?
Post by: Itsik on February 24, 2012, 07:48:22 pm
Just installed i and it works :)

Thank you so much for your efforts.
One thing tough. I have this one MKV that did not work before, now the video works great and even the subtitles. The only thing not working is the sound (which works as usual in other videos). The receiver doesn't even pickup he stream at first. After a minutes or so it suddenly switches to DTS, but still no sound is preasent.
In the web admin, the sound card is configures as HDA Nvidia and the AC3/DTS pass thru is checked.
Is there anyway to check what's going on ?

One more question, is there any way to control the font/encoding of the subtitles ?

Thnx again.
Itsik
Title: Re: xine-lib and video playback issues?
Post by: phenigma on February 28, 2012, 08:14:55 pm
Just installed i and it works :)

Thank you so much for your efforts.

You're welcome.  I am glad others are able to make use of the upgrade.

One thing tough. I have this one MKV that did not work before, now the video works great and even the subtitles. The only thing not working is the sound (which works as usual in other videos). The receiver doesn't even pickup he stream at first. After a minutes or so it suddenly switches to DTS, but still no sound is preasent.
In the web admin, the sound card is configures as HDA Nvidia and the AC3/DTS pass thru is checked.
Is there anyway to check what's going on ?

What kind of audio is stored in the file?  DTS & AC3 should play fine (I have no issues whatsoever with either).  AAC stereo should play just fine as well.  AAC multichannel audio will likely fail to play, although xine fails to play these files at all for me unless I reconfigure it.  Check my wiki for how I reconfigure xine.conf to enable AAC multichannel on 0810.  I have been unable to get multichannel AAC to work on 1004, something between the alsa version and the nvidia drivers is the likely cause but beyond me to figure out right now.

I have at other times had issues with sound on MDs and I usually re-run the avwizard and everything is fixed.  My audio is set for 'Standard Sound Card', I've never tried changing it to HDA nvida.  Not sure what effect that would have, if any.

One more question, is there any way to control the font/encoding of the subtitles ?

I believe that these are controlled through xine-ui, but I am not certain.  I do not have much media with subtitles, mostly Blu-Ray on disc.

J.
Title: Re: xine-lib and video playback issues?
Post by: sedgington on March 03, 2012, 05:21:07 pm
Thank you so much! For the first time I can play mythtv recordings that show up in the video list directly through LMCE. This has been a deficiency that has been often commented on but none of the earlier fixes took care of it on my system. Fantastic upgrade for LMCE. Great work.
Title: Re: xine-lib and video playback issues?
Post by: phenigma on March 07, 2012, 02:16:18 am
You're welcome.  I'm glad it's providing a benefit for others as it does for me!

J.