scripts's People
scripts's Issues
MacOS
Is there anything that needs to be altered in the MKV-Cleanup script for it to work on MacOS? I'm getting "ERROR: No video files found for processing" error immediately.
AudioPostProcessing.bash - Support conversion FLAC to ALAC
I'd love to convert downloaded FLAC files to ALAC. Thanks!
FFMPEG errors when converting mk4 to mp4
As discussed in this post and in this post:
Not sure why but I'm getting a lot of errors now:
2019-11-20 15:58:06 - SonarrPostConversion - INFO - Sonarr extra script post processing started.
2019-11-20 15:58:06 - readSettings - INFO - /usr/bin/python
2019-11-20 15:58:06 - SonarrPostConversion - INFO - Processing /storage/shows/The Mandalorian/Season 01/The Mandalorian - S01E02 - Chapter 2- The Child [WEBDL-1080p - NEO].mkv.
2019-11-20 15:58:07 - mkvtomp4 - INFO - Reading video stream.
2019-11-20 15:58:07 - mkvtomp4 - INFO - Video codec detected: h264.
2019-11-20 15:58:07 - mkvtomp4 - INFO - Pix Fmt: yuv420p.
2019-11-20 15:58:07 - mkvtomp4 - INFO - Profile: High.
2019-11-20 15:58:07 - mkvtomp4 - INFO - Reading audio streams.
2019-11-20 15:58:07 - mkvtomp4 - INFO - Audio detected for stream #1: eac3 [fre].
2019-11-20 15:58:07 - mkvtomp4 - INFO - Audio detected for stream #2: eac3 [eng].
2019-11-20 15:58:07 - mkvtomp4 - INFO - Creating audio stream 0 from source audio stream 2 [iOS-audio].
2019-11-20 15:58:07 - mkvtomp4 - INFO - Creating audio stream 1 from source stream 2.
2019-11-20 15:58:07 - mkvtomp4 - INFO - Reading subtitle streams.
2019-11-20 15:58:07 - mkvtomp4 - INFO - Subtitle detected for stream #3: subrip [fre].
2019-11-20 15:58:07 - mkvtomp4 - INFO - Subtitle detected for stream #4: subrip [fre].
2019-11-20 15:58:07 - mkvtomp4 - WARNING - Subtitle language array is empty.
2019-11-20 15:58:07 - mkvtomp4 - INFO - Starting conversion.
2019-11-20 16:00:32 - mkvtomp4 - INFO - /storage/shows/The Mandalorian/Season 01/The Mandalorian - S01E02 - Chapter 2- The Child [WEBDL-1080p - NEO].mp4 created.
2019-11-20 16:00:33 - mkvtomp4 - INFO - Relocating MOOV atom to start of file.
2019-11-20 16:00:33 - qtfaststart - INFO - Removing free atom at 32 (8 bytes)
2019-11-20 16:00:33 - qtfaststart - INFO - Patching stco with 44496 entries
2019-11-20 16:00:33 - qtfaststart - INFO - Patching stco with 72618 entries
2019-11-20 16:00:33 - qtfaststart - INFO - Patching stco with 58018 entries
2019-11-20 16:00:33 - qtfaststart - INFO - Writing output...
2019-11-20 16:01:48 - SonarrPostConversion - INFO - Sonarr response: ID 278702 queued.
2019-11-20 16:01:48 - SonarrPostConversion - INFO - {u'body': {u'seriesId': 36, u'name': u'RescanSeries', u'sendUpdatesToClient': True, u'completionMessage': u'Completed', u'updateScheduledTask': True, u'trigger': u'manual'}, u'status': u'queued', u'name': u'RescanSeries', u'startedOn': u'2019-11-20T08:01:48.723119Z', u'updateScheduledTask': True, u'sendUpdatesToClient': True, u'manual': True, u'id': 278702, u'priority': u'normal', u'state': u'queued', u'trigger': u'manual', u'queued': u'2019-11-20T08:01:48.723119Z'}
2019-11-20 16:01:48 - SonarrPostConversion - INFO - Requesting episode information from Sonarr for series ID 36.
2019-11-20 16:01:48 - SonarrPostConversion - INFO - started
2019-11-20 16:01:58 - SonarrPostConversion - INFO - Command completed
2019-11-20 16:01:58 - SonarrPostConversion - INFO - {u'body': {u'seriesId': 36, u'name': u'RescanSeries', u'sendUpdatesToClient': True, u'completionMessage': u'Completed', u'updateScheduledTask': True, u'trigger': u'manual'}, u'status': u'completed', u'name': u'RescanSeries', u'startedOn': u'2019-11-20T08:01:48.723119Z', u'started': u'2019-11-20T08:01:48.729546Z', u'sendUpdatesToClient': True, u'stateChangeTime': u'2019-11-20T08:01:48.729546Z', u'manual': True, u'id': 278702, u'priority': u'normal', u'ended': u'2019-11-20T08:01:49.147531Z', u'state': u'completed', u'trigger': u'manual', u'duration': u'00:00:00.4179850', u'message': u'Completed', u'queued': u'2019-11-20T08:01:48.723119Z', u'updateScheduledTask': True}
2019-11-20 16:01:58 - SonarrPostConversion - INFO - Requesting updated episode information from Sonarr for series ID 36.
2019-11-20 16:01:58 - SonarrPostConversion - INFO - Sending PUT request with following payload:
2019-11-20 16:01:58 - SonarrPostConversion - INFO - {u'seriesId': 36, u'episodeNumber': 2, u'seasonNumber': 1, u'airDate': u'2019-11-15', u'airDateUtc': u'2019-11-15T08:00:00Z', u'overview': u'Target in-hand, The Mandalorian must now contend with scavengers.', u'title': u'Chapter 2: The Child', u'hasFile': True, u'episodeFile': {u'seriesId': 36, u'qualityCutoffNotMet': True, u'dateAdded': u'2019-11-20T08:01:49.088116Z', u'seasonNumber': 1, u'relativePath': u'Season 01/The Mandalorian - S01E02 - Chapter 2- The Child [WEBDL-1080p - NEO].mp4', u'mediaInfo': {u'audioChannels': 2.0, u'videoCodec': u'x264', u'audioCodec': u'AAC'}, u'path': u'/storage/shows/The Mandalorian/Season 01/The Mandalorian - S01E02 - Chapter 2- The Child [WEBDL-1080p - NEO].mp4', u'quality': {u'quality': {u'source': u'web', u'resolution': 1080, u'id': 3, u'name': u'WEBDL-1080p'}, u'revision': {u'real': 0, u'version': 1}}, u'id': 1467, u'size': 2528500097}, u'lastSearchTime': u'2019-11-20T07:35:27.926609Z', u'unverifiedSceneNumbering': False, u'monitored': True, u'episodeFileId': 1467, u'id': 3382}
2019-11-20 16:01:58 - SonarrPostConversion - INFO - PUT request returned:
2019-11-20 16:01:58 - SonarrPostConversion - INFO - {u'seriesId': 36, u'episodeNumber': 2, u'seasonNumber': 1, u'airDate': u'2019-11-15', u'airDateUtc': u'2019-11-15T08:00:00Z', u'overview': u'Target in-hand, The Mandalorian must now contend with scavengers.', u'title': u'Chapter 2: The Child', u'hasFile': True, u'episodeFile': {u'seriesId': 36, u'qualityCutoffNotMet': True, u'dateAdded': u'2019-11-20T08:01:49.088116Z', u'seasonNumber': 1, u'relativePath': u'Season 01/The Mandalorian - S01E02 - Chapter 2- The Child [WEBDL-1080p - NEO].mp4', u'mediaInfo': {u'audioChannels': 2.0, u'videoCodec': u'x264', u'audioCodec': u'AAC'}, u'path': u'/storage/shows/The Mandalorian/Season 01/The Mandalorian - S01E02 - Chapter 2- The Child [WEBDL-1080p - NEO].mp4', u'quality': {u'quality': {u'source': u'web', u'resolution': 1080, u'id': 3, u'name': u'WEBDL-1080p'}, u'revision': {u'real': 0, u'version': 1}}, u'id': 1467, u'size': 2528500097}, u'lastSearchTime': u'2019-11-20T07:35:27.926609Z', u'series': {u'certification': u'TV-PG', u'overview': u'After the stories of Jango and Boba Fett, another warrior emerges in the Star Wars universe. The Mandalorian is set after the fall of the Empire and before the emergence of the First Order. We follow the travails of a lone gunfighter in the outer reaches of the galaxy far from the authority of the New Republic.', u'airTime': u'03:00', u'firstAired': u'2019-11-11T16:00:00Z', u'tvRageId': 0, u'year': 2019, u'images': [{u'coverType': u'fanart', u'url': u'https://artworks.thetvdb.com/banners/fanart/original/5cb44833672ac.jpg'}, {u'coverType': u'banner', u'url': u'https://artworks.thetvdb.com/series/36175362000530.jpg'}, {u'coverType': u'poster', u'url': u'https://artworks.thetvdb.com/banners/posters/5dca6ae149d3d.jpg'}], u'id': 36, u'ratings': {u'votes': 0, u'value': 0.0}, u'genres': [u'Action', u'Adventure', u'Science Fiction'], u'monitored': True, u'network': u'Disney+', u'title': u'The Mandalorian', u'lastInfoSync': u'2019-11-20T04:45:27.917067Z', u'seasonCount': 1, u'seriesType': u'standard', u'status': u'continuing', u'added': u'2019-11-20T04:45:27.661492Z', u'tvdbId': 361753, u'tags': [], u'imdbId': u'tt8111088', u'seasonFolder': True, u'cleanTitle': u'themandalorian', u'sortTitle': u'mandalorian', u'seasons': [{u'monitored': True, u'seasonNumber': 1}], u'useSceneNumbering': False, u'titleSlug': u'the-mandalorian', u'qualityProfileId': 7, u'profileId': 7, u'path': u'/storage/shows/The Mandalorian', u'runtime': 40, u'tvMazeId': 38963}, u'unverifiedSceneNumbering': False, u'monitored': True, u'episodeFileId': 1467, u'id': 3382}
2019-11-20 16:01:58 - SonarrPostConversion - INFO - Sonarr monitoring information updated for episode Chapter 2: The Child.
2019-11-20 16:02:06 - SonarrPostConversion - INFO - Sonarr extra script post processing started.
2019-11-20 16:02:06 - readSettings - INFO - /usr/bin/python
2019-11-20 16:02:06 - SonarrPostConversion - INFO - Processing /storage/shows/Mr. Robot/Season 04/Mr. Robot - S04E07 - 407 Proxy Authentication Required [WEBDL-1080p - XLF].mkv.
2019-11-20 16:02:07 - mkvtomp4 - INFO - Reading video stream.
2019-11-20 16:02:07 - mkvtomp4 - INFO - Video codec detected: h264.
2019-11-20 16:02:07 - mkvtomp4 - INFO - Pix Fmt: yuv420p.
2019-11-20 16:02:07 - mkvtomp4 - INFO - Profile: Main.
2019-11-20 16:02:07 - mkvtomp4 - INFO - Reading audio streams.
2019-11-20 16:02:07 - mkvtomp4 - INFO - Audio detected for stream #1: aac [und].
2019-11-20 16:02:07 - mkvtomp4 - INFO - Creating audio stream 0 from source stream 1.
2019-11-20 16:02:07 - mkvtomp4 - INFO - Reading subtitle streams.
2019-11-20 16:02:07 - mkvtomp4 - WARNING - Subtitle language array is empty.
2019-11-20 16:02:07 - mkvtomp4 - INFO - Starting conversion.
2019-11-20 16:02:10 - mkvtomp4 - ERROR - Error converting file, FFMPEG error.
Traceback (most recent call last):
File "/config/scripts/sickbeard_mp4_automator/mkvtomp4.py", line 782, in convert
for timecode in conv:
File "/config/scripts/sickbeard_mp4_automator/converter/__init__.py", line 243, in convert
timeout=timeout, preopts=preopts, postopts=postopts):
File "/config/scripts/sickbeard_mp4_automator/converter/ffmpeg.py", line 553, in convert
total_output, pid=p.pid)
FFMpegConvertError: <FFMpegConvertError error="Exited with code 1", pid=5458, cmd="/usr/bin/ffmpeg -i /storage/shows/Mr. Robot/Season 04/Mr. Robot - S04E07 - 407 Proxy Authentication Required [WEBDL-1080p - XLF].mkv -vcodec h264_vaapi -map 0:0 -crf 20 -profile:v high -level 4.1 -vaapi_device /dev/dri/renderD128 -vf format=nv12,hwupload -c:a:0 copy -map 0:1 -metadata:s:a:0 language=eng -disposition:a:0 default -f mp4 -threads 0 -y /storage/shows/Mr. Robot/Season 04/Mr. Robot - S04E07 - 407 Proxy Authentication Required [WEBDL-1080p - XLF].mp4">
2019-11-20 16:02:10 - mkvtomp4 - ERROR - /usr/bin/ffmpeg -i /storage/shows/Mr. Robot/Season 04/Mr. Robot - S04E07 - 407 Proxy Authentication Required [WEBDL-1080p - XLF].mkv -vcodec h264_vaapi -map 0:0 -crf 20 -profile:v high -level 4.1 -vaapi_device /dev/dri/renderD128 -vf format=nv12,hwupload -c:a:0 copy -map 0:1 -metadata:s:a:0 language=eng -disposition:a:0 default -f mp4 -threads 0 -y /storage/shows/Mr. Robot/Season 04/Mr. Robot - S04E07 - 407 Proxy Authentication Required [WEBDL-1080p - XLF].mp4
2019-11-20 16:02:10 - mkvtomp4 - ERROR - ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, matroska,webm, from '/storage/shows/Mr. Robot/Season 04/Mr. Robot - S04E07 - 407 Proxy Authentication Required [WEBDL-1080p - XLF].mkv':
Metadata:
encoder : libebml v1.3.6 + libmatroska v1.4.9
creation_time : 2019-11-18T03:04:58.000000Z
Duration: 00:56:30.97, start: 0.000000, bitrate: 4086 kb/s
Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1920x1080, Closed Captions, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
BPS-eng : 3987982
DURATION-eng : 00:56:30.971000000
NUMBER_OF_FRAMES-eng: 81302
NUMBER_OF_BYTES-eng: 1690391526
_STATISTICS_WRITING_APP-eng: mkvmerge v31.0.0 ('Dolores In A Shoestand') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-11-18 03:04:58
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp (default)
Metadata:
BPS-eng : 95938
DURATION-eng : 00:56:30.972000000
NUMBER_OF_FRAMES-eng: 146037
NUMBER_OF_BYTES-eng: 40665687
_STATISTICS_WRITING_APP-eng: mkvmerge v31.0.0 ('Dolores In A Shoestand') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-11-18 03:04:58
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_vaapi))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[h264_vaapi @ 0x55bd15ae1c40] [Eval @ 0x7ffc4e05dce0] Undefined constant or missing '(' in 'high'
[h264_vaapi @ 0x55bd15ae1c40] Unable to parse option value "high"
[h264_vaapi @ 0x55bd15ae1c40] Error setting option profile to value high.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
2019-11-20 16:02:10 - mkvtomp4 - ERROR - /storage/shows/Mr. Robot/Season 04/Mr. Robot - S04E07 - 407 Proxy Authentication Required [WEBDL-1080p - XLF].mp4 deleted.
2019-11-20 17:19:38 - SonarrPostConversion - INFO - Sonarr extra script post processing started.
2019-11-20 17:19:38 - readSettings - INFO - /usr/bin/python
2019-11-20 17:19:38 - SonarrPostConversion - INFO - Processing /storage/shows/Arrow/Season 08/Arrow - S08E05 - Prochnost [HDTV-720p - AVS].mkv.
2019-11-20 17:19:39 - mkvtomp4 - INFO - Reading video stream.
2019-11-20 17:19:39 - mkvtomp4 - INFO - Video codec detected: h264.
2019-11-20 17:19:39 - mkvtomp4 - INFO - Pix Fmt: yuv420p.
2019-11-20 17:19:39 - mkvtomp4 - INFO - Profile: High.
2019-11-20 17:19:39 - mkvtomp4 - INFO - Reading audio streams.
2019-11-20 17:19:39 - mkvtomp4 - INFO - Audio detected for stream #1: ac3 [und].
2019-11-20 17:19:39 - mkvtomp4 - INFO - Creating audio stream 0 from source audio stream 1 [iOS-audio].
2019-11-20 17:19:39 - mkvtomp4 - INFO - Creating audio stream 1 from source stream 1.
2019-11-20 17:19:39 - mkvtomp4 - INFO - Reading subtitle streams.
2019-11-20 17:19:39 - mkvtomp4 - WARNING - Subtitle language array is empty.
2019-11-20 17:19:39 - mkvtomp4 - INFO - Starting conversion.
2019-11-20 17:22:07 - mkvtomp4 - INFO - /storage/shows/Arrow/Season 08/Arrow - S08E05 - Prochnost [HDTV-720p - AVS].mp4 created.
2019-11-20 17:22:08 - mkvtomp4 - INFO - Relocating MOOV atom to start of file.
2019-11-20 17:22:08 - qtfaststart - INFO - Removing free atom at 32 (8 bytes)
2019-11-20 17:22:08 - qtfaststart - INFO - Patching stco with 59990 entries
2019-11-20 17:22:09 - qtfaststart - INFO - Patching stco with 98814 entries
2019-11-20 17:22:09 - qtfaststart - INFO - Patching stco with 78191 entries
2019-11-20 17:22:09 - qtfaststart - INFO - Writing output...
2019-11-20 17:22:33 - SonarrPostConversion - INFO - Sonarr response: ID 278781 queued.
2019-11-20 17:22:33 - SonarrPostConversion - INFO - {u'body': {u'seriesId': 2, u'name': u'RescanSeries', u'sendUpdatesToClient': True, u'completionMessage': u'Completed', u'updateScheduledTask': True, u'trigger': u'manual'}, u'status': u'queued', u'name': u'RescanSeries', u'startedOn': u'2019-11-20T09:22:33.305854Z', u'updateScheduledTask': True, u'sendUpdatesToClient': True, u'manual': True, u'id': 278781, u'priority': u'normal', u'state': u'queued', u'trigger': u'manual', u'queued': u'2019-11-20T09:22:33.305854Z'}
2019-11-20 17:22:33 - SonarrPostConversion - INFO - Requesting episode information from Sonarr for series ID 2.
2019-11-20 17:22:33 - SonarrPostConversion - INFO - started
2019-11-20 17:22:43 - SonarrPostConversion - INFO - Command completed
2019-11-20 17:22:43 - SonarrPostConversion - INFO - {u'body': {u'seriesId': 2, u'name': u'RescanSeries', u'sendUpdatesToClient': True, u'completionMessage': u'Completed', u'updateScheduledTask': True, u'trigger': u'manual'}, u'status': u'completed', u'name': u'RescanSeries', u'startedOn': u'2019-11-20T09:22:33.305854Z', u'started': u'2019-11-20T09:22:33.317618Z', u'sendUpdatesToClient': True, u'stateChangeTime': u'2019-11-20T09:22:33.317618Z', u'manual': True, u'id': 278781, u'priority': u'normal', u'ended': u'2019-11-20T09:22:33.760297Z', u'state': u'completed', u'trigger': u'manual', u'duration': u'00:00:00.4426790', u'message': u'Completed', u'queued': u'2019-11-20T09:22:33.305854Z', u'updateScheduledTask': True}
2019-11-20 17:22:43 - SonarrPostConversion - INFO - Requesting updated episode information from Sonarr for series ID 2.
2019-11-20 17:22:43 - SonarrPostConversion - INFO - Sending PUT request with following payload:
2019-11-20 17:22:43 - SonarrPostConversion - INFO - {u'seriesId': 2, u'episodeNumber': 5, u'seasonNumber': 8, u'airDate': u'2019-11-19', u'airDateUtc': u'2019-11-20T02:00:00Z', u'overview': u'Upon learning the key to oppose The Monitor, Oliver and team return to Russia on a mission to gather the necessary materials; Connor reunites with a figure from his past.', u'title': u'Prochnost', u'hasFile': True, u'episodeFile': {u'seriesId': 2, u'qualityCutoffNotMet': True, u'dateAdded': u'2019-11-20T09:22:33.621223Z', u'seasonNumber': 8, u'relativePath': u'Season 08/Arrow - S08E05 - Prochnost [HDTV-720p - AVS].mp4', u'mediaInfo': {u'audioChannels': 2.0, u'videoCodec': u'x264', u'audioCodec': u'AAC'}, u'path': u'/storage/shows/Arrow/Season 08/Arrow - S08E05 - Prochnost [HDTV-720p - AVS].mp4', u'quality': {u'quality': {u'source': u'television', u'resolution': 720, u'id': 4, u'name': u'HDTV-720p'}, u'revision': {u'real': 0, u'version': 1}}, u'id': 1470, u'size': 957635565}, u'unverifiedSceneNumbering': False, u'monitored': True, u'episodeFileId': 1470, u'id': 3299}
2019-11-20 17:22:43 - SonarrPostConversion - INFO - PUT request returned:
2019-11-20 17:22:43 - SonarrPostConversion - INFO - {u'seriesId': 2, u'episodeNumber': 5, u'seasonNumber': 8, u'airDate': u'2019-11-19', u'airDateUtc': u'2019-11-20T02:00:00Z', u'overview': u'Upon learning the key to oppose The Monitor, Oliver and team return to Russia on a mission to gather the necessary materials; Connor reunites with a figure from his past.', u'title': u'Prochnost', u'hasFile': True, u'episodeFile': {u'seriesId': 2, u'qualityCutoffNotMet': True, u'dateAdded': u'2019-11-20T09:22:33.621223Z', u'seasonNumber': 8, u'relativePath': u'Season 08/Arrow - S08E05 - Prochnost [HDTV-720p - AVS].mp4', u'mediaInfo': {u'audioChannels': 2.0, u'videoCodec': u'x264', u'audioCodec': u'AAC'}, u'path': u'/storage/shows/Arrow/Season 08/Arrow - S08E05 - Prochnost [HDTV-720p - AVS].mp4', u'quality': {u'quality': {u'source': u'television', u'resolution': 720, u'id': 4, u'name': u'HDTV-720p'}, u'revision': {u'real': 0, u'version': 1}}, u'id': 1470, u'size': 957635565}, u'series': {u'certification': u'TV-14', u'overview': u"After a violent shipwreck, playboy billionaire Oliver Queen had disappeared and been presumed dead for five years before being discovered alive on a remote island in the Pacific. When he returns home to Starling City, his devoted mother Moira, the beloved sister Thea, and his best friend Tommy are going to welcome him home, but they have the feeling that Oliver has changed because of his terrible experience on the island. Meanwhile, Oliver hides the truth about the man he has become, he is desperate to repair the actions he took as the child he was. More particularly, he seeks reconciliation with his ex-girlfriend, Laurel Lance.\n\nDuring the day, Oliver plays the role of a rich, carefree and careless womanizer as he used to be - flanked by his devoted chauffeur / bodyguard, John Diggle - while carefully concealing the secret identity. However, Laurel's father, Detective Quentin Lance, is determined to stop the operation of the vigilante in his city. Meanwhile, Oliver's own mother, Moira Queen, knows much more about the deadly shipwreck than she has let on and is more cruel than she could ever imagine.", u'airTime': u'21:00', u'firstAired': u'2012-10-09T16:00:00Z', u'tvRageId': 30715, u'year': 2012, u'images': [{u'coverType': u'fanart', u'url': u'https://artworks.thetvdb.com/series/257655/backgrounds/61998145.jpg'}, {u'coverType': u'banner', u'url': u'https://artworks.thetvdb.com/banners/graphical/257655-g15.jpg'}, {u'coverType': u'poster', u'url': u'https://artworks.thetvdb.com/banners/posters/5db5b02f48b43.jpg'}], u'id': 2, u'ratings': {u'votes': 0, u'value': 0.0}, u'genres': [u'Action', u'Adventure', u'Crime', u'Drama', u'Science Fiction'], u'monitored': True, u'network': u'The CW', u'title': u'Arrow', u'lastInfoSync': u'2019-11-20T00:23:18.943249Z', u'seasonCount': 8, u'seriesType': u'standard', u'status': u'continuing', u'added': u'2019-05-27T16:39:39.076457Z', u'tvdbId': 257655, u'tags': [], u'imdbId': u'tt2193021', u'seasonFolder': True, u'cleanTitle': u'arrow', u'sortTitle': u'arrow', u'seasons': [{u'monitored': False, u'seasonNumber': 0}, {u'monitored': False, u'seasonNumber': 1}, {u'monitored': False, u'seasonNumber': 2}, {u'monitored': False, u'seasonNumber': 3}, {u'monitored': False, u'seasonNumber': 4}, {u'monitored': False, u'seasonNumber': 5}, {u'monitored': True, u'seasonNumber': 6}, {u'monitored': True, u'seasonNumber': 7}, {u'monitored': True, u'seasonNumber': 8}], u'useSceneNumbering': False, u'titleSlug': u'arrow', u'qualityProfileId': 7, u'profileId': 7, u'path': u'/storage/shows/Arrow', u'runtime': 45, u'tvMazeId': 4}, u'unverifiedSceneNumbering': False, u'monitored': True, u'episodeFileId': 1470, u'id': 3299}
2019-11-20 17:22:43 - SonarrPostConversion - INFO - Sonarr monitoring information updated for episode Prochnost.
2019-11-20 17:28:38 - SonarrPostConversion - INFO - Sonarr extra script post processing started.
2019-11-20 17:28:38 - readSettings - INFO - /usr/bin/python
2019-11-20 17:28:38 - SonarrPostConversion - INFO - Processing /storage/shows/The Flash (2014)/Season 06/The Flash (2014) - S06E06 - License To Elongate [HDTV-1080p - LucidTV].mkv.
2019-11-20 17:28:39 - mkvtomp4 - INFO - Reading video stream.
2019-11-20 17:28:39 - mkvtomp4 - INFO - Video codec detected: h264.
2019-11-20 17:28:39 - mkvtomp4 - INFO - Pix Fmt: yuv420p.
2019-11-20 17:28:39 - mkvtomp4 - INFO - Profile: High.
2019-11-20 17:28:39 - mkvtomp4 - INFO - Reading audio streams.
2019-11-20 17:28:39 - mkvtomp4 - INFO - Audio detected for stream #1: ac3 [eng].
2019-11-20 17:28:39 - mkvtomp4 - INFO - Creating audio stream 0 from source audio stream 1 [iOS-audio].
2019-11-20 17:28:39 - mkvtomp4 - INFO - Creating audio stream 1 from source stream 1.
2019-11-20 17:28:39 - mkvtomp4 - INFO - Reading subtitle streams.
2019-11-20 17:28:39 - mkvtomp4 - INFO - Subtitle detected for stream #2: subrip [eng].
2019-11-20 17:28:39 - mkvtomp4 - INFO - Creating subtitle stream 0 from source stream 2.
2019-11-20 17:28:39 - mkvtomp4 - INFO - Starting conversion.
2019-11-20 17:31:10 - mkvtomp4 - INFO - /storage/shows/The Flash (2014)/Season 06/The Flash (2014) - S06E06 - License To Elongate [HDTV-1080p - LucidTV].mp4 created.
2019-11-20 17:31:12 - mkvtomp4 - INFO - Relocating MOOV atom to start of file.
2019-11-20 17:31:12 - qtfaststart - INFO - Removing free atom at 32 (8 bytes)
2019-11-20 17:31:12 - qtfaststart - INFO - Patching stco with 60062 entries
2019-11-20 17:31:12 - qtfaststart - INFO - Patching stco with 99089 entries
2019-11-20 17:31:12 - qtfaststart - INFO - Patching stco with 78287 entries
2019-11-20 17:31:12 - qtfaststart - INFO - Patching stco with 934 entries
2019-11-20 17:31:12 - qtfaststart - INFO - Writing output...
2019-11-20 17:32:18 - SonarrPostConversion - INFO - Sonarr response: ID 278790 queued.
2019-11-20 17:32:18 - SonarrPostConversion - INFO - {u'body': {u'seriesId': 21, u'name': u'RescanSeries', u'sendUpdatesToClient': True, u'completionMessage': u'Completed', u'updateScheduledTask': True, u'trigger': u'manual'}, u'status': u'queued', u'name': u'RescanSeries', u'startedOn': u'2019-11-20T09:32:18.94909Z', u'updateScheduledTask': True, u'sendUpdatesToClient': True, u'manual': True, u'id': 278790, u'priority': u'normal', u'state': u'queued', u'trigger': u'manual', u'queued': u'2019-11-20T09:32:18.94909Z'}
2019-11-20 17:32:18 - SonarrPostConversion - INFO - Requesting episode information from Sonarr for series ID 21.
2019-11-20 17:32:18 - SonarrPostConversion - INFO - started
2019-11-20 17:32:28 - SonarrPostConversion - INFO - Command completed
2019-11-20 17:32:28 - SonarrPostConversion - INFO - {u'body': {u'seriesId': 21, u'name': u'RescanSeries', u'sendUpdatesToClient': True, u'completionMessage': u'Completed', u'updateScheduledTask': True, u'trigger': u'manual'}, u'status': u'completed', u'name': u'RescanSeries', u'startedOn': u'2019-11-20T09:32:18.94909Z', u'started': u'2019-11-20T09:32:18.952807Z', u'sendUpdatesToClient': True, u'stateChangeTime': u'2019-11-20T09:32:18.952807Z', u'manual': True, u'id': 278790, u'priority': u'normal', u'ended': u'2019-11-20T09:32:19.467885Z', u'state': u'completed', u'trigger': u'manual', u'duration': u'00:00:00.5150780', u'message': u'Completed', u'queued': u'2019-11-20T09:32:18.94909Z', u'updateScheduledTask': True}
2019-11-20 17:32:28 - SonarrPostConversion - INFO - Requesting updated episode information from Sonarr for series ID 21.
2019-11-20 17:32:29 - SonarrPostConversion - INFO - Sending PUT request with following payload:
2019-11-20 17:32:29 - SonarrPostConversion - INFO - {u'seriesId': 21, u'episodeNumber': 6, u'seasonNumber': 6, u'airDate': u'2019-11-19', u'airDateUtc': u'2019-11-20T01:00:00Z', u'overview': u'Barry turns his attention to prepping Elongated Man for life after Crisis and without The Flash, but Ralph ultimately teaches Barry a lesson. Meanwhile, Cecile faces her own moment of self-discovery while helping a recuperated Chester P. Runk reclaim his identity.', u'title': u'License To Elongate', u'hasFile': True, u'episodeFile': {u'seriesId': 21, u'qualityCutoffNotMet': True, u'dateAdded': u'2019-11-20T09:32:19.413341Z', u'seasonNumber': 6, u'relativePath': u'Season 06/The Flash (2014) - S06E06 - License To Elongate [HDTV-1080p - LucidTV].mp4', u'mediaInfo': {u'audioChannels': 2.0, u'videoCodec': u'x264', u'audioCodec': u'AAC'}, u'path': u'/storage/shows/The Flash (2014)/Season 06/The Flash (2014) - S06E06 - License To Elongate [HDTV-1080p - LucidTV].mp4', u'quality': {u'quality': {u'source': u'television', u'resolution': 1080, u'id': 9, u'name': u'HDTV-1080p'}, u'revision': {u'real': 0, u'version': 1}}, u'id': 1472, u'size': 2417267531}, u'unverifiedSceneNumbering': False, u'monitored': True, u'episodeFileId': 1472, u'id': 3304}
2019-11-20 17:32:29 - SonarrPostConversion - INFO - PUT request returned:
2019-11-20 17:32:29 - SonarrPostConversion - INFO - {u'seriesId': 21, u'episodeNumber': 6, u'seasonNumber': 6, u'airDate': u'2019-11-19', u'airDateUtc': u'2019-11-20T01:00:00Z', u'overview': u'Barry turns his attention to prepping Elongated Man for life after Crisis and without The Flash, but Ralph ultimately teaches Barry a lesson. Meanwhile, Cecile faces her own moment of self-discovery while helping a recuperated Chester P. Runk reclaim his identity.', u'title': u'License To Elongate', u'hasFile': True, u'episodeFile': {u'seriesId': 21, u'qualityCutoffNotMet': True, u'dateAdded': u'2019-11-20T09:32:19.413341Z', u'seasonNumber': 6, u'relativePath': u'Season 06/The Flash (2014) - S06E06 - License To Elongate [HDTV-1080p - LucidTV].mp4', u'mediaInfo': {u'audioChannels': 2.0, u'videoCodec': u'x264', u'audioCodec': u'AAC'}, u'path': u'/storage/shows/The Flash (2014)/Season 06/The Flash (2014) - S06E06 - License To Elongate [HDTV-1080p - LucidTV].mp4', u'quality': {u'quality': {u'source': u'television', u'resolution': 1080, u'id': 9, u'name': u'HDTV-1080p'}, u'revision': {u'real': 0, u'version': 1}}, u'id': 1472, u'size': 2417267531}, u'series': {u'certification': u'TV-PG', u'overview': u"After being struck by lightning, Barry Allen wakes up from his coma to discover he's been given the power of super speed, becoming the Flash, fighting crime in Central City.", u'airTime': u'20:00', u'firstAired': u'2014-10-06T16:00:00Z', u'tvRageId': 36939, u'year': 2014, u'images': [{u'coverType': u'fanart', u'url': u'https://artworks.thetvdb.com/banners/fanart/original/279121-36.jpg'}, {u'coverType': u'banner', u'url': u'https://artworks.thetvdb.com/banners/graphical/279121-g6.jpg'}, {u'coverType': u'poster', u'url': u'https://artworks.thetvdb.com/banners/posters/279121-44.jpg'}], u'id': 21, u'ratings': {u'votes': 0, u'value': 0.0}, u'genres': [u'Action', u'Adventure', u'Drama', u'Science Fiction'], u'monitored': True, u'network': u'The CW', u'title': u'The Flash (2014)', u'lastInfoSync': u'2019-11-20T00:23:22.600242Z', u'seasonCount': 6, u'seriesType': u'standard', u'status': u'continuing', u'added': u'2019-05-27T16:39:57.547235Z', u'tvdbId': 279121, u'tags': [], u'imdbId': u'tt3107288', u'seasonFolder': True, u'cleanTitle': u'theflash2014', u'sortTitle': u'flash 2014', u'seasons': [{u'monitored': False, u'seasonNumber': 0}, {u'monitored': False, u'seasonNumber': 1}, {u'monitored': False, u'seasonNumber': 2}, {u'monitored': False, u'seasonNumber': 3}, {u'monitored': False, u'seasonNumber': 4}, {u'monitored': True, u'seasonNumber': 5}, {u'monitored': True, u'seasonNumber': 6}], u'useSceneNumbering': False, u'titleSlug': u'the-flash-2014', u'qualityProfileId': 7, u'profileId': 7, u'path': u'/storage/shows/The Flash (2014)', u'runtime': 45, u'tvMazeId': 13}, u'unverifiedSceneNumbering': False, u'monitored': True, u'episodeFileId': 1472, u'id': 3304}
2019-11-20 17:32:29 - SonarrPostConversion - INFO - Sonarr monitoring information updated for episode License To Elongate.
2019-11-20 17:32:36 - SonarrPostConversion - INFO - Sonarr extra script post processing started.
2019-11-20 17:32:36 - readSettings - INFO - /usr/bin/python
2019-11-20 17:32:36 - SonarrPostConversion - INFO - Processing /storage/shows/Arrow/Season 08/Arrow - S08E05 - Prochnost [WEBDL-720p - TRUMP].mkv.
2019-11-20 17:32:38 - mkvtomp4 - INFO - Reading video stream.
2019-11-20 17:32:38 - mkvtomp4 - INFO - Video codec detected: h264.
2019-11-20 17:32:38 - mkvtomp4 - INFO - Pix Fmt: yuv420p.
2019-11-20 17:32:38 - mkvtomp4 - INFO - Profile: Main.
2019-11-20 17:32:38 - mkvtomp4 - INFO - Reading audio streams.
2019-11-20 17:32:38 - mkvtomp4 - INFO - Audio detected for stream #1: aac [eng].
2019-11-20 17:32:38 - mkvtomp4 - INFO - Creating audio stream 0 from source stream 1.
2019-11-20 17:32:38 - mkvtomp4 - INFO - Reading subtitle streams.
2019-11-20 17:32:38 - mkvtomp4 - INFO - Subtitle detected for stream #2: subrip [eng].
2019-11-20 17:32:38 - mkvtomp4 - INFO - Creating subtitle stream 0 from source stream 2.
2019-11-20 17:32:38 - mkvtomp4 - INFO - Starting conversion.
2019-11-20 17:32:41 - mkvtomp4 - ERROR - Error converting file, FFMPEG error.
Traceback (most recent call last):
File "/config/scripts/sickbeard_mp4_automator/mkvtomp4.py", line 782, in convert
for timecode in conv:
File "/config/scripts/sickbeard_mp4_automator/converter/__init__.py", line 243, in convert
timeout=timeout, preopts=preopts, postopts=postopts):
File "/config/scripts/sickbeard_mp4_automator/converter/ffmpeg.py", line 553, in convert
total_output, pid=p.pid)
FFMpegConvertError: <FFMpegConvertError error="Exited with code 1", pid=5735, cmd="/usr/bin/ffmpeg -fix_sub_duration -i /storage/shows/Arrow/Season 08/Arrow - S08E05 - Prochnost [WEBDL-720p - TRUMP].mkv -vcodec h264_vaapi -map 0:0 -crf 20 -profile:v high -level 4.1 -vaapi_device /dev/dri/renderD128 -vf format=nv12,hwupload -c:a:0 copy -map 0:1 -metadata:s:a:0 language=eng -disposition:a:0 default -c:s:0 mov_text -map 0:2 -disposition:s:0 default -metadata:s:s:0 language=eng -f mp4 -threads 0 -y /storage/shows/Arrow/Season 08/Arrow - S08E05 - Prochnost [WEBDL-720p - TRUMP].mp4">
2019-11-20 17:32:41 - mkvtomp4 - ERROR - /usr/bin/ffmpeg -fix_sub_duration -i /storage/shows/Arrow/Season 08/Arrow - S08E05 - Prochnost [WEBDL-720p - TRUMP].mkv -vcodec h264_vaapi -map 0:0 -crf 20 -profile:v high -level 4.1 -vaapi_device /dev/dri/renderD128 -vf format=nv12,hwupload -c:a:0 copy -map 0:1 -metadata:s:a:0 language=eng -disposition:a:0 default -c:s:0 mov_text -map 0:2 -disposition:s:0 default -metadata:s:s:0 language=eng -f mp4 -threads 0 -y /storage/shows/Arrow/Season 08/Arrow - S08E05 - Prochnost [WEBDL-720p - TRUMP].mp4
2019-11-20 17:32:41 - mkvtomp4 - ERROR - ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, matroska,webm, from '/storage/shows/Arrow/Season 08/Arrow - S08E05 - Prochnost [WEBDL-720p - TRUMP].mkv':
Metadata:
encoder : libebml v1.3.9 + libmatroska v1.5.2
creation_time : 2019-11-20T06:04:51.000000Z
Duration: 00:42:24.56, start: 0.000000, bitrate: 2499 kb/s
Stream #0:0(eng): Video: h264 (Main), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
BPS-eng : 2403743
DURATION-eng : 00:42:24.542000000
NUMBER_OF_FRAMES-eng: 61008
NUMBER_OF_BYTES-eng: 764553340
_STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-11-20 06:04:51
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: aac (LC), 44100 Hz, stereo, fltp (default)
Metadata:
BPS-eng : 93589
DURATION-eng : 00:42:24.559000000
NUMBER_OF_FRAMES-eng: 109585
NUMBER_OF_BYTES-eng: 29767876
_STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-11-20 06:04:51
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Subtitle: subrip
Metadata:
title : English
BPS-eng : 278
DURATION-eng : 00:42:18.785000000
NUMBER_OF_FRAMES-eng: 762
NUMBER_OF_BYTES-eng: 88374
_STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-11-20 06:04:51
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_vaapi))
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (subrip (srt) -> mov_text (native))
Press [q] to stop, [?] for help
[h264_vaapi @ 0x559c98ec5400] [Eval @ 0x7ffd65d90570] Undefined constant or missing '(' in 'high'
[h264_vaapi @ 0x559c98ec5400] Unable to parse option value "high"
[h264_vaapi @ 0x559c98ec5400] Error setting option profile to value high.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
2019-11-20 17:32:41 - mkvtomp4 - ERROR - /storage/shows/Arrow/Season 08/Arrow - S08E05 - Prochnost [WEBDL-720p - TRUMP].mp4 deleted.
2019-11-20 17:43:08 - SonarrPostConversion - INFO - Sonarr extra script post processing started.
2019-11-20 17:43:08 - readSettings - INFO - /usr/bin/python
2019-11-20 17:43:08 - SonarrPostConversion - INFO - Processing /storage/shows/The Flash (2014)/Season 06/The Flash (2014) - S06E06 - License To Elongate [WEBDL-1080p - TRUMP].mkv.
2019-11-20 17:43:09 - mkvtomp4 - INFO - Reading video stream.
2019-11-20 17:43:09 - mkvtomp4 - INFO - Video codec detected: h264.
2019-11-20 17:43:09 - mkvtomp4 - INFO - Pix Fmt: yuv420p.
2019-11-20 17:43:09 - mkvtomp4 - INFO - Profile: High.
2019-11-20 17:43:09 - mkvtomp4 - INFO - Reading audio streams.
2019-11-20 17:43:09 - mkvtomp4 - INFO - Audio detected for stream #1: aac [eng].
2019-11-20 17:43:09 - mkvtomp4 - INFO - Creating audio stream 0 from source stream 1.
2019-11-20 17:43:09 - mkvtomp4 - INFO - Reading subtitle streams.
2019-11-20 17:43:09 - mkvtomp4 - INFO - Subtitle detected for stream #2: subrip [eng].
2019-11-20 17:43:09 - mkvtomp4 - INFO - Creating subtitle stream 0 from source stream 2.
2019-11-20 17:43:09 - mkvtomp4 - INFO - Starting conversion.
2019-11-20 17:43:38 - mkvtomp4 - INFO - /storage/shows/The Flash (2014)/Season 06/The Flash (2014) - S06E06 - License To Elongate [WEBDL-1080p - TRUMP].mp4 created.
2019-11-20 17:43:40 - mkvtomp4 - INFO - Relocating MOOV atom to start of file.
2019-11-20 17:43:40 - qtfaststart - INFO - Removing free atom at 32 (8 bytes)
2019-11-20 17:43:40 - qtfaststart - INFO - Patching stco with 60965 entries
2019-11-20 17:43:40 - qtfaststart - INFO - Patching stco with 61003 entries
2019-11-20 17:43:40 - qtfaststart - INFO - Patching stco with 936 entries
2019-11-20 17:43:40 - qtfaststart - INFO - Writing output...
2019-11-20 17:44:47 - SonarrPostConversion - INFO - Sonarr response: ID 278804 queued.
2019-11-20 17:44:47 - SonarrPostConversion - INFO - {u'body': {u'seriesId': 21, u'name': u'RescanSeries', u'sendUpdatesToClient': True, u'completionMessage': u'Completed', u'updateScheduledTask': True, u'trigger': u'manual'}, u'status': u'queued', u'name': u'RescanSeries', u'startedOn': u'2019-11-20T09:44:47.845829Z', u'updateScheduledTask': True, u'sendUpdatesToClient': True, u'manual': True, u'id': 278804, u'priority': u'normal', u'state': u'queued', u'trigger': u'manual', u'queued': u'2019-11-20T09:44:47.845829Z'}
2019-11-20 17:44:47 - SonarrPostConversion - INFO - Requesting episode information from Sonarr for series ID 21.
2019-11-20 17:44:47 - SonarrPostConversion - INFO - started
2019-11-20 17:44:57 - SonarrPostConversion - INFO - Command completed
2019-11-20 17:44:57 - SonarrPostConversion - INFO - {u'body': {u'seriesId': 21, u'name': u'RescanSeries', u'sendUpdatesToClient': True, u'completionMessage': u'Completed', u'updateScheduledTask': True, u'trigger': u'manual'}, u'status': u'completed', u'name': u'RescanSeries', u'startedOn': u'2019-11-20T09:44:47.845829Z', u'started': u'2019-11-20T09:44:47.853899Z', u'sendUpdatesToClient': True, u'stateChangeTime': u'2019-11-20T09:44:47.853899Z', u'manual': True, u'id': 278804, u'priority': u'normal', u'ended': u'2019-11-20T09:44:48.920242Z', u'state': u'completed', u'trigger': u'manual', u'duration': u'00:00:01.0663430', u'message': u'Completed', u'queued': u'2019-11-20T09:44:47.845829Z', u'updateScheduledTask': True}
2019-11-20 17:44:57 - SonarrPostConversion - INFO - Requesting updated episode information from Sonarr for series ID 21.
2019-11-20 17:44:57 - SonarrPostConversion - INFO - Sending PUT request with following payload:
2019-11-20 17:44:57 - SonarrPostConversion - INFO - {u'seriesId': 21, u'episodeNumber': 6, u'seasonNumber': 6, u'airDate': u'2019-11-19', u'airDateUtc': u'2019-11-20T01:00:00Z', u'overview': u'Barry turns his attention to prepping Elongated Man for life after Crisis and without The Flash, but Ralph ultimately teaches Barry a lesson. Meanwhile, Cecile faces her own moment of self-discovery while helping a recuperated Chester P. Runk reclaim his identity.', u'title': u'License To Elongate', u'hasFile': True, u'episodeFile': {u'seriesId': 21, u'qualityCutoffNotMet': True, u'dateAdded': u'2019-11-20T09:44:48.82287Z', u'seasonNumber': 6, u'relativePath': u'Season 06/The Flash (2014) - S06E06 - License To Elongate [WEBDL-1080p - TRUMP].mp4', u'mediaInfo': {u'audioChannels': 2.0, u'videoCodec': u'h264', u'audioCodec': u'AAC'}, u'path': u'/storage/shows/The Flash (2014)/Season 06/The Flash (2014) - S06E06 - License To Elongate [WEBDL-1080p - TRUMP].mp4', u'quality': {u'quality': {u'source': u'web', u'resolution': 1080, u'id': 3, u'name': u'WEBDL-1080p'}, u'revision': {u'real': 0, u'version': 1}}, u'id': 1475, u'size': 2556660500}, u'unverifiedSceneNumbering': False, u'monitored': True, u'episodeFileId': 1475, u'id': 3304}
2019-11-20 17:44:58 - SonarrPostConversion - INFO - PUT request returned:
2019-11-20 17:44:58 - SonarrPostConversion - INFO - {u'seriesId': 21, u'episodeNumber': 6, u'seasonNumber': 6, u'airDate': u'2019-11-19', u'airDateUtc': u'2019-11-20T01:00:00Z', u'overview': u'Barry turns his attention to prepping Elongated Man for life after Crisis and without The Flash, but Ralph ultimately teaches Barry a lesson. Meanwhile, Cecile faces her own moment of self-discovery while helping a recuperated Chester P. Runk reclaim his identity.', u'title': u'License To Elongate', u'hasFile': True, u'episodeFile': {u'seriesId': 21, u'qualityCutoffNotMet': True, u'dateAdded': u'2019-11-20T09:44:48.82287Z', u'seasonNumber': 6, u'relativePath': u'Season 06/The Flash (2014) - S06E06 - License To Elongate [WEBDL-1080p - TRUMP].mp4', u'mediaInfo': {u'audioChannels': 2.0, u'videoCodec': u'h264', u'audioCodec': u'AAC'}, u'path': u'/storage/shows/The Flash (2014)/Season 06/The Flash (2014) - S06E06 - License To Elongate [WEBDL-1080p - TRUMP].mp4', u'quality': {u'quality': {u'source': u'web', u'resolution': 1080, u'id': 3, u'name': u'WEBDL-1080p'}, u'revision': {u'real': 0, u'version': 1}}, u'id': 1475, u'size': 2556660500}, u'series': {u'certification': u'TV-PG', u'overview': u"After being struck by lightning, Barry Allen wakes up from his coma to discover he's been given the power of super speed, becoming the Flash, fighting crime in Central City.", u'airTime': u'20:00', u'firstAired': u'2014-10-06T16:00:00Z', u'tvRageId': 36939, u'year': 2014, u'images': [{u'coverType': u'fanart', u'url': u'https://artworks.thetvdb.com/banners/fanart/original/279121-36.jpg'}, {u'coverType': u'banner', u'url': u'https://artworks.thetvdb.com/banners/graphical/279121-g6.jpg'}, {u'coverType': u'poster', u'url': u'https://artworks.thetvdb.com/banners/posters/279121-44.jpg'}], u'id': 21, u'ratings': {u'votes': 0, u'value': 0.0}, u'genres': [u'Action', u'Adventure', u'Drama', u'Science Fiction'], u'monitored': True, u'network': u'The CW', u'title': u'The Flash (2014)', u'lastInfoSync': u'2019-11-20T00:23:22.600242Z', u'seasonCount': 6, u'seriesType': u'standard', u'status': u'continuing', u'added': u'2019-05-27T16:39:57.547235Z', u'tvdbId': 279121, u'tags': [], u'imdbId': u'tt3107288', u'seasonFolder': True, u'cleanTitle': u'theflash2014', u'sortTitle': u'flash 2014', u'seasons': [{u'monitored': False, u'seasonNumber': 0}, {u'monitored': False, u'seasonNumber': 1}, {u'monitored': False, u'seasonNumber': 2}, {u'monitored': False, u'seasonNumber': 3}, {u'monitored': False, u'seasonNumber': 4}, {u'monitored': True, u'seasonNumber': 5}, {u'monitored': True, u'seasonNumber': 6}], u'useSceneNumbering': False, u'titleSlug': u'the-flash-2014', u'qualityProfileId': 7, u'profileId': 7, u'path': u'/storage/shows/The Flash (2014)', u'runtime': 45, u'tvMazeId': 13}, u'unverifiedSceneNumbering': False, u'monitored': True, u'episodeFileId': 1475, u'id': 3304}
2019-11-20 17:44:58 - SonarrPostConversion - INFO - Sonarr monitoring information updated for episode License To Elongate.
2019-11-20 18:23:38 - SonarrPostConversion - INFO - Sonarr extra script post processing started.
2019-11-20 18:23:38 - readSettings - INFO - /usr/bin/python
2019-11-20 18:23:38 - SonarrPostConversion - INFO - Processing /storage/shows/Silicon Valley/Season 06/Silicon Valley - S06E04 - Maximizing Alphaness [HDTV-1080p - MeGusta].mkv.
2019-11-20 18:23:40 - mkvtomp4 - INFO - Reading video stream.
2019-11-20 18:23:40 - mkvtomp4 - INFO - Video codec detected: hevc.
2019-11-20 18:23:40 - mkvtomp4 - INFO - Pix Fmt: yuv420p10le.
2019-11-20 18:23:40 - mkvtomp4 - INFO - Profile: Main 10.
2019-11-20 18:23:40 - mkvtomp4 - INFO - Reading audio streams.
2019-11-20 18:23:40 - mkvtomp4 - INFO - Audio detected for stream #1: eac3 [und].
2019-11-20 18:23:40 - mkvtomp4 - INFO - Creating audio stream 0 from source audio stream 1 [iOS-audio].
2019-11-20 18:23:40 - mkvtomp4 - INFO - Creating audio stream 1 from source stream 1.
2019-11-20 18:23:40 - mkvtomp4 - INFO - Reading subtitle streams.
2019-11-20 18:23:40 - mkvtomp4 - INFO - Subtitle detected for stream #2: ass [eng].
2019-11-20 18:23:40 - mkvtomp4 - INFO - Creating subtitle stream 0 from source stream 2.
2019-11-20 18:23:40 - mkvtomp4 - INFO - Starting conversion.
2019-11-20 18:23:42 - mkvtomp4 - ERROR - Error converting file, FFMPEG error.
Traceback (most recent call last):
File "/config/scripts/sickbeard_mp4_automator/mkvtomp4.py", line 782, in convert
for timecode in conv:
File "/config/scripts/sickbeard_mp4_automator/converter/__init__.py", line 243, in convert
timeout=timeout, preopts=preopts, postopts=postopts):
File "/config/scripts/sickbeard_mp4_automator/converter/ffmpeg.py", line 553, in convert
total_output, pid=p.pid)
FFMpegConvertError: <FFMpegConvertError error="Exited with code 1", pid=5892, cmd="/usr/bin/ffmpeg -fix_sub_duration -vcodec hevc_qsv -i /storage/shows/Silicon Valley/Season 06/Silicon Valley - S06E04 - Maximizing Alphaness [HDTV-1080p - MeGusta].mkv -vcodec h264_vaapi -map 0:0 -crf 20 -profile:v high -level 4.1 -vaapi_device /dev/dri/renderD128 -vf format=nv12,hwupload -c:a:0 aac -map 0:1 -disposition:a:0 default -ac:a:0 2 -b:a:0 256k -metadata:s:a:0 language=eng -strict experimental -c:a:1 ac3 -map 0:1 -disposition:a:1 none -ac:a:1 6 -b:a:1 1536k -metadata:s:a:1 language=eng -c:s:0 mov_text -map 0:2 -disposition:s:0 default -metadata:s:s:0 language=eng -f mp4 -threads 0 -y /storage/shows/Silicon Valley/Season 06/Silicon Valley - S06E04 - Maximizing Alphaness [HDTV-1080p - MeGusta].mp4">
2019-11-20 18:23:42 - mkvtomp4 - ERROR - /usr/bin/ffmpeg -fix_sub_duration -vcodec hevc_qsv -i /storage/shows/Silicon Valley/Season 06/Silicon Valley - S06E04 - Maximizing Alphaness [HDTV-1080p - MeGusta].mkv -vcodec h264_vaapi -map 0:0 -crf 20 -profile:v high -level 4.1 -vaapi_device /dev/dri/renderD128 -vf format=nv12,hwupload -c:a:0 aac -map 0:1 -disposition:a:0 default -ac:a:0 2 -b:a:0 256k -metadata:s:a:0 language=eng -strict experimental -c:a:1 ac3 -map 0:1 -disposition:a:1 none -ac:a:1 6 -b:a:1 1536k -metadata:s:a:1 language=eng -c:s:0 mov_text -map 0:2 -disposition:s:0 default -metadata:s:s:0 language=eng -f mp4 -threads 0 -y /storage/shows/Silicon Valley/Season 06/Silicon Valley - S06E04 - Maximizing Alphaness [HDTV-1080p - MeGusta].mp4
2019-11-20 18:23:42 - mkvtomp4 - ERROR - ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Unknown decoder 'hevc_qsv'
Do you have any ideas what those mean? This error happens when a conversion is needed:
[h264_vaapi @ 0x559c98ec5400] [Eval @ 0x7ffd65d90570] Undefined constant or missing '(' in 'high'
[h264_vaapi @ 0x559c98ec5400] Unable to parse option value "high"
[h264_vaapi @ 0x559c98ec5400] Error setting option profile to value high.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
Here's my config file:
[SickBeard]
host = localhost
port = 8081
username =
password =
web_root =
ssl = False
api_key =
[Sonarr]
host = localhost
port = 8989
web_root =
ssl = False
apikey = <key removed>
[Radarr]
host = localhost
port = 7878
web_root =
ssl = False
apikey = <key removed>
[MP4]
ffmpeg = ffmpeg
ffprobe = ffprobe
threads = 0
output_directory =
copy_to =
move_to =
output_extension = mp4
output_format = mp4
delete_original = True
relocate_moov = True
video-codec = h264vaapi,h264,x264
video-bitrate =
video-crf = 20
video-max-width =
video-profile = high
h264-max-level = 4.1
use-qsv-decoder-with-encoder = True
use-hevc-qsv-decoder = True
enable_dxva2_gpu_decode = False
ios-audio = True
ios-first-track-only = True
ios-audio-filter =
ios-move-last = False
max-audio-channels =
audio-codec = ac3,mp3,dts,dca,aac
ignore-trudhd = true
audio-language = eng
audio-default-language = eng
audio-channel-bitrate = 256
audio-filter =
audio-copy-original = False
audio-first-track-of-language = True
subtitle-codec = mov_text
subtitle-language = eng
subtitle-default-language = eng
subtitle-encoding =
fullpathguess = True
convert-mp4 = False
tagfile = False
tag-language = en
download-artwork = False
download-subs = False
embed-subs = True
embed-only-internal-subs = False
sub-providers = addic7ed,podnapisi,thesubdb,opensubtitles,tvsubtitles
permissions = 0664
post-process = False
pix-fmt =
aac_adtstoasc = False
preopts =
postopts =
[CouchPotato]
host = localhost
port = 5050
username =
password =
web_root =
ssl = False
apikey =
delay = 65
method = renamer
delete_failed = False
[uTorrent]
convert =
couchpotato-label = couchpotato
sickbeard-label = sickbeard
sonarr-label = sonarr
bypass-label = bypass
sickrage-label = sickrage
webui = False
action_before = stop
action_after = removedata
host = http://localhost:8080/
username =
password =
output_directory =
radarr-label = radarr
[Deluge]
host = localhost
username =
convert = True
password =
sonarr-label = sonarr
bypass-label = bypass
sickbeard-label = sickbeard
port = 58846
sickrage-label = sickrage
couchpotato-label = couchpotato
output_directory =
remove = false
radarr-label = radarr
[SABNZBD]
convert = True
sickrage-category = sickrage
sonarr-category = sonarr
radarr-category = radarr
bypass-category = bypass
couchpotato-category = couchpotato
sickbeard-category = sickbeard
output_directory =
[Sickrage]
host = localhost
port = 8081
username =
password =
web_root =
ssl = False
api_key =
[Plex]
host = <hostname removed>
port = 32400
refresh = True
token = <token removed>
[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 = http://localhost:8080/
username =
password =
output_directory =
So do I need to set both of these to false?
use-qsv-decoder-with-encoder = True
use-hevc-qsv-decoder = True
They've been true all the time but I admit that I'm not 100% sure that the error regarding unknown decoder was not in the logs before I switched to using your script.
MKV Process script - Process Cloud Stored Files?
Before the main Q, "UnkownAudioLanguage="eng"" is presumably a typo that needs adjustment in more than 1 place to "Unknown"
If your files are already on a cloud provider this gives you a problem to process them without downloading them and then doing on spinning rust. Could the script be amended to:
- check if file needs some processing, if not do nothing
- if processing needed, move file to new location (ie spinning rust) and do processing
- move file back to original location
??
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.