{"action":"created","issue":{"url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/766","labels_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/766/labels{/name}","comments_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/766/comments","events_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/766/events","html_url":"https://github.com/clinton-hall/nzbToMedia/issues/766","id":82889326,"number":766,"title":"Unable to transcode","user":{"login":"mbeebe43083","id":8152227,"avatar_url":"https://avatars.githubusercontent.com/u/8152227?v=3","gravatar_id":"","url":"https://api.github.com/users/mbeebe43083","html_url":"https://github.com/mbeebe43083","followers_url":"https://api.github.com/users/mbeebe43083/followers","following_url":"https://api.github.com/users/mbeebe43083/following{/other_user}","gists_url":"https://api.github.com/users/mbeebe43083/gists{/gist_id}","starred_url":"https://api.github.com/users/mbeebe43083/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbeebe43083/subscriptions","organizations_url":"https://api.github.com/users/mbeebe43083/orgs","repos_url":"https://api.github.com/users/mbeebe43083/repos","events_url":"https://api.github.com/users/mbeebe43083/events{/privacy}","received_events_url":"https://api.github.com/users/mbeebe43083/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/clinton-hall/nzbToMedia/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-30T19:16:46Z","updated_at":"2015-06-06T12:27:13Z","closed_at":null,"body":"When I try to enable transcoding using nzbtomedia in nzbget, I get the following error below. When I try to run the command separately in terminal I get **bash: syntax error near unexpected token `('** \r\n\r\nI think it has to do with the fact that CP is placing parentheses in the filenames, but I am not sure how to fix it.\r\n\r\n----------------------------------\r\n\r\n:MAIN: calling command: /opt/ffmpeg/bin/ffprobe -v quiet -print_format json -show_format -show_streams -show_error /media/media3/Downloads/Complete/Movies/Les.Miserables.2012.MULTi.1080p.BluRay.x264-ROUGH.cp(tt1707386)/les.miserables.2012.multi.1080p.bluray.x264-rough.mkv\r\n2015-05-29 22:02:32 DEBUG   ::MAIN: calling command: /opt/ffmpeg/bin/ffprobe -v quiet -print_format json -show_format -show_streams -show_error /media/media3/Downloads/Complete/Movies/Les.Miserables.2012.MULTi.1080p.BluRay.x264-ROUGH.cp(tt1707386)/les.miserables.2012.multi.1080p.bluray.x264-rough.en.srt\r\n2015-05-29 22:02:32 INFO    ::MAIN: Transcoding video: /media/media3/Downloads/Complete/Movies/Les.Miserables.2012.MULTi.1080p.BluRay.x264-ROUGH.cp(tt1707386)/les.miserables.2012.multi.1080p.bluray.x264-rough-transcoded.mkv\r\n2015-05-29 22:02:32 DEBUG   ::MAIN: \r\n\r\n**calling command: nice -n10 ionice -c2 -n4 /opt/ffmpeg/bin/ffmpeg -loglevel warning -hwaccel auto -fflags +genpts -i /media/media3/Downloads/Complete/Movies/Les.Miserables.2012.MULTi.1080p.BluRay.x264-ROUGH.cp(tt1707386)/les.miserables.2012.multi.1080p.bluray.x264-rough.mkv -i /media/media3/Downloads/Complete/Movies/Les.Miserables.2012.MULTi.1080p.BluRay.x264-ROUGH.cp(tt1707386)/les.miserables.2012.multi.1080p.bluray.x264-rough.en.srt -map 0:0 -map 0:2 -map 1:0 -c:v copy -c:a:0 dts -c:s mov_text -metadata:s:s:0 language=en /media/media3/Downloads/Complete/Movies/Les.Miserables.2012.MULTi.1080p.BluRay.x264-ROUGH.cp(tt1707386)/les.miserables.2012.multi.1080p.bluray.x264-rough-transcoded.mkv**\r\n\r\n\r\n2015-05-29 22:02:32 ERROR   ::MAIN: Transcoding of video to /media/media3/Downloads/Complete/Movies/Les.Miserables.2012.MULTi.1080p.BluRay.x264-ROUGH.cp(tt1707386)/les.miserables.2012.multi.1080p.bluray.x264-rough-transcoded.mkv failed with result 1\r\n2015-05-29 22:02:32 ERROR   ::COUCHPOTATO: Transcoding failed for files in /media/media3/Downloads/Complete/Movies/Les.Miserables.2012.MULTi.1080p.BluRay.x264-ROUGH.cp(tt1707386)\r\n\r\n---------------------------------"},"comment":{"url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/comments/109572183","html_url":"https://github.com/clinton-hall/nzbToMedia/issues/766#issuecomment-109572183","issue_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/766","id":109572183,"user":{"login":"clinton-hall","id":1888006,"avatar_url":"https://avatars.githubusercontent.com/u/1888006?v=3","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":"2015-06-06T12:27:13Z","updated_at":"2015-06-06T12:27:13Z","body":"Can you do a test by editing\r\nhttps://github.com/clinton-hall/nzbToMedia/blob/master/core/transcoder/transcoder.py#L738-L763\r\n\r\nto\r\n\r\n```\r\n            out, err = proc.communicate()\r\n            result = proc.returncode\r\n        except:\r\n            logger.error(\"Transcoding of video %s has failed\" % (newfilePath))\r\n\r\n        if core.SUBSDIR and result == 0 and isinstance(file, str):\r\n            for sub in get_subs(file):\r\n                name = os.path.splitext(os.path.split(file)[1])[0]\r\n                subname = os.path.split(sub)[1]\r\n                newname = os.path.splitext(os.path.split(newfilePath)[1])[0]\r\n                newpath = os.path.join(core.SUBSDIR, subname.replace(name, newname))\r\n                if not os.path.isfile(newpath):\r\n                    os.rename(sub, newpath)\r\n\r\n        if result == 0:\r\n            try:\r\n                shutil.copymode(file, newfilePath)\r\n            except: pass\r\n            logger.info(\"Transcoding of video to %s succeeded\" % (newfilePath))\r\n            if os.path.isfile(newfilePath) and (file in newList or not core.DUPLICATE):\r\n                try:\r\n                    os.unlink(file)\r\n                except: pass \r\n        else:\r\n            logger.error(\"Transcoding of video to %s failed with result %s\" % (newfilePath, str(result)))\r\n            logger.error(out)\r\n            logger.error(err)\r\n        # this will be 0 (successful) it all are successful, else will return a positive integer for failure.\r\n```\r\n\r\nThis should print out the actual return data from ffmpeg.\r\nPlease post results here to see what is going on."}}