stuartsjg 2 Posted March 16, 2019 Share Posted March 16, 2019 (edited) Hi Luke, Ive been trying to migrate from old Warden jail 3.3.1.0 without much luck, most of the history is on this thread https://emby.media/community/index.php?/topic/71344-migrating-3310-warden-jail-to-4-iocage-plagued-by-this-site-cant-be-reached/ and it appeared the initial issues i was having copying files over between server versions was down to permissions. I am finding the new installs (by any method) are playing all media fine, however if i use the methods described in the linked post above and copy over the old db/emby-server/ folder, then emby works (it loads and all media and history etc is there) but i get errors with h264 videos being unable to play. This post suggested another forum thread ive been working within fixed the issue: Oh ok, I understand. The plugin version number still shows 3.5.3.0 in FreeNAS, that's why I wanted to go with manual install. I just installed it and I see now that there's an update to 4.0 available. I'll try that instead, thanks EDIT: This is what I ended up using. Working fine now. https://emby.media/community/index.php?/topic/65471-freenas-iocage-plugin-emby-3530-ffmpeg-solution/page-3&do=findComment&comment=708039 This post has a very helpfull guide which i thought i would try: This assumes you have: FreeNAS 11.2rc2 Emby installed via plugin using iocage Playback issues, with ffmpeg as the prime suspect 1. Enter the shell of your Emby jail, either via the GUI jail shell, or using SSH If using SSH, from the freenas root prompt type "jls" to get a list of your jails, followed by "jexec #" where # is the emby jail number 2. You should now be at the root prompt of your Emby iocage jail. Now enter "portsnap fetch extract" This will take some time 3. Once the process completes, you should be back to the root prompt of the emby jail. type "cd /usr/ports/multimedia/ffmpeg" type "make install clean" When prompted, make sure to check lame, opus, and x265 (libass was not listed for me, but check it if it's there) This process will take some time as well, and you'll have to press enter a bunch of times, just leave everything else as default If everything worked correctly, you should be back at the root prompt of the emby jail 4. Now we need to edit the emby startup script to use the new ffmpeg we just compiled type "vi /usr/local/etc/rc.d/emby-server" There are 5 lines that we need to edit (example of mine, make the changes to match the red text) [ -z "${emby_server_user}" ] && emby_server_user=emby[ -z "${emby_server_group}" ] && emby_server_group=emby[ -z "${emby_server_data_dir}" ] && emby_server_data_dir=/var/db/emby-server[ -z "${emby_server_ffmpeg}" ] && emby_server_ffmpeg=/usr/local/bin/ffmpeg[ -z "${emby_server_ffprobe}" ] && emby_server_ffprobe=/usr/local/bin/ffprobe: ${emby_server_enable:="no"}: ${emby_server_user:="emby"}: ${emby_server_group:="emby"}: ${emby_server_data_dir:="/var/db/emby-server"}: ${emby_server_ffmpeg:="/usr/local/bin/ffmpeg"}: ${emby_server_ffprobe:="/usr/local/bin/ffprobe"}export LD_LIBRARY_PATH=/usr/local/lib 5. Save the file, return to the FreeNAS GUI and restart the emby server plugin. Playback issues should now be resolved. i get to step 4, however from that point, i cannot see how i do the editing of the text strings as instructed. Another thing i am trying to do is work out what file or files which contain this information and i can edit them in my copy of the warden jail db/emby-server/ folder before i copy into a new iocage install. Perhaps you can help with either of my two plans? Thanks, Stuart ps. example of the log file i get trying to play something which wont play, i think this captures from when i tried to start playback to when it was stopped. 2019-03-16 21:00:21.833 Info HttpServer: HTTP Response 200 to 192.168.1.112. Time: 1ms. http://192.168.1.195:8096/emby/Users/b7135d48f48b462699e261b7273d9628 2019-03-16 21:00:21.835 Info App: User policy for Stuart. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True 2019-03-16 21:00:21.835 Info App: Profile: Unknown Profile, Path: /media/music videos/Glastonbury 2016/Glastonbury 2016 - Chvrches.mp4, isEligibleForDirectPlay: True, isEligibleForDirectStream: True 2019-03-16 21:00:21.837 Info App: RemoteClientBitrateLimit: 15000000, RemoteIp: 192.168.1.112, IsInLocalNetwork: True 2019-03-16 21:00:21.837 Info App: Profile: Unknown Profile, Path: /media/music videos/Glastonbury 2016/Glastonbury 2016 - Chvrches.mp4, isEligibleForDirectPlay: True, isEligibleForDirectStream: True 2019-03-16 21:00:21.837 Info App: RemoteClientBitrateLimit: 15000000, RemoteIp: 192.168.1.112, IsInLocalNetwork: True 2019-03-16 21:00:21.837 Info App: Profile: Unknown Profile, Path: /media/music videos/Glastonbury 2016/Glastonbury 2016 - Chvrches.mp4, isEligibleForDirectPlay: True, isEligibleForDirectStream: True 2019-03-16 21:00:21.837 Info App: RemoteClientBitrateLimit: 15000000, RemoteIp: 192.168.1.112, IsInLocalNetwork: True 2019-03-16 21:00:21.838 Info HttpServer: HTTP Response 200 to 192.168.1.112. Time: 6ms. http://192.168.1.195:8096/emby/Items/8710/PlaybackInfo?UserId=b7135d48f48b462699e261b7273d9628&StartTimeTicks=0&IsPlayback=true&AutoOpenLiveStream=true&MaxStreamingBitrate=140000000 2019-03-16 21:00:22.076 Info HttpClient: HttpClientManager POST: https://mb3admin.com/admin/service/registration/validate 2019-03-16 21:00:22.224 Info HttpServer: HTTP GET http://192.168.1.195:8096/emby/Videos/8710/stream.mp4?Static=true&mediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&deviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzcyLjAuMzYyNi4xMjEgU2FmYXJpLzUzNy4zNnwxNTUyNTA5NzQyNTc4. Host=192.168.1.195:8096, Connection=keep-alive, Accept-Encoding=identity;q=1, *;q=0, User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36, chrome-proxy=frfr, Accept=*/*, Referer=http://192.168.1.195:8096/web/index.html, Accept-Language=en-US,en;q=0.9, Range=bytes=0- 2019-03-16 21:00:22.233 Info HttpResultFactory: Setting range response values for /media/music videos/Glastonbury 2016/Glastonbury 2016 - Chvrches.mp4. RangeRequest: bytes=0- Content-Length: 0, Content-Range: bytes 0--1/0 2019-03-16 21:00:22.234 Info HttpServer: HTTP Response 404 to 192.168.1.112. Time: 10ms. http://192.168.1.195:8096/emby/Videos/8710/stream.mp4?Static=true&mediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&deviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzcyLjAuMzYyNi4xMjEgU2FmYXJpLzUzNy4zNnwxNTUyNTA5NzQyNTc4 2019-03-16 21:00:22.292 Info HttpServer: HTTP POST http://192.168.1.195:8096/emby/Sessions/Playing. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36 2019-03-16 21:00:22.292 Info HttpServer: HTTP POST http://192.168.1.195:8096/emby/Sessions/Playing/Progress. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36 2019-03-16 21:00:22.292 Info HttpServer: HTTP POST http://192.168.1.195:8096/emby/Sessions/Playing/Progress. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36 2019-03-16 21:00:22.294 Info HttpServer: HTTP Response 204 to 192.168.1.112. Time: 3ms. http://192.168.1.195:8096/emby/Sessions/Playing/Progress 2019-03-16 21:00:22.296 Info HttpServer: HTTP Response 204 to 192.168.1.112. Time: 4ms. http://192.168.1.195:8096/emby/Sessions/Playing 2019-03-16 21:00:22.296 Info HttpServer: HTTP Response 204 to 192.168.1.112. Time: 5ms. http://192.168.1.195:8096/emby/Sessions/Playing/Progress 2019-03-16 21:00:22.354 Info HttpClient: HttpClientManager POST: https://mb3admin.com/admin/service/registration/validate 2019-03-16 21:00:22.393 Info HttpServer: HTTP POST http://192.168.1.195:8096/emby/Items/8710/PlaybackInfo?UserId=b7135d48f48b462699e261b7273d9628&StartTimeTicks=0&IsPlayback=true&AutoOpenLiveStream=true&AudioStreamIndex=1&EnableDirectPlay=false&EnableDirectStream=false&AllowVideoStreamCopy=false&MediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&MaxStreamingBitrate=140000000. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36 2019-03-16 21:00:22.396 Info App: User policy for Stuart. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True 2019-03-16 21:00:22.397 Info App: RemoteClientBitrateLimit: 15000000, RemoteIp: 192.168.1.112, IsInLocalNetwork: True 2019-03-16 21:00:22.397 Info App: Profile: Unknown Profile, Path: /media/music videos/Glastonbury 2016/Glastonbury 2016 - Chvrches.mp4, isEligibleForDirectPlay: True, isEligibleForDirectStream: True 2019-03-16 21:00:22.397 Info App: RemoteClientBitrateLimit: 15000000, RemoteIp: 192.168.1.112, IsInLocalNetwork: True 2019-03-16 21:00:22.397 Info HttpServer: HTTP Response 200 to 192.168.1.112. Time: 4ms. http://192.168.1.195:8096/emby/Items/8710/PlaybackInfo?UserId=b7135d48f48b462699e261b7273d9628&StartTimeTicks=0&IsPlayback=true&AutoOpenLiveStream=true&AudioStreamIndex=1&EnableDirectPlay=false&EnableDirectStream=false&AllowVideoStreamCopy=false&MediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&MaxStreamingBitrate=140000000 2019-03-16 21:00:22.627 Info HttpServer: HTTP POST http://192.168.1.195:8096/emby/Sessions/Playing/Progress. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36 2019-03-16 21:00:22.628 Info HttpClient: HttpClientManager POST: https://mb3admin.com/admin/service/registration/validate 2019-03-16 21:00:22.629 Info HttpServer: HTTP Response 204 to 192.168.1.112. Time: 1ms. http://192.168.1.195:8096/emby/Sessions/Playing/Progress 2019-03-16 21:00:22.657 Info HttpServer: HTTP GET http://192.168.1.195:8096/emby/videos/8710/master.m3u8?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzcyLjAuMzYyNi4xMjEgU2FmYXJpLzUzNy4zNnwxNTUyNTA5NzQyNTc4&MediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&VideoCodec=h264&AudioCodec=mp3,aac&VideoBitrate=139906532&AudioBitrate=93468&PlaySessionId=a6ca18315daa45759ad95f6c7b25a50f&AudioStreamIndex=1&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false. Host=192.168.1.195:8096, Connection=keep-alive, User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36, Accept=*/*, Referer=http://192.168.1.195:8096/web/index.html, Accept-Encoding=gzip, deflate, Accept-Language=en-US,en;q=0.9 2019-03-16 21:00:22.659 Info HttpServer: HTTP Response 200 to 192.168.1.112. Time: 2ms. http://192.168.1.195:8096/emby/videos/8710/master.m3u8?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzcyLjAuMzYyNi4xMjEgU2FmYXJpLzUzNy4zNnwxNTUyNTA5NzQyNTc4&MediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&VideoCodec=h264&AudioCodec=mp3,aac&VideoBitrate=139906532&AudioBitrate=93468&PlaySessionId=a6ca18315daa45759ad95f6c7b25a50f&AudioStreamIndex=1&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false 2019-03-16 21:00:22.756 Info HttpServer: HTTP POST http://192.168.1.195:8096/emby/Sessions/Playing/Progress. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36 2019-03-16 21:00:22.756 Info HttpServer: HTTP GET http://192.168.1.195:8096/emby/videos/8710/main.m3u8?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzcyLjAuMzYyNi4xMjEgU2FmYXJpLzUzNy4zNnwxNTUyNTA5NzQyNTc4&MediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&VideoCodec=h264&AudioCodec=mp3,aac&VideoBitrate=139906532&AudioBitrate=93468&PlaySessionId=a6ca18315daa45759ad95f6c7b25a50f&AudioStreamIndex=1&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false. Host=192.168.1.195:8096, Connection=keep-alive, User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36, Accept=*/*, Referer=http://192.168.1.195:8096/web/index.html, Accept-Encoding=gzip, deflate, Accept-Language=en-US,en;q=0.9 2019-03-16 21:00:22.757 Info HttpServer: HTTP Response 204 to 192.168.1.112. Time: 1ms. http://192.168.1.195:8096/emby/Sessions/Playing/Progress 2019-03-16 21:00:22.808 Info HttpServer: HTTP Response 200 to 192.168.1.112. Time: 52ms. http://192.168.1.195:8096/emby/videos/8710/main.m3u8?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzcyLjAuMzYyNi4xMjEgU2FmYXJpLzUzNy4zNnwxNTUyNTA5NzQyNTc4&MediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&VideoCodec=h264&AudioCodec=mp3,aac&VideoBitrate=139906532&AudioBitrate=93468&PlaySessionId=a6ca18315daa45759ad95f6c7b25a50f&AudioStreamIndex=1&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false 2019-03-16 21:00:22.834 Info HttpServer: HTTP GET http://192.168.1.195:8096/emby/videos/8710/hls1/main/0.ts?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzcyLjAuMzYyNi4xMjEgU2FmYXJpLzUzNy4zNnwxNTUyNTA5NzQyNTc4&MediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&VideoCodec=h264&AudioCodec=mp3,aac&VideoBitrate=139906532&AudioBitrate=93468&PlaySessionId=a6ca18315daa45759ad95f6c7b25a50f&AudioStreamIndex=1&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false. Host=192.168.1.195:8096, Connection=keep-alive, User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36, Accept=*/*, Referer=http://192.168.1.195:8096/web/index.html, Accept-Encoding=gzip, deflate, Accept-Language=en-US,en;q=0.9 2019-03-16 21:00:22.841 Info App: ProcessRun 'StreamTranscode f93345' Execute: /usr/local/lib/emby-server/bin/ffmpeg -f mp4 -i file:"/media/music videos/Glastonbury 2016/Glastonbury 2016 - Chvrches.mp4" -threads 0 -map 0:0 -map 0:1 -map -0:s -c:v:0 libx264 -pix_fmt yuv420p -maxrate 3509895 -bufsize 7019790 -preset veryfast -profile high -level 4.1 -crf 23 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames "expr:if(isnan(prev_forced_t),eq(t,t),gte(t,prev_forced_t+3))" -copyts -vsync -1 -codec:a:0 copy -disposition:a:0 default -f segment -max_delay 5000000 -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 -start_at_zero -segment_time 3 -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "/var/db/emby-server/transcoding-temp/8ee3a5f039ca6ce0c52d8829a34d34c7.m3u8" -y "/var/db/emby-server/transcoding-temp/8ee3a5f039ca6ce0c52d8829a34d34c7%d.ts" 2019-03-16 21:00:22.860 Info App: ProcessRun 'StreamTranscode f93345' Started. 2019-03-16 21:00:22.905 Info HttpClient: HttpClientManager POST: https://mb3admin.com/admin/service/registration/validate 2019-03-16 21:00:23.179 Info App: ProcessRun 'StreamTranscode f93345' Process exited with code 1 2019-03-16 21:00:23.180 Error HttpServer: Error processing request *** Error Report *** Version: 4.0.2.0 Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd_{version}_amd64.txz Operating system: Unix 11.2.0.0 64-Bit OS: True 64-Bit Process: True User Interactive: False Mono: 5.10.1.57 (5.10.1.57 Thu Feb 7 10:13:31 UTC 2019) Processor count: 12 Program data path: /var/db/emby-server Application directory: /usr/local/lib/emby-server/system System.Exception: System.Exception: Error starting ffmpeg at Emby.Server.MediaEncoding.Api.BaseStreamingService+<StartFfMpeg>d__76.MoveNext () [0x003f4] in <8d3c2eae278a44b89027f6e03c623f02>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService+<GetDynamicSegment>d__14.MoveNext () [0x00714] in <8d3c2eae278a44b89027f6e03c623f02>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.Services.ServiceExecGeneral+<GetTaskResult>d__3.MoveNext () [0x00081] in <5837600bbe23491d837720283845e3f2>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>d__14.MoveNext () [0x0023e] in <5837600bbe23491d837720283845e3f2>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>d__56.MoveNext () [0x00af1] in <5837600bbe23491d837720283845e3f2>:0 Source: mscorlib TargetSite: Void Throw() at Emby.Server.MediaEncoding.Api.BaseStreamingService+<StartFfMpeg>d__76.MoveNext () [0x003f4] in <8d3c2eae278a44b89027f6e03c623f02>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService+<GetDynamicSegment>d__14.MoveNext () [0x00714] in <8d3c2eae278a44b89027f6e03c623f02>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.Services.ServiceExecGeneral+<GetTaskResult>d__3.MoveNext () [0x00081] in <5837600bbe23491d837720283845e3f2>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>d__14.MoveNext () [0x0023e] in <5837600bbe23491d837720283845e3f2>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>d__56.MoveNext () [0x00af1] in <5837600bbe23491d837720283845e3f2>:0 2019-03-16 21:00:23.181 Info HttpServer: HTTP Response 500 to 192.168.1.112. Time: 347ms. http://192.168.1.195:8096/emby/videos/8710/hls1/main/0.ts?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzcyLjAuMzYyNi4xMjEgU2FmYXJpLzUzNy4zNnwxNTUyNTA5NzQyNTc4&MediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&VideoCodec=h264&AudioCodec=mp3,aac&VideoBitrate=139906532&AudioBitrate=93468&PlaySessionId=a6ca18315daa45759ad95f6c7b25a50f&AudioStreamIndex=1&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false 2019-03-16 21:00:23.183 Info HttpClient: HttpClientManager POST: https://mb3admin.com/admin/service/registration/validate 2019-03-16 21:00:23.238 Info HttpServer: HTTP POST http://192.168.1.195:8096/emby/Items/8710/PlaybackInfo?UserId=b7135d48f48b462699e261b7273d9628&StartTimeTicks=0&IsPlayback=true&AutoOpenLiveStream=true&AudioStreamIndex=1&EnableDirectPlay=false&EnableDirectStream=false&AllowVideoStreamCopy=false&AllowAudioStreamCopy=false&MediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&MaxStreamingBitrate=140000000. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36 2019-03-16 21:00:23.242 Info App: User policy for Stuart. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True 2019-03-16 21:00:23.242 Info App: RemoteClientBitrateLimit: 15000000, RemoteIp: 192.168.1.112, IsInLocalNetwork: True 2019-03-16 21:00:23.242 Info App: Profile: Unknown Profile, Path: /media/music videos/Glastonbury 2016/Glastonbury 2016 - Chvrches.mp4, isEligibleForDirectPlay: True, isEligibleForDirectStream: True 2019-03-16 21:00:23.242 Info App: RemoteClientBitrateLimit: 15000000, RemoteIp: 192.168.1.112, IsInLocalNetwork: True 2019-03-16 21:00:23.243 Info HttpServer: HTTP Response 200 to 192.168.1.112. Time: 4ms. http://192.168.1.195:8096/emby/Items/8710/PlaybackInfo?UserId=b7135d48f48b462699e261b7273d9628&StartTimeTicks=0&IsPlayback=true&AutoOpenLiveStream=true&AudioStreamIndex=1&EnableDirectPlay=false&EnableDirectStream=false&AllowVideoStreamCopy=false&AllowAudioStreamCopy=false&MediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&MaxStreamingBitrate=140000000 2019-03-16 21:00:23.275 Info HttpServer: HTTP POST http://192.168.1.195:8096/emby/Sessions/Playing/Progress. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36 2019-03-16 21:00:23.276 Info HttpServer: HTTP Response 204 to 192.168.1.112. Time: 1ms. http://192.168.1.195:8096/emby/Sessions/Playing/Progress 2019-03-16 21:00:23.305 Info HttpServer: HTTP GET http://192.168.1.195:8096/emby/videos/8710/master.m3u8?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzcyLjAuMzYyNi4xMjEgU2FmYXJpLzUzNy4zNnwxNTUyNTA5NzQyNTc4&MediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&VideoCodec=h264&AudioCodec=mp3,aac&VideoBitrate=139906532&AudioBitrate=93468&PlaySessionId=cc0e7746ad684d4991a293ed32a6f12e&AudioStreamIndex=1&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false&allowAudioStreamCopy=false. Host=192.168.1.195:8096, Connection=keep-alive, User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36, Accept=*/*, Referer=http://192.168.1.195:8096/web/index.html, Accept-Encoding=gzip, deflate, Accept-Language=en-US,en;q=0.9 2019-03-16 21:00:23.306 Info HttpServer: HTTP Response 200 to 192.168.1.112. Time: 2ms. http://192.168.1.195:8096/emby/videos/8710/master.m3u8?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzcyLjAuMzYyNi4xMjEgU2FmYXJpLzUzNy4zNnwxNTUyNTA5NzQyNTc4&MediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&VideoCodec=h264&AudioCodec=mp3,aac&VideoBitrate=139906532&AudioBitrate=93468&PlaySessionId=cc0e7746ad684d4991a293ed32a6f12e&AudioStreamIndex=1&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false&allowAudioStreamCopy=false 2019-03-16 21:00:23.339 Info HttpServer: HTTP GET http://192.168.1.195:8096/emby/videos/8710/main.m3u8?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzcyLjAuMzYyNi4xMjEgU2FmYXJpLzUzNy4zNnwxNTUyNTA5NzQyNTc4&MediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&VideoCodec=h264&AudioCodec=mp3,aac&VideoBitrate=139906532&AudioBitrate=93468&PlaySessionId=cc0e7746ad684d4991a293ed32a6f12e&AudioStreamIndex=1&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false&allowAudioStreamCopy=false. Host=192.168.1.195:8096, Connection=keep-alive, User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36, Accept=*/*, Referer=http://192.168.1.195:8096/web/index.html, Accept-Encoding=gzip, deflate, Accept-Language=en-US,en;q=0.9 2019-03-16 21:00:23.360 Info HttpServer: HTTP POST http://192.168.1.195:8096/emby/Sessions/Playing/Progress. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36 2019-03-16 21:00:23.362 Info HttpServer: HTTP Response 204 to 192.168.1.112. Time: 1ms. http://192.168.1.195:8096/emby/Sessions/Playing/Progress 2019-03-16 21:00:23.389 Info HttpServer: HTTP Response 200 to 192.168.1.112. Time: 50ms. http://192.168.1.195:8096/emby/videos/8710/main.m3u8?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzcyLjAuMzYyNi4xMjEgU2FmYXJpLzUzNy4zNnwxNTUyNTA5NzQyNTc4&MediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&VideoCodec=h264&AudioCodec=mp3,aac&VideoBitrate=139906532&AudioBitrate=93468&PlaySessionId=cc0e7746ad684d4991a293ed32a6f12e&AudioStreamIndex=1&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false&allowAudioStreamCopy=false 2019-03-16 21:00:23.476 Info HttpClient: HttpClientManager POST: https://mb3admin.com/admin/service/registration/validate 2019-03-16 21:00:23.757 Info HttpClient: HttpClientManager POST: https://mb3admin.com/admin/service/registration/validate 2019-03-16 21:00:23.897 Info HttpServer: HTTP GET http://192.168.1.195:8096/emby/videos/8710/hls1/main/0.ts?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzcyLjAuMzYyNi4xMjEgU2FmYXJpLzUzNy4zNnwxNTUyNTA5NzQyNTc4&MediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&VideoCodec=h264&AudioCodec=mp3,aac&VideoBitrate=139906532&AudioBitrate=93468&PlaySessionId=cc0e7746ad684d4991a293ed32a6f12e&AudioStreamIndex=1&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false&allowAudioStreamCopy=false. Host=192.168.1.195:8096, Connection=keep-alive, User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36, Accept=*/*, Referer=http://192.168.1.195:8096/web/index.html, Accept-Encoding=gzip, deflate, Accept-Language=en-US,en;q=0.9 2019-03-16 21:00:23.904 Info App: ProcessRun 'StreamTranscode c19e76' Execute: /usr/local/lib/emby-server/bin/ffmpeg -f mp4 -i file:"/media/music videos/Glastonbury 2016/Glastonbury 2016 - Chvrches.mp4" -threads 0 -map 0:0 -map 0:1 -map -0:s -c:v:0 libx264 -pix_fmt yuv420p -maxrate 3509895 -bufsize 7019790 -preset veryfast -profile high -level 4.1 -crf 23 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames "expr:if(isnan(prev_forced_t),eq(t,t),gte(t,prev_forced_t+3))" -copyts -vsync -1 -codec:a:0 libmp3lame -disposition:a:0 default -ac:a:0 2 -ab:a:0 93468 -f segment -max_delay 5000000 -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 -start_at_zero -segment_time 3 -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "/var/db/emby-server/transcoding-temp/7d6fe4f8c1aff4e31d16172b0fdbe433.m3u8" -y "/var/db/emby-server/transcoding-temp/7d6fe4f8c1aff4e31d16172b0fdbe433%d.ts" 2019-03-16 21:00:23.919 Info App: ProcessRun 'StreamTranscode c19e76' Started. 2019-03-16 21:00:23.951 Info HttpClient: HttpClientManager POST: https://mb3admin.com/admin/service/registration/validate 2019-03-16 21:00:24.238 Info HttpClient: HttpClientManager POST: https://mb3admin.com/admin/service/registration/validate 2019-03-16 21:00:24.339 Info App: ProcessRun 'StreamTranscode c19e76' Process exited with code 1 2019-03-16 21:00:24.341 Error HttpServer: Error processing request *** Error Report *** Version: 4.0.2.0 Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd_{version}_amd64.txz Operating system: Unix 11.2.0.0 64-Bit OS: True 64-Bit Process: True User Interactive: False Mono: 5.10.1.57 (5.10.1.57 Thu Feb 7 10:13:31 UTC 2019) Processor count: 12 Program data path: /var/db/emby-server Application directory: /usr/local/lib/emby-server/system System.Exception: System.Exception: Error starting ffmpeg at Emby.Server.MediaEncoding.Api.BaseStreamingService+<StartFfMpeg>d__76.MoveNext () [0x003f4] in <8d3c2eae278a44b89027f6e03c623f02>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService+<GetDynamicSegment>d__14.MoveNext () [0x00714] in <8d3c2eae278a44b89027f6e03c623f02>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.Services.ServiceExecGeneral+<GetTaskResult>d__3.MoveNext () [0x00081] in <5837600bbe23491d837720283845e3f2>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>d__14.MoveNext () [0x0023e] in <5837600bbe23491d837720283845e3f2>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>d__56.MoveNext () [0x00af1] in <5837600bbe23491d837720283845e3f2>:0 Source: mscorlib TargetSite: Void Throw() at Emby.Server.MediaEncoding.Api.BaseStreamingService+<StartFfMpeg>d__76.MoveNext () [0x003f4] in <8d3c2eae278a44b89027f6e03c623f02>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService+<GetDynamicSegment>d__14.MoveNext () [0x00714] in <8d3c2eae278a44b89027f6e03c623f02>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.Services.ServiceExecGeneral+<GetTaskResult>d__3.MoveNext () [0x00081] in <5837600bbe23491d837720283845e3f2>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>d__14.MoveNext () [0x0023e] in <5837600bbe23491d837720283845e3f2>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>d__56.MoveNext () [0x00af1] in <5837600bbe23491d837720283845e3f2>:0 2019-03-16 21:00:24.341 Info HttpServer: HTTP Response 500 to 192.168.1.112. Time: 445ms. http://192.168.1.195:8096/emby/videos/8710/hls1/main/0.ts?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzcyLjAuMzYyNi4xMjEgU2FmYXJpLzUzNy4zNnwxNTUyNTA5NzQyNTc4&MediaSourceId=ee61c53437e7b25c5a1584a123ff76cd&VideoCodec=h264&AudioCodec=mp3,aac&VideoBitrate=139906532&AudioBitrate=93468&PlaySessionId=cc0e7746ad684d4991a293ed32a6f12e&AudioStreamIndex=1&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false&allowAudioStreamCopy=false 2019-03-16 21:00:24.355 Info HttpServer: HTTP POST http://192.168.1.195:8096/emby/Sessions/Playing/Stopped. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36 2019-03-16 21:00:24.356 Info SessionManager: Playback stopped reported by app Emby Mobile 4.0.2.0 playing Chvrches - Glastonbury 2016. Stopped at 0 ms 2019-03-16 21:00:24.356 Info HttpServer: HTTP Response 204 to 192.168.1.112. Time: 2ms. http://192.168.1.195:8096/emby/Sessions/Playing/Stopped 2019-03-16 21:00:24.438 Info HttpClient: HttpClientManager POST: https://mb3admin.com/admin/service/registration/validate 2019-03-16 21:00:24.719 Info HttpClient: HttpClientManager POST: https://mb3admin.com/admin/service/registration/validate 2019-03-16 21:00:24.913 Info HttpClient: HttpClientManager POST: https://mb3admin.com/admin/service/registration/validate Oh ok, I understand. The plugin version number still shows 3.5.3.0 in FreeNAS, that's why I wanted to go with manual install. I just installed it and I see now that there's an update to 4.0 available. I'll try that instead, thanks EDIT: This is what I ended up using. Working fine now. https://emby.media/community/index.php?/topic/65471-freenas-iocage-plugin-emby-3530-ffmpeg-solution/page-3&do=findComment&comment=708039 Edited March 16, 2019 by stuartsjg Link to comment Share on other sites More sharing options...
Luke 37096 Posted March 17, 2019 Share Posted March 17, 2019 I would just use the regular install methods along with our documented backup procedures on our wiki. Link to comment Share on other sites More sharing options...
stuartsjg 2 Posted March 18, 2019 Share Posted March 18, 2019 Hi, Been there too, i cant get the old warden jail emby 3.3.1.0 to load anymore to try and setup a backup from that, and if i try and backup from my newer emby, but with the faulty h.264, then the backups fail. I cannot see any network locations, so ive tried to write to one of the storage locations added to the jail (one i know i can read from) but then i get this error: 2019-03-18 21:51:05.136 Info TaskManager: Executing Configuration Backup 2019-03-18 21:51:05.136 Info HttpServer: HTTP Response 204 to 192.168.1.112. Time: 2ms. http://192.168.1.210:8096/emby/ScheduledTasks/Running/a1e4a7962c72ac5e491497598d1ee479 2019-03-18 21:51:05.148 Error Server Configuration Backup: Could not create backup directory /media/emby_backup/Emby Backup - 2019-03-18 09.51.5 - Auto *** Error Report *** Version: 4.0.2.0 Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd_{version}_amd64.txz -noautorunwebapp Operating system: Unix 11.2.0.0 64-Bit OS: True 64-Bit Process: True User Interactive: False Mono: 5.10.1.57 (5.10.1.57 Thu Feb 7 10:13:31 UTC 2019) Processor count: 12 Program data path: /var/db/emby-server Application directory: /usr/local/lib/emby-server/system System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path "/media/emby_backup/Emby Backup - 2019-03-18 09.51.5 - Auto" is denied. at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <0e06830de9a44394a7e366951eabca52>:0 at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.IO.ManagedFileSystem.CreateDirectory (System.String path) [0x0001b] in <5837600bbe23491d837720283845e3f2>:0 at MBBackup.ServerEntryPoint+<ExecuteBackup>d__61.MoveNext () [0x00174] in <b48c1b9ae14d440baa732016b620ddb8>:0 Source: mscorlib TargetSite: System.IO.DirectoryInfo CreateDirectoriesInternal(System.String) at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <0e06830de9a44394a7e366951eabca52>:0 at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.IO.ManagedFileSystem.CreateDirectory (System.String path) [0x0001b] in <5837600bbe23491d837720283845e3f2>:0 at MBBackup.ServerEntryPoint+<ExecuteBackup>d__61.MoveNext () [0x00174] in <b48c1b9ae14d440baa732016b620ddb8>:0 2019-03-18 21:51:05.149 Error TaskManager: Error *** Error Report *** Version: 4.0.2.0 Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd_{version}_amd64.txz -noautorunwebapp Operating system: Unix 11.2.0.0 64-Bit OS: True 64-Bit Process: True User Interactive: False Mono: 5.10.1.57 (5.10.1.57 Thu Feb 7 10:13:31 UTC 2019) Processor count: 12 Program data path: /var/db/emby-server Application directory: /usr/local/lib/emby-server/system System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path "/media/emby_backup/Emby Backup - 2019-03-18 09.51.5 - Auto" is denied. at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <0e06830de9a44394a7e366951eabca52>:0 at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.IO.ManagedFileSystem.CreateDirectory (System.String path) [0x0001b] in <5837600bbe23491d837720283845e3f2>:0 at MBBackup.ServerEntryPoint+<ExecuteBackup>d__61.MoveNext () [0x00199] in <b48c1b9ae14d440baa732016b620ddb8>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at MBBackup.Entities.ScheduledBackupTask+<Execute>d__8.MoveNext () [0x00085] in <b48c1b9ae14d440baa732016b620ddb8>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker+<ExecuteInternal>d__68.MoveNext () [0x00156] in <5837600bbe23491d837720283845e3f2>:0 Source: mscorlib TargetSite: Void Throw() at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <0e06830de9a44394a7e366951eabca52>:0 at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.IO.ManagedFileSystem.CreateDirectory (System.String path) [0x0001b] in <5837600bbe23491d837720283845e3f2>:0 at MBBackup.ServerEntryPoint+<ExecuteBackup>d__61.MoveNext () [0x00199] in <b48c1b9ae14d440baa732016b620ddb8>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at MBBackup.Entities.ScheduledBackupTask+<Execute>d__8.MoveNext () [0x00085] in <b48c1b9ae14d440baa732016b620ddb8>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker+<ExecuteInternal>d__68.MoveNext () [0x00156] in <5837600bbe23491d837720283845e3f2>:0 2019-03-18 21:51:05.149 Info TaskManager: Configuration Backup Failed after 0 minute(s) and 0 seconds 2019-03-18 21:51:05.150 Info TaskManager: ExecuteQueuedTasks 2019-03-18 21:51:05.248 Info HttpServer: HTTP GET http://192.168.1.210:8096/emby/ScheduledTasks?isHidden=false. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36 So, its likely a permissions issue perhaps. Ill try and dig up a list of the things ive tried to fix this. Thanks, Stuart Link to comment Share on other sites More sharing options...
stuartsjg 2 Posted March 18, 2019 Share Posted March 18, 2019 Ive tried also changing so the backup is written to alternative locations, all of which result in the same failure: System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path "/media/emby_backup/Emby Backup - 2019-03-18 10.27.57 - Auto" is denied. System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path "/backup/Emby Backup - 2019-03-18 10.33.19 - Auto" is denied. I have just randomly tried to set the backup folder as the var/db/emby-server/logs folder and it looks like that was a success... Ill setup a new emby install and copy the backup folder over to that jail, then setup the backup folder as that again and hope it sees it... Getting there! Link to comment Share on other sites More sharing options...
stuartsjg 2 Posted March 18, 2019 Share Posted March 18, 2019 Ok... So that sort of worked but then has not really worked. Installed new emby (via plugin method) and then went through the basic setup. Installed the plug in, copied the backup folder over to be within the new jail and restarted. It loaded fine, the backup plugin listed the backup and and it appeared to apply it fine. It did sit for several minutes at the "emby will reboot shortly" screen and not get anywhere so i assumed i had to reboot it. I rebooted the jail, went to browser and it said emby was loading... then, the screen which haunts me: This site can't be reached. So, something within the backup being restored is killing emby in the same was as the manual copy of the /var/db/emby-server/ folder does. Ill try again with a clean install but perhaps see if theres any options to uncheck which may ensure only the minimal data (history, playlists etc) is copied over. Stuart Link to comment Share on other sites More sharing options...
stuartsjg 2 Posted March 22, 2019 Share Posted March 22, 2019 I would just use the regular install methods along with our documented backup procedures on our wiki. Hi Luke, Been trying this with little success, i have tried subsequent restores and after selecting a backup folder to restore in the new install i just get the spinning circle on the backup restore screen - this doesn't ever go away, any ideas whats causing that? I have tried via plugin install and also manually setting up a jail and installing the pkg, same issue each time. Link to comment Share on other sites More sharing options...
unhooked 17 Posted March 24, 2019 Share Posted March 24, 2019 Also, don't edit /usr/local/etc/rc.d/emby-server. Those lines are testing for the variables listed, if those variables don't exist. Then it uses emby provided tools. You set those variables in /etc/rc.conf All installed software knobs go there. If you edit the rc script itself, upgrades will overwrite it. Link to comment Share on other sites More sharing options...
sproon 0 Posted August 1, 2019 Share Posted August 1, 2019 (edited) If this is still a problem, I noticed an easy fix for FreeNAS users. My issues happen when updating using the following commands from emby.media: pkg install mono libass fontconfig freetype2 fribidi gnutls iconv opus samba48 sqlite3 libtheora libva libvpx libvorbis webp libx264 libzvbi libraw ImageMagick6 pkg add -f https://github.com/MediaBrowser/Emby.Releases/releases/download/4.3.0.0/emby-server-freebsd11_4.3.0.0_amd64.txz After installing the new version, ffmpeg can't find several shared libraries that are actually included in the emby server package. You can check if something is missing in the iocage command line: ldd /usr/local/lib/emby-server/bin/ffmpeg All I did was copy all the libraries from the emby server package to the root directory and ran the above command to ensure ffmpeg had everything it needed cp /usr/local/lib/emby-server/lib/* /usr/local/lib/ After that, all content plays! Hope this helps! FYI: I gave up on using the plugins for FreeNAS as they don't seem to get updates for emby anymore. Edited August 1, 2019 by sproon Link to comment Share on other sites More sharing options...
Luke 37096 Posted August 5, 2019 Share Posted August 5, 2019 If this is still a problem, I noticed an easy fix for FreeNAS users. My issues happen when updating using the following commands from emby.media: pkg install mono libass fontconfig freetype2 fribidi gnutls iconv opus samba48 sqlite3 libtheora libva libvpx libvorbis webp libx264 libzvbi libraw ImageMagick6 pkg add -f https://github.com/MediaBrowser/Emby.Releases/releases/download/4.3.0.0/emby-server-freebsd11_4.3.0.0_amd64.txz After installing the new version, ffmpeg can't find several shared libraries that are actually included in the emby server package. You can check if something is missing in the iocage command line: ldd /usr/local/lib/emby-server/bin/ffmpeg All I did was copy all the libraries from the emby server package to the root directory and ran the above command to ensure ffmpeg had everything it needed cp /usr/local/lib/emby-server/lib/* /usr/local/lib/ After that, all content plays! Hope this helps! FYI: I gave up on using the plugins for FreeNAS as they don't seem to get updates for emby anymore. @@sproon You seem to be manually installing the package in a jail instead of using our iocage plugin, while also most likely not starting it with the included script or else the libraries would be found alright. Link to comment Share on other sites More sharing options...
Luke 37096 Posted September 30, 2019 Share Posted September 30, 2019 For non-beta users who wish to run the stable release, the suggested approach is installing the IOCage plugin: Link to comment Share on other sites More sharing options...
OnyXxL 1 Posted April 15, 2020 Share Posted April 15, 2020 Hi, I think there is a rights problem on FreeBSD/FreeNAS, that aren't correctly set on the Emby-Server shared objects after install. I think it can be consired as a bug. I'm using the last Emby-Server v.4.5.0.6 (Beta) on FreeBSD 12.1-RELEASEp3 amd64, with all packages updated and I followed the official Emby install for FreeBSD (from package). The error No video encoder found for 'h264' was logged when I tried to play a video on any web browser. Note: on Emby mobile app, the error didn't occur. There is a rights problem in /usr/local/lib/emby-server/lib/ as the .so* files needs to have 755 permissions (-rwxrw-r-x):- For owner (root): Read-Write-Execute- For group (wheel): Read-Execute- For others: Read-Execute By default after install, the permissions are set like that and avoids Emby-Server to use the .so* files:-rw-r--r-- root wheel libavutil.so.56.36.100 Here are two fixes (pick one): In a shell on the FreeBSD server, change the permissions in the /usr/local/lib/emby-server/lib directory: chmod 755 /usr/local/lib/emby-server/lib/*.so.* Then, restart Emby-Server.- OR - Based on workaround used on FreeNAS and described in this topic, tell Emby-Server to use the system libraries instead of the ones installed in /usr/local/lib/emby-server/lib/: 1. Open the Emby-Server rc script: edit /usr/local/etc/rc.d/emby-server and replace the line: export LD_LIBRARY_PATH=/usr/local/lib/emby-server/libby export LD_LIBRARY_PATH=/usr/local/lib3. Edit the file /etc/rc.conf and add these two lines after emby_server_enable="YES" so that Emby-Server uses the system ffmpeg binaries: emby_server_ffmpeg="/usr/local/bin/ffmpeg" emby_server_ffprobe="/usr/local/bin/ffprobe"4. Restart Emby-Server Hop this helps. Link to comment Share on other sites More sharing options...
Luke 37096 Posted April 15, 2020 Share Posted April 15, 2020 Hi, I think there is a rights problem on FreeBSD/FreeNAS, that aren't correctly set on the Emby-Server shared objects after install. I think it can be consired as a bug. I'm using the last Emby-Server v.4.5.0.6 (Beta) on FreeBSD 12.1-RELEASEp3 amd64, with all packages updated and I followed the official Emby install for FreeBSD (from package). The error No video encoder found for 'h264' was logged when I tried to play a video on any web browser. Note: on Emby mobile app, the error didn't occur. There is a rights problem in /usr/local/lib/emby-server/lib/ as the .so* files needs to have 755 permissions (-rwxrw-r-x): - For owner (root): Read-Write-Execute - For group (wheel): Read-Execute - For others: Read-Execute By default after install, the permissions are set like that and avoids Emby-Server to use the .so* files: -rw-r--r-- root wheel libavutil.so.56.36.100 Here are two fixes (pick one): In a shell on the FreeBSD server, change the permissions in the /usr/local/lib/emby-server/lib directory: chmod 755 /usr/local/lib/emby-server/lib/*.so.* Then, restart Emby-Server. - OR - Based on workaround used on FreeNAS and described in this topic, tell Emby-Server to use the system libraries instead of the ones installed in /usr/local/lib/emby-server/lib/: 1. Open the Emby-Server rc script: edit /usr/local/etc/rc.d/emby-server and replace the line: export LD_LIBRARY_PATH=/usr/local/lib/emby-server/lib by export LD_LIBRARY_PATH=/usr/local/lib 3. Edit the file /etc/rc.conf and add these two lines after emby_server_enable="YES" so that Emby-Server uses the system ffmpeg binaries: emby_server_ffmpeg="/usr/local/bin/ffmpeg" emby_server_ffprobe="/usr/local/bin/ffprobe" 4. Restart Emby-Server Hop this helps. Hi, when did you install this? About 24 hours ago I posted a patched version of the current freebsd beta with some changes. If you install again do you still see the same thing? Link to comment Share on other sites More sharing options...
OnyXxL 1 Posted April 15, 2020 Share Posted April 15, 2020 Hi, when did you install this? About 24 hours ago I posted a patched version of the current freebsd beta with some changes. If you install again do you still see the same thing? Sorry, still the same issue. This is exactly what I've done: # service emby-server stop # pkg delete emby-server # rmuser emby # pkg add -f https://github.com/MediaBrowser/Emby.Releases/releases/download/4.5.0.6/emby-server-freebsd12_4.5.0.6_amd64.txz # sysrc emby_server_enable="YES" # service emby-server start I waited 1 min for the service to start, and tried to play a video: the error occurs. Then, I stopped the emby-server service and changed the rights on the *.so.* files in /usr/local/lib/emby-server/lib: # service emby-server stop # chmod 755 /usr/local/lib/emby-server/lib/*.so.* The video plays. It seems important to start or stop the service from the command line instead of using the web interface. 1 Link to comment Share on other sites More sharing options...
alucryd 216 Posted April 15, 2020 Share Posted April 15, 2020 I used COPYTREE_SHARE instead of COPYTREE_BIN which didn't set exec perms on the libs. Apologies, a fix is on the way. Link to comment Share on other sites More sharing options...
OnyXxL 1 Posted April 15, 2020 Share Posted April 15, 2020 I used COPYTREE_SHARE instead of COPYTREE_BIN which didn't set exec perms on the libs. Apologies, a fix is on the way. Merci alucryd Link to comment Share on other sites More sharing options...
Luke 37096 Posted April 15, 2020 Share Posted April 15, 2020 updated beta builds are uploading now. thanks. 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