[Synology DSM7] New install: Bizarre mismatch, failure to download subs, and "failed to read media characteristics"

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
Belisarius
Posts: 3
Joined: 07 May 2013, 03:55

[Synology DSM7] New install: Bizarre mismatch, failure to download subs, and "failed to read media characteristics"

Post by Belisarius »

summary of problems
  1. "Failed to read media characteristics" despite ffprobe being installed and running. No clue whether this matters.
  2. "java.nio.file.AccessDeniedException" preventing download of subtitles. I have used the Synology GUI to give Java and Filebot read/write access to the relevant folder. I've also used chmod 777 on that folder. Note: this exception exists alongside a "No subtitle match by hash" warning. I don't know if those are related.
  3. Somehow filebot is matching Hot Fuzz (2007) with "Black Veil Brides - Alive and Burning" (2015). I've tried in strict and non-strict mode. I've also tried renaming the file and path (the folder and file were both originally named Hot.Fuzz.2007.1080p.BluRay.DTS.x264-CtrlHD, but I changed the folder name to "Hot Fuzz 2007" and the file name to "Hot.Fuzz.2007." Filebot still insists that this Simon Pegg comedy is in truth a concert recording from an obscure American rock band. But when I access my NAS as a network drive, Filebot Windows identifies the film automatically.
filebot call and output

Code: Select all

filebot -script 'fn:amc' /volume1/sync/kratos --output /volume1/video --action TEST -non-strict --order Airdate --conflict auto --lang en --def 'unsorted=y' 'artwork=y' 'subtitles=eng' 'clean=y' 'deleteAfterExtract=y' 'minLengthMS=300000' 'excludeList=.excludes' --apply refresh --log fine --log-file '/var/packages/filebot-node/var/filebot.log'

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

Run script [fn:amc] at [Thu Jan 13 16:23:59 COT 2022]
Use excludes: /volume1/video/.excludes (0)
Failed to read media characteristics: /volume1/sync/kratos/Hot Fuzz 2007/Hot.Fuzz.2007.mkv [Last-Modified: Thu Jan 13 11:09:26 COT 2022]: [/var/packages/MediaServer/target/bin/ffprobe, -show_streams, -show_format, -print_format, json, -v, error, /volume1/sync/kratos/Hot Fuzz 2007/Hot.Fuzz.2007.mkv] failed (1)
Input: /volume1/sync/kratos/Hot Fuzz 2007/Hot.Fuzz.2007.mkv
Looking up subtitles by hash via OpenSubtitles
Fetching [English] subtitles [Hot.Fuzz.2007.1080p.BluRay.DTS.x264-CtrlHD.srt] from [OpenSubtitles]
Writing [Hot.Fuzz.2007.1080p.BluRay.DTS.x264-CtrlHD.srt] to [Hot.Fuzz.2007.eng.srt]
Failed to download Hot.Fuzz.2007.1080p.BluRay.DTS.x264-CtrlHD.srt: java.nio.file.AccessDeniedException: /volume1/sync/kratos/Hot Fuzz 2007/Hot.Fuzz.2007.eng.srt
No subtitle match by hash: /volume1/sync/kratos/Hot Fuzz 2007/Hot.Fuzz.2007.mkv
Rename movies using [TheMovieDB]
[TEST] from [/volume1/sync/kratos/Hot Fuzz 2007/Hot.Fuzz.2007.mkv] to [/volume1/video/Movies/Black Veil Brides - Alive and Burning (2015)/Black Veil Brides - Alive and Burning (2015).mkv]
Finished without processing any files
FFProbe version:

Code: Select all

ffprobe version 4.1.6 Copyright (c) 2007-2020 the FFmpeg developers
built with gcc 7.5.0 (GCC)
configuration: --prefix=/usr/pkg --incdir='${prefix}/include/ffmpeg' --arch=i686 --pkg-config=/usr/bin/pkg-config --target-os=linux --cross-prefix=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-version3 --enable-nonfree --enable-encoders --enable-pthreads --disable-protocols --disable-protocol=rtp --enable-protocol=file --enable-protocol=http --enable-protocol=https --enable-protocol=pipe --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffplay --disable-doc --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --disable-decoder=amrnb --disable-encoder=zmbv --disable-encoder=dca --disable-decoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-decoder=eac3 --disable-encoder=truehd --disable-decoder=truehd --disable-encoder=hevc_vaapi --disable-decoder=hevc --disable-muxer=hevc --disable-demuxer=hevc --disable-parser=hevc --disable-bsf=hevc_mp4toannexb --x86asmexe=yasm --extra-cflags=-I/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/pkg/include --extra-ldflags=-L/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/pkg/lib --cc=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-wrap-gcc --enable-shared --disable-static --enable-yasm --enable-libx264 --enable-vaapi --enable-encoder=h264_vaapi --enable-encoder=libx264
libavutil      56. 22.100 / 56. 22.100
libavcodec     58. 35.100 / 58. 35.100
libavformat    58. 20.100 / 58. 20.100
libavdevice    58.  5.100 / 58.  5.100
libavfilter     7. 40.101 /  7. 40.101
libswscale      5.  3.100 /  5.  3.100
libswresample   3.  3.100 /  3.  3.100
libpostproc    55.  3.100 / 55.  3.100
.nfo file in same directory as video file:

Code: Select all

Hot Fuzz 2007 1080p BluRay DTS x264-CtrlHD

Plot
Jealous colleagues conspire to get a top London cop
transferred to a small town and paired with a witless new
partner. On the beat, the pair stumble upon a series of
suspicious accidents and events.

General Information
RUNTIME.......: 2:00:52
SIZE..........: 12.3GB, 1xDVD9+1xDVD5
VIDEO.CODEC...: H.264 (x264, 2pass, L4.1)
FRAMERATE.....: 23.976fps
BITRATE.......: 12686kbps
RESOLUTION....: 1920x816
AUDIO1........: English DTS 5.1 @ 1536 Kbps
AUDIO2........: Vorbis Commentary #1 @ 80 Kbps
AUDIO3........: Vorbis Commentary #2 @ 80 Kbps
AUDIO4........: Vorbis Commentary #3 @ 80 Kbps
AUDIO5........: Vorbis Commentary #4 @ 80 Kbps
AUDIO6........: Vorbis Commentary #5 @ 80 Kbps
SOURCE........: Blu-ray 1080p VC-1
IMDB.RATING...: 8.0/10 (114,462 votes)
IMDB.LINK.....: http://www.imdb.com/title/tt0425112/

Post Information
ENCODER.......: CtrlHD
RELEASE.DATE..: 08/28/2009
obligatory screenshots
Image
Image
User avatar
rednoah
The Source
Posts: 20487
Joined: 16 Nov 2011, 08:59

Re: [Synology DSM7] New install: Bizarre mismatch, failure to download subs, and "failed to read media characteristics"

Post by rednoah »

1.
ffprobe fails with Exit Code 1 but that's all we can know:

Code: Select all

Failed to read media characteristics: /volume1/sync/kratos/Hot Fuzz 2007/Hot.Fuzz.2007.mkv [Last-Modified: Thu Jan 13 11:09:26 COT 2022]: [/var/packages/MediaServer/target/bin/ffprobe, -show_streams, -show_format, -print_format, json, -v, error, /volume1/sync/kratos/Hot Fuzz 2007/Hot.Fuzz.2007.mkv] failed (1)
You can call ffprobe yourself to check what the console output say:

Code: Select all

/var/packages/MediaServer/target/bin/ffprobe -show_streams -show_format -print_format json -v error "/volume1/sync/kratos/Hot Fuzz 2007/Hot.Fuzz.2007.mkv"
:idea: ffprobe may not work for some files, especially corrupt files, or due to bugs in ffprobe itself.



2.
This is indeed a file system permission issue. The OS does not allow FileBot to write that file for some reason:

Code: Select all

java.nio.file.AccessDeniedException: /volume1/sync/kratos/Hot Fuzz 2007/Hot.Fuzz.2007.eng.srt
:idea: Synology uses ACLs which override traditional Linux permissions, so chmod has no effect. Giving the user that is running the filebot process (likely FileBot if you run via FileBot Node, but not necessarily if you run via Synology Task Scheduler) the appropriate permissions via the Synology DSM UI should do the trick. But if it doesn't then you can always create a new network share with pristine permissions and see if that works.
Image



3.
Sorry, no clue on the mismatch. Strange indeed. You could do some systematic trial and error, i.e. create new empty files with different file structures to systematically narrow down what makes it work / not work step by step.



EDIT:

Using Log Level: everything may or may not shed light on the issue. You're using --log fine which will suppress some logging.



EDIT 2:

I will assume that you're using the latest version of FileBot. You can confirm that by clicking on Tools ➔ System Information in the FileBot Node WebUI.
:idea: Please read the FAQ and How to Request Help.
Post Reply