3.1.0 OutOfMemoeryError and FFMPEG not found

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
sapsa
Posts: 59
Joined: Wed Nov 13, 2013 8:22 am

3.1.0 OutOfMemoeryError and FFMPEG not found

Post by sapsa »

When starting UMS.sh i got:

Code: Select all

ERROR 2013-11-21 17:30:20.122 [main] Error running command [Ljava.lang.String;@5302067
java.io.IOException: Cannot run program "ffmpeg": error=2, Nie ma takiego pliku ani katalogu
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041) ~[na:1.7.0_25]
        at net.pms.util.ProcessUtil.run(ProcessUtil.java:155) ~[ums.jar:3.1.0]
        at net.pms.encoders.FFmpegOptions.getSupportedProtocols(FFmpegOptions.java:90) ~[ums.jar:3.1.0]
        at net.pms.encoders.FFmpegWebVideo.<init>(FFmpegWebVideo.java:96) ~[ums.jar:3.1.0]
        at net.pms.encoders.PlayerFactory.registerPlayers(PlayerFactory.java:129) ~[ums.jar:3.1.0]
        at net.pms.encoders.PlayerFactory.initialize(PlayerFactory.java:109) ~[ums.jar:3.1.0]
        at net.pms.PMS.init(PMS.java:691) ~[ums.jar:3.1.0]
        at net.pms.PMS.createInstance(PMS.java:1075) ~[ums.jar:3.1.0]
        at net.pms.PMS.main(PMS.java:1171) ~[ums.jar:3.1.0]
Caused by: java.io.IOException: error=2, Nie ma takiego pliku ani katalogu
        at java.lang.UNIXProcess.forkAndExec(Native Method) ~[na:1.7.0_25]
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:135) ~[na:1.7.0_25]
        at java.lang.ProcessImpl.start(ProcessImpl.java:130) ~[na:1.7.0_25]
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022) ~[na:1.7.0_25]
        ... 8 common frames omitted
ls of ums dir

Code: Select all

CHANGELOG.txt  database  documentation  ffmpeg  INSTALL.txt  LICENSE.txt  logback.headless.xml  logback.xml  plugins  README.txt  renderers  tsMuxeR  UMS.conf  ums.jar  UMS.sh  WEB.conf
When apt-get install ffmpeg, ums use the one that is installed and not the one in dir

ums.sh

Code: Select all

exec "$JAVA" $JAVA_OPTS -Xmx768M -Xss2048k -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Djna.nosys=true -classpath "$PMS_JARS" net.pms.PMS "$@"
even chmoding ffmpeg to 777 dont work.

edit:

workaround with ffmpeg is set
ffmpeg_path = /home/USER/ums-3.1.0/ffmpeg

but why?! it work with default at 3.0.0
server: C2D [email protected] 3GB RAM
network: wired 1000MB/s
render: LG 55LM620S, Samsung LE40C650, PS3
OS: Linux 13.10 64bit
infidel
Developer
Posts: 571
Joined: Thu Jul 12, 2012 5:37 am

Re: 3.1.0 OutOfMemoeryError and FFMPEG not found

Post by infidel »

sapsa wrote:When apt-get install ffmpeg, ums use the one that is installed and not the one in dir
Thanks for the thorough report :). It's been fixed for the next release (3.1.2) so that
  • UMS ffmpeg is found without throwing the error and used by default.
  • ffmpeg_path=ffmpeg means 'use the system ffmpeg'.
sapsa
Posts: 59
Joined: Wed Nov 13, 2013 8:22 am

Re: 3.1.0 OutOfMemoeryError and FFMPEG not found

Post by sapsa »

infidel wrote:
sapsa wrote:When apt-get install ffmpeg, ums use the one that is installed and not the one in dir
Thanks for the thorough report :). It's been fixed for the next release (3.1.2) so that
  • UMS ffmpeg is found without throwing the error and used by default.
  • ffmpeg_path=ffmpeg means 'use the system ffmpeg'.
thanks, i will narrow the outOfMemeoryError now
server: C2D [email protected] 3GB RAM
network: wired 1000MB/s
render: LG 55LM620S, Samsung LE40C650, PS3
OS: Linux 13.10 64bit
Post Reply