neusinger88 0 Posted January 15, 2019 Share Posted January 15, 2019 Hello, I have moved to emby from plex mostly due to the option of an android server. Running a full desktop machine as a server just costs too much to run and i don't need a first class media server. So the plan was to sell the desktop and use my old Xperia Z3 Compact which has a defunct touch screen and is pretty much worthless. I had to root the phone to give emby access to the USB OTG hard drive storage then the install/setup was simple. Used some thermal paste to stick the phone to a heatsink as it gets quite hot when transcoding and i had the bits lying around; should reduce some thermal throttling. Really impressed with emby so far, good work team. Just a couple of questions... 1. Not much of my music has gathered artist artwork. None of my music is picking up a theAudioDb ID even though it is enabled in the settings when i go to "server dashboard->Libary->Music->Manage Library". I know i can manually add images but was just wondering if theAudioDb is functional on the android beta server? Or if there are any other ways of getting emby to grab the images? 2. The Z3 Compact handles remuxes fine but cant cope with full transcodes on large files, so i was going to convert my library to be Chromecast compatible and so i thought i would try a quick test but i think i have hit a permissions problem. I go to the movie "'The Accountant'->right click->convert->next to original file->TV->Original Quality->Convert". The logs suggest the conversion was successful and when i go to "server dashboard->download and sync->sync jobs" then it lists the movie and says "ready to transfer". Clicking edit and then save does nothing. Looking at the server logs i get "System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path "/storage/emulated/0/Android/data/com.emby.embyserver/files/sync/1/1/1b04215c-1fd0-4df7-8671-16624cc5db2c.mp4" or "/storage/1485-08CC/Films/The Accountant (2016) - tv.mp4" is denied." Should i try setting the "download and sync->settings->temporary file path" = "/storage/1485-08CC/Films/"? I think this is most likely due to the android USB OTG access stuff? I'm not great with android and don't really know how or where to change the permissions settings so that emby can write to the drive. BTW i have no issues writing to the drive through ftp and emby definitely has read access. I think it also has write access as it has created the directory "android->data->com.emby.embyserver->files" although this directory is empty. I hope that makes sense. Any advise would be greatly appreciated. Link to comment Share on other sites More sharing options...
neusinger88 0 Posted January 15, 2019 Author Share Posted January 15, 2019 (edited) Update - I do not have write access to the USB OTG external drive from emby: There was an error deleting the item from Emby Server. Please check that Emby Server has write access to the media folder and try again. I manually copied the converted movie from the temporary file path for converts and put it in the movie media library and the it all worked fine. Then went to delete the original file and got the message above. Not sure how to give emby write permissions, i thought i had given all apps write permission by adopting the USB OTG as internal using the command "sm set-force-adoptable true" but i know very little about android Edited January 15, 2019 by neusinger88 Link to comment Share on other sites More sharing options...
Luke 37094 Posted January 15, 2019 Share Posted January 15, 2019 Hi, welcome. Audiodb is currently disabled on this platform due to a crash that it's causing in the .NET Core runtime. It is a .net core defect that will be resolved in .NET Core 3.0 in March. Unfortunately until then we have to wait. You can try installing the last.fm plugin and see if that is able to pull in any artist images. @@softworkz, any tips on the write permissions? Link to comment Share on other sites More sharing options...
softworkz 3338 Posted January 15, 2019 Share Posted January 15, 2019 Update - I do not have write access to the USB OTG external drive from emby: There was an error deleting the item from Emby Server. Please check that Emby Server has write access to the media folder and try again. I manually copied the converted movie from the temporary file path for converts and put it in the movie media library and the it all worked fine. Then went to delete the original file and got the message above. Not sure how to give emby write permissions, i thought i had given all apps write permission by adopting the USB OTG as internal using the command "sm set-force-adoptable true" but i know very little about android If you have set up the drive as internal storage, I think your files need to be in a folder below /storage/39C8-DA9F/Android/data/com.emby.embyserver (The second part will be different on your system) For everything that is stored there, emby should have full permissions. Link to comment Share on other sites More sharing options...
neusinger88 0 Posted January 15, 2019 Author Share Posted January 15, 2019 Thanks Luke that's fine i'll wait for march and try last.fm for now, its installed just waiting for a reboot to see how it does. I've moved the full media library below "/storage/39C8-DA9F/Android/data/com.emby.embyserver" and that does seem to have fixed the permissions issue. I can delete media using the emby web interface now so i presume it will manage transferring the files now. Cheers softworkz. Link to comment Share on other sites More sharing options...
neusinger88 0 Posted January 17, 2019 Author Share Posted January 17, 2019 Last.fm has successfully pulled images for most of my music and i have full permissions for emby now. I and having difficulty converting a file though and i'm getting this from the ffmpeg log: frame=34080 fps= 13 q=28.0 size= 205056kB time=00:23:41.75 bitrate=1181.5kbits/s speed=0.563xframe=34087 fps= 13 q=28.0 size= 205056kB time=00:23:41.99 bitrate=1181.3kbits/s speed=0.563xframe=34094 fps= 13 q=28.0 size= 205056kB time=00:23:42.30 bitrate=1181.1kbits/s speed=0.563xframe=34100 fps= 13 q=28.0 size= 205312kB time=00:23:42.55 bitrate=1182.3kbits/s speed=0.563xframe=34105 fps= 13 q=28.0 size= 205312kB time=00:23:42.83 bitrate=1182.1kbits/s speed=0.563x[matroska,webm @ 0xb37e4000] Read errorframe=34109 fps= 13 q=28.0 size= 205312kB time=00:23:42.86 bitrate=1182.1kbits/s speed=0.563xError writing trailer of /storage/1485-08CC/Android/data/com.emby.embyserver/files/8/7/97005bb8-3f58-43ee-a016-f79fe9cbd604.mp4: Transport endpoint is not connectedframe=34115 fps= 13 q=-1.0 Lsize= 205312kB time=00:23:42.90 bitrate=1182.0kbits/s dup=3 drop=0 speed=0.563xvideo:138836kB audio:66699kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown[libx264 @ 0xb3797c00] frame I:593 Avg QP:18.45 size: 42449[libx264 @ 0xb3797c00] frame P:10011 Avg QP:21.56 size: 8408[libx264 @ 0xb3797c00] frame B:23511 Avg QP:23.73 size: 1396[libx264 @ 0xb3797c00] consecutive B-frames: 5.4% 6.1% 5.8% 82.6%[libx264 @ 0xb3797c00] mb I I16..4: 39.5% 0.0% 60.5%[libx264 @ 0xb3797c00] mb P I16..4: 13.8% 0.0% 0.0% P16..4: 42.0% 0.0% 0.0% 0.0% 0.0% skip:44.2%[libx264 @ 0xb3797c00] mb B I16..4: 1.1% 0.0% 0.0% B16..8: 10.8% 0.0% 0.0% direct: 4.5% skip:83.6% L0:35.9% L1:47.9% BI:16.2%[libx264 @ 0xb3797c00] coded y,uvDC,uvAC intra: 34.5% 37.7% 9.4% inter: 5.8% 6.6% 0.0%[libx264 @ 0xb3797c00] i16 v,h,dc,p: 48% 27% 13% 12%[libx264 @ 0xb3797c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 23% 16% 4% 8% 5% 6% 5% 8%[libx264 @ 0xb3797c00] i8c dc,h,v,p: 49% 22% 23% 6%[libx264 @ 0xb3797c00] Weighted P-Frames: Y:2.5% UV:0.8%[libx264 @ 0xb3797c00] kb/s:799.32Exiting normally, received signal 2. What's the read error? Link to comment Share on other sites More sharing options...
Luke 37094 Posted January 18, 2019 Share Posted January 18, 2019 @@neusinger88 Thanks for getting back. Regarding that conversion, can you please attach the complete log file? thanks ! Link to comment Share on other sites More sharing options...
neusinger88 0 Posted January 20, 2019 Author Share Posted January 20, 2019 Full ffmpeg and server logs attached. FfmpegLog.txt ServerLog.txt Link to comment Share on other sites More sharing options...
Luke 37094 Posted January 20, 2019 Share Posted January 20, 2019 So this is for the media conversion feature? Are you able to play this file in the browser? thanks. Link to comment Share on other sites More sharing options...
neusinger88 0 Posted January 20, 2019 Author Share Posted January 20, 2019 Yes i'm having issues with the convert feature. Sometimes it begins a conversion then fails, other times it doesn't begin the conversion. The logs here are for the case when the conversion does not begin. All of the files i have been trying do play but the server can't handle the on the fly transcoding, hence converting them. This error occurs after trying to convert: (The directory "/storage/1485-08CC/Android/data/com.emby.embyserver/files/11/10/" remains empty) "/storage/1485-08CC/Android/data/com.emby.embyserver/files/11/10/fbc24ba8-aeaf-4ff9-b00d-5c95a1c9d415.mp4" 2019-01-20 10:19:40.273 Info MediaEncoder: ProcessRun 'Encoding fbc24b' Started. 2019-01-20 10:19:42.100 Info MediaEncoder: ProcessRun 'Encoding fbc24b' Process exited with code 1 2019-01-20 10:19:42.113 Error App: Error during sync transcoding *** Error Report *** Version: 4.0.0.1 Command line: /data/app/com.emby.embyserver-1/base.apk Operating system: Unix 3.4.0.14 64-Bit OS: False 64-Bit Process: False User Interactive: False Processor count: 4 Program data path: /storage/emulated/0/Android/data/com.emby.embyserver/files Application directory: /data/user/0/com.emby.embyserver Mono: 5.14.0 (explicit/969357ac02b) Android Version: 6.0.1-REL - SDK: 23 'M' Patch Level: 2769308465 (2016-05-01) Fingerprint: Sony/D5803/D5803:6.0.1/23.5.A.1.291/2769308465:user/release-keys Model: D5803 - Sony/Sony Hardware: D5803/D5803/qcom/MSM8974 SupportedAbis: armeabi-v7a, armeabi System.Exception: System.Exception: Error starting ffmpeg at Emby.Server.MediaEncoding.Encoder.BaseEncoder+<Start>d__22.MoveNext () [0x0042e] in <aff94cb5411a4b929e93c0284789fc83>:0 --- End of stack trace from previous location where exception was thrown --- at Emby.Server.MediaEncoding.Encoder.MediaEncoder+<EncodeVideo>d__68.MoveNext () [0x000f3] in <aff94cb5411a4b929e93c0284789fc83>:0 --- End of stack trace from previous location where exception was thrown --- at Emby.Server.Sync.SyncJobProcessor+<SyncVideo>d__29.MoveNext () [0x002fe] in <13628a72ffdc44939a1d15fcf1e5ec85>:0 Source: mscorlib TargetSite: Void Throw() at Emby.Server.MediaEncoding.Encoder.BaseEncoder+<Start>d__22.MoveNext () [0x0042e] in <aff94cb5411a4b929e93c0284789fc83>:0 --- End of stack trace from previous location where exception was thrown --- at Emby.Server.MediaEncoding.Encoder.MediaEncoder+<EncodeVideo>d__68.MoveNext () [0x000f3] in <aff94cb5411a4b929e93c0284789fc83>:0 --- End of stack trace from previous location where exception was thrown --- at Emby.Server.Sync.SyncJobProcessor+<SyncVideo>d__29.MoveNext () [0x002fe] in <13628a72ffdc44939a1d15fcf1e5ec85>:0 Link to comment Share on other sites More sharing options...
Luke 37094 Posted January 21, 2019 Share Posted January 21, 2019 Can you please attach the complete emby server log? Are you able to play the original version in the browser? Link to comment Share on other sites More sharing options...
neusinger88 0 Posted January 21, 2019 Author Share Posted January 21, 2019 The log is attached above. Is it missing something? As I said the original file plays but stutters due to the server not being fast enough for on the fly trancoding. Link to comment Share on other sites More sharing options...
Luke 37094 Posted January 21, 2019 Share Posted January 21, 2019 It seems there is no write access to this location: System.IO.IOException: System.IO.IOException: Invalid handle to path "/storage/1485-08CC/Android/data/com.emby.embyserver/files/10/9" Because of this, the conversion is not able to start. Did you customize the sync temporary path folder? Link to comment Share on other sites More sharing options...
neusinger88 0 Posted January 21, 2019 Author Share Posted January 21, 2019 Hmm OK. Yes i customised the sync temporary folder as the server only has about 7 GB of storage space, so i wanted all large files to be on the USB OTG disk. It's odd that it has managed to occasionally write parts of files to that location. I'll revert to the default sync temporary folder and see how that goes. Thanks Luke. Link to comment Share on other sites More sharing options...
Luke 37094 Posted January 22, 2019 Share Posted January 22, 2019 Did you have a chance to try it? How did it go? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now