Page 1 of 1

3.1.0 OutOfMemoeryError and FFMPEG not found

Posted: Fri Nov 22, 2013 4:32 am
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

Re: 3.1.0 OutOfMemoeryError and FFMPEG not found

Posted: Mon Nov 25, 2013 1:22 am
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'.

Re: 3.1.0 OutOfMemoeryError and FFMPEG not found

Posted: Thu Nov 28, 2013 4:32 am
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