Failed to read video resolution or bitrate: net.filebot.ExecuteException

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
szagi
Posts: 3
Joined: 07 May 2019, 23:41

Failed to read video resolution or bitrate: net.filebot.ExecuteException

Post by szagi » 08 May 2019, 00:14

Hi, when filebot tries to automatically resolve conflict (same episode of tv show but in different quality) there is some error:

Code: Select all

Failed to read video resolution or bitrate: net.filebot.ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe, -show_streams, -show_format, -print_format, json, -v, error, /volume1/download/copy/Game.of.Thrones.S02E02.1080p.WEB-DL.DD5.1.H264-FX3.mkv] failed (1)
Log

Code: Select all

Run script [fn:amc] at [Wed May 08 02:10:46 CEST 2019]
Parameter: music = y
Parameter: unsorted = y
Parameter: artwork = y
Parameter: subtitles = eng
Parameter: deleteAfterExtract = y
Parameter: excludeList = .excludes
Parameter: kodi = *****
Argument[0]: /volume1/download
Use excludes: /volume1/video/.excludes
Ignore hidden: /volume1/download/.DS_Store
Ignore system path: /volume1/download/@eaDir
Ignore system path: /volume1/download/copy/@eaDir
Input: /volume1/download/copy/Game of Thrones - S02E02 - The Night Lands.mkv
Input: /volume1/download/copy/Game.of.Thrones.S02E02.1080p.WEB-DL.DD5.1.H264-FX3.mkv
Group: [Series:game of thrones] => [Game of Thrones - S02E02 - The Night Lands.mkv, Game.of.Thrones.S02E02.1080p.WEB-DL.DD5.1.H264-FX3.mkv]
Get [English] subtitles for 2 files
Looking up subtitles by hash via OpenSubtitles
Failed to read video properties: NumberFormatException: For input string: "16999/709"
Fetching [English] subtitles [Game.of.Thrones.S02E02.BDRIP.x264.Hun.Eng-Krissz.en.srt] from [OpenSubtitles]
Export [Game.of.Thrones.S02E02.BDRIP.x264.Hun.Eng-Krissz.en.srt] as [SubRip / UTF-8]
Writing [Game.of.Thrones.S02E02.BDRIP.x264.Hun.Eng-Krissz.en.srt] to [Game.of.Thrones.S02E02.1080p.WEB-DL.DD5.1.H264-FX3.eng.srt]
Fetching [English] subtitles [Game.of.Thrones.S02E02.BDRIP.x264.Hun.Eng-Krissz.en.srt] from [OpenSubtitles]
Export [Game.of.Thrones.S02E02.BDRIP.x264.Hun.Eng-Krissz.en.srt] as [SubRip / UTF-8]
Writing [Game.of.Thrones.S02E02.BDRIP.x264.Hun.Eng-Krissz.en.srt] to [Game of Thrones - S02E02 - The Night Lands.eng.srt]
Rename episodes using [TheTVDB]
Auto-detected query: [Game of Thrones]
Fetching episode data for [Game of Thrones]
Fetching episode data for [Gay of Thrones]
Fetching episode data for [Game of Stones]
Fetching episode data for [Game of Teens]
Fetching episode data for [Game Of Homes]
Auto-detected query: [Game of Thrones]
Fetching episode data for [Game of Thrones]
Fetching episode data for [Gay of Thrones]
Fetching episode data for [Game of Stones]
Fetching episode data for [Game of Teens]
Fetching episode data for [Game Of Homes]
Auto-detected query: [Game of Thrones]
Fetching episode data for [Game of Thrones]
Fetching episode data for [Gay of Thrones]
Fetching episode data for [Game of Stones]
Fetching episode data for [Game of Teens]
Fetching episode data for [Game Of Homes]
Auto-detected query: [Game of Thrones]
Fetching episode data for [Game of Thrones]
Fetching episode data for [Gay of Thrones]
Fetching episode data for [Game of Stones]
Fetching episode data for [Game of Teens]
Fetching episode data for [Game Of Homes]
[MOVE] from [/volume1/download/copy/Game of Thrones - S02E02 - The Night Lands.mkv] to [/volume1/video/TV Shows/Game of Thrones/Season 02/Game of Thrones - S02E02 - The Night Lands.mkv]
Failed to read video resolution or bitrate: net.filebot.ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe, -show_streams, -show_format, -print_format, json, -v, error, /volume1/download/copy/Game.of.Thrones.S02E02.1080p.WEB-DL.DD5.1.H264-FX3.mkv] failed (1)
Skipped [/volume1/download/copy/Game.of.Thrones.S02E02.1080p.WEB-DL.DD5.1.H264-FX3.mkv] because [/volume1/video/TV Shows/Game of Thrones/Season 02/Game of Thrones - S02E02 - The Night Lands.mkv] already exists
Failed to read video resolution or bitrate: net.filebot.ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe, -show_streams, -show_format, -print_format, json, -v, error, /volume1/download/copy/Game.of.Thrones.S02E02.1080p.WEB-DL.DD5.1.H264-FX3.mkv] failed (1)
Skipped [/volume1/download/copy/Game.of.Thrones.S02E02.1080p.WEB-DL.DD5.1.H264-FX3.eng.srt] because [/volume1/video/TV Shows/Game of Thrones/Season 02/Game of Thrones - S02E02 - The Night Lands.eng.srt] already exists
Failed to read video resolution or bitrate: net.filebot.ExecuteException: [/volume1/@appstore/MediaServer/bin/ffprobe, -show_streams, -show_format, -print_format, json, -v, error, /volume1/download/copy/Game.of.Thrones.S02E02.1080p.WEB-DL.DD5.1.H264-FX3.mkv] failed (1)
Skipped [/volume1/download/copy/Game of Thrones - S02E02 - The Night Lands.eng.srt] because [/volume1/video/TV Shows/Game of Thrones/Season 02/Game of Thrones - S02E02 - The Night Lands.eng.srt] already exists
Processed 1 files
Fetching series artwork for [Game of Thrones / Season 2] to [/volume1/video/TV Shows/Game of Thrones/Season 02]
Generate Series NFO: Game of Thrones [121361]
Banner already exists: /volume1/video/TV Shows/Game of Thrones/poster.jpg
Banner already exists: /volume1/video/TV Shows/Game of Thrones/banner.jpg
Banner already exists: /volume1/video/TV Shows/Game of Thrones/fanart.jpg
Banner already exists: /volume1/video/TV Shows/Game of Thrones/Season 02/poster.jpg
Banner already exists: /volume1/video/TV Shows/Game of Thrones/Season 02/banner.jpg
Fanart already exists: /volume1/video/TV Shows/Game of Thrones/clearart.png
Fanart already exists: /volume1/video/TV Shows/Game of Thrones/logo.png
Fanart already exists: /volume1/video/TV Shows/Game of Thrones/landscape.jpg
Fanart already exists: /volume1/video/TV Shows/Game of Thrones/Season 02/landscape.jpg
Notify Kodi: [host:192.168.1.103]
POST: http://192.168.1.103:8080/jsonrpc {"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"FileBot finished processing 1 files","message":"\u2022 Game of Thrones - S02E02 - The Night Lands\n\u2022 copy","image":"https://app.filebot.net/icon.png"},"id":1}
ConnectException: Connection refused (Connection refused)
Done ヾ(@⌒ー⌒@)ノ
sysinfo

Code: Select all

$ filebot -script fn:sysinfo
FileBot 4.8.5 (r6224)
JNA Native: 5.2.2
MediaInfo: 0.7.93
p7zip: p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,2 CPUs)
unrar: UNRAR 5.21 freeware
FFprobe: 3.3.7
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-05-05 (r564)
Groovy: 2.5.6
JRE: Java(TM) SE Runtime Environment 1.8.0_111
JVM: 32-bit Java HotSpot(TM) Client VM
CPU/MEM: 2 Core / 121 MB Max Memory / 9 MB Used Memory
OS: Linux (arm)
HW: Linux NAS 3.10.105 #23824 SMP Tue Feb 12 16:48:50 CST 2019 armv7l GNU/Linux synology_armada38x_ds216j
DATA: /volume1/@appstore/filebot/data/nas
Package: SPK
License: FileBot License P4260572 (Valid-Until: 2019-08-11)
Done ヾ(@⌒ー⌒@)ノ
How can I fix this?

szagi
Posts: 3
Joined: 07 May 2019, 23:41

Re: Failed to read video resolution or bitrate: net.filebot.ExecuteException

Post by szagi » 08 May 2019, 00:26

I forgot to mention that mediainfo seems to works fine

Code: Select all

$ filebot -mediainfo /volume1/download/copy/
Game.of.Thrones.S02E02.1080p.WEB-DL.DD5.1.H264-FX3 [1920x1080 AVC 5.1 AC3 0:53 5.3 Mbps]
Game of Thrones - S02E02 - The Night Lands [1920x1080 x264 5.1 AAC 0:53 1.8 Mbps]

User avatar
rednoah
The Source
Posts: 16416
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Failed to read video resolution or bitrate: net.filebot.ExecuteException

Post by rednoah » 08 May 2019, 03:20

What's the console output when you run this command?

Code: Select all

/volume1/@appstore/MediaServer/bin/ffprobe -show_streams -show_format -print_format json -v error /volume1/download/copy/Game.of.Thrones.S02E02.1080p.WEB-DL.DD5.1.H264-FX3.mkv
:idea: Please read the FAQ and How to Request Help.

szagi
Posts: 3
Joined: 07 May 2019, 23:41

Re: Failed to read video resolution or bitrate: net.filebot.ExecuteException

Post by szagi » 08 May 2019, 08:46

I run this command on both files just to be sure it works fine on second one because on first one the output is empty.

Code: Select all

[email protected]:~$ /volume1/@appstore/MediaServer/bin/ffprobe -show_streams -show_format -print_format json -v error /volume1/download/copy/Game.of.Thrones.S02E02.1080p.WEB-DL.DD5.1.H264-FX3.mkv
{
[email protected]:~$ /volume1/@appstore/MediaServer/bin/ffprobe -show_streams -show_format -print_format json -v error /volume1/download/copy/Game\ of\ Thrones\ -\ S02E02\ -\ The\ Night\ Lands.mkv
{
    "streams": [
        {
            "index": 0,
            "codec_name": "h264",
            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
            "profile": "High",
            "codec_type": "video",
            "codec_time_base": "709/33998",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "width": 1920,
            "height": 1080,
            "coded_width": 1920,
            "coded_height": 1080,
            "has_b_frames": 2,
            "sample_aspect_ratio": "1:1",
            "display_aspect_ratio": "16:9",
            "pix_fmt": "yuv420p",
            "level": 41,
            "color_range": "tv",
            "color_space": "bt709",
            "color_transfer": "bt709",
            "color_primaries": "bt709",
            "chroma_location": "left",
            "field_order": "progressive",
            "refs": 1,
            "is_avc": "true",
            "nal_length_size": "4",
            "r_frame_rate": "16999/709",
            "avg_frame_rate": "16999/709",
            "time_base": "1/1000",
            "start_pts": 0,
            "start_time": "0.000000",
            "bits_per_raw_sample": "8",
            "disposition": {
                "default": 1,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0
            },
            "tags": {
                "language": "eng"
            }
        },
        {
            "index": 1,
            "codec_name": "aac",
            "codec_long_name": "AAC (Advanced Audio Coding)",
            "profile": "LC",
            "codec_type": "audio",
            "codec_time_base": "1/48000",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "sample_fmt": "fltp",
            "sample_rate": "48000",
            "channels": 6,
            "channel_layout": "5.1",
            "bits_per_sample": 0,
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/1000",
            "start_pts": 0,
            "start_time": "0.000000",
            "disposition": {
                "default": 1,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0
            },
            "tags": {
                "language": "eng"
            }
        }
    ],
    "format": {
        "filename": "/volume1/download/copy/Game of Thrones - S02E02 - The Night Lands.mkv",
        "nb_streams": 2,
        "nb_programs": 0,
        "format_name": "matroska,webm",
        "format_long_name": "Matroska / WebM",
        "start_time": "0.000000",
        "duration": "3209.706750",
        "size": "724607406",
        "bit_rate": "1806040",
        "probe_score": 100,
        "tags": {
            "encoder": "libmkv 0.6.5"
        }
    }
}
If I change verbose level do debug:

Code: Select all

[email protected]:~$ /volume1/@appstore/MediaServer/bin/ffprobe -show_streams -show_format -print_format json -v debug /volume1/download/copy/Game.of.Thrones.S02E02.1080p.WEB-DL.DD5.1.H264-FX3.mkv
ffprobe version 3.3.7 Copyright (c) 2007-2017 the FFmpeg developers
  built with gcc 4.9.3 (crosstool-NG 1.20.0) 20150311 (prerelease)
  configuration: --prefix=/usr/pkg --incdir='${prefix}/include/ffmpeg' --arch=armv7 --target-os=linux --cross-prefix=/usr/local/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-version3 --enable-nonfree --enable-encoders --enable-pthreads --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffplay --disable-ffserver --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 --extra-cflags=-I/usr/local/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/usr/pkg/include --extra-ldflags=-L/usr/local/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/usr/pkg/lib --cc=/usr/local/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ccache-gcc --enable-shared --disable-static --enable-libfdk-aac
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
{
[NULL @ 0xae3970] Opening '/volume1/download/copy/Game.of.Thrones.S02E02.1080p.WEB-DL.DD5.1.H264-FX3.mkv' for reading
[file @ 0xae40c0] Setting default whitelist 'file,crypto'
[matroska,webm @ 0xae3970] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
[matroska,webm @ 0xae3970] Before avformat_find_stream_info() pos: 5651 bytes read:32768 seeks:0 nb_streams:2
[h264 @ 0xae6520] nal_unit_type: 7, nal_ref_idc: 1
[h264 @ 0xae6520] nal_unit_type: 8, nal_ref_idc: 1
[h264 @ 0xae6520] nal_unit_type: 7, nal_ref_idc: 1
[h264 @ 0xae6520] nal_unit_type: 8, nal_ref_idc: 1
[h264 @ 0xae6520] user data:"?"
[h264 @ 0xae6520] nal_unit_type: 6, nal_ref_idc: 0
    Last message repeated 1 times
[h264 @ 0xae6520] nal_unit_type: 5, nal_ref_idc: 1
    Last message repeated 7 times
[h264 @ 0xae6520] user data:"?"
[h264 @ 0xae6520] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 0xae6520] user data:"?"
[h264 @ 0xae6520] nal_unit_type: 6, nal_ref_idc: 0
    Last message repeated 1 times
[h264 @ 0xae6520] nal_unit_type: 5, nal_ref_idc: 1
    Last message repeated 7 times
[h264 @ 0xae6520] user data:"?"
[h264 @ 0xae6520] user data:"?�"
[h264 @ 0xae6520] nal_unit_type: 6, nal_ref_idc: 0
[h264 @ 0xae6520] nal_unit_type: 1, nal_ref_idc: 1
    Last message repeated 7 times
[h264 @ 0xae6520] user data:"?�"
[h264 @ 0xae6520] Increasing reorder buffer to 1
[h264 @ 0xae6520] no picture
[h264 @ 0xae6520] user data:"?�"
[h264 @ 0xae6520] nal_unit_type: 6, nal_ref_idc: 0
[h264 @ 0xae6520] nal_unit_type: 1, nal_ref_idc: 0
    Last message repeated 7 times
[h264 @ 0xae6520] user data:"?�"
    Last message repeated 1 times
[h264 @ 0xae6520] nal_unit_type: 6, nal_ref_idc: 0
[h264 @ 0xae6520] nal_unit_type: 1, nal_ref_idc: 1
    Last message repeated 7 times
[h264 @ 0xae6520] user data:"?�"
    Last message repeated 1 times
[h264 @ 0xae6520] nal_unit_type: 6, nal_ref_idc: 0
[h264 @ 0xae6520] nal_unit_type: 1, nal_ref_idc: 0
    Last message repeated 7 times
[h264 @ 0xae6520] user data:"?�"
    Last message repeated 1 times
[h264 @ 0xae6520] nal_unit_type: 6, nal_ref_idc: 0
[h264 @ 0xae6520] nal_unit_type: 1, nal_ref_idc: 1
    Last message repeated 7 times
[h264 @ 0xae6520] user data:"?�"
    Last message repeated 1 times
[h264 @ 0xae6520] nal_unit_type: 6, nal_ref_idc: 0
[h264 @ 0xae6520] nal_unit_type: 1, nal_ref_idc: 0
    Last message repeated 7 times
[h264 @ 0xae6520] user data:"?�"
    Last message repeated 1 times
[matroska,webm @ 0xae3970] All info found
[matroska,webm @ 0xae3970] After avformat_find_stream_info() pos: 66040 bytes read:98304 seeks:0 frames:27
Input #0, matroska,webm, from '/volume1/download/copy/Game.of.Thrones.S02E02.1080p.WEB-DL.DD5.1.H264-FX3.mkv':
  Metadata:
    encoder         : libebml v1.2.3 + libmatroska v1.3.0
    creation_time   : 2013-04-06T01:08:42.000000Z
  Duration: 00:53:29.67, start: 0.000000, bitrate: 5326 kb/s
    Stream #0:0(eng), 9, 1/1000: Video: h264 (High), 1 reference frame, yuv420p(tv, bt709, progressive, topleft), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 0/1, 23.98 fps, 23.98 tbr, 1k tbn, 2k tbc (default)
    Stream #0:1(eng), 18, 1/1000: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
[h264 @ 0xc3a860] nal_unit_type: 7, nal_ref_idc: 1
[h264 @ 0xc3a860] nal_unit_type: 8, nal_ref_idc: 1
Could not open codec for input stream 1
Above result applies to other all seven seasons, about 70 video files.

User avatar
rednoah
The Source
Posts: 16416
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Failed to read video resolution or bitrate: net.filebot.ExecuteException

Post by rednoah » 08 May 2019, 09:36

1.
Looks like ffprobe isn't working correctly. No idea. It's a Synology built-in tool, so not much I can do to fix it.


2.
If MediaInfo works on your machine, then we can configure FileBot to use that instead:

Code: Select all

filebot -script fn:properties --def net.filebot.media.parser=libmediainfo
:idea: Please read the FAQ and How to Request Help.

Post Reply