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 internaut19 » Wed Nov 23, 2011 8:28 am

Just tested the new PMS version 1.50.0 on my QNAP with popcornhour A100 as a client, using the binaries from the 4th post. After 2 minutes of playback no matter what video file format (mkv, avi, flv, mp4) I tried to play it started to stutter.

Proc info:
Code: Select all
cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 28
model name      : Intel(R) Atom(TM) CPU K410   @ 1.66GHz
stepping        : 10
cpu MHz         : 1662.541
cache size      : 512 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 0
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm
bogomips        : 3325.08
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 28
model name      : Intel(R) Atom(TM) CPU K410   @ 1.66GHz
stepping        : 10
cpu MHz         : 1662.541
cache size      : 512 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
apicid          : 1
initial apicid  : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm
bogomips        : 3324.82
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:


Any help will be greatly appreciated.

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

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

Postby Raptor399 » Wed Nov 23, 2011 8:34 pm

Can you post the debug.log?
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

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

Postby sampras » Tue Nov 29, 2011 12:26 pm

I'd like to help in anyway i can, so, i have just run the build-pms-binaries.sh had to set both TARGET & MINIMUM ARCHETECTURE to native as I'm running a hp Microserver with an AMD chip it ran for a while but then failed with error in the attached log.
OS is ubuntu 11.10 - i'm hoping using "standard" app versions might help fix my problem here: viewtopic.php?f=3&t=12737
Attachments
build-pms-bins.log.zip
(944 Bytes) Downloaded 41 times
sampras
 
Posts: 9
Joined: Fri Nov 18, 2011 12:56 pm

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

Postby lzap » Sun Dec 04, 2011 9:36 pm

Hey, nice script, good work.

Compiling on RHEL 6.1 here, but getting an error:

Code: Select all
ranlib ../lib/libform_g.a
make[1]: Leaving directory `/home/lzap/ps3mediaserver-read-only/ps3mediaserver/contrib/src/ncurses-5.9/form'
cd test && /usr/bin/make DESTDIR="" libs
make[1]: Entering directory `/home/lzap/ps3mediaserver-read-only/ps3mediaserver/contrib/src/ncurses-5.9/test'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/home/lzap/ps3mediaserver-read-only/ps3mediaserver/contrib/src/ncurses-5.9/test'
cd c++ && /usr/bin/make DESTDIR="" libs
make[1]: Entering directory `/home/lzap/ps3mediaserver-read-only/ps3mediaserver/contrib/src/ncurses-5.9/c++'
cd ../objects;   -I../c++ -I../include -I. -DHAVE_CONFIG_H  -D_GNU_SOURCE -DNDEBUG -I. -I../include -I/home/lzap/ps3mediaserver-read-only/ps3mediaserver/contrib/target/include/ncurses -march=native -mtune=core2 -I/home/lzap/ps3mediaserver-read-only/ps3mediaserver/contrib/target/include  -c ../c++/cursesf.cc
/bin/sh: -I../c++: No such file or directory
make[1]: *** [../objects/cursesf.o] Error 127
make[1]: Leaving directory `/home/lzap/ps3mediaserver-read-only/ps3mediaserver/contrib/src/ncurses-5.9/c++'
make: *** [libs] Error 2
Fatal error occurred, aborting build.
lzap
 
Posts: 1
Joined: Sun Dec 04, 2011 9:35 pm

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

Postby happy.neko » Wed Dec 21, 2011 5:26 pm

Latest revision of build-pms-binaries script for mplayer r34404 with linux-specific fixes.

Few notes:
+ I don't know if mplayer-r34332-SB17.patch is required for linux mencoder build, but i have applied it.
+ mplayer trunk compiles only with latest ffmpeg, but recent versions of ffmpeg give me "corrupted data" errors with mkvs+tsMuxer. So I modified scipt to compile stable 0.8.7 ffmpeg as standalone tool (no problems during playback) while new 0.9 version is used to compile mplayer.

Tested on Ubuntu 11.10 64 bit.
Attachments
build-pms-binaries-2.0.2.tar.gz
build-pms-binaries ver. 2.0.2
(19.63 KiB) Downloaded 92 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 » Tue Jan 17, 2012 9:41 am

Hi happy.neko!

I updated the script for SubJunk's SB21 revision, you might want to have a look at it.
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 » Tue Jan 17, 2012 1:20 pm

Thanks. I'll try to merge it with my version and report back.
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 DeepHorizons » Wed Jan 18, 2012 5:45 pm

Hey all

First, I wanted to say great idea, it always irked me that the windows version worked flawlessly, but my media server is linux...

Now to the point. I couldn't get 2.0.2 to work without a lot of editing and messing around, applying my own patches (but i did end up getting it to work). But the server kept generating errors. I just took Raptor399's version and with a little editing, I was able to get it to work. But the server still generates errors. Going through the debug.log, the killer seems to be

Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81

followed by a few hundred lines of

Dropping frame with size not matching configured size

I have built my own version of ffmpeg & mplayer that do work, but a all-in-one solution would be better. I would like to see this endeavor through, so I'm willing to help any way possible. I would post my script, but I dont want to be passing out a hacked together and / or potentially flawed script without the go-ahead from you happy.neko
DeepHorizons
 
Posts: 1
Joined: Wed Jan 18, 2012 5:24 pm

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

Postby happy.neko » Fri Jan 20, 2012 4:36 am

Hi, Raptor399
I updated script and successfully compiled linux versions of mplayer r34577-SB21 with libbluray support (is it used for anything in PS3 Media Server?) and ffmpeg 0.9.1.

Other changes:
+ mplayer compiled with libenca support - Extremely Naive Charset Analyser. Maybe useful for subtitles.
+ external libdvdnav, libdvdread and libdvdcss removed because mplayer seems to have internal versions
+ mplayer-r34118-configure-ld-lm.patch replaced with mplayer-r34577-configure.patch

DeepHorizons
For all-in-one solution you can check my DEB, it comes with pre-compiled tools:
viewtopic.php?f=3&t=13046
Attachments
build-pms-binaries-2.0.7.tar.gz
build-pms-binaries-2.0.7
(13.15 KiB) Downloaded 58 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 » Fri Jan 20, 2012 9:22 am

Tested and committed.
Thanks! :-)
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

PreviousNext

Return to Linux/Unix Support

Who is online

Users browsing this forum: Lionhead and 4 guests