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

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
ArTi
Posts: 15
Joined: 02 Nov 2016, 16:38

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

Post 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 ?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
ArTi
Posts: 15
Joined: 02 Nov 2016, 16:38

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

Post 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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
ArTi
Posts: 15
Joined: 02 Nov 2016, 16:38

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

Post by ArTi »

when i try your command i have no error but when i launch a sysinfo i have this :

Code: Select all

root@ArTi-Concept:~# export JAVA_OPTS=-Xmx2g
root@ArTi-Concept:~# 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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah »

How about 1 GB then?

Code: Select all

export JAVA_OPTS=-Xmx1g
:idea: Please read the FAQ and How to Request Help.
ArTi
Posts: 15
Joined: 02 Nov 2016, 16:38

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

Post 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.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
ArTi
Posts: 15
Joined: 02 Nov 2016, 16:38

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

Post 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 ?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
ArTi
Posts: 15
Joined: 02 Nov 2016, 16:38

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

Post by ArTi »

sorry but i dont see the file environement in /etc/

could i add : export JAVA_OPTS=-Xmx1536m in /etc/profile ?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
ArTi
Posts: 15
Joined: 02 Nov 2016, 16:38

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

Post 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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply