dcook 299 Posted March 1, 2017 Posted March 1, 2017 (edited) I am having issues with permissions: My Media has read access for everyone: 511301 -rw-r--r--. 1 dcook dcook 523572033 Nov 16 2015 Game of Thrones - 1x01 - Winter Is Coming.mkv Emby is running as user emby I am getting permisson denied in the ffmpeg log when trying to play: [dcook@[member="emby1"] logs]$ cat ffmpeg-transcode-ed1275c8-c702-4859-baf0-a61bc2f86b17.txt http://ip address:8096/emby/videos/06ea2f9bc97372785f1b73237e19e565/stream.mkv?DeviceId=2ce847561ba3f250&MediaSourceId=06ea2f9bc97372785f1b73237e19e565&VideoCodec=h264&AudioCodec=mp3,aac,ac3&AudioStreamIndex=1&VideoBitrate=64000&AudioBitrate=128000&Level=41&Profile=high&PlaySessionId=1b547832b577497094ceab3127a65927&api_key=a4f382316f60496c86a5d6908e647155&CopyTimestamps=false&TranscodingMaxAudioChannels=2&EnableSubtitlesInManifest=false&Tag=c079a5cdadf12b1a6b7e14bc94516309&RequireAvc=false {"Protocol":"File","Id":"06ea2f9bc97372785f1b73237e19e565","Path":"/emby/cloud/media/series/Game of Thrones/Season 1/Game of Thrones - 1x01 - Winter Is Coming.mkv","Type":"Default","Container":"mkv","Name":"720P/H264/AAC","IsRemote":false,"ETag":"c079a5cdadf12b1a6b7e14bc94516309","RunTimeTicks":36971831296,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","TimeBase":"1/1000","CodecTimeBase":"1001/48000","NalLengthSize":"4","IsInterlaced":false,"IsAVC":true,"BitRate":1132910,"BitDepth":8,"RefFrames":5,"IsDefault":true,"IsForced":false,"Height":720,"Width":1280,"AverageFrameRate":23.97602,"RealFrameRate":23.97602,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":40,"IsAnamorphic":false},{"Codec":"aac","TimeBase":"1/1000","CodecTimeBase":"1/48000","DisplayTitle":"AAC stereo Default","IsInterlaced":false,"ChannelLayout":"stereo","Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"HE-AAC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":1132910,"RequiredHttpHeaders":{}} /var/lib/emby-server/ffmpeg/20160215/ffmpeg -f matroska -codec:0 h264 -codec:1 aac -i file:"/emby/cloud/media/series/Game of Thrones/Season 1/Game of Thrones - 1x01 - Winter Is Coming.mkv" -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -force_key_frames "expr:gte(t,n_forced*5)" -vf "scale=trunc(min(max(iw\,ih*dar)\,426)/2)*2:trunc(ow/dar/2)*2" -pix_fmt yuv420p -preset superfast -crf 23 -maxrate 64000 -bufsize 128000 -vsync -1 -profile:v high -level 4.1 -x264opts:0 subme=0:rc_lookahead=10:me_range=4:me=dia:no_chroma_me:8x8dct=0:partitions=none -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 128000 -af "aresample=async=1" -y "/emby/temp/transcoding-temp/e04da674cc90c602fb3047baa5d84da2.mkv" ffmpeg version N-52954-g295de3e-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.3.1 (Debian 5.3.1-8) 20160205 configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --enable-librtmp --enable-libmfx --cc=gcc libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 file:/emby/cloud/media/series/Game of Thrones/Season 1/Game of Thrones - 1x01 - Winter Is Coming.mkv: Permission denied [dcook@[member="emby1"] logs]$ What am I missing here? Edited March 1, 2017 by dcook
mastrmind11 722 Posted March 2, 2017 Posted March 2, 2017 I am having issues with permissions: My Media has read access for everyone: 511301 -rw-r--r--. 1 dcook dcook 523572033 Nov 16 2015 Game of Thrones - 1x01 - Winter Is Coming.mkv Emby is running as user emby I am getting permisson denied in the ffmpeg log when trying to play: [dcook@[member="emby1"] logs]$ cat ffmpeg-transcode-ed1275c8-c702-4859-baf0-a61bc2f86b17.txt http://ip address:8096/emby/videos/06ea2f9bc97372785f1b73237e19e565/stream.mkv?DeviceId=2ce847561ba3f250&MediaSourceId=06ea2f9bc97372785f1b73237e19e565&VideoCodec=h264&AudioCodec=mp3,aac,ac3&AudioStreamIndex=1&VideoBitrate=64000&AudioBitrate=128000&Level=41&Profile=high&PlaySessionId=1b547832b577497094ceab3127a65927&api_key=a4f382316f60496c86a5d6908e647155&CopyTimestamps=false&TranscodingMaxAudioChannels=2&EnableSubtitlesInManifest=false&Tag=c079a5cdadf12b1a6b7e14bc94516309&RequireAvc=false {"Protocol":"File","Id":"06ea2f9bc97372785f1b73237e19e565","Path":"/emby/cloud/media/series/Game of Thrones/Season 1/Game of Thrones - 1x01 - Winter Is Coming.mkv","Type":"Default","Container":"mkv","Name":"720P/H264/AAC","IsRemote":false,"ETag":"c079a5cdadf12b1a6b7e14bc94516309","RunTimeTicks":36971831296,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","TimeBase":"1/1000","CodecTimeBase":"1001/48000","NalLengthSize":"4","IsInterlaced":false,"IsAVC":true,"BitRate":1132910,"BitDepth":8,"RefFrames":5,"IsDefault":true,"IsForced":false,"Height":720,"Width":1280,"AverageFrameRate":23.97602,"RealFrameRate":23.97602,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":40,"IsAnamorphic":false},{"Codec":"aac","TimeBase":"1/1000","CodecTimeBase":"1/48000","DisplayTitle":"AAC stereo Default","IsInterlaced":false,"ChannelLayout":"stereo","Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"HE-AAC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":1132910,"RequiredHttpHeaders":{}} /var/lib/emby-server/ffmpeg/20160215/ffmpeg -f matroska -codec:0 h264 -codec:1 aac -i file:"/emby/cloud/media/series/Game of Thrones/Season 1/Game of Thrones - 1x01 - Winter Is Coming.mkv" -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -force_key_frames "expr:gte(t,n_forced*5)" -vf "scale=trunc(min(max(iw\,ih*dar)\,426)/2)*2:trunc(ow/dar/2)*2" -pix_fmt yuv420p -preset superfast -crf 23 -maxrate 64000 -bufsize 128000 -vsync -1 -profile:v high -level 4.1 -x264opts:0 subme=0:rc_lookahead=10:me_range=4:me=dia:no_chroma_me:8x8dct=0:partitions=none -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 128000 -af "aresample=async=1" -y "/emby/temp/transcoding-temp/e04da674cc90c602fb3047baa5d84da2.mkv" ffmpeg version N-52954-g295de3e-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.3.1 (Debian 5.3.1-8) 20160205 configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --enable-librtmp --enable-libmfx --cc=gcc libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 file:/emby/cloud/media/series/Game of Thrones/Season 1/Game of Thrones - 1x01 - Winter Is Coming.mkv: Permission denied [dcook@[member="emby1"] logs]$ What am I missing here? What happens if you chmod 777 on the file? Or chown emby:emby?
dcook 299 Posted March 2, 2017 Author Posted March 2, 2017 777 would give all users write permissions I should not need to do that. Read permission should be enough What happens if you chmod 777 on the file? Or chown emby:emby?
mastrmind11 722 Posted March 2, 2017 Posted March 2, 2017 777 would give all users write permissions I should not need to do that. Read permission should be enough I know what it means, and you shouldn't have to, but it would certainly rule out file permission as one of the problems. What about the chown test?
dcook 299 Posted March 2, 2017 Author Posted March 2, 2017 Changing ownership to emby user is the same as giving 777, it means that the emby user would be able to write or delete the files, which I don't want. I don't want the account that is running emby to be able to delete or modify my media. This is in case there is a security issue or bug in Emby and for example a library is deleted and it also deletes my actual media files. On my Windows system I setup a read only share and that is what Emby used to access the media, so I know that Emby does not require write access, read only is enough. However on Linux I am getting the permission denied messages. I know what it means, and you shouldn't have to, but it would certainly rule out file permission as one of the problems. What about the chown test?
glastis 1 Posted August 16, 2018 Posted August 16, 2018 (edited) If anyone is still having this problem and don't want to try an useless temporary 777 file permissions, you should try that: Restoring directories default permissions: find /home/user/emby_media -type d -exec chmod 755 {} \; Restoring files default permissions: find /home/user/emby_media -type f -exec chmod 644 {} \; For reasons, directories needs +x rights. Edited August 16, 2018 by glastis 1
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