Linux version of PMS with statically linked ffmpeg/mencoder

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Re: Linux version of PMS with statically linked ffmpeg/menco

Postby langerak » Fri Sep 30, 2011 10:13 am

Is libmediainfo a requirement for using PMS? If not, we should leave it out of the script. If it is a requirement, there will be a problem with building static libraries for this particular case.
langerak
 
Posts: 14
Joined: Sat Sep 24, 2011 10:54 am

Re: Linux version of PMS with statically linked ffmpeg/menco

Postby happy.neko » Fri Sep 30, 2011 1:04 pm

chocolateboy wrote:Please don't waste any time/effort on this. It's not possible to make portable shared libraries on Linux. I left it out of the ticket for a reason. :-)

Last version of the script converts libmediainfo.a to libmediainfo.so. It is lame workaround but it helps to produce as portable library as possible.
Code: Select all
> ldd ./libmediainfo.so
   linux-gate.so.1 =>  (0xb7771000)
   libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7130000)
   libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb6fcf000)
   /lib/ld-linux.so.2 (0xb7772000)

I performed testes on clean installation of Centos 6 and PS3MS have no problems in loading such library. I think we can give it a try.
happy.neko
Project Member
 
Posts: 478
Joined: Fri Sep 23, 2011 5:38 pm

Re: Linux version of PMS with statically linked ffmpeg/menco

Postby langerak » Fri Sep 30, 2011 1:07 pm

Can you provide the new and updated script here for download? I'll test it out then.
langerak
 
Posts: 14
Joined: Sat Sep 24, 2011 10:54 am

Re: Linux version of PMS with statically linked ffmpeg/menco

Postby Raptor399 » Fri Sep 30, 2011 11:24 pm

I have tried to merge the OSX and Linux versions of the script in this new script "build-pms-binaries.sh".
It looks like it works on OSX. Can you test this and see if it works on Linux as well?

*edit* Forgot to uncomment a bunch of lines, fixed now. :-)
Attachments
build-pms-binaries.zip
(9.32 KiB) Downloaded 62 times
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: Linux version of PMS with statically linked ffmpeg/menco

Postby happy.neko » Sat Oct 01, 2011 5:12 pm

Good work, Raptor399. I made some tweaks to run it on Linux. Now everything seems to be fine.
Attachments
build-pms-binaries-1.8.12.tar.gz
Linux build fixes
(12.8 KiB) Downloaded 138 times
happy.neko
Project Member
 
Posts: 478
Joined: Fri Sep 23, 2011 5:38 pm

Re: Linux version of PMS with statically linked ffmpeg/menco

Postby Raptor399 » Sat Oct 01, 2011 7:12 pm

Tested it on OSX again, it still works there as well.
Committed in r851.

Thanks for the hard work!
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: Linux version of PMS with statically linked ffmpeg/menco

Postby happy.neko » Sat Oct 01, 2011 8:19 pm

Great news.
LinuxDefaultPaths.java still needs some work. getMencoderPath have to return correct path for bundled tools or gracefully fallback to system path if not found. I can make patch if necessary.
happy.neko
Project Member
 
Posts: 478
Joined: Fri Sep 23, 2011 5:38 pm

Re: Linux version of PMS with statically linked ffmpeg/menco

Postby Raptor399 » Sun Oct 02, 2011 11:30 am

happy.neko wrote:Great news.
LinuxDefaultPaths.java still needs some work. getMencoderPath have to return correct path for bundled tools or gracefully fallback to system path if not found. I can make patch if necessary.

I won't mingle in the statically linked binaries for Linux discussion; leaving this one to one of the other devs. ;-)
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: Linux version of PMS with statically linked ffmpeg/menco

Postby internaut19 » Mon Oct 31, 2011 4:44 pm

Hi Happy.neko,

I tried to use the binaries you posted in the 4th post in this thread with PMS 1.40 on my QNAP x86 box but after a few seconds of playback, it starts to stutter really bad. I even tried to build my own binaries using your script but same thing happens ... Any ideas what's going on?

Thanks,
Cristian.
internaut19
 
Posts: 4
Joined: Thu Aug 04, 2011 9:49 am

Re: Linux version of PMS with statically linked ffmpeg/menco

Postby HakuJin » Fri Nov 04, 2011 1:26 am

I managed to use the script to build everything on Ubuntu 10.04, but the search path used by the script needs to consider /usr/local/bin. On a side note, a completely build with the latest components supports transcoding hi10p x264 :P
HakuJin
 
Posts: 1
Joined: Fri Nov 04, 2011 1:19 am

PreviousNext

Return to Linux/Unix Support

Who is online

Users browsing this forum: No registered users and 5 guests