Page 1 of 1

Failed to read media characteristics: ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe

Posted: 06 Jan 2020, 16:23
by ArTi
Hi all,

i need your help.
I'am on NAS synology DS 1817 with 8Go RAM ( it's a 32bits processor).

when i try to run filebot i have this error :

here is an example :

Code: Select all

Failed to read media characteristics: ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe, -show_streams, -show_format, -print_format, json, -v, error, /volume1/Torrent/[ OxTorrent.com ] Batwoman.S01E01.SUBFRENCH.WEBRip.XviD-EXTREME.avi] failed (1)
here is my sysinfo :

Code: Select all

FileBot 4.9.0 (r7026)
JNA Native: 6.1.0
MediaInfo: 19.04
p7zip: p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)
unrar: UNRAR 5.21 freeware
Chromaprint: 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-12-07 (r610)
Groovy: 2.5.8
JRE: OpenJDK Runtime Environment 13.0.1-BellSoft
JVM: 32-bit OpenJDK Client VM
CPU/MEM: 4 Core / 259 MB Max Memory / 22 MB Used Memory
OS: Linux (arm)
HW: Linux XXXXX 3.10.105 #24922 SMP Tue Jul 9 18:27:19 CST 2019 armv7l GNU/Linux synology_alpine_ds1817
STORAGE: ext4 [/] @ 1.4 GB | ext4 [/volume1] @ 11 TB | ext4 [/opt] @ 11 TB
DATA: /volume1/@appstore/filebot/data/root
Package: SPK
License: FileBot License XXXXX (Valid-Until: 2020-11-06)
Done ヾ(@⌒ー⌒@)ノ
could you help me ?

Re: Failed to read media characteristics: ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe

Posted: 06 Jan 2020, 18:16
by rednoah
:?: What does the complete console output say? This is just a warning. If something else is not working, then it's most likely unrelated. Is there anything in particular that isn't working? Is FileBot not processing files correctly?


:idea: On Synology NAS, FileBot is configured to use ffprobe to read basic media properties. Nice to have. But not strictly necessary information. FileBot will work fine without. Presumably, this particular file is corrupt, and so ffprobe can't parse it and fails.

Re: Failed to read media characteristics: ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe

Posted: 09 Jan 2020, 18:40
by ArTi
in fact that seems to crash, at the end i have this message :

Code: Select all

Java heap space
java.lang.OutOfMemoryError: Java heap space
	at com.ibm.icu.impl.ICUBinary.getByteBufferFromInputStreamAndCloseStream(ICUBinary.java:721)
	at com.ibm.icu.impl.ICUBinary.getData(ICUBinary.java:500)
	at com.ibm.icu.impl.ICUBinary.getData(ICUBinary.java:438)
	at com.ibm.icu.impl.ICUResourceBundleReader$ReaderCache.createInstance(ICUResourceBundleReader.java:189)
	at com.ibm.icu.impl.ICUResourceBundleReader$ReaderCache.createInstance(ICUResourceBundleReader.java:178)
	at com.ibm.icu.impl.SoftCache.getInstance(SoftCache.java:65)
	at com.ibm.icu.impl.ICUResourceBundleReader.getReader(ICUResourceBundleReader.java:233)
	at com.ibm.icu.impl.ICUResourceBundle.createBundle(ICUResourceBundle.java:1308)
	at com.ibm.icu.impl.ICUResourceBundle$4.load(ICUResourceBundle.java:1181)
	at com.ibm.icu.impl.ICUResourceBundle$1.createInstance(ICUResourceBundle.java:92)
	at com.ibm.icu.impl.ICUResourceBundle$1.createInstance(ICUResourceBundle.java:89)
	at com.ibm.icu.impl.SoftCache.getInstance(SoftCache.java:65)
	at com.ibm.icu.impl.ICUResourceBundle.instantiateBundle(ICUResourceBundle.java:1168)
	at com.ibm.icu.impl.ICUResourceBundle.getBundleInstance(ICUResourceBundle.java:1141)
	at com.ibm.icu.impl.ICUResourceBundle.getBundleInstance(ICUResourceBundle.java:1120)
	at com.ibm.icu.util.UResourceBundle.instantiateBundle(UResourceBundle.java:375)
	at com.ibm.icu.util.UResourceBundle.getBundleInstance(UResourceBundle.java:149)
	at com.ibm.icu.util.UResourceBundle.getBundleInstance(UResourceBundle.java:110)
	at com.ibm.icu.util.ULocale.lookupLikelySubtags(ULocale.java:2832)
	at com.ibm.icu.util.ULocale.createLikelySubtagsString(ULocale.java:2950)
	at com.ibm.icu.util.ULocale.addLikelySubtags(ULocale.java:2339)
	at com.ibm.icu.lang.UScript.findCodeFromLocale(UScript.java:1088)
	at com.ibm.icu.lang.UScript.getCode(UScript.java:1136)
	at com.ibm.icu.text.TransliteratorRegistry$Spec.<init>(TransliteratorRegistry.java:113)
	at com.ibm.icu.text.TransliteratorRegistry.find(TransliteratorRegistry.java:766)
	at com.ibm.icu.text.TransliteratorRegistry.find(TransliteratorRegistry.java:737)
	at com.ibm.icu.text.TransliteratorRegistry.get(TransliteratorRegistry.java:311)
	at com.ibm.icu.text.Transliterator.getBasicInstance(Transliterator.java:1638)
	at com.ibm.icu.text.TransliteratorIDParser$SingleID.getInstance(TransliteratorIDParser.java:130)
	at com.ibm.icu.text.TransliteratorIDParser.instantiateList(TransliteratorIDParser.java:437)
	at com.ibm.icu.text.Transliterator.getInstance(Transliterator.java:1603)
	at com.ibm.icu.text.Transliterator.getInstance(Transliterator.java:1576)

Error (o_O)

------------------------------------------

[Process error]

🔺 Exit Code: 1

Re: Failed to read media characteristics: ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe

Posted: 09 Jan 2020, 18:55
by rednoah
FileBot is limited to 259 MB of RAM on your device, which may not be enough for non-trivial tasks:

Code: Select all

CPU/MEM: 4 Core / 259 MB Max Memory / 22 MB Used Memory
Do export JAVA_OPTS=-Xmx2g before calling filebot to manually adjust the memory limit.

Re: Failed to read media characteristics: ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe

Posted: 09 Jan 2020, 20:04
by ArTi
when i try your command i have no error but when i launch a sysinfo i have this :

Code: Select all

[email protected]:~# export JAVA_OPTS=-Xmx2g
[email protected]:~# filebot -script 'fn:sysinfo' --log-file '/usr/local/filebot                                                                                                                                                             -node/data/filebot.log'
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap

Re: Failed to read media characteristics: ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe

Posted: 09 Jan 2020, 20:20
by rednoah
How about 1 GB then?

Code: Select all

export JAVA_OPTS=-Xmx1g

Re: Failed to read media characteristics: ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe

Posted: 09 Jan 2020, 20:25
by ArTi
i try with Xmx1536m.. seems to works:

Code: Select all

CPU/MEM: 4 Core / 1.6 GB Max Memory / 23 MB Used Memory
now i launch filebot to see what happens.

Re: Failed to read media characteristics: ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe

Posted: 09 Jan 2020, 20:30
by rednoah
I suppose the 32-bit armv7l JRE has some additional limitations in terms of max. memory, which makes the effective max. possible memory somewhat lower than the 4 GB physical limit of 32-bit address space.

Re: Failed to read media characteristics: ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe

Posted: 09 Jan 2020, 21:25
by ArTi
when i restart i'm back to 256mb.

how to setup filebot and filebot node to be set as default at 1536MB ? wich file i have to modify ?

Re: Failed to read media characteristics: ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe

Posted: 09 Jan 2020, 21:35
by rednoah
I suppose you could set environment variables globally via /etc/environment:

Code: Select all

JAVA_OPTS=-Xmx1g
:arrow: https://unix.stackexchange.com/a/117473

:idea: I'd probably created my own filebot wrapper script, and replace the filebot command with that. This is also among the suggested things in the link above.

Re: Failed to read media characteristics: ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe

Posted: 09 Jan 2020, 21:57
by ArTi
sorry but i dont see the file environement in /etc/

could i add : export JAVA_OPTS=-Xmx1536m in /etc/profile ?

Re: Failed to read media characteristics: ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe

Posted: 09 Jan 2020, 22:17
by rednoah
Maybe. But not sure if /etc/profile is used for background tasks without login shell.

:arrow: Just do which filebot (to see which absolute path the command refers to) and then replace that symlink with your own script file, in that script file you first do your exports and then call the real filebot executable via its absolute path. It's the solution I would go for as mentioned in my previous post.

Re: Failed to read media characteristics: ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe

Posted: 09 Jan 2020, 22:21
by ArTi
rednoah wrote: 09 Jan 2020, 22:17 :arrow: Just do which filebot (to see which absolute path the command refers to) and then replace that symlink with your own script file, in that script file you first do your exports and then call the real filebot executable via its absolute path. It's the solution I would go for as mentioned in my previous post.
i would do that but can you give me a step by step guide ?

i want mainely to use filebot-node but each time i try the sysinfo it show me mb. so i dont know how to execute it before running filebot-note

Re: Failed to read media characteristics: ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe

Posted: 09 Jan 2020, 22:32
by rednoah
What does this command say?

Code: Select all

ls -l `which filebot`
:idea: The output will tell you where the filebot.sh launcher script is. As long as you can use vi to modify text files, I think you should be able to take it from there. ;)

Re: Failed to read media characteristics: ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe

Posted: 09 Jan 2020, 22:58
by ArTi
ok i will try that thanks