LinHES Forums
http://forums.linhes.org/

Upgrade from old linhes beta gone wrong
http://forums.linhes.org/viewtopic.php?f=6&t=20158
Page 1 of 4

Author:  simonf [ Sat Jul 18, 2009 8:47 am ]
Post subject:  Upgrade from old linhes beta gone wrong

I upgraded today from the old linhes beta using

sudo pacman -Syuf

it all seemed to go fine BUT.... now the playback of videos no longer works or myth gallery (vodka still dosnt work but get_iplayer works from the command prompt).

I did a little investigating and found that if I changed video playback to use "Internal" some of the video files started to work.

So I tried to play them from the comand prompt using mplayer but get this error

Code:
> mplayer
mplayer: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory




It looks like libjpeg is pooched any ideas on how to fix it ??

Author:  craigtv [ Sat Jul 18, 2009 9:22 am ]
Post subject: 

**edit ** Don't do this, it makes mythfrontend seg fault *****

I'm not sure if it's a proper fix, but I encountered the same issue and worked around it by creating a link to the existing libjpeg.so:

Code:
cd /usr/lib
sudo ln -s libjpeg.so.7.0.0 libjpeg.so.62

Author:  simonf [ Sat Jul 18, 2009 10:33 am ]
Post subject:  almost Cured

************DO NOT DO THIS*********
****It Breaks The Front End************
Code:
cd /usr/lib
sudo ln -s libjpeg.so.7.0.0 libjpeg.so.62


got rid if the error message

can someone post what the settings for video playback should be

I have internal for all at the moment

I think I had mplayer -fs %s with a couple of other options before I can try at the command prompt to get it correct but it would be easyer if some one could post the settings for video and DVD playback.

ps the myth galley still dosnt show my pics just a grey background ? :(

Author:  nharris [ Sat Jul 18, 2009 11:22 am ]
Post subject: 

Sorry everyone, this is my fault. I'm working on fixing it. I didn't realize that mplayer depended on libjpeg, so thanks for that. I'll fix it up too.

Author:  craigtv [ Sun Jul 19, 2009 1:01 pm ]
Post subject: 

@nharris

I encountered in issue with mythfrontend not starting that may be related. I posted it here:

http://mysettopbox.tv/phpBB2/viewtopic.php?p=122794#122794

Let me know if I should open a flyspray ticket

Author:  craigtv [ Sun Jul 19, 2009 1:06 pm ]
Post subject: 

Sorry for all the posts, but I just figured out my "workaround" breaks mythfrontend. I'll edit the post accordingly.

Craig

Author:  nharris [ Sun Jul 19, 2009 2:44 pm ]
Post subject: 

All, please try a "pacman -Syu" again. This should fix the problem.

Author:  craigtv [ Sun Jul 19, 2009 3:17 pm ]
Post subject: 

tried pacman -Syu, but no updates ... says my local database is up to date.

Author:  simonf [ Sun Jul 19, 2009 5:27 pm ]
Post subject:  I Am going round in circles here

Ok

I did craigtv's Fix which got mplayer working again !!

just done



Code:
> pacman -Syu
:: Synchronizing package databases...
downloading core-testing.db.tar.gz...
downloading extra-testing.db.tar.gz...
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...
Proceed with installation? [Y/n]
Targets (17): system-templates-1.0-29  LinHES-config-2.0-59  libmng-1.0.10-3 
              fbsplash-1.5.4.3-15  imlib2-1.4.1-2  jasper-1.900.1-2 
              lcms-1.17-3  libcups-1.3.9-4  libwmf-0.2.8.4-5  lirc-0.8.5CVS-14 
              mjpegtools-1.9.0-4  mplayer-29426-1  myth2ipod-0.2-17 
              mythtv-0.21-74  pil-1.1.6-6  runit-scripts-1.8.0-93 
              tweaker-1-43 

Total Download Size:    36.19 MB
Total Installed Size:   86.13 MB


and rebooted and the myth frontend didnt start so i ran mythtv from an x window and found the sementation fault !!!!

I have now removed libjpeg.so.62 and the front end now comes up

but I have my origonal problem again

Code:
> mplayer
mplayer: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
 

I am using the "Internal" Player for now but it would be nice to have mplayer working so i can watch .mov files dowloaded with get_iplayer.

I did contemplate creating a shell scriprt that symlinked libjpeg, ran mplayer then removed the symlink but thats even too patchy for me..




PS myth gallery still isnt showing any pictures !!

Author:  mihanson [ Sun Jul 19, 2009 10:04 pm ]
Post subject: 

I have the libjpeg.so.62 problem as well. FE works mplayer does not. This after I -Syu'ed.

Author:  craigtv [ Mon Jul 20, 2009 4:51 pm ]
Post subject: 

I did another pacman update and saw an mplayer update come through. However, I still have the same libjpeg.so.62 issue.

Do we need to uninstall and reinstall some items to get it to get the dependencies?

Author:  mihanson [ Mon Jul 20, 2009 6:11 pm ]
Post subject: 

craigtv:

If you look in /var/log/pacman.log you can see exactly what pacman upgraded and use that as a guide to rollback the bad changes. Just note the previous versions of the upgraded packages (it'll tell you in the log) and then:

Code:
# cd /data/var/cache/pacman/pkg
# pacman -U <old_packages.tar.gz>


This will only work if you have not cleaned your pacman cache. Personally, I'm stuck becasue I did clean mine a few months back and I'm missing some of the old packages. :cry:

If you're in my boat, the "S.S. WAF Falling due to no mplayer", you just need to wait for nharris, cesman, jams or another dev to fix the problem.

Author:  mihanson [ Mon Jul 20, 2009 6:16 pm ]
Post subject: 

It seems my ffmpeg is borked too:

Quote:
ffmpeg -i 00700.m2ts
ffmpeg: error while loading shared libraries: libfaad.so.1: cannot open shared object file: No such file or directory

Author:  nickca [ Mon Jul 20, 2009 6:27 pm ]
Post subject: 

Basically what's going on is they're releasing updates to audio/video libraries before updates to applications which depends on those libraries are available. It's easy to fix, although annoying and would have been easy to prevent from happening.

Reposting from my Flyspray comment:

Comment by Nick C. (nickca) - Tuesday, 21 July 2009, 00:21 GMT — Edit

An update to libfaad broke it as well. The problem isn't libjpeg, it's that they're releasing updates to libraries that mplayer depends on without updating mplayer to use them, so it's mplayer that needs to be recompiled.

I know this isn't Ubuntu and there's only a few people working on LinHES, but could we maybe hold off on making library updates available until updates to major components of the system that depend on those libraries are also available? Some people run pacman -Su every day or two, and so far it's never broken anything like this.

Anyway, to fix mplayer for now, do this as root:
# ln -s /usr/lib/libjpeg.so.7.0.0 /usr/lib/libjpeg.so.62
# ln -s /usr/lib/libfaad.so.2.0.0 /usr/lib/libfaad.so.1

If mplayer won't start again after that, check the mythfrontend log for what library it's looking for and do the same as above: fake it out by making a symlink with the version of the library it's looking for to the version you have.

EDIT
Sorry, apparently others have already tried the symlink fix, and it borks the frontend. I haven't restarted the frontend since doing it, so I didn't know.

Author:  nickca [ Mon Jul 20, 2009 10:14 pm ]
Post subject: 

OK, a better fix until they get all this sorted out is just to recompile mplayer yourself, which isn't that hard. Just follow step 2 from my old tutorial here. Download this version of the VDPAU kit (direct link to the tarball) (even if you don't use VDPAU, the kit includes a script that automatically does the SVN checkout, configuration and compilation). Once you compile it, back up your original mplayer and mencoder:

Code:
# mv /usr/bin/mplayer /usr/bin/mplayer.orig_dist
# mv /usr/bin/mencoder /usr/bin/mencoder.orig_dist

Then copy the new mplayer and mencoder binaries in their place (assuming you build mplayer in /usr/src):
Code:
# mv /usr/src/mplayer-vdpau-3532130/mplayer-vdpau/mplayer /usr/bin/
# mv /usr/src/mplayer-vdpau-3532130/mplayer-vdpau/mencoder /usr/bin/


Oh, and if you made fake symlinks to libjpeg before, be sure to delete them so they don't cause problems with the frontend.

Whenever the LinHES guys get a new mplayer out (check by doing pacman -Sy, then pacman -Su, rather than pacman -Syu, actually that's a good idea in general), reverse the process before you update:
Code:
# rm /usr/bin/mplayer
# rm /usr/bin/mencoder
# mv /usr/bin/mplayer.orig_dist /usr/bin/mplayer
# mv /usr/bin/mencoder.orig_dist /usr/bin/mencoder


Oh, and to the LinHES team: please don't forget to update mplayer-vdpau-nogui along with the regular mplayer package.

If anyone needs it, I could post a tarball with prebuilt versions of mplayer and mencoder if it ends up taking a while for the team to get the update out.

Page 1 of 4 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/