Transcoding Synology/Serviio

Need help? Post your questions here.

Moderator: moderators

Transcoding Synology/Serviio

Postby Kliikko » Sat Mar 25, 2017 12:49 am

Hi tried asking about this on the Synology forum but perhaps it is an error more familiar to Subsonic community. I have used Subsonic on PC since forever but now very excited to have it on the NAS.

Problem is ffmpeg/permissions problem

Everything seemed to work ok but then I had to reboot, reinstall this and some associated packages etc..

I have maintained the Serviio Synology package installed (but stopped) in order to (as I understand it) allow this Subsonic install to use some ffmpeg Serviio enhancements.

Now my usr/syno/synoman/webman/3rdparty/subsonic/subsonic.log is full of entries like the following, every time the media scanner encounters anything that's not a normal mp3 (e.g. a FLAC, mpeg etc.)

I can't, at least not in the normal Synology DSM OS GUI interface, give the "subsonic" user access to this particular folder, because it isn't a folder listed there. But I can go into it with root privilges and change. But I don't know what I would change permissions to, I do not understand the unix permissions "numbers" etc. Tips much appreciated :)



[2017-03-17 03:01:53,817] WARN FFmpegParser - Error when parsing metadata in /volume1/music/[filename.mp4]
java.io.IOException: Cannot run program "/usr/syno/synoman/webman/3rdparty/subsonic/transcode/ffmpeg": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:485)
at net.sourceforge.subsonic.service.metadata.FFmpegParser.getRawMetaData(FFmpegParser.java:69)
at net.sourceforge.subsonic.service.metadata.MetaDataParser.getMetaData(MetaDataParser.java:47)
at net.sourceforge.subsonic.service.MediaFileService.createMediaFile(MediaFileService.java:483)
at net.sourceforge.subsonic.service.MediaFileService.updateChildren(MediaFileService.java:403)
at net.sourceforge.subsonic.service.MediaFileService.getChildrenOf(MediaFileService.java:201)
at net.sourceforge.subsonic.service.MediaScannerService.scanFile(MediaScannerService.java:235)
at net.sourceforge.subsonic.service.MediaScannerService.scanFile(MediaScannerService.java:239)
at net.sourceforge.subsonic.service.MediaScannerService.scanFile(MediaScannerService.java:239)
at net.sourceforge.subsonic.service.MediaScannerService.doScanLibrary(MediaScannerService.java:177)
at net.sourceforge.subsonic.service.MediaScannerService.access$000(MediaScannerService.java:48)
at net.sourceforge.subsonic.service.MediaScannerService$2.run(MediaScannerService.java:147)
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 13 more

[2017-03-17 03:01:56,771] INFO MediaScannerService - Scanned media library with 14750 entries.



Thank you for any help
Cheers
Kliikko
 
Posts: 9
Joined: Fri Mar 24, 2017 5:26 am

Re: Transcoding Synology/Serviio

Postby FlyingPersian » Sat Mar 25, 2017 9:40 am

I think you can simply copy the ffmpeg file into subsonic/transcode/ and give it the same permissions as everything else has (subsonic user)
FlyingPersian
 
Posts: 29
Joined: Mon Oct 31, 2016 11:43 pm

Re: Transcoding Synology/Serviio

Postby Kliikko » Tue Mar 28, 2017 6:09 pm

In the end I uninstalled, double-checked using ssh for any leftover files, turned off all the other packages that can be turned off on the NAS, reinstalled Subsonic, and reindexed - and works fine again for the time being (through this whole process the Serviio package for the ffmpeg was left alone, installed but stopped, so even though that's where the ffmpeg comes from it seems the error was not related to Serviio).

I'm still really confused by all the versions of ffmpeg and to what extent this can/should be tweaked. For example, there is an unofficial (Synocommunity I believe) ffmpeg "cytec" package that worked fine installing on my very latest DSM 6, which let's my NAS play files with DTS sound which it cannot do without that unofficial package. But then I suppose the ffmpeg version is replaced, or... ? And how/if that changes Subsonic ffmpeg transcoding ?

Playing tracks in browser interface a FLAC file for example there will be a log message along the lines of "could not transcode, playing original instead". Which is only fine if your connection is fast enough (and unlimited) that you can have playlists with tracks that can be 30-40mb each.
Kliikko
 
Posts: 9
Joined: Fri Mar 24, 2017 5:26 am


Return to Help

Who is online

Users browsing this forum: No registered users and 15 guests