{"action":"created","issue":{"url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/1323","repository_url":"https://api.github.com/repos/clinton-hall/nzbToMedia","labels_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/1323/labels{/name}","comments_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/1323/comments","events_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/1323/events","html_url":"https://github.com/clinton-hall/nzbToMedia/issues/1323","id":286483084,"number":1323,"title":"hevc_vaapi in nzbtomedia error","user":{"login":"rosskopf","id":2047817,"avatar_url":"https://avatars1.githubusercontent.com/u/2047817?v=4","gravatar_id":"","url":"https://api.github.com/users/rosskopf","html_url":"https://github.com/rosskopf","followers_url":"https://api.github.com/users/rosskopf/followers","following_url":"https://api.github.com/users/rosskopf/following{/other_user}","gists_url":"https://api.github.com/users/rosskopf/gists{/gist_id}","starred_url":"https://api.github.com/users/rosskopf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosskopf/subscriptions","organizations_url":"https://api.github.com/users/rosskopf/orgs","repos_url":"https://api.github.com/users/rosskopf/repos","events_url":"https://api.github.com/users/rosskopf/events{/privacy}","received_events_url":"https://api.github.com/users/rosskopf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-01-06T13:01:58Z","updated_at":"2018-05-09T19:49:17Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI love this script and it works well, but then i wanted to use hevc_vaapi for faster encoding.\r\nwhen i run ffmeg manual \r\n`/home/benjamin/bin/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -fflags +genpts -i /media/externeHD/transmission/process/tv/The.Big.Bang.Theory.S11E12.iNTERNAL.720p.WEB.x264-BAMBOOZLE[eztv].mkv/The.Big.Bang.Theory.S11E12.iNTERNAL.720p.WEB.x264-BAMBOOZLE[eztv].mkv -map 0:0 -map 0:1 -c:v hevc_vaapi -preset slow -crf 19 -c:a:0 copy -sn /media/externeHD/transmission/series/test.mkv`\r\n\r\n> ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers\r\n  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.5) 20160609\r\n  configuration: --prefix=/home/benjamin/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/benjamin/ffmpeg_build/include --extra-ldflags=-L/home/benjamin/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/benjamin/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-vaapi --enable-nonfree\r\n  libavutil      55. 78.100 / 55. 78.100\r\n  libavcodec     57.107.100 / 57.107.100\r\n  libavformat    57. 83.100 / 57. 83.100\r\n  libavdevice    57. 10.100 / 57. 10.100\r\n  libavfilter     6.107.100 /  6.107.100\r\n  libswscale      4.  8.100 /  4.  8.100\r\n  libswresample   2.  9.100 /  2.  9.100\r\n  libpostproc    54.  7.100 / 54.  7.100\r\nInput #0, matroska,webm, from '/media/externeHD/transmission/process/tv/The.Big.Bang.Theory.S11E12.iNTERNAL.720p.WEB.x264-BAMBOOZLE[eztv].mkv/The.Big.Bang.Theory.S11E12.iNTERNAL.720p.WEB.x264-BAMBOOZLE[eztv].mkv':\r\n  Metadata:\r\n    encoder         : libebml v1.3.3 + libmatroska v1.4.4\r\n    creation_time   : 2018-01-05T04:35:57.000000Z\r\n  Duration: 00:20:27.61, start: 0.000000, bitrate: 3007 kb/s\r\n    Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)\r\n    Metadata:\r\n      BPS             : 2880190\r\n      BPS-eng         : 2880190\r\n      DURATION        : 00:20:27.560000000\r\n      DURATION-eng    : 00:20:27.560000000\r\n      NUMBER_OF_FRAMES: 29432\r\n      NUMBER_OF_FRAMES-eng: 29432\r\n      NUMBER_OF_BYTES : 441950804\r\n      NUMBER_OF_BYTES-eng: 441950804\r\n      _STATISTICS_WRITING_APP: mkvmerge v8.8.0 ('Wind at my back') 64bit\r\n      _STATISTICS_WRITING_APP-eng: mkvmerge v8.8.0 ('Wind at my back') 64bit\r\n      _STATISTICS_WRITING_DATE_UTC: 2018-01-05 04:35:57\r\n      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-05 04:35:57\r\n      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES\r\n      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES\r\n    Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp (default)\r\n    Metadata:\r\n      BPS             : 125375\r\n      BPS-eng         : 125375\r\n      DURATION        : 00:20:27.605000000\r\n      DURATION-eng    : 00:20:27.605000000\r\n      NUMBER_OF_FRAMES: 57544\r\n      NUMBER_OF_FRAMES-eng: 57544\r\n      NUMBER_OF_BYTES : 19238878\r\n      NUMBER_OF_BYTES-eng: 19238878\r\n      _STATISTICS_WRITING_APP: mkvmerge v8.8.0 ('Wind at my back') 64bit\r\n      _STATISTICS_WRITING_APP-eng: mkvmerge v8.8.0 ('Wind at my back') 64bit\r\n      _STATISTICS_WRITING_DATE_UTC: 2018-01-05 04:35:57\r\n      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-05 04:35:57\r\n      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES\r\n      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES\r\nFile '/media/externeHD/transmission/series/test.mkv' already exists. Overwrite ? [y/N] y\r\nlibva info: VA-API version 0.39.0\r\nlibva info: va_getDriverName() returns 0\r\nlibva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so\r\nlibva info: Found init function __vaDriverInit_0_39\r\nlibva info: va_openDriver() returns 0\r\nStream mapping:\r\n  Stream #0:0 -> #0:0 (h264 (native) -> hevc (hevc_vaapi))\r\n  Stream #0:1 -> #0:1 (copy)\r\nPress [q] to stop, [?] for help\r\nOutput #0, matroska, to '/media/externeHD/transmission/series/test.mkv':\r\n  Metadata:\r\n    encoder         : Lavf57.83.100\r\n    Stream #0:0: Video: hevc (hevc_vaapi) (Main), vaapi_vld, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 1k tbn, 23.98 tbc (default)\r\n    Metadata:\r\n      BPS             : 2880190\r\n      BPS-eng         : 2880190\r\n      DURATION        : 00:20:27.560000000\r\n      DURATION-eng    : 00:20:27.560000000\r\n      NUMBER_OF_FRAMES: 29432\r\n      NUMBER_OF_FRAMES-eng: 29432\r\n      NUMBER_OF_BYTES : 441950804\r\n      NUMBER_OF_BYTES-eng: 441950804\r\n      _STATISTICS_WRITING_APP: mkvmerge v8.8.0 ('Wind at my back') 64bit\r\n      _STATISTICS_WRITING_APP-eng: mkvmerge v8.8.0 ('Wind at my back') 64bit\r\n      _STATISTICS_WRITING_DATE_UTC: 2018-01-05 04:35:57\r\n      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-05 04:35:57\r\n      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES\r\n      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES\r\n      encoder         : Lavc57.107.100 hevc_vaapi\r\n    Stream #0:1: Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, fltp (default)\r\n    Metadata:\r\n      BPS             : 125375\r\n      BPS-eng         : 125375\r\n      DURATION        : 00:20:27.605000000\r\n      DURATION-eng    : 00:20:27.605000000\r\n      NUMBER_OF_FRAMES: 57544\r\n      NUMBER_OF_FRAMES-eng: 57544\r\n      NUMBER_OF_BYTES : 19238878\r\n      NUMBER_OF_BYTES-eng: 19238878\r\n      _STATISTICS_WRITING_APP: mkvmerge v8.8.0 ('Wind at my back') 64bit\r\n      _STATISTICS_WRITING_APP-eng: mkvmerge v8.8.0 ('Wind at my back') 64bit\r\n      _STATISTICS_WRITING_DATE_UTC: 2018-01-05 04:35:57\r\n      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-05 04:35:57\r\n      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES\r\n      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES\r\nframe= 9436 fps=121 q=-0.0 Lsize=  118133kB time=00:06:33.91 bitrate=2456.7kbits/s speed=5.07x\r\n\r\nIt works, so i thought i edit the script so that the ffmpeg command is the same\r\n\r\n> [Transcoder]\r\n    # getsubs. enable to download subtitles.\r\n    getSubs = 1\r\n    # subLanguages. create a list of languages in the order you want them in your subtitles.\r\n    subLanguages = \"nl,en\"\r\n    # transcode. enable to use transcoder\r\n    transcode = 1\r\n    ###### duplicate =1 will create a new file. =0 will replace the original\r\n    duplicate = 0\r\n    # concat. joins cd1 cd2 etc into a single video.\r\n    concat = 1\r\n    # IgnoreExtensions is a comma-separated list of extensions that will not be transcoded.\r\n    ignoreExtensions = \"\"\r\n    # outputFastStart. 1 will use -movflags + faststart. 0 will disable this from being used.\r\n    outputFastStart = 0\r\n    # outputQualityPercent. used as -q:a value. 0 will disable this from being used.\r\n    outputQualityPercent = 0\r\n    # outputVideoPath. Set path you want transcoded videos moved to. Leave blank to disable.\r\n    outputVideoPath = /media/externeHD/transmission/series\r\n    # processOutput. 1 will send the outputVideoPath to SickBeard/CouchPotato. 0 will send original files.\r\n    processOutput = 1\r\n    # audioLanguage. set the 3 letter language code you want as your primary audio track.\r\n    audioLanguage = eng\r\n    # allAudioLanguages. 1 will keep all audio tracks (uses AudioCodec3) where available.\r\n    allAudioLanguages = 0\r\n    # allSubLanguages. 1 will keep all existing sub languages. 0 will discard those not in your list above.\r\n    allSubLanguages = 0\r\n    # embedSubs. 1 will embed external sub/srt subs into your video if this is supported.\r\n    embedSubs = 0\r\n    # burnInSubtitle. burns the default sub language into your video (needed for players that don't support subs)\r\n    burnInSubtitle = 0\r\n    # extractSubs. 1 will extract subs from the video file and save these as external srt files.\r\n    extractSubs = 0\r\n    # externalSubDir. set the directory where subs should be saved (if not the same directory as the video)\r\n    externalSubDir = \"\"\r\n    # hwAccel. 1 will set ffmpeg to enable hardware acceleration (this requires a recent ffmpeg)\r\n    hwAccel = 0\r\n    # generalOptions. Enter your additional ffmpeg options here with commas to separate each option/value (i.e replace spaces with commas).\r\n    generalOptions = \"-hwaccel vaapi,-hwaccel_output_format vaapi\"\r\n    # outputDefault. Loads default configs for the selected device. The remaining options below are ignored.\r\n    # If you want to use your own profile, leave this blank and set the remaining options below.\r\n    # outputDefault profiles allowed: iPad, iPad-1080p, iPad-720p, Apple-TV2, iPod, iPhone, PS3, xbox, Roku-1080p, Roku-720p, Roku-480p, mkv, mp4-scene-release\r\n    outputDefault = \"\"\r\n    #### Define custom settings below.\r\n    outputVideoExtension = .mkv\r\n    outputVideoCodec = hevc_vaapi\r\n    VideoCodecAllow = \"HEVC,hevc,h265,x265,h.265\"\r\n    outputVideoPreset = ultrafast\r\n    outputVideoResolution = \"\"\r\n    outputVideoFramerate = \"\"\r\n    outputVideoBitrate = \"\"\r\n    outputVideoCRF = 19\r\n    outputVideoLevel = \"\"\r\n    outputAudioCodec = ac3\r\n    AudioCodecAllow = \"DTS,ac3,libfdk_aac,a_aac,aac,libfaac,a_ac3,ac-3\"\r\n\r\ni added this to generalOptions = \"-hwaccel vaapi,-hwaccel_output_format vaapi\"\r\nbecause hwaccel auto giving me errors in the manual run like above.\r\n\r\nNow, when i download a episode and Torrenttomedia.py gets called i get this error\r\n\r\n> 2018-01-06 13:40:39 INFO    ::MAIN: Loading config from [/home/benjamin/nzbToMedia/autoProcessMedia.cfg]\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: LESSOPEN: | /usr/bin/lesspipe %s\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: SSH_CLIENT: 192.168.0.16 56042 2220\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: LOGNAME: benjamin\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: USER: benjamin\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: PATH: /home/benjamin/bin:/home/benjamin/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: HOME: /home/benjamin\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: DISPLAY: server/unix:0\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: LANG: nl_BE.UTF-8\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: TERM: xterm-256color\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: SHELL: /bin/bash\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: LANGUAGE: nl_BE:nl\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: SHLVL: 1\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: XDG_RUNTIME_DIR: /run/user/1000\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: SSH_AUTH_SOCK: /tmp/ssh-wAz6Y0uArL/agent.19803\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: XDG_SESSION_ID: 1068\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: _: ./TorrentToMedia.py\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: SSH_CONNECTION: 192.168.0.16 56042 192.168.0.21 2220\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: LESSCLOSE: /usr/bin/lesspipe %s %s\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: SSH_TTY: /dev/pts/6\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: OLDPWD: /home/benjamin\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: XDG_DATA_DIRS: /usr/local/share:/usr/share:/var/lib/snapd/desktop\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: PWD: /home/benjamin/nzbToMedia\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: MAIL: /var/mail/benjamin\r\n2018-01-06 13:40:39 INFO    ::ENVIRONMENT: LS_COLORS: rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;3$\r\n2018-01-06 13:40:39 INFO    ::MAIN: Checking database structure...\r\n2018-01-06 13:40:39 DEBUG   ::MAIN: Checking Initial Schema database upgrade\r\n2018-01-06 13:40:39 DB      ::MAIN: nzbtomedia.db: SELECT 1 FROM sqlite_master WHERE name = ?; with args ('db_version',)\r\n2018-01-06 13:40:39 DB      ::MAIN: nzbtomedia.db: SELECT db_version FROM db_version\r\n2018-01-06 13:40:39 DEBUG   ::MAIN: InitialSchema upgrade not required\r\n2018-01-06 13:40:39 DEBUG   ::MAIN: Checking if we can use git commands: git version\r\n2018-01-06 13:40:39 DEBUG   ::MAIN: Executing git version with your shell in /home/benjamin/nzbToMedia\r\n2018-01-06 13:40:39 DEBUG   ::MAIN: git output: git version 2.7.4\r\n2018-01-06 13:40:39 DEBUG   ::MAIN: git version : returned successful\r\n2018-01-06 13:40:39 DEBUG   ::MAIN: Using: git\r\n2018-01-06 13:40:39 DEBUG   ::MAIN: Executing git symbolic-ref -q HEAD with your shell in /home/benjamin/nzbToMedia\r\n2018-01-06 13:40:39 DEBUG   ::MAIN: git output: refs/heads/master\r\n2018-01-06 13:40:39 DEBUG   ::MAIN: git symbolic-ref -q HEAD : returned successful\r\n2018-01-06 13:40:39 INFO    ::MAIN: Checking if git needs an update\r\n2018-01-06 13:40:39 DEBUG   ::MAIN: Executing git rev-parse HEAD with your shell in /home/benjamin/nzbToMedia\r\n2018-01-06 13:40:39 DEBUG   ::MAIN: git output: ee243fbba51e66ed12ad17d57e016b4db5bdc720\r\n2018-01-06 13:40:39 DEBUG   ::MAIN: git rev-parse HEAD : returned successful\r\n2018-01-06 13:40:39 DEBUG   ::MAIN: Executing git fetch origin with your shell in /home/benjamin/nzbToMedia\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: git output:\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: git fetch origin : returned successful\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: Executing git rev-parse --verify --quiet \"@{upstream}\" with your shell in /home/benjamin/nzbToMedia\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: git output: ee243fbba51e66ed12ad17d57e016b4db5bdc720\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: git rev-parse --verify --quiet \"@{upstream}\" : returned successful\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: Executing git rev-list --left-right \"@{upstream}\"...HEAD with your shell in /home/benjamin/nzbToMedia\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: git output:\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: git rev-list --left-right \"@{upstream}\"...HEAD : returned successful\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: cur_commit = ee243fbba51e66ed12ad17d57e016b4db5bdc720 % (newest_commit)= ee243fbba51e66ed12ad17d57e016b4db5bdc720, num_commits_behind = 0, num_commits_ahead = 0\r\n2018-01-06 13:40:42 INFO    ::MAIN: No update needed\r\n2018-01-06 13:40:42 INFO    ::MAIN: nzbToMedia Version:ee243fbba51e66ed12ad17d57e016b4db5bdc720 Branch:master (Linux 4.4.0-104-generic)\r\n2018-01-06 13:40:42 WARNING ::MAIN: Failed to locate par2. Repair and rename using par files will not be possible!\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: Connecting to transmission: http://localhost:9099\r\n2018-01-06 13:40:42 INFO    ::MAIN: #########################################################\r\n2018-01-06 13:40:42 INFO    ::MAIN: ## ..::[TorrentToMedia.py]::.. ##\r\n2018-01-06 13:40:42 INFO    ::MAIN: #########################################################\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: Options passed into TorrentToMedia: ['./TorrentToMedia.py']\r\n2018-01-06 13:40:42 WARNING ::MAIN: Invalid number of arguments received from client, Switching to manual run mode ...\r\n2018-01-06 13:40:42 INFO    ::MAIN: Searching /media/externeHD/transmission/series for mediafiles to post-process ...\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: Found file test.mkv in root directory /media/externeHD/transmission/series.\r\n2018-01-06 13:40:42 INFO    ::COPYLINK: MEDIAFILE: [test.mkv]\r\n2018-01-06 13:40:42 INFO    ::COPYLINK: SOURCE FOLDER: [/media/externeHD/transmission/series]\r\n2018-01-06 13:40:42 INFO    ::COPYLINK: TARGET FOLDER: [/media/externeHD/transmission/series/transmission]\r\n2018-01-06 13:40:42 INFO    ::COPYLINK: Hard linking SOURCE MEDIAFILE -> TARGET FOLDER\r\n2018-01-06 13:40:42 INFO    ::MAIN: Starting manual run for NzbDrone:tv - Folder:/media/externeHD/transmission/series/transmission\r\n2018-01-06 13:40:42 INFO    ::MAIN: Checking database for download info for transmission ...\r\n2018-01-06 13:40:42 DB      ::DB: Getting download info for transmission from the DB\r\n2018-01-06 13:40:42 DB      ::MAIN: nzbtomedia.db: SELECT * FROM downloads WHERE input_name=? AND status=? with args [u'transmission', 0]\r\n2018-01-06 13:40:42 INFO    ::MAIN: Unable to locate download info for transmission, continuing to try and process this release ...\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: Received Directory: /media/externeHD/transmission/series/transmission | Name: transmission | Category: tv\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: SEARCH: Could not find the category: tv in the directory structure\r\n2018-01-06 13:40:42 INFO    ::MAIN: SEARCH: Found torrent directory transmission in the directory structure\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: Determined Directory: /media/externeHD/transmission/series/transmission | Name: transmission | Category: tv\r\n2018-01-06 13:40:42 INFO    ::MAIN: Auto-detected SECTION:NzbDrone\r\n2018-01-06 13:40:42 INFO    ::MAIN: Output directory set to: /media/externeHD/transmission/process/tv/transmission\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: Scanning files in directory: /media/externeHD/transmission/series/transmission\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: Found 1 files in /media/externeHD/transmission/series/transmission\r\n2018-01-06 13:40:42 INFO    ::COPYLINK: MEDIAFILE: [test.mkv]\r\n2018-01-06 13:40:42 INFO    ::COPYLINK: SOURCE FOLDER: [/media/externeHD/transmission/series/transmission]\r\n2018-01-06 13:40:42 INFO    ::COPYLINK: TARGET FOLDER: [/media/externeHD/transmission/process/tv/transmission]\r\n2018-01-06 13:40:42 INFO    ::COPYLINK: Hard linking SOURCE MEDIAFILE -> TARGET FOLDER\r\n2018-01-06 13:40:42 INFO    ::MAIN: Starting manual run for NzbDrone:tv - Folder:/media/externeHD/transmission/series/transmission\r\n2018-01-06 13:40:42 INFO    ::MAIN: Checking database for download info for transmission ...\r\n2018-01-06 13:40:42 DB      ::DB: Getting download info for transmission from the DB\r\n2018-01-06 13:40:42 DB      ::MAIN: nzbtomedia.db: SELECT * FROM downloads WHERE input_name=? AND status=? with args [u'transmission', 0]\r\n2018-01-06 13:40:42 INFO    ::MAIN: Unable to locate download info for transmission, continuing to try and process this release ...\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: Received Directory: /media/externeHD/transmission/series/transmission | Name: transmission | Category: tv\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: SEARCH: Could not find the category: tv in the directory structure\r\n2018-01-06 13:40:42 INFO    ::MAIN: SEARCH: Found torrent directory transmission in the directory structure\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: Determined Directory: /media/externeHD/transmission/series/transmission | Name: transmission | Category: tv\r\n2018-01-06 13:40:42 INFO    ::MAIN: Auto-detected SECTION:NzbDrone\r\n2018-01-06 13:40:42 INFO    ::MAIN: Output directory set to: /media/externeHD/transmission/process/tv/transmission\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: Scanning files in directory: /media/externeHD/transmission/series/transmission\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: Found 1 files in /media/externeHD/transmission/series/transmission\r\n2018-01-06 13:40:42 INFO    ::COPYLINK: MEDIAFILE: [test.mkv]\r\n2018-01-06 13:40:42 INFO    ::COPYLINK: SOURCE FOLDER: [/media/externeHD/transmission/series/transmission]\r\n2018-01-06 13:40:42 INFO    ::COPYLINK: TARGET FOLDER: [/media/externeHD/transmission/process/tv/transmission]\r\n2018-01-06 13:40:42 INFO    ::COPYLINK: Hard linking SOURCE MEDIAFILE -> TARGET FOLDER\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: Checking for archives to extract in directory: /media/externeHD/transmission/series/transmission\r\n2018-01-06 13:40:42 INFO    ::MAIN: FLATTEN: Flattening directory: /media/externeHD/transmission/process/tv/transmission\r\n2018-01-06 13:40:42 DEBUG   ::MAIN: Checking for empty folders in:/media/externeHD/transmission/process/tv/transmission\r\n2018-01-06 13:40:42 INFO    ::MAIN: Found 1 media files in /media/externeHD/transmission/process/tv/transmission\r\n2018-01-06 13:40:42 INFO    ::MAIN: Calling NzbDrone:tv to post-process:transmission\r\n2018-01-06 13:40:42 DEBUG   ::SERVER: Attempting to connect to server at http://localhost:8989\r\n2018-01-06 13:40:42 DEBUG   ::SERVER: Server responded at http://localhost:8989\r\n2018-01-06 13:40:42 INFO    ::MAIN: Attempting to verify tv fork\r\n2018-01-06 13:40:43 INFO    ::MAIN: NzbDrone:tv fork set to default\r\n2018-01-06 13:40:43 WARNING ::EXCEPTION: No name replacement determined for test\r\n2018-01-06 13:40:43 DEBUG   ::EXCEPTION: Replacing file name /media/externeHD/transmission/process/tv/transmission/test.mkv with download name /media/externeHD/transmission/process/tv/transmission/transmission.mkv\r\n2018-01-06 13:40:43 INFO    ::MAIN: FLATTEN: Flattening directory: /media/externeHD/transmission/process/tv/transmission\r\n2018-01-06 13:40:43 DEBUG   ::MAIN: Checking for empty folders in:/media/externeHD/transmission/process/tv/transmission\r\n2018-01-06 13:40:43 DEBUG   ::MAIN: calling command: /home/benjamin/bin/ffprobe -v quiet -print_format json -show_format -show_streams -show_error /home/benjamin/nzbToMedia/tests/test.mp4\r\n2018-01-06 13:40:43 INFO    ::TRANSCODER: Checking [transmission.mkv] for corruption, please stand by ...\r\n2018-01-06 13:40:43 DEBUG   ::MAIN: calling command: /home/benjamin/bin/ffprobe -v quiet -print_format json -show_format -show_streams -show_error /media/externeHD/transmission/process/tv/transmission/transmission.mkv\r\n2018-01-06 13:40:43 INFO    ::TRANSCODER: SUCCESS: [transmission.mkv] has no corruption.\r\n2018-01-06 13:40:43 INFO    ::MAIN: Checking for files to be transcoded\r\n2018-01-06 13:40:43 DEBUG   ::MAIN: calling command: /home/benjamin/bin/ffprobe -v quiet -print_format json -show_format -show_streams -show_error /media/externeHD/transmission/process/tv/transmission/transmission.mkv\r\n2018-01-06 13:40:43 INFO    ::MAIN: Transcoding video: /media/externeHD/transmission/series/transmission/transmission.mkv\r\n2018-01-06 13:40:43 DEBUG   ::MAIN: calling command: nice -n17 ionice -c0 -n0 /home/benjamin/bin/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -fflags +genpts -i /media/externeHD/transmission/process/tv/transmission/transmission.mkv -map 0:0 -map 0:1 -c:v hevc_vaapi -preset ultrafast -crf 19 -c:a:0 copy -sn /media/externeHD/transmission/series/transmission/transmission.mkv\r\n2018-01-06 13:40:43 ERROR   ::MAIN: Transcoding of video to /media/externeHD/transmission/series/transmission/transmission.mkv failed with result 1\r\n2018-01-06 13:40:43 ERROR   ::NZBDRONE: FAILED: Transcoding failed for files in /media/externeHD/transmission/process/tv/transmission\r\n2018-01-06 13:40:43 ERROR   ::MAIN: A problem was reported when trying to perform a manual run for NzbDrone:tv.\r\n2018-01-06 13:40:43 ERROR   ::MAIN: A problem was reported in the ./TorrentToMedia.py script.\r\n\r\n\r\ni get \r\n::MAIN: Transcoding of video to /media/externeHD/transmission/series/transmission/transmission.mkv failed with result 1\r\nDon't know what to do now, i don't get a specific error\r\n\r\ni tried to set enviorment in python but that is not working\r\n\r\nTorrenttomedia.py\r\n\r\n> #!/usr/bin/env python2\r\n# coding=utf-8\r\nimport datetime\r\nimport os\r\nos.environ[\"DISPLAY\"] = \"server/unix:0\"\r\nimport sys\r\nimport core\r\n\r\nSomebody knows how i fix this?\r\n\r\n  "},"comment":{"url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/comments/387854689","html_url":"https://github.com/clinton-hall/nzbToMedia/issues/1323#issuecomment-387854689","issue_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/1323","id":387854689,"user":{"login":"clinton-hall","id":1888006,"avatar_url":"https://avatars2.githubusercontent.com/u/1888006?v=4","gravatar_id":"","url":"https://api.github.com/users/clinton-hall","html_url":"https://github.com/clinton-hall","followers_url":"https://api.github.com/users/clinton-hall/followers","following_url":"https://api.github.com/users/clinton-hall/following{/other_user}","gists_url":"https://api.github.com/users/clinton-hall/gists{/gist_id}","starred_url":"https://api.github.com/users/clinton-hall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clinton-hall/subscriptions","organizations_url":"https://api.github.com/users/clinton-hall/orgs","repos_url":"https://api.github.com/users/clinton-hall/repos","events_url":"https://api.github.com/users/clinton-hall/events{/privacy}","received_events_url":"https://api.github.com/users/clinton-hall/received_events","type":"User","site_admin":false},"created_at":"2018-05-09T19:49:16Z","updated_at":"2018-05-09T19:49:16Z","author_association":"OWNER","body":"This is currently a general setting that applies to all categories.\r\nIt has been on my to-do list for a while to create a set of conditions on what to transcode, and this would include categories... but I have not had time to look at it (I recall starting to draft out a work flow sometime around January 2015... then I moved to a new job... then I moved Country... )\r\n\r\nIt is possible to create 2 instances of nzbToMedia (in 2 folders) and have each set up differently. Then have each category in your downloader call the different version of nzbToMedia\r\n\r\nTranscoding happens before the movie/show is moved to the final library (By CouchPotato or SickBeard etc.) In the case of Torrents this is transcoded after doing the linking, but before moving to the final folder. So this is done in the Torrent output directory (Temporary location).\r\n\r\nAs long as your device has working Python, and working ffmpeg, this will work. I have done some testing on arm devices. The biggest issue on a small arm processor is that transcoding may take a significant length of time (but some modern arm processors are actually quite good)."}}
{"actor":{"display_login":"clinton-hall"}}