Closed djrarky closed 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
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
/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
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.
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:
Error Log: