rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.37k stars 601 forks source link

Headphone Post processing Issues On Windows Server 2016 #3219

Closed skydiverscott closed 4 years ago

skydiverscott commented 5 years ago

I am running Headphones from PYTHON source on Windows Server 2016. I have headphones installs in d:\headphones\

Settings in headphone are set as follows: Re-encode downloads during postprocessing - Yes Only re-encode lossless files (.flac) - Yes Delete original lossless files after encoding m- Yes Encoder - ffmpeg Enable multi-core - No Multi-core count - 0 Audio Properties Format: m4a VBR/CBR: vbr Quality: 0 Sampling: 44.1kHz Advanced Encoding Options Arguments: -y -acodec alac -vn Extension: m4a Path to encoder: d:\ffmpeg\bin\ffmpeg.exe

I am getting this error when it tried to encode the files: `2019-08-13 23:47:52 ERROR One or more files failed to encode. Ensure you have the latest version of ffmpeg installed.
2019-08-13 23:47:52 ERROR Encoder raised an exception.Traceback (most recent call last):File "D:\headphones\headphones\music_encoder.py", line 257, in command_mapreturn command(*args)File "D:\headphones\headphones\music_encoder.py", line 360, in commandstderr=subprocess.PIPE)File "D:\Python27\lib\subprocess.py", line 394, in initerrread, errwrite)File "D:\Python27\lib\subprocess.py", line 644, in _execute_childstartupinfo)WindowsError: [Error 2] The system cannot find the file specified
2019-08-13 23:47:52 INFO Encoding D:\headphones\temp\headphones1979 Santana - Marathon (flac)@hp@_p9vav0\headphones\11. Santana - Hard Times.flac...`

Any suggestions here?

skydiverscott commented 4 years ago

I have disable Windows Defender security completely..

The ACL's are not the issue (confirmed by the note above above the manually created temp folder being deleted when kicking off the post processing...

raymondjstone commented 4 years ago

Server 2016 has a lot more changes in it than just defender, it looks like it's either the OS or some AD related issue given that it runs fine on W10, and non windows OS's. You could try running it in docker but I would suspect you get the same file issues

AdeHub commented 4 years ago

The setting Path to Encoder needs to be d:\ffmpeg\bin\ffmpeg.exe, set that then shut down headphones and check it's set correctly in config.ini before trying again

skydiverscott commented 4 years ago

After all that hell and multiple people looking at this ticket... That worked!

Thank you @AdeHub !