mdhiggins / sickbeard_mp4_automator

Automatically convert video files to a standardized format with metadata tagging to create a beautiful and uniform media library
MIT License
1.53k stars 201 forks source link

Processing error #1350

Closed djrarky closed 4 years ago

djrarky commented 4 years ago

Hey mate,

Sorry to ask for your help - but I don't know where I'm going wrong. SMA has stopped working for me, and I'm using the same config file I have for a while. I've tried re-deploying my containers with a new ini file, but I'm still getting the same problem.

I'm getting this output when running manually and when files are downloaded automatically.

autoProcess.ini:

[Converter]
ffmpeg = /usr/local/bin/ffmpeg
ffprobe = /usr/local/bin/ffprobe
threads = 0
hwaccels = dxva2, cuvid, qsv, d3d11va, vaapi
hwaccel-decoders = h264_cuvid, mjpeg_cuvid, mpeg1_cuvid, mpeg2_cuvid, mpeg4_cuvid, vc1_cuvid, hevc_qsv, h264_qsv, hevc_vaapi, h264_vaapi
hwdevices = vaapi:/dev/dri/renderD128
hwaccel-output-format = vaapi:vaapi
output-directory =
output-format = mp4
output-extension = mp4
temp-extension =
minimum-size = 0
ignored-extensions = nfo, ds_store
copy-to =
move-to =
delete-original = True
sort-streams = True
process-same-extensions = False
force-convert = False
post-process = False
wait-post-process = False
detailed-progress = False
preopts =
postopts =

[Permissions]
chmod = 0644
uid = -1
gid = -1

[Metadata]
relocate-moov = True
full-path-guess = True
tag = True
tag-language = eng
download-artwork = poster
sanitize-disposition =

[Video]
codec = h264, x264
max-bitrate = 0
crf = -1
crf-profiles =
preset =
codec-parameters =
dynamic-parameters = False
max-width = 0
profile =
max-level = 0.0
pix-fmt =
filter =
force-filter = False

[HDR]
pix-fmt =
space = bt2020nc
transfer = smpte2084
primaries = bt2020
preset =
codec-parameters =filter =
force-filter = False

[Audio]
codec = ac3
languages = eng, en
default-language = eng
first-stream-of-language = False
allow-language-relax = True
channel-bitrate = 128
max-bitrate = 0
max-channels = 0
prefer-more-channels = True
default-more-channels = True
filter =
force-filter = False
sample-rates =
copy-original = False
aac-adtstoasc = False
ignore-truehd = mp4, m4v
ignored-dispositions =
unique-dispositions = False

[Universal Audio]
codec = aac
channel-bitrate = 128
first-stream-only = False
move-after = False
filter =
force-filter = False

[Subtitle]
codec = mov_text
codec-image-based =
languages =
default-language =
first-stream-of-language = False
encoding =
burn-subtitles = False
burn-dispositions =
download-subs = False
download-hearing-impaired-subs = False
download-providers =
embed-subs = True
embed-image-subs = False
embed-only-internal-subs = False
filename-dispositions = forced
ignore-embedded-subs = False
ignored-dispositions =
unique-dispositions = False
attachment-codec =

[Sonarr]
host = 
port = 8989
apikey = 
ssl = False
webroot = /sonarr
force-rename = False

[Radarr]
host = 
port = 7878
apikey =   
ssl = False
webroot = /radarr
force-rename = False

[Sickbeard]
host = localhost
port = 8081
ssl = False
apikey =
webroot =
username =
password =

[Sickrage]
host = localhost
port = 8081
ssl = False
apikey =
webroot =
username =
password =

[CouchPotato]
host = localhost
port = 5050
username =
password =
apikey =
delay = 65
method = renamer
delete-failed = False
ssl = False
webroot =

[SABNZBD]
convert = True
sickbeard-category = sickbeard
sickrage-category = sickrage
couchpotato-category = couchpotato
sonarr-category = sonarr
radarr-category = radarr
bypass-category = bypass
output-directory =
path-mapping =

[Deluge]
couchpotato-label = couchpotato
sickbeard-label = sickbeard
sickrage-label = sickrage
sonarr-label = sonarr
radarr-label = radarr
bypass-label = bypass
convert = True
host = localhostconvert = True
host = localhost
port = 58846
username =
password =
output-directory =
remove = False
path-mapping =

[qBittorrent]
couchpotato-label = couchpotato
sickbeard-label = sickbeard
sickrage-label = sickrage
sonarr-label = sonarr
radarr-label = radarr
bypass-label = bypass
convert = True
action-before =
action-after =
host = localhost
port = 8080
ssl = False
username =
password =
output-directory =
path-mapping =

[uTorrent]
couchpotato-label = couchpotato
sickbeard-label = sickbeard
sickrage-label = sickrage
sonarr-label = sonarr
radarr-label = radarr
bypass-label = bypass
convert = True
webui = False
action-before =
action-after =
host = localhost
ssl = False
port = 8080
username =
password =
output-directory =
path-mapping =

[Plex]
host = 
port = 32400
refresh = False
token = 

Error Log:

root@b2383ecee57f:/downloads# /usr/local/sma/manual.py 
Manual processor started.
Python 64-bit 3.8.5 (default, Jul 20 2020, 23:11:29) 
[GCC 9.3.0].
Guessit version: 3.1.1.
/usr/bin/python3
Loading config file /usr/local/sma/config/autoProcess.ini.
Enter path to file:
#: /movies/Malibu\'s\ Most\ Wanted\ \(2003\)/^CTraceback (most recent call last):
  File "/usr/local/sma/manual.py", line 410, in <module>
    main()
  File "/usr/local/sma/manual.py", line 383, in main
    path = getValue("Enter path to file")
  File "/usr/local/sma/manual.py", line 77, in getValue
    value = raw_input("#: ").strip(' \"')
KeyboardInterrupt

root@b2383ecee57f:/downloads# cd /downloads/Malibu\'s\ Most\ Wanted\ \(2003\)/^C
root@b2383ecee57f:/downloads# /usr/local/sma/manual.py 
Manual processor started.
Python 64-bit 3.8.5 (default, Jul 20 2020, 23:11:29) 
[GCC 9.3.0].
Guessit version: 3.1.1.
/usr/bin/python3
Loading config file /usr/local/sma/config/autoProcess.ini.
Enter path to file:
#: /downloads/Malibu\'s\ Most\ Wanted\ \(2003\)/
Processing file /downloads/Malibu's Most Wanted (2003)/Malibu's Most Wanted (2003) WEBDL-1080p.mkv
Matched movie title as: Malibu's Most Wanted 2003-04-10 (TMDB ID: 13411)
Proceed using guessed identification from filename?
# [y/n]: y
Processing Malibu's Most Wanted
Input Data
{
    "format": "matroska,webm",
    "format-fullname": "Matroska / WebM",
    "video": {
        "index": 0,
        "codec": "h264",
        "pix_fmt": "yuv420p",
        "profile": "high",
        "fps": 23.976023976023978,
        "dimensions": "1920x1080",
        "level": 4.0,
        "field_order": "progressive"
    },
    "audio": [
        {
            "index": 1,
            "codec": "ac3",
            "bitrate": 384000,
            "channels": 6,
            "samplerate": 48000,
            "language": "eng",
            "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired"
        },
        {
            "index": 2,
            "codec": "eac3",
            "channels": 2,
            "samplerate": 48000,
            "language": "eng",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired"
        }
    ],
    "subtitle": [
        {
            "index": 3,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "eng"
        }
    ],
    "attachment": []
}
Reading video stream.
Video codec detected: h264.
Pix Fmt: yuv420p.
Profile: high.
Video codec parameters None.
Creating copy video stream from source stream 0.
Reading audio streams.
Audio detected for stream 1 - ac3 eng 6 channel.
Creating aac audio stream source audio stream 1 [universal-audio].
Creating copy audio stream from source stream 1.
Audio detected for stream 2 - eac3 eng 2 channel.
Creating aac audio stream from source stream 2.
Default audio stream set to eng copy 6 channel stream [default-more-channels: True].
Reading subtitle streams.
Text-based subtitle detected for stream 3 - subrip eng.
Creating mov_text subtitle stream from source stream 3.
Scanned for external subtitles and found 0 results in your approved languages.
Output Data
{
    "source": [
        "/downloads/Malibu's Most Wanted (2003)/Malibu's Most Wanted (2003) WEBDL-1080p.mkv"
    ],
    "format": "mp4",
    "video": {
        "codec": "copy",
        "map": 0,
        "bitrate": 12886.401,
        "crf": -1,
        "maxrate": null,
        "bufsize": null,
        "level": 0.0,
        "profile": null,
        "preset": null,
        "pix_fmt": null,
        "field_order": "progressive",
        "width": null,
        "filter": null,
        "params": null,
        "title": "FHD",
        "debug": "video"
    },
    "audio": [
        {
            "map": 1,
            "codec": "aac",
            "channels": 2,
            "bitrate": 256,
            "samplerate": null,
            "filter": null,
            "language": "eng",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "title": "Stereo",
            "debug": "universal-audio"
        },
        {
            "map": 1,
            "codec": "copy",
            "channels": 6,
            "bitrate": 768,
            "filter": null,
            "samplerate": null,
            "language": "eng",
            "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "bsf": null,
            "title": "5.1 Channel",
            "debug": "audio"
        },
        {
            "map": 2,
            "codec": "aac",
            "channels": 2,
            "bitrate": 256,
            "filter": null,
            "samplerate": null,
            "language": "eng",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "bsf": null,
            "title": "Stereo",
            "debug": "universal-audio"
        }
    ],
    "subtitle": [
        {
            "map": 3,
            "codec": "mov_text",
            "language": "eng",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "title": "",
            "debug": "subtitle.embed-subs"
        }
    ],
    "attachment": []
}
Preopts
[
    "-fix_sub_duration"
]
Postopts
[
    "-threads",
    "0",
    "-metadata:g",
    "encoding_tool=SMA"
]
Starting conversion.
FFmpeg command:
======================
/usr/local/bin/ffmpeg -fix_sub_duration -i /downloads/Malibu's Most Wanted (2003)/Malibu's Most Wanted (2003) WEBDL-1080p.mkv -vcodec copy -map 0:0 -metadata:s:v title=FHD -c:a:0 aac -map 0:1 -ac:a:0 2 -b:a:0 256k -metadata:s:a:0 BPS=256000 -metadata:s:a:0 BPS-eng=256000 -metadata:s:a:0 title=Stereo -metadata:s:a:0 language=eng -disposition:a:0 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -strict experimental -c:a:1 copy -map 0:1 -metadata:s:a:1 title=5.1 Channel -metadata:s:a:1 language=eng -disposition:a:1 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:a:2 aac -map 0:2 -ac:a:2 2 -b:a:2 256k -metadata:s:a:2 BPS=256000 -metadata:s:a:2 BPS-eng=256000 -metadata:s:a:2 title=Stereo -metadata:s:a:2 language=eng -disposition:a:2 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -strict experimental -c:s:0 mov_text -map 0:3 -metadata:s:s:0 title= -metadata:s:s:0 language=eng -disposition:s:0 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -y /downloads/Malibu's Most Wanted (2003)/Malibu's Most Wanted (2003) WEBDL-1080p.mp4
======================
[####################] 99% Error converting file, FFMPEG error.
Traceback (most recent call last):
  File "/usr/local/sma/resources/mediaprocessor.py", line 1487, in convert
    for timecode, debug in conv:
  File "/usr/local/sma/converter/__init__.py", line 308, in convert
    for timecode, debug in self.ffmpeg.convert(outfile, optlist,
  File "/usr/local/sma/converter/ffmpeg.py", line 706, in convert
    raise FFMpegConvertError('Exited with code %d' % p.returncode, cmd,
converter.ffmpeg.FFMpegConvertError: <unprintable FFMpegConvertError object>
/usr/local/bin/ffmpeg -fix_sub_duration -i /downloads/Malibu's Most Wanted (2003)/Malibu's Most Wanted (2003) WEBDL-1080p.mkv -vcodec copy -map 0:0 -metadata:s:v title=FHD -c:a:0 aac -map 0:1 -ac:a:0 2 -b:a:0 256k -metadata:s:a:0 BPS=256000 -metadata:s:a:0 BPS-eng=256000 -metadata:s:a:0 title=Stereo -metadata:s:a:0 language=eng -disposition:a:0 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -strict experimental -c:a:1 copy -map 0:1 -metadata:s:a:1 title=5.1 Channel -metadata:s:a:1 language=eng -disposition:a:1 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:a:2 aac -map 0:2 -ac:a:2 2 -b:a:2 256k -metadata:s:a:2 BPS=256000 -metadata:s:a:2 BPS-eng=256000 -metadata:s:a:2 title=Stereo -metadata:s:a:2 language=eng -disposition:a:2 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -strict experimental -c:s:0 mov_text -map 0:3 -metadata:s:s:0 title= -metadata:s:s:0 language=eng -disposition:s:0 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -y /downloads/Malibu's Most Wanted (2003)/Malibu's Most Wanted (2003) WEBDL-1080p.mp4
ffmpeg version N-54441-gaa5e49e46d-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil      56. 60.100 / 56. 60.100
  libavcodec     58.108.100 / 58.108.100
  libavformat    58. 59.100 / 58. 59.100
  libavdevice    58. 11.102 / 58. 11.102
  libavfilter     7. 87.100 /  7. 87.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Guessed Channel Layout for Input Stream #0.2 : stereo
Input #0, matroska,webm, from '/downloads/Malibu's Most Wanted (2003)/Malibu's Most Wanted (2003) WEBDL-1080p.mkv':
  Metadata:
    encoder         : libebml v1.3.5 + libmatroska v1.4.8
  Duration: 01:26:11.01, start: 0.000000, bitrate: 12886 kb/s
    Chapter #0:0: start 0.000000, end 16.000000
    Metadata:
      title           : Studio logo
    Chapter #0:1: start 16.000000, end 155.000000
    Metadata:
      title           : Brad introduces Malibu & his friends, multiple locations
    Chapter #0:2: start 155.000000, end 261.000000
    Metadata:
      title           : Bill holds a press conference, driveway
    Chapter #0:3: start 261.000000, end 343.000000
    Metadata:
      title           : Brad's involvement in Bill's campaign is discussed, Bill's house
    Chapter #0:4: start 343.000000, end 390.000000
    Metadata:
      title           : Bill gives another speech, lawn
    Chapter #0:5: start 390.000000, end 588.000000
    Metadata:
      title           : Bill & Bess consult a doctor for Brad's behavior, Dr. Feldman's office
    Chapter #0:6: start 588.000000, end 720.000000
    Metadata:
      title           : Bill's colleagues throw out ideas on how to change Brad, campaign room
    Chapter #0:7: start 720.000000, end 884.000000
    Metadata:
      title           : Tom hires Sean & PJ, street
    Chapter #0:8: start 884.000000, end 940.000000
    Metadata:
      title           : Sean & PJ try to persuade Shondra to join them, Weaner On a Bun
    Chapter #0:9: start 940.000000, end 994.000000
    Metadata:
      title           : Brad & Gladys have a conversation while she serves him breakfast, backyard
    Chapter #0:10: start 994.000000, end 1126.000000
    Metadata:
      title           : Sean & PJ prepare themselves for their job, Shondra's home
    Chapter #0:11: start 1126.000000, end 1341.000000
    Metadata:
      title           : Brad flirts with Shondra, coffee shop
    Chapter #0:12: start 1341.000000, end 1512.000000
    Metadata:
      title           : Sean & PJ kidnap Brad, car
    Chapter #0:13: start 1512.000000, end 1729.000000
    Metadata:
      title           : Sean & PJ lock Brad up, Shondra's home
    Chapter #0:14: start 1729.000000, end 1807.000000
    Metadata:
      title           : Sean & PJ try to scare Brad, Shondra's home
    Chapter #0:15: start 1807.000000, end 2105.000000
    Metadata:
      title           : Sean & PJ make Brad do an armed robbery, convenient store
    Chapter #0:16: start 2105.000000, end 2210.000000
    Metadata:
      title           : Bill asks Tom about Brad's whereabouts
    Chapter #0:17: start 2210.000000, end 2446.000000
    Metadata:
      title           : Sean & PJ take Brad to a nightclub
    Chapter #0:18: start 2446.000000, end 2747.000000
    Metadata:
      title           : Brad gets called to the stage to rap, nightclub
    Chapter #0:19: start 2747.000000, end 2830.000000
    Metadata:
      title           : Sean & PJ make fun of Brad's performance
    Chapter #0:20: start 2830.000000, end 2983.000000
    Metadata:
      title           : Shondra consoles & encourages Brad, Shondra's bedroom
    Chapter #0:21: start 2983.000000, end 3199.000000
    Metadata:
      title           : Shondra demands compensation for the situation
    Chapter #0:22: start 3199.000000, end 3401.000000
    Metadata:
      title           : Brad breaks out of the room & finds himself in more trouble, Shondra's house
    Chapter #0:23: start 3401.000000, end 3550.000000
    Metadata:
      title           : Tom & his colleagues work on the campaign
    Chapter #0:24: start 3550.000000, end 3733.000000
    Metadata:
      title           : Tom refuses to pay Tec
    Chapter #0:25: start 3733.000000, end 3794.000000
    Metadata:
      title           : Tec gives Brad a gift, Tec's house
    Chapter #0:26: start 3794.000000, end 3857.000000
    Metadata:
      title           : Hal Fishman reports on Brad's shooting, multiple locations
    Chapter #0:27: start 3857.000000, end 3941.000000
    Metadata:
      title           : Bill & Tom have a heated argument over Brad, office
    Chapter #0:28: start 3941.000000, end 4039.000000
    Metadata:
      title           : Bill & Brad's friends start their search for Brad, multiple locations
    Chapter #0:29: start 4039.000000, end 4285.000000
    Metadata:
      title           : Shondra searches for Brad in order to make him realize the seriousness of the situation, Tec's house
    Chapter #0:30: start 4285.000000, end 4394.000000
    Metadata:
      title           : Tec decides to kill Brad, Tec's house
    Chapter #0:31: start 4394.000000, end 4615.000000
    Metadata:
      title           : Brad's gang arrives to rescue Brad
    Chapter #0:32: start 4615.000000, end 4680.000000
    Metadata:
      title           : Tec argues with the policeman
    Chapter #0:33: start 4680.000000, end 4776.000000
    Metadata:
      title           : Brad thanks Shondra for accepting him
    Chapter #0:34: start 4776.000000, end 5164.000000
    Metadata:
      title           : The outcome of the election is announced, End Credits, multiple locations
    Chapter #0:35: start 5164.000000, end 5171.008000
    Metadata:
      title           : Studio logo
    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      BPS-eng         : 12277666
      DURATION-eng    : 01:26:10.290000000
      NUMBER_OF_FRAMES-eng: 123963
      NUMBER_OF_BYTES-eng: 7934887357
      _STATISTICS_WRITING_APP-eng: mkvmerge v21.0.0 ('Tardigrades Will Inherit The Earth') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-06 23:45:38
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    Metadata:
      BPS-eng         : 384000
      DURATION-eng    : 01:26:11.008000000
      NUMBER_OF_FRAMES-eng: 161594
      NUMBER_OF_BYTES-eng: 248208384
      _STATISTICS_WRITING_APP-eng: mkvmerge v21.0.0 ('Tardigrades Will Inherit The Earth') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-06 23:45:38
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Audio: eac3, 48000 Hz, stereo, fltp
    Metadata:
      BPS-eng         : 224000
      DURATION-eng    : 01:26:10.240000000
      NUMBER_OF_FRAMES-eng: 161570
      NUMBER_OF_BYTES-eng: 144766720
      _STATISTICS_WRITING_APP-eng: mkvmerge v21.0.0 ('Tardigrades Will Inherit The Earth') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-06 23:45:38
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3(eng): Subtitle: subrip
    Metadata:
      BPS-eng         : 88
      DURATION-eng    : 01:25:52.514000000
      NUMBER_OF_FRAMES-eng: 2135
      NUMBER_OF_BYTES-eng: 57017
      _STATISTICS_WRITING_APP-eng: mkvmerge v21.0.0 ('Tardigrades Will Inherit The Earth') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-06 23:45:38
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
  Stream #0:1 -> #0:2 (copy)
  Stream #0:2 -> #0:3 (eac3 (native) -> aac (native))
  Stream #0:3 -> #0:4 (subrip (srt) -> mov_text (native))
Press [q] to stop, [?] for help
[mp4 @ 0x5845ec0] track 2: codec frame size is not set
Output #0, mp4, to '/downloads/Malibu's Most Wanted (2003)/Malibu's Most Wanted (2003) WEBDL-1080p.mp4':
  Metadata:
    encoding_tool   : SMA
    encoder         : Lavf58.59.100
    Chapter #0:0: start 0.000000, end 16.000000
    Metadata:
      title           : Studio logo
    Chapter #0:1: start 16.000000, end 155.000000
    Metadata:
      title           : Brad introduces Malibu & his friends, multiple locations
    Chapter #0:2: start 155.000000, end 261.000000
    Metadata:
      title           : Bill holds a press conference, driveway
    Chapter #0:3: start 261.000000, end 343.000000
    Metadata:
      title           : Brad's involvement in Bill's campaign is discussed, Bill's house
    Chapter #0:4: start 343.000000, end 390.000000
    Metadata:
      title           : Bill gives another speech, lawn
    Chapter #0:5: start 390.000000, end 588.000000
    Metadata:
      title           : Bill & Bess consult a doctor for Brad's behavior, Dr. Feldman's office
    Chapter #0:6: start 588.000000, end 720.000000
    Metadata:
      title           : Bill's colleagues throw out ideas on how to change Brad, campaign room
    Chapter #0:7: start 720.000000, end 884.000000
    Metadata:
      title           : Tom hires Sean & PJ, street
    Chapter #0:8: start 884.000000, end 940.000000
    Metadata:
      title           : Sean & PJ try to persuade Shondra to join them, Weaner On a Bun
    Chapter #0:9: start 940.000000, end 994.000000
    Metadata:
      title           : Brad & Gladys have a conversation while she serves him breakfast, backyard
    Chapter #0:10: start 994.000000, end 1126.000000
    Metadata:
      title           : Sean & PJ prepare themselves for their job, Shondra's home
    Chapter #0:11: start 1126.000000, end 1341.000000
    Metadata:
      title           : Brad flirts with Shondra, coffee shop
    Chapter #0:12: start 1341.000000, end 1512.000000
    Metadata:
      title           : Sean & PJ kidnap Brad, car
    Chapter #0:13: start 1512.000000, end 1729.000000
    Metadata:
      title           : Sean & PJ lock Brad up, Shondra's home
    Chapter #0:14: start 1729.000000, end 1807.000000
    Metadata:
      title           : Sean & PJ try to scare Brad, Shondra's home
    Chapter #0:15: start 1807.000000, end 2105.000000
    Metadata:
      title           : Sean & PJ make Brad do an armed robbery, convenient store
    Chapter #0:16: start 2105.000000, end 2210.000000
    Metadata:
      title           : Bill asks Tom about Brad's whereabouts
    Chapter #0:17: start 2210.000000, end 2446.000000
    Metadata:
      title           : Sean & PJ take Brad to a nightclub
    Chapter #0:18: start 2446.000000, end 2747.000000
    Metadata:
      title           : Brad gets called to the stage to rap, nightclub
    Chapter #0:19: start 2747.000000, end 2830.000000
    Metadata:
      title           : Sean & PJ make fun of Brad's performance
    Chapter #0:20: start 2830.000000, end 2983.000000
    Metadata:
      title           : Shondra consoles & encourages Brad, Shondra's bedroom
    Chapter #0:21: start 2983.000000, end 3199.000000
    Metadata:
      title           : Shondra demands compensation for the situation
    Chapter #0:22: start 3199.000000, end 3401.000000
    Metadata:
      title           : Brad breaks out of the room & finds himself in more trouble, Shondra's house
    Chapter #0:23: start 3401.000000, end 3550.000000
    Metadata:
      title           : Tom & his colleagues work on the campaign
    Chapter #0:24: start 3550.000000, end 3733.000000
    Metadata:
      title           : Tom refuses to pay Tec
    Chapter #0:25: start 3733.000000, end 3794.000000
    Metadata:
      title           : Tec gives Brad a gift, Tec's house
    Chapter #0:26: start 3794.000000, end 3857.000000
    Metadata:
      title           : Hal Fishman reports on Brad's shooting, multiple locations
    Chapter #0:27: start 3857.000000, end 3941.000000
    Metadata:
      title           : Bill & Tom have a heated argument over Brad, office
    Chapter #0:28: start 3941.000000, end 4039.000000
    Metadata:
      title           : Bill & Brad's friends start their search for Brad, multiple locations
    Chapter #0:29: start 4039.000000, end 4285.000000
    Metadata:
      title           : Shondra searches for Brad in order to make him realize the seriousness of the situation, Tec's house
    Chapter #0:30: start 4285.000000, end 4394.000000
    Metadata:
      title           : Tec decides to kill Brad, Tec's house
    Chapter #0:31: start 4394.000000, end 4615.000000
    Metadata:
      title           : Brad's gang arrives to rescue Brad
    Chapter #0:32: start 4615.000000, end 4680.000000
    Metadata:
      title           : Tec argues with the policeman
    Chapter #0:33: start 4680.000000, end 4776.000000
    Metadata:
      title           : Brad thanks Shondra for accepting him
    Chapter #0:34: start 4776.000000, end 5164.000000
    Metadata:
      title           : The outcome of the election is announced, End Credits, multiple locations
    Chapter #0:35: start 5164.000000, end 5171.008000
    Metadata:
      title           : Studio logo
    Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 16k tbn, 1k tbc (default)
    Metadata:
      BPS-eng         : 12277666
      DURATION-eng    : 01:26:10.290000000
      NUMBER_OF_FRAMES-eng: 123963
      NUMBER_OF_BYTES-eng: 7934887357
      _STATISTICS_WRITING_APP-eng: mkvmerge v21.0.0 ('Tardigrades Will Inherit The Earth') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-06 23:45:38
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      title           : FHD
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s
    Metadata:
      title           : Stereo
      BPS             : 256000
      DURATION-eng    : 01:26:11.008000000
      NUMBER_OF_FRAMES-eng: 161594
      NUMBER_OF_BYTES-eng: 248208384
      _STATISTICS_WRITING_APP-eng: mkvmerge v21.0.0 ('Tardigrades Will Inherit The Earth') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-06 23:45:38
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      BPS-eng         : 256000
      encoder         : Lavc58.108.100 aac
    Stream #0:2(eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    Metadata:
      title           : 5.1 Channel
      BPS-eng         : 384000
      DURATION-eng    : 01:26:11.008000000
      NUMBER_OF_FRAMES-eng: 161594
      NUMBER_OF_BYTES-eng: 248208384
      _STATISTICS_WRITING_APP-eng: mkvmerge v21.0.0 ('Tardigrades Will Inherit The Earth') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-06 23:45:38
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s
    Metadata:
      title           : Stereo
      BPS             : 256000
      DURATION-eng    : 01:26:10.240000000
      NUMBER_OF_FRAMES-eng: 161570
      NUMBER_OF_BYTES-eng: 144766720
      _STATISTICS_WRITING_APP-eng: mkvmerge v21.0.0 ('Tardigrades Will Inherit The Earth') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-06 23:45:38
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      BPS-eng         : 256000
      encoder         : Lavc58.108.100 aac
    Stream #0:4(eng): Subtitle: mov_text (tx3g / 0x67337874)
    Metadata:
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      BPS-eng         : 88
      DURATION-eng    : 01:25:52.514000000
      NUMBER_OF_FRAMES-eng: 2135
      NUMBER_OF_BYTES-eng: 57017
      _STATISTICS_WRITING_APP-eng: mkvmerge v21.0.0 ('Tardigrades Will Inherit The Earth') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-06 23:45:38
      encoder         : Lavc58.108.100 mov_text
frame=123921 fps=287 q=-1.0 size= 8309762kB time=01:26:08.59 bitrate=13170.6kbits/s speed=  12x    
/downloads/Malibu's Most Wanted (2003)/Malibu's Most Wanted (2003) WEBDL-1080p.mp4 deleted.
There was an error processing file /downloads/Malibu's Most Wanted (2003)/Malibu's Most Wanted (2003) WEBDL-1080p.mkv, no output data received
mdhiggins commented 4 years ago

First of all if this is inside the docker container you should be executing things using the python virtual environment $SMA_PATH/venv/bin/python3 $SMA_PATH/manual.py

Not sure how you got this to start except maybe by manually installing the requirements. Doesn't appear to be any FFMPEG errors that are showing so tough to say what's going on

I would first try to run the script properly though the environment and see if that changes anything

If that doesn't work run the FFMPEG command manually and see if it gives you an error

djrarky commented 4 years ago

Hey mate,

Thanks for the help. Running ffmpeg manually inside the container gives me the following error:

[NULL @ 0x584a180] Unable to find a suitable output format for 'Channel'
Channel: Invalid argument

The full verbose is:

root@de38504335cf:/# /usr/local/bin/ffmpeg -fix_sub_duration -i "/downloads/Malibu's Most Wanted (2003)/Malibu's Most Wanted (2003) WEBDL-1080p.mkv" -vcodec copy -map 0:0 -metadata:s:v title=FHD -c:a:0 aac -map 0:1 -ac:a:0 2 -b:a:0 256k -metadata:s:a:0 BPS=256000 -metadata:s:a:0 BPS-eng=256000 -metadata:s:a:0 title=Stereo -metadata:s:a:0 language=eng -disposition:a:0 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -strict experimental -c:a:1 copy -map 0:1 -metadata:s:a:1 title=5.1 Channel -metadata:s:a:1 language=eng -disposition:a:1 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:a:2 aac -map 0:2 -ac:a:2 2 -b:a:2 256k -metadata:s:a:2 BPS=256000 -metadata:s:a:2 BPS-eng=256000 -metadata:s:a:2 title=Stereo -metadata:s:a:2 language=eng -disposition:a:2 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -strict experimental -c:s:0 mov_text -map 0:3 -metadata:s:s:0 title= -metadata:s:s:0 language=eng -disposition:s:0 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -y "/downloads/Malibu's Most Wanted (2003)/Malibu's Most Wanted (2003) WEBDL-1080p.mp4"
ffmpeg version N-54500-gbc43588a71-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil      56. 60.100 / 56. 60.100
  libavcodec     58.110.100 / 58.110.100
  libavformat    58. 62.100 / 58. 62.100
  libavdevice    58. 11.102 / 58. 11.102
  libavfilter     7. 87.100 /  7. 87.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Guessed Channel Layout for Input Stream #0.2 : stereo
Input #0, matroska,webm, from '/downloads/Malibu's Most Wanted (2003)/Malibu's Most Wanted (2003) WEBDL-1080p.mkv':
  Metadata:
    encoder         : libebml v1.3.5 + libmatroska v1.4.8
  Duration: 01:26:11.01, start: 0.000000, bitrate: 12886 kb/s
    Chapter #0:0: start 0.000000, end 16.000000
    Metadata:
      title           : Studio logo
    Chapter #0:1: start 16.000000, end 155.000000
    Metadata:
      title           : Brad introduces Malibu & his friends, multiple locations
    Chapter #0:2: start 155.000000, end 261.000000
    Metadata:
      title           : Bill holds a press conference, driveway
    Chapter #0:3: start 261.000000, end 343.000000
    Metadata:
      title           : Brad's involvement in Bill's campaign is discussed, Bill's house
    Chapter #0:4: start 343.000000, end 390.000000
    Metadata:
      title           : Bill gives another speech, lawn
    Chapter #0:5: start 390.000000, end 588.000000
    Metadata:
      title           : Bill & Bess consult a doctor for Brad's behavior, Dr. Feldman's office
    Chapter #0:6: start 588.000000, end 720.000000
    Metadata:
      title           : Bill's colleagues throw out ideas on how to change Brad, campaign room
    Chapter #0:7: start 720.000000, end 884.000000
    Metadata:
      title           : Tom hires Sean & PJ, street
    Chapter #0:8: start 884.000000, end 940.000000
    Metadata:
      title           : Sean & PJ try to persuade Shondra to join them, Weaner On a Bun
    Chapter #0:9: start 940.000000, end 994.000000
    Metadata:
      title           : Brad & Gladys have a conversation while she serves him breakfast, backyard
    Chapter #0:10: start 994.000000, end 1126.000000
    Metadata:
      title           : Sean & PJ prepare themselves for their job, Shondra's home
    Chapter #0:11: start 1126.000000, end 1341.000000
    Metadata:
      title           : Brad flirts with Shondra, coffee shop
    Chapter #0:12: start 1341.000000, end 1512.000000
    Metadata:
      title           : Sean & PJ kidnap Brad, car
    Chapter #0:13: start 1512.000000, end 1729.000000
    Metadata:
      title           : Sean & PJ lock Brad up, Shondra's home
    Chapter #0:14: start 1729.000000, end 1807.000000
    Metadata:
      title           : Sean & PJ try to scare Brad, Shondra's home
    Chapter #0:15: start 1807.000000, end 2105.000000
    Metadata:
      title           : Sean & PJ make Brad do an armed robbery, convenient store
    Chapter #0:16: start 2105.000000, end 2210.000000
    Metadata:
      title           : Bill asks Tom about Brad's whereabouts
    Chapter #0:17: start 2210.000000, end 2446.000000
    Metadata:
      title           : Sean & PJ take Brad to a nightclub
    Chapter #0:18: start 2446.000000, end 2747.000000
    Metadata:
      title           : Brad gets called to the stage to rap, nightclub
    Chapter #0:19: start 2747.000000, end 2830.000000
    Metadata:
      title           : Sean & PJ make fun of Brad's performance
    Chapter #0:20: start 2830.000000, end 2983.000000
    Metadata:
      title           : Shondra consoles & encourages Brad, Shondra's bedroom
    Chapter #0:21: start 2983.000000, end 3199.000000
    Metadata:
      title           : Shondra demands compensation for the situation
    Chapter #0:22: start 3199.000000, end 3401.000000
    Metadata:
      title           : Brad breaks out of the room & finds himself in more trouble, Shondra's house
    Chapter #0:23: start 3401.000000, end 3550.000000
    Metadata:
      title           : Tom & his colleagues work on the campaign
    Chapter #0:24: start 3550.000000, end 3733.000000
    Metadata:
      title           : Tom refuses to pay Tec
    Chapter #0:25: start 3733.000000, end 3794.000000
    Metadata:
      title           : Tec gives Brad a gift, Tec's house
    Chapter #0:26: start 3794.000000, end 3857.000000
    Metadata:
      title           : Hal Fishman reports on Brad's shooting, multiple locations
    Chapter #0:27: start 3857.000000, end 3941.000000
    Metadata:
      title           : Bill & Tom have a heated argument over Brad, office
    Chapter #0:28: start 3941.000000, end 4039.000000
    Metadata:
      title           : Bill & Brad's friends start their search for Brad, multiple locations
    Chapter #0:29: start 4039.000000, end 4285.000000
    Metadata:
      title           : Shondra searches for Brad in order to make him realize the seriousness of the situation, Tec's house
    Chapter #0:30: start 4285.000000, end 4394.000000
    Metadata:
      title           : Tec decides to kill Brad, Tec's house
    Chapter #0:31: start 4394.000000, end 4615.000000
    Metadata:
      title           : Brad's gang arrives to rescue Brad
    Chapter #0:32: start 4615.000000, end 4680.000000
    Metadata:
      title           : Tec argues with the policeman
    Chapter #0:33: start 4680.000000, end 4776.000000
    Metadata:
      title           : Brad thanks Shondra for accepting him
    Chapter #0:34: start 4776.000000, end 5164.000000
    Metadata:
      title           : The outcome of the election is announced, End Credits, multiple locations
    Chapter #0:35: start 5164.000000, end 5171.008000
    Metadata:
      title           : Studio logo
    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      BPS-eng         : 12277666
      DURATION-eng    : 01:26:10.290000000
      NUMBER_OF_FRAMES-eng: 123963
      NUMBER_OF_BYTES-eng: 7934887357
      _STATISTICS_WRITING_APP-eng: mkvmerge v21.0.0 ('Tardigrades Will Inherit The Earth') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-06 23:45:38
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    Metadata:
      BPS-eng         : 384000
      DURATION-eng    : 01:26:11.008000000
      NUMBER_OF_FRAMES-eng: 161594
      NUMBER_OF_BYTES-eng: 248208384
      _STATISTICS_WRITING_APP-eng: mkvmerge v21.0.0 ('Tardigrades Will Inherit The Earth') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-06 23:45:38
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Audio: eac3, 48000 Hz, stereo, fltp
    Metadata:
      BPS-eng         : 224000
      DURATION-eng    : 01:26:10.240000000
      NUMBER_OF_FRAMES-eng: 161570
      NUMBER_OF_BYTES-eng: 144766720
      _STATISTICS_WRITING_APP-eng: mkvmerge v21.0.0 ('Tardigrades Will Inherit The Earth') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-06 23:45:38
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3(eng): Subtitle: subrip
    Metadata:
      BPS-eng         : 88
      DURATION-eng    : 01:25:52.514000000
      NUMBER_OF_FRAMES-eng: 2135
      NUMBER_OF_BYTES-eng: 57017
      _STATISTICS_WRITING_APP-eng: mkvmerge v21.0.0 ('Tardigrades Will Inherit The Earth') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-06 23:45:38
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[NULL @ 0x584a180] Unable to find a suitable output format for 'Channel'
Channel: Invalid argument
mdhiggins commented 4 years ago
/usr/local/bin/ffmpeg -fix_sub_duration -i "/downloads/Malibu's Most Wanted (2003)/Malibu's Most Wanted (2003) WEBDL-1080p.mkv" -vcodec copy -map 0:0 -metadata:s:v title=FHD -c:a:0 aac -map 0:1 -ac:a:0 2 -b:a:0 256k -metadata:s:a:0 BPS=256000 -metadata:s:a:0 BPS-eng=256000 -metadata:s:a:0 title=Stereo -metadata:s:a:0 language=eng -disposition:a:0 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -strict experimental -c:a:1 copy -map 0:1 -metadata:s:a:1 title="5.1 Channel" -metadata:s:a:1 language=eng -disposition:a:1 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:a:2 aac -map 0:2 -ac:a:2 2 -b:a:2 256k -metadata:s:a:2 BPS=256000 -metadata:s:a:2 BPS-eng=256000 -metadata:s:a:2 title=Stereo -metadata:s:a:2 language=eng -disposition:a:2 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -strict experimental -c:s:0 mov_text -map 0:3 -metadata:s:s:0 title= -metadata:s:s:0 language=eng -disposition:s:0 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -y "/downloads/Malibu's Most Wanted (2003)/Malibu's Most Wanted (2003) WEBDL-1080p.mp4"

Looks like you were missing a quote which doesn't always get translated into the output but shouldn't actually be affecting the python output

Try that version and see what the error is

djrarky commented 4 years ago

I'm sorry mate, you're totally right. That's now working fine.

I'm gonna close the issue for sure as it's me doing something wrong, but my container (nzbget-sma) is erroring out with the same message as above and I can't figure out why.

Would I be able to ask for your help with this? I know it's a big ask man. It's been working fine for months, so I'm not sure what's changed.

I just prefer having the processing done in nzbget so I can see if the script fails.