tdiguy 96 Posted September 15, 2017 Share Posted September 15, 2017 I have been trying to change the user that emby runs as so that i can work permissions to be really specific for emby use. It seems like emby completely ignores that i have changed the user it should run as though. I changed : /etc/emby-server.conf add EMBY_USER=Media But i still see emby running as emby. What am i doing wrong here? Link to comment Share on other sites More sharing options...
Luke 37083 Posted September 15, 2017 Share Posted September 15, 2017 Did you restart the server after making this change? Link to comment Share on other sites More sharing options...
tdiguy 96 Posted September 15, 2017 Author Share Posted September 15, 2017 (edited) I think i had rebooted the whole pi.. But i will restart again to be sure. Well, once i am done re-compiling ffmpeg to support omx. Forgot i had that running. Edited September 15, 2017 by tdiguy Link to comment Share on other sites More sharing options...
tdiguy 96 Posted September 15, 2017 Author Share Posted September 15, 2017 Ok i was able to get some more feedback restarting the emby server from the CLI. It gives me the following: /etc/emby-server.conf: line 23: add: command not found So i had the formatting all wrong. correct format is EMBY_USER=<username> One thing thats kinda weird to me. I dont have a emby user set up on my pi. Yet emby has no issue running as emby. I ended up electing to just use emby since the user doesnt actually exist and yet i can grant emby permissions. It all seems kinda weird to me but its working well. Link to comment Share on other sites More sharing options...
tdiguy 96 Posted September 15, 2017 Author Share Posted September 15, 2017 (edited) Ok so i have most of my emby server back up and running except i cant seem to get it to convert media. I have the folder syn plugin installed. It just says failed when i hit convert. I have attached the server log no idea what all this is saying. Edited September 15, 2017 by tdiguy Link to comment Share on other sites More sharing options...
Luke 37083 Posted September 16, 2017 Share Posted September 16, 2017 Did you forget to attach it! Link to comment Share on other sites More sharing options...
tdiguy 96 Posted September 16, 2017 Author Share Posted September 16, 2017 Lol looks like it. server log.txt Link to comment Share on other sites More sharing options...
Luke 37083 Posted September 16, 2017 Share Posted September 16, 2017 And the sync ffmpeg log? Link to comment Share on other sites More sharing options...
tdiguy 96 Posted September 16, 2017 Author Share Posted September 16, 2017 I somehow managed to make my pi unresponsive remotely. I had just uninstalled and re-installed mono because i noticed it was 5.2 and if i remember correctly 4.8 was the desired version. i will have to look at this sunday some time since my wife is also going out as soon as i get home. I think i am getting to the newb stage where i know just enough to be really dangerous with linux. Link to comment Share on other sites More sharing options...
tdiguy 96 Posted September 18, 2017 Author Share Posted September 18, 2017 (edited) Ok I don't see a ffmpeg log but it seems to do nothing when i hit convert. I have a conversion set up that shows under download and syn but hitting convert media doesnt do anything. I hope this helps. I am going to attach some screenshots of my setup that i think are relevant. O also of note. I have emby run as smith finally got that to work. OK i finally found it. I swear it wasnt there before. I am seeing /usr/bin/ffmpeg -re -i file:"/media/emby/Recorded-TV/Mpeg2-tv/The Big Bang Theory/Season 1/The Big Bang Theory S01E14 The Nerdvana Annihilation.ts" -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_omx -force_key_frames "expr:gte(t,n_forced*5)" -vf "yadif=0:-1:0,scale=trunc(min(max(iw\,ih*dar)\,min(1920\,1080*dar))/2)*2:trunc(min(max(iw/dar\,ih)\,min(1920/dar\,1080))/2)*2" -b:v 4119808 -maxrate 4119808 -bufsize 8239616 -vsync -1 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 aac -strict experimental -ac 2 -ab 384000 -ar 44100 -y "/media/emby/Recorded-TV/test/a76299f1fc6342a2b77a277194a75747/5a5edb546d5942fab64b0b3255cf855e/bdc989ea8fae4358993a271fa51b7e40.mp4" ffmpeg version 3.2.5-1 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1) 20170516 configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared libavutil 55. 34.101 / 55. 34.101 libavcodec 57. 64.101 / 57. 64.101 libavformat 57. 56.101 / 57. 56.101 libavdevice 57. 1.100 / 57. 1.100 libavfilter 6. 65.100 / 6. 65.100 libavresample 3. 1. 0 / 3. 1. 0 libswscale 4. 2.100 / 4. 2.100 libswresample 2. 3.100 / 2. 3.100 libpostproc 54. 1.100 / 54. 1.100 [mpeg2video @ 0x17c1b70] Invalid frame dimensions 0x0. Last message repeated 5 times [mpegts @ 0x17bd6a0] PES packet size mismatch Last message repeated 2 times Input #0, mpegts, from 'file:/media/emby/Recorded-TV/Mpeg2-tv/The Big Bang Theory/Season 1/The Big Bang Theory S01E14 The Nerdvana Annihilation.ts': Duration: 00:31:24.54, start: 26470.527200, bitrate: 2746 kb/s Program 8 Stream #0:0[0x10db]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bottom first), 720x480 [SAR 8:9 DAR 4:3], Closed Captions, 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x10dc](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s Stream #0:2[0x10dd](spa): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, mono, fltp, 128 kb/s Stream #0:3[0x10de](fre): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, mono, fltp, 128 kb/s (visual impaired) [h264_omx @ 0x18325c0] libOMX_Core.so not found [h264_omx @ 0x18325c0] libOmxCore.so not found Stream mapping: Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (h264_omx)) Stream #0:1 -> #0:1 (ac3 (native) -> aac (native)) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Which is a bit odd I think this is from misconfigured options on ffmpeg, but right now i am using the system installed ffmpeg. Going to disable hardware acceleration and see if that helps. Edited September 18, 2017 by tdiguy Link to comment Share on other sites More sharing options...
tdiguy 96 Posted September 19, 2017 Author Share Posted September 19, 2017 ok, i have no idea why this is not working. Link to comment Share on other sites More sharing options...
Luke 37083 Posted September 19, 2017 Share Posted September 19, 2017 Try turning off omx Link to comment Share on other sites More sharing options...
tdiguy 96 Posted September 19, 2017 Author Share Posted September 19, 2017 So I have been able to narrow things down a little. Transcoding seems to be working. I recorded a show last night and i can play it back via web browser, its not great since transcoding is a bit much for the pi in general. But when try to get emby to convert the media its still not doing anything. Link to comment Share on other sites More sharing options...
tdiguy 96 Posted September 19, 2017 Author Share Posted September 19, 2017 Would this error be related? *** Error Report *** Version: 3.2.30.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.9.41.7 64-Bit OS: False 64-Bit Process: False Mono: 5.2.0.215 (tarball Mon Aug 14 16:49:37 UTC 2017) Processor count: 4 Program data path: /var/lib/emby-server Application directory: /usr/lib/emby-server/bin SimpleInjector.ActivationException: No registration for type SyncProvider could be found and an implicit registration could not be made. Error occurred while trying to build a delegate for type SyncProvider using the expression "new SyncProvider(value(MediaBrowser.Server.Mono.Native.MonoFileSystem), value(Emby.Server.Implementations.Logging.NamedLogger))". Could not resolve the signature of a virtual method ---> SimpleInjector.ActivationException: Error occurred while trying to build a delegate for type SyncProvider using the expression "new SyncProvider(value(MediaBrowser.Server.Mono.Native.MonoFileSystem), value(Emby.Server.Implementations.Logging.NamedLogger))". Could not resolve the signature of a virtual method ---> System.TypeLoadException: Could not resolve the signature of a virtual method at (wrapper managed-to-native) System.Delegate:CreateDelegate_internal (System.Type,object,System.Reflection.MethodInfo,bool) at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, System.Boolean throwOnBindFailure, System.Boolean allowClosed) [0x002f0] in <c109e83bf6b6427c945b56620bfa750d>:0 at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method) [0x00000] in <c109e83bf6b6427c945b56620bfa750d>:0 Link to comment Share on other sites More sharing options...
Luke 37083 Posted September 19, 2017 Share Posted September 19, 2017 Please attach the complete log file. Thanks. Link to comment Share on other sites More sharing options...
tdiguy 96 Posted September 19, 2017 Author Share Posted September 19, 2017 (edited) this is the system log. I dont think ffmpeg is generating a lot when i try to syn. I am on mono 5.2 I have been trying to figure out how to downgrade to 4.8.1 but its been a pita. server.txt Edited September 19, 2017 by tdiguy Link to comment Share on other sites More sharing options...
Luke 37083 Posted September 19, 2017 Share Posted September 19, 2017 ok, yes I would suggest 4.8.1. Link to comment Share on other sites More sharing options...
Jdiesel 1114 Posted September 19, 2017 Share Posted September 19, 2017 Downgrading Mono is a PITA, it can be done but expect to have issues with dependencies not being met when you try to install the older version. I'm sure there is a proper way to easily do it but I fought with it for a day last time I needed to. Link to comment Share on other sites More sharing options...
tdiguy 96 Posted September 20, 2017 Author Share Posted September 20, 2017 Downgrading Mono is a PITA, it can be done but expect to have issues with dependencies not being met when you try to install the older version. I'm sure there is a proper way to easily do it but I fought with it for a day last time I needed to. Yea i have been trying to downgrade it. I dont actually understand why 5.2 was installed in the first place honestly unless its also listed in stretch backports repo. I pinned my repo to the snapshot 4.8.1 in wheezy which i thought was the way to go about ensuring mono did not update to anything past say 4.8.1 Link to comment Share on other sites More sharing options...
Luke 37083 Posted July 7, 2019 Share Posted July 7, 2019 The upcoming Emby Server 4.2 release will have improved hardware transcoding support for both RockPro64 and Raspberry Pi. Thanks guys. 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