Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post-Conversion Processing using SABNZBD and Sonarr - First Time Setup #857

Closed
zeieri opened this issue Feb 7, 2018 · 8 comments
Closed

Comments

@zeieri
Copy link

zeieri commented Feb 7, 2018

Hello!

I just installed this tool and I have an issue where I get past the conversion, it drops the file into a "Converted" folder but even though my category in SAB and Sonarr are set to "Sonarr", Sonarr doesn't rescan the folder and move the file. Here is the output I get from the conversion in SABnzbd:

2018-02-06 17:56:38 - SABPostProcess - INFO - SAB post processing started.
2018-02-06 17:56:38 - readSettings - INFO - C:\Python36\python.exe
2018-02-06 17:56:38 - readSettings - WARNING - Invalid subtitle codec, defaulting to '['srt']'.
2018-02-06 17:56:38 - SABPostProcess - INFO - Performing conversion
2018-02-06 17:56:38 - SABPostProcess - INFO - Processing file T:\Downloads\Converted\Pawn.Stars.S15E18.HDTV.x264-BATV-xpost\Pawn.Stars.S15E18.HDTV.x264-BATV.mkv.
2018-02-06 17:56:38 - mkvtomp4 - INFO - Reading video stream.
2018-02-06 17:56:38 - mkvtomp4 - INFO - Video codec detected: h264.
2018-02-06 17:56:39 - mkvtomp4 - INFO - Pix Fmt: yuv420p.
2018-02-06 17:56:39 - mkvtomp4 - INFO - Reading audio streams.
2018-02-06 17:56:39 - mkvtomp4 - INFO - No audio streams detected in any appropriate language, relaxing restrictions so there will be some audio stream present.
2018-02-06 17:56:39 - mkvtomp4 - INFO - Audio detected for stream #1: aac [und].
2018-02-06 17:56:39 - mkvtomp4 - INFO - Creating audio stream 0 from source stream 1.
2018-02-06 17:56:39 - mkvtomp4 - INFO - Audio Track is number 1 setting disposition to default
2018-02-06 17:56:39 - mkvtomp4 - INFO - Reading subtitle streams.
2018-02-06 17:56:39 - mkvtomp4 - ERROR - No valid subtitle language specified, cannot download subtitles.
2018-02-06 17:56:39 - mkvtomp4 - INFO - Starting conversion.
2018-02-06 17:56:40 - mkvtomp4 - INFO - T:\Downloads\Pawn.Stars.S15E18.HDTV.x264-BATV.mp4 created.
2018-02-06 17:56:41 - SABPostProcess - INFO - Passing T:\Downloads directory to Sonarr.
2018-02-06 17:56:41 - autoprocess.sonarr - INFO - Sonarr notifier started.
2018-02-06 17:56:41 - autoprocess.sonarr - INFO - Requesting Sonarr to scan directory 'T:\Downloads'.
2018-02-06 17:56:41 - autoprocess.sonarr - INFO - Sonarr response: queued.

Does anyone have any thoughts on how to fix this?

Thank You!

@majerus1223
Copy link

Ever figure this out?

@zeieri
Copy link
Author

zeieri commented Mar 8, 2018

Negative. I actually dropped the tool all together and haven't found a decent alternative yet.

@morpheus2n2
Copy link

morpheus2n2 commented Mar 13, 2018

Right, you don't need to have the script drop the file elsewhere before sonarr picks it up as Sonarr itself is dropping this support in the future.

Use the below autoprocess.ini setting's (adding your client's details) and it will work perfectly!

`[SickBeard]
host = localhost
port = 8081
username =
password =
web_root =
ssl = 0
api_key =

[Sonarr]
host = IP address to the machine you have sonarr installed if sonarr is on the local machine use localhost, otherwise its the IP and make sure you have set the IP in Sonarr under "Bind Address"
port = Port Sonarr is running on
web_root =
ssl = 0
apikey = Most important part this has to be the API address to sonarr this can be found under genaral settings in sonarr

[Radarr]
host =
port =
web_root =
ssl = 0
apikey =

[MP4]
ffmpeg = C:\ffmpeg\bin\ffmpeg.exe
ffprobe = C:\ffmpeg\bin\ffprobe.exe
threads = auto
output_directory = <---Leave blank!!!!!
copy_to =
move_to = \Plex\To Sort <--This is only for when you run the Manual.py I have it push manually converted files to the NAS Unit.
output_extension = mp4
output_format = mp4
delete_original = True
relocate_moov = True
video-codec = h264
video-bitrate = 2000
video-max-width = 1920
h264-max-level = 5.1
use-qsv-decoder-with-encoder = True
ios-audio = True
ios-first-track-only = False
ios-audio-filter =
max-audio-channels = 6
audio-codec = aac,aac
audio-language = Jpn,eng
audio-default-language = eng
audio-channel-bitrate = 128
audio-filter =
subtitle-codec = mov_text
subtitle-language = eng
subtitle-default-language = eng
subtitle-encoding =
fullpathguess = True
convert-mp4 = True
tagfile = False
tag-language = en
download-artwork = Poster
download-subs = False
embed-subs = True
sub-providers = addic7ed,podnapisi,thesubdb,opensubtitles
permissions = 0777
post-process = -map_metadata, -1
pix-fmt =
aac_adtstoasc = False
postopts =
preopts =
video-crf =
audio-copy-original = False
ios-move-last = False
enable_dxva2_gpu_decode = True
embed-only-internal-subs = False
use-hevc-qsv-decoder = True
video-profile =

[CouchPotato]
host = localhost
port =
username =
password =
web_root =
ssl = 0
apikey =
delay = 65
method = renamer
delete_failed = 0

[uTorrent]
convert = True
couchpotato-label = couchpotato
sickbeard-label = sickbeard
sonarr-label = sonarr
radarr-label = radarr
bypass-label = bypass
sickrage-label = sickrage
webui = True
action_before = stop
action_after = removedata
host = http://localhost:26355/
username = admin
password = dreamcast1
output_directory =

[Deluge]
host = localhost
username =
convert = True
password =
sonarr-label = sonarr
radarr-label = radarr
bypass-label = bypass
sickbeard-label = sickbeard
port = 58846
sickrage-label = sickrage
couchpotato-label = couchpotato
output_directory =
remove = True

[SABNZBD]
convert = True
sickrage-category = sickrage
sonarr-category = sonarr
radarr-label = radarr
bypass-category = bypass
couchpotato-category = couchpotato
sickbeard-category = sickbeard
output_directory =
radarr-category = radarr

[Sickrage]
host = localhost
port = 8081
username =
password =
web_root =
ssl = 0
api_key =

[Plex]
host = localhost
port = 32400
refresh = True
token =

`

Make sure that in Sonarr you have turned OFF "Completed Download Handling" This is important as Sonarr or Radarr with try to import the file as soon as its downloaded if you use the settings above (feel free to change the bitrate if you want I find this is the best for remote streaming) the script will convert then push the converted file to sonarr witch will then take over.

This will only work if you have the right settings under the Sonarr / radarr sections.

@kjp949
Copy link

kjp949 commented May 3, 2018

I just ran in to this issue; drove me nuts for a few days. If output_directory is anything other than empty then sonarr won't bring in the converted file.

I had mp4_automator output_directory set to /downloads/converted . Sonarr would scan that folder and think the show is called "converted" rather than going by the file that's in the folder called "Show.S01E01.HDTV.mp4"

I think it's a sonarr issue.

@daphatty
Copy link

daphatty commented Oct 30, 2018

Forgive me for digging up an old issue. I ran into this problem on a new setup and can't seem to figure out the cause. In my case, I'm using SABNZBD for downloading. Once the post-processing is complete, the scripts attempt to pass everything back to Sonarr and nothing happens. The process gets to - "2018-02-06 17:56:41 - autoprocess.sonarr - INFO - Sonarr notifier started."

FWIW, my Sonarr settings match morpheus2n2's recommended config. I'm not really certain where to check from here. Completed Download Handling and Drone Factory are disabled in Sonarr. Any suggestions will be greatly appreciated.

@morpheus2n2
Copy link

Need a couple of bits of info.
Are Sabnzbd and Sonarr both on same machine or different?
What OS are you running them on?
Have you put the right API key in?
Have you turned of "Completed Download Handling" In Sonarr under Indexers?
Does sonarr have permission to access folder your completed download is in?
I find that if you set the Sonarr service to log in as you and not with its default setting it helps with a lot of odd behaviour Here's how.

@daphatty
Copy link

@morpheus2n2 Thanks for the feedback. After reading your post, I gave my autoProcess.ini another look and realized I hadn't yet updated the Sonarr settings from the old Sonarr box (network) to the new Sonarr box (localhost). Once I updated the settings, the new Sonarr box began to complete the process as expected.

@RandomNinjaAtk
Copy link
Contributor

@mdhiggins this issue looks like it can be closed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants