Jump to content

Search the Community

Showing results for tags 'permissions'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • General
    • Announcements
    • Emby Premiere Purchase/Subscription Support
    • Feature Requests
    • Tutorials and Guides
  • Emby Server
    • General/Windows
    • Android Server
    • Asustor
    • FreeBSD
    • Linux
    • NetGear ReadyNAS
    • MacOS
    • QNAP
    • Synology
    • TerraMaster NAS
    • Thecus
    • Western Digital
    • DLNA
    • Live TV
  • Emby Apps
    • Amazon Alexa
    • Android Mobile
    • Android TV / Fire TV
    • Emby Theater
    • iOS
    • Apple TV
    • Kodi
    • Raspberry Pi
    • Roku
    • Samsung Smart TV
    • Sony PlayStation
    • LG Smart TV
    • Web App
    • Windows Media Center
    • Plugins
  • Language-specific support
    • Arabic
    • Dutch
    • French
    • German
    • Italian
    • Portuguese
    • Russian
    • Spanish
    • Swedish
  • Community Contributions
    • Ember for Emby
    • Fan Art & Videos
    • Tools and Utilities
    • Web App CSS
  • Other
    • General Discussion
    • Developer API
    • Hardware
    • Media Clubs
    • Legacy Support


  • Emby Blog

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...

Found 28 results

  1. Hi, I’m trying to setup Emby on my Intel NUC. I’m new to OpenSUSE Tumbleweed (though not to Linux) and I’m struggling to get this sorted out. I’ve had Emby running on Mint for sometime now. Goal: to setup & use Emby (Emby software apps is already installed and running) Hurdle: give Emby access to the media files (stored on external HDDs) I have external hard drives formatted as exFAT and NTFS (I’m working on switching them all over to exFAT but not there yet). I currently have my primary username set as the owner of the drives and the group is set to “users” (of which my user was the only member). I used YaST to create a new group called mediaservers and I added Emby, and my user to this group. I thought that way, I could give the Emby access to the media files but not necessarily to any/everything else that my user group could access, if other things were owned by the group “users”. I attempted to change the owner/user group of the HDD partitions to my newly created group, but it’s not working. On one drive, it appeared to work (when I changed it as my own user, not root - I didn’t get any error messages and it appeared to finish the job) but on other drives, I keep getting error messages saying that I don’t have the privileges to change some of the files. When I check the owner/group of those files, it’s showing that it’s owned by my normal user and group - so I don’t understand why I don’t have the privileges to change this or even what’s different about these files because the owner and group appear to be the same as all the other files on the drives. However, even the drive that appeared to work doesn’t actually “save” the new group - it switches right back to the original “Users” group. I even tried to change the group as root. One the drive that appeared to work previously but didn’t “save”, I ended up with the same outcome and got the same error (not enough privileges) on the drive that had that error. Basically, exact same outcome when changing these as root as when changing as my standard user. So, I decided to take a different approach, desperate for something to work and instead of switching everything over to a new group, I added the Emby group to my primary “Users” group that everything already belongs to. I’ve checked ls -l in the terminal to view all the drives and all users/groups/other are correct and all have full rwx status. But, I still have no ability for Emby to even see the media/HDDs. I also used the terminal to look at the groups and see if the Emby group was added to my user group. It was successfully added, as it should have been, but still have no access. I even granted one of the drives network access hoping I might be able to give Emby network access (I know, it’s not elegant or hardly even rational but I’m freaking desperate and nothing that I’ve done that should work, from what I can tell, is actually being successful). On a separate note, I currently have the drives mounted to the default location for external drives in oST/YaST (run/media/user/partition name). I looked into editing /etc/fstab and started by using YaST to do so (as was suggested by some other OpenSUSE users). However, when use YaST to do this, nothing actually changes in the fstab file (I’ve viewed it before/after to check and didn’t leave it opened while doing the edits in YaST to be sure that it was writable). Still no changes. Also, rebooting makes no difference on any of this either. Please know, I’ve searched, I’ve read man pages and blog posts, and wikis etc. I’m just lost & so frustrated. I’m not usually this inept at figuring stuff out. But it’s not even making sense to me now why it’s not working. I’ve added the right groups to the group and the drives are owned by this group that has full access. So, I’m wondering if it’s because of how the disks are are mounted - though admittedly, that doesn’t make much sense either. I’m just desperate. I’ve spent several days on this now and I can’t figure it out. I don’t want to go back to Mint/Ubuntu and the like. But I don’t know why I’m having so many issues and why YaST doesn’t actually seem to be making any of the changes I’m trying to make. It’s the same with the user/group changes. It’s almost like I wasn’t using sudo in YaST but it definitely asked for my password. Please let me know what other info/data you need. Please help. I’m not unwilling to put in the work. I just don’t even know what that work should be at this point since these things that I thought should be successful aren’t. Thanks so much in advance. Sorry for the wall of text. I just wanted to accurately cover what I’ve tried, what I’m attempting to do, and what hasn’t worked.
  2. Hello, I am now running Emby on windows 10 and wondering what user account does Emby use ? I know for linux its Emby user and Ebmy group. I am needing to mount my SMB share drive to windows for Emby to use. What credentials do I need to make available to Emby? Can I run Emby server as a service and specify my own user account / password for the service to run under?
  3. Miljol Dedy

    Bug Report: Group Permissions

    I think I have found a bug in Emby on Synology. On my NAS I have groups instead of direct permissions. So ONLY the group has direct permissions. When I added the Emby user to the group of the folder for the library, I was not able to choose the folder. When selecting it just disappeared (just like when you have no permission). So, when giving the user direct permission it worked like a charm. I guest this is not as it supposed to be...
  4. xsteacy

    Windows sofware raid on linux

    Hi, I need emby to access a Windows formatted raid in linux. I mounted the raid with the ldmtool but I cannot access the files with emby. I gave emby access to the drive with chown but with no luck. I saw lots of posts in Google and here about that but for normal drive... I use Elementary OS 5.1(bases on Ubuntu 18.04) Thank you for any help, all is welcome.
  5. Hi All, Firstly, thank you for any help you are able to provide. I've been trying to get this working for 4 days and it's driving me crazy. I'm new to Linux so please bear with me. I have a AWS instance running Ubuntu 18 and a virtual Google Drive mounted to /gdrive using rclone which works fine. I can navigate through the files in the /gdrive folder using the Linux terminal as expected, great. The issue I'm facing is when I navigate to http://localhost:8096 and chose the "Add media library" option, it cannot see the folder /gdrive. If I then un-mount my google drive from the gdrive folder, emby library can now see the folder and adds it to the library. So in a nutshell, emby can't see the folder /gdrive when rclone is mounted inside it. I have used the following commands to ensure the folder is readable by everyone, and changed to owner to the emby user, but still no luck. chown -R emby:emby /gdrive chown emby /gdrive chmod 777 /gdrive ls -la shows the following drwxrwxrwx 2 emby emby 4096 Dec 6 15:42 gdrive. It must be a permission issue, but I can't think what it could be. If anyone could help, I would be so grateful. Thanks, Kelvin
  6. riothamus

    Fixed my NFS issue

    Background: I hate CIFS/Samba (just kidding, I loathe that technology) so my setup consists of a CentOS server that also acts as an NFS server containing all of my media. Emby runs on a separate Debian server, and it mounts the NFS shares via autofs. I have been wondering why my metadata was not getting saved back to the media directories on my NFS exports. So I got off my lazy arse and actually started to do some real troubleshooting. Initially, my /etc/exports consisted of shares configured like so: /srv/nfs/media,async,no_root_squash) And on my Debian server running Emby, my autofs setup is something like this: auto.misc movies -fstype=nfs,rw NFSSERVER:/srv/nfs/media/Movies tv -fstype=nfs,rw NFSSERVER:/srv/nfs/media/TV Emby never had issues mounting these directories when needed, and reading data from them. But it could not write any metadata back to the shares (.nfo files, posters, etc.). Instead, it would give me "permission denied" messages in the logs, and instead write the metadata files into the /var/lib/emby structure on the Debian server. So first I looked into the UID and GID that Emby was using. On my Debian installation, the ID mappings look like this: uid=998 gid=998 However, I once had Emby running on a separate CentOS installation, and the mappings were different: uid=988 gid=988 No idea as to why, that's just how it was. Initially, I thought that maybe I just needed to add an 'emby' account to my CentOS host, using the same uid/gid pair. But I couldn't do that, as 998 on CentOS was reserved for the 'irc' service, at least on my installation. No big deal, the 'video' group exists on both installations, so I'll make Emby a member of that group on the CentOS installation, as it is already a member of that group under my Debian host. So I set up an 'emby' user on my CentOS server: useradd -s /sbin/nologin -u 998 -G video -M -r emby Neato. Now I go and attempt to "Refresh Metadata" on a movie, and check the share. No metadata is written. Well, damn. I look at the logs, and it still says "permission denied". I double check the uid and gid on both systems. Well, there was a mismatch (because god-forbid we should have our Linux distributions agree on some things). The GID for 'video' was different between both installations: Centos: video gid = 49 Debian: video gid = 44 No worries, I'll change the GID on my CentOS install (making sure that the number would not conflict with another group): sudo groupmod -g 49 video Another attempt at refreshing metadata.... permission denied. Ok, well the GID now matches between both hosts, so let's set up the exports so that the group has ownership of anything written to that directory. This is the typical approach that would be taken under such circumstances, and is typically the final solution to such a problem. sudo chmod g+s /srv/nfs/media Ok, so now things look like this: drwxrwsr-x emby video /srv/nfs/media Another attempt to refresh metadata. Another failure. What the hell? Emby is in the correct group, it has full write access to that location, and the group has ownership of that directory! Just for grins and giggles, I went nuclear: sudo chmod -R 777 /srv/media After another "Refresh Metadata" round, still no dice. How on Earth is this still not working? I started to mess around with ACL's to try and fine-tune the permissions more, even changing the mask value for this export. Nothing was working. I even tried doing a SUID on the directory, but the Linux kernel (smart for security, anyway) will typically ignore such requests. Then I got smarter. I went and looked at man(5) exports. Instead of doing a 'no_root_squash', I could instead do a 'all_squash'. This forces all new entries written via NFS to effectively use the UID and GID of 65534 (known as the anonymous UID and GID). But, I can force the anonymous UID and GID to match the UID and GID for the 'emby' account on my CentOS server. I changed the export to: /srv/nfs/media,async,all_squash,anonuid=998,anongid=49) Re-exported the share: sudo exportfs -a Ran another metadata refresh... SUCCESS! In summary, even though the GID matched, the Emby service was still unable to write to the share as I'm guessing either the Emby service or the NFS service needed the UID to be the effective owner of the directory of where the data was going to be written to. Anyways, maybe this will help someone else out or whatever, but I thought that I would share my experience on this fun exercise in permissions.
  7. kmed27

    Help needed with permissions

    Hi I am trying to get Emby to add my cameras videos automatically but seem to be struggling with permissions. I have created a folder on my nas for my cctv camera and it creates the mp4 files in it via NFS. I have ended up giving full permission to everything and everyone in the synology folder but I keep getting xxxxxx.mp4: Permission denied I have given Embysvr custom permissions with everything ticked take ownership, change permissions etc. I have tried setting the NFS to map users to admin and then tried map to guest. It appears that ffmpeg/ffprobe still don't have permissions? 2019-09-14 09:28:51.145 Info App: [LinuxMount] Checking we can attempt to mount [/volume1/general/Camera/EF00000000018190/motion/20190914/084129-av-1.mp4], Extension = [.mp4], Operating System = [Linux], Executables Available = [True]. 2019-09-14 09:28:51.145 Info App: [LinuxMount] Checking we can attempt to mount [/volume1/general/Camera/EF00000000018190/motion/20190914/084129-av-1.mp4], Extension = [.mp4], Operating System = [Linux], Executables Available = [True]. 2019-09-14 09:28:51.145 Info MediaEncoder: ProcessRun 'extract-image' Execute: /var/packages/EmbyServer/target/ffmpeg/bin/ffmpeg -ss 00:00:10.000 -i file:"/volume1/general/Camera/EF00000000018190/motion/20190914/084129-av-1.mp4" -an -sn -threads 0 -vframes 1 -vf "scale=600:trunc(ow/a/2)*2,thumbnail=24" -f image2 "/var/packages/EmbyServer/target/var/cache/temp/a686c478-2973-4adb-8692-0a65dd9bd0c9.jpg" 2019-09-14 09:28:51.181 Info MediaEncoder: ProcessRun 'extract-image' Started. 2019-09-14 09:28:51.198 Info MediaEncoder: ProcessRun 'extract-image' Process exited with code 1 2019-09-14 09:28:51.682 Error MediaEncoder: ffmpeg image extraction failed for file:"/volume1/general/Camera/EF00000000018190/motion/20190914/084129-av-1.mp4" (output file not found) 2019-09-14 09:28:51.682 Error MediaEncoder: Thumbnail-Filter extraction failed, will attempt standard way. Input: file:"/volume1/general/Camera/EF00000000018190/motion/20190914/084129-av-1.mp4" 2019-09-14 09:28:51.682 Info MediaEncoder: ProcessRun 'extract-image' Execute: /var/packages/EmbyServer/target/ffmpeg/bin/ffmpeg -ss 00:00:10.000 -i file:"/volume1/general/Camera/EF00000000018190/motion/20190914/084129-av-1.mp4" -an -sn -threads 0 -vframes 1 -vf "scale=600:trunc(ow/a/2)*2" -f image2 "/var/packages/EmbyServer/target/var/cache/temp/37c5be2c-b402-41cb-8934-22bc45bf83ae.jpg" 2019-09-14 09:28:51.718 Info MediaEncoder: ProcessRun 'extract-image' Started. 2019-09-14 09:28:51.734 Info MediaEncoder: ProcessRun 'extract-image' Process exited with code 1 2019-09-14 09:28:52.218 Error MediaEncoder: ffmpeg image extraction failed for file:"/volume1/general/Camera/EF00000000018190/motion/20190914/084129-av-1.mp4" (output file not found) 2019-09-14 09:28:52.221 Error App: Error in Screen Grabber *** Error Report *** Version: Command line: /volume1/@appstore/EmbyServer/releases/ -package synology -programdata /var/packages/EmbyServer/target/var -ffmpeg /var/packages/EmbyServer/target/ffmpeg/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/ffmpeg/bin/ffprobe -ffdetect /var/packages/EmbyServer/target/ffmpeg/bin/ffdetect -restartexitcode 121 Operating system: Unix 64-Bit OS: True 64-Bit Process: True User Interactive: True Runtime: file:///volume1/@appstore/EmbyServer/3rdparty/netcore/2.2.1/runtime/System.Private.CoreLib.dll Processor count: 4 Program data path: /var/packages/EmbyServer/target/var Application directory: /volume1/@appstore/EmbyServer/releases/ System.Exception: System.Exception: ffmpeg image extraction failed for file:"/volume1/general/Camera/EF00000000018190/motion/20190914/084129-av-1.mp4" (output file not found) at Emby.Server.MediaEncoding.Encoder.MediaEncoder.ExtractImageInternal(ReadOnlyMemory`1 inputPath, ReadOnlyMemory`1 container, MediaStream videoStream, Nullable`1 streamIndex, Nullable`1 threedFormat, Nullable`1 offset, Boolean useThumbNailFilter, CancellationToken cancellationToken) at Emby.Server.MediaEncoding.Encoder.MediaEncoder.ExtractImage(ReadOnlyMemory`1 inputPath, ReadOnlyMemory`1 container, MediaStream videoStream, Nullable`1 streamIndex, MediaProtocol protocol, Boolean isAudio, Nullable`1 threedFormat, Nullable`1 offset, CancellationToken cancellationToken) at MediaBrowser.Providers.MediaInfo.VideoImageProvider.GetVideoImage(Video item, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.ItemImageProvider.RefreshFromProvider(BaseItem item, IDynamicImageProvider provider, ImageRefreshOptions refreshOptions, TypeOptions savedOptions, LibraryOptions libraryOptions, ICollection`1 downloadedImages, RefreshResult result, CancellationToken cancellationToken) Source: Emby.Server.MediaEncoding TargetSite: Void MoveNext() I can type the ffprobe/ffmpeg from a dos prompt in windows and it works. The only way I can get it to work in emby server is by selecting the folder in synology and RE-applying the permissions to subfolders. After that I can do a re-scan in emby and it adds the file and thumbnail. I have been messing about with permissions etc for days now but not getting anywhere. Can anyone help or give advice on what else to try please. Thanks
  8. rubenmf92

    Emby permissions problem

    Hi @@mastrmind11, @@Q-Droid, I think a have a permissions problem with emby. I´m trying to see two different external hard drives, but I only manage to see one of them. The permissions and owner of the one I can properly see is: drw------- 4 root root 4096 sep 19 19:29 mnt drwxr-xr-x 3 root root 4096 jun 30 11:30 mntSubfolder1 drwxr-sr-x 4 root root 4096 sep 17 20:07 mntSubfolder2 drwxr-sr-x 4 userftp sftponly 4096 ago 25 19:50 Movies As you can see, I'm able to see the files even when emby does not belong to the group or owner. On the contrary, I´m not able to see the files insede the next path: drwxrwxrwx+ 3 user user 4096 sep 21 17:47 media drwxr-xrwx+ 3 user user 4096 sep 21 18:12 user drwxrwxrwx 1 user user 12288 jul 26 16:57 MyBook Any tips about how could I solve the problem?
  9. Hello all. I apologize in advance if this is long and sound nuts. I have just about lost my mind as I have spent last 5 days on Google and these forums trying desperately to get Emby to work. (by the way I have seen the software work on a friend at work and was blown away so I immediately signed up for premiere account. So I know it is possible and will be great once I get it going. Only difference is I want to use Linux and not windows like my friend. Major Kudos to the developer for this awesome software.) To my problem, as stated in title, I'm running Emby on a (at first) headless Ubuntu server 18.04.3 and now due to difficulties I have installed the LXDE desktop environment to help trouble shoot. The install and Emby setup went fine and appears to be working. I can go to a Windows Host and access the Emby control panel and default user screen. The setup I want Emby on this Ubuntu Server ( 4GBs RAM, 250GB SSD) to be able to access and show my library that is going to be hosted (for now) on a Synology NAS (DS713+ 4TBs with latest updates). So far I have only uploaded about 3 movie MKV files to the share on the Synology. This share is "Videos". I was able to add it as a library in the EMby control panel and set up. I believe the issue has to do with permissions and access to the Synology share. (I also tried setting up a temp share on a windows client as well and cannot get Emby to scan that library either, so I am double convinced it is something I am doing wrong on the Linux side of things. Which can be seen in the attached Embylog.txt) On the Synology I have shared the Videos folder and given just about everyone read/write access to it, including an account I created called "emby" with NO password. It is not locked down and access should be wide open. I believe I need to mount this shared folder on the Ubuntu server so the emby account/service running there can access the folder and scan library. I am able to successfully mount the Synology Share folder "Videos" to either the / directory or within my users /home directory. BUT it seems that "ROOT" is always the owner of the mounted directory (both user and group). I cannot seem to find a way to change this? Also when I tried mounting it in the "/home" directory it says emby is owner and emby group, but still no access when I try to read/scan the library from Emby control panel. For example for the Home Mount I did: sudo mount -t cifs -0 username=emby,password=,uid=999,gid=999 // ~/mnt/share Which does mount the directory of the Synology share and allows me to browse it. But when I try scanning my this library from Emby control panel it fails. (the log txt shows //JAYNAS which is the same as IP of Here is another example I tried testing a mount to windows share: sudo mount.cifs // /windows-share -o user=emby This too worked and from linux side I can browse the share, but Emby server cannot scan library. (Here I do see owner as root and group as root so that is probably why, but I don't know how to fix this as "chown" fails on a mount and will not change permissions.) So if you have read this far: Is there any guide or install help that explains when running Emby from a Linux server how to get it to read a library from another Device (like NAS) or computer? Does it need to be a permanent mount in "/etc/fstab" and if so what account or permissions need to be assigned? Is this something specific to Synology Shares? (I dont think so as my Windows efforts have failed as well.) I'm going nuts as I feel there HAS to be a way to do this on Linux and it is probably simple, and I'm missing it. But the mounting of shares and permissions is killing me. ( I do not want to run this on Windows. Seems like there is a lot of windows help online and would be easier, but no. I love Linux and Open source too much and don't wish to go back unless there was no other way. I just currently suck at Linux administration obviously.) Thanks in advance whoever can read all this and possibly help. (Heck if a clear solution is found or commands in Linux that works, I'll go and write up a guide to help the next person here on the forums if allowed.) EmbyLog.txt
  10. I am unable to run on NixOS. Last known running version is I am getting the following error: Aug 14 18:42:31 nixos systemd[1]: Started Emby Media Server. Aug 14 18:42:31 nixos emby[13309]: Unhandled Exception: System.IO.IOException: Read-only file system Aug 14 18:42:31 nixos emby[13309]: at System.IO.FileSystem.CreateDirectory(String fullPath) Aug 14 18:42:31 nixos emby[13309]: at System.IO.Directory.CreateDirectory(String path) Aug 14 18:42:31 nixos emby[13309]: at EmbyServer.Support.ApplicationPathProvider.GetProgramDataPath(String applicationPath, IEnvironmentInfo environment) Aug 14 18:42:31 nixos emby[13309]: at EmbyServer.Support.ApplicationPathProvider.CreateApplicationPaths(String applicationPath, String programDataPath, IEnvironmentInfo environment) Aug 14 18:42:31 nixos emby[13309]: at EmbyServer.Program.Main(String[] args) Aug 14 18:42:31 nixos systemd[1]: emby.service: Main process exited, code=killed, status=6/ABRT Aug 14 18:42:31 nixos systemd[1]: emby.service: Failed with result 'signal'. Aug 14 18:42:31 nixos systemd[1]: emby.service: Service RestartSec=100ms expired, scheduling restart. Aug 14 18:42:31 nixos systemd[1]: emby.service: Scheduled restart job, restart counter is at 4. Aug 14 18:42:31 nixos systemd[1]: Stopped Emby Media Server. Has Emby started requiring write permissions in any other directory than the "-programdata"-directory?
  11. Ok.. I have been able to compile and install a custom ffmpeg with OMX (hardware encoding enabled) https://emby.media/community/index.php?/topic/36227-h264-omx-instead-of-x264/page-2 But when enabled in the Emby server.. it silently fails.. HOWEVER... When I copy/paste the command (for example): ffmpeg -i file:"/media/usb0/TV Shows/SpongeBob SquarePants (1999-2015) [480p] [720p] [HEVC] [x265]/Season 01/[pseudo] S01E02 Reef Blower [480p] [h.265].mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_omx -b:v 2211644 -maxrate 2211644 -bufsize 4423288 -force_key_frames "expr:gte(t,n_forced*3)" -vf "scale=trunc(min(max(iw\,ih*dar)\,1280)/2)*2:trunc(ow/dar/2)*2" -copyts -vsync -1 -codec:a:0 aac -strict experimental -ac 2 -ab 192000 -f segment -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -segment_time 3 -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "/tmp/transcoding-temp/e438c53f7db6725b084b892f6c3028cf.m3u8" -y "/tmp/transcoding-temp/e438c53f7db6725b084b892f6c3028cf%d.ts" and sudo as ROOT ... it DOES work. I am really confused.. tried changing the temp folder... and properly installing the ffmpeg (instead of running it from its source folder where I compiled it). so.. the fact that ROOT can run it.. leads me to think it is a permissions issue.. the funny thing is that without ANY other changes.. by simply switching OMX off in the Emby config.. it WORKS. It is as if the omx extension inside ffmpeg is trying to do something... like accessing hardware or another path.. that user emby does not have access to. It is a near silent failure... (since error 255 really does not mean anything). " 2017-04-25 04:22:01.7063 Info HttpServer: HTTP Response 500 to Time: 28122ms (slow). 2017-04-25 04:22:01.7081 Info App: ffmpeg -i file:"/media/usb0/TV Shows/SpongeBob SquarePants (1999-2015) [480p] [720p] [HEVC] [x265]/Season 01/[pseudo] S01E03 Tea at the Treedome [480p] [h.265].mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_omx -b:v 1122230 -maxrate 1122230 -bufsize 2244460 -force_key_frames "expr:gte(t,n_forced*3)" -vf "scale=trunc(min(max(iw\,ih*dar)\,1280)/2)*2:trunc(ow/dar/2)*2" -copyts -vsync -1 -codec:a:0 aac -strict experimental -ac 2 -ab 192000 -f segment -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -segment_time 3 -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "/var/tmp/transcoding-temp/transcoding-temp/aa6d990b7ad85df3cb9e9a131f4da08d.m3u8" -y "/var/tmp/transcoding-temp/transcoding-temp/aa6d990b7ad85df3cb9e9a131f4da08d%d.ts" 2017-04-25 04:22:02.1496 Info App: FFMpeg exited with code 255 2017-04-25 04:22:02.1643 Info App: returning /var/tmp/transcoding-temp/transcoding-temp/aa6d990b7ad85df3cb9e9a131f4da08d0.ts " And again.. if I take that line to my prompt and run it with sudo.. it WORKS: root@avcenter:/tmp# ffmpeg -i file:"/media/usb0/TV Shows/SpongeBob SquarePants (1999-2015) [480p] [720p] [HEVC] [x265]/Season 01/[pseudo] S01E03 Tea at the Treedome [480p] [h.265].mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_omx -b:v 1122230 -maxrate 1122230 -bufsize 2244460 -force_key_frames "expr:gte(t,n_forced*3)" -vf "scale=trunc(min(max(iw\,ih*dar)\,1280)/2)*2:trunc(ow/dar/2)*2" -copyts -vsync -1 -codec:a:0 aac -strict experimental -ac 2 -ab 192000 -f segment -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -segment_time 3 -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "/var/tmp/transcoding-temp/transcoding-temp/aa6d990b7ad85df3cb9e9a131f4da08d.m3u8" -y "/var/tmp/transcoding-temp/transcoding-temp/aa6d990b7ad85df3cb9e9a131f4da08d%d.ts" ffmpeg version N-85641-gdd49eff Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.9.2 (Raspbian 4.9.2-10) configuration: --enable-gpl --enable-nonfree --enable-mmal --enable-omx --enable-omx-rpi --enable-libmp3lame --enable-libx264 --enable-libvorbis libavutil 55. 61.100 / 55. 61.100 libavcodec 57. 93.100 / 57. 93.100 libavformat 57. 72.101 / 57. 72.101 libavdevice 57. 7.100 / 57. 7.100 libavfilter 6. 86.100 / 6. 86.100 libswscale 4. 7.101 / 4. 7.101 libswresample 2. 8.100 / 2. 8.100 libpostproc 54. 6.100 / 54. 6.100 Input #0, matroska,webm, from 'file:/media/usb0/TV Shows/SpongeBob SquarePants (1999-2015) [480p] [720p] [HEVC] [x265]/Season 01/[pseudo] S01E03 Tea at the Treedome [480p] [h.265].mkv': Metadata: encoder : libebml v1.3.1 + libmatroska v1.4.2 creation_time : 2016-02-06T18:59:27.000000Z Duration: 00:11:03.73, start: 0.000000, bitrate: 561 kb/s Stream #0:0: Video: hevc (Main), yuv420p(tv), 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 1k tbn, 29.97 tbc (default) Metadata: BPS : 469945 BPS-eng : 469945 DURATION : 00:11:03.729000000 DURATION-eng : 00:11:03.729000000 NUMBER_OF_FRAMES: 19892 NUMBER_OF_FRAMES-eng: 19892 NUMBER_OF_BYTES : 38989538 NUMBER_OF_BYTES-eng: 38989538 _STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 64bit _STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to fly') 64bit _STATISTICS_WRITING_DATE_UTC: 2016-02-06 18:59:27 _STATISTICS_WRITING_DATE_UTC-eng: 2016-02-06 18:59:27 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:1(eng): Audio: aac (LC), 48000 Hz, stereo, fltp (default) Metadata: BPS : 88626 BPS-eng : 88626 DURATION : 00:11:03.701000000 DURATION-eng : 00:11:03.701000000 NUMBER_OF_FRAMES: 31111 NUMBER_OF_FRAMES-eng: 31111 NUMBER_OF_BYTES : 7352727 NUMBER_OF_BYTES-eng: 7352727 _STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 64bit _STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to fly') 64bit _STATISTICS_WRITING_DATE_UTC: 2016-02-06 18:59:27 _STATISTICS_WRITING_DATE_UTC-eng: 2016-02-06 18:59:27 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream mapping: Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_omx)) Stream #0:1 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help [h264_omx @ 0x1d336a0] Using OMX.broadcom.video_encode Output #0, segment, to '/var/tmp/transcoding-temp/transcoding-temp/aa6d990b7ad85df3cb9e9a131f4da08d%d.ts': Metadata: encoder : Lavf57.72.101 Stream #0:0: Video: h264 (h264_omx), yuv420p, 704x528 [SAR 1:1 DAR 4:3], q=2-31, 1122 kb/s, 29.97 fps, 90k tbn, 29.97 tbc (default) Metadata: encoder : Lavc57.93.100 h264_omx Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, 192 kb/s (default) Metadata: encoder : Lavc57.93.100 aac frame= 7342 fps= 24 q=-0.0 Lsize=N/A time=00:04:05.16 bitrate=N/A speed=0.793x video:34589kB audio:5817kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown [aac @ 0x1d34aa0] Qavg: 1460.591 Exiting normally, received signal 2. I tried once changing the emby default user to root.. but it did nothing. ANY help would be greatly appreciated.. I feel like I survived the desert to die at the water fountain with a broken handle. TTFN
  12. (I searched for the permissions problem but didn't see it. Sorry if I'm repeating other posts here...) I set up the Emby Theater app on Windows for my mother and was careful to not let her do any admin-type stuff, but she is able to cancel my recordings (any recording - movie, show episode or series)! I double-checked the permissions and double-checked them again. As it stands, she doesn't have permission to make her own recordings, or to delete shows or movies, but she can cancel my recordings. I've asked her to be careful not to do that. Also, if you use the large-format icons for the libraries in My Media, the app only shows about 5 of them across and you can't get to the rest of them (no scroll-bar or scroll button). I thought about using the smaller icons, but they're not as descriptive or appealing, so I just rearranged them so the 5 most common ones I think she would use will appear first... The app version is, and she's running Windows 10 Home (with all the latest patches) Thanks for your help...
  13. binerf

    Sync to any device

    Hi all, I'm using Emby to share library to family but I was surprised when I discovered that a user can sync any file from its authorized libraries to any device previosuly connected to Emby even if this user has never logged this device (even if this device belongs to another guy). How is it possible to limit devices to user's devices only that Emby admin has no knowledge of ?
  14. I have a couple of directories that are hidden trash folders, as in the output below: 2018-07-30 16:05:29.895 Error LibraryMonitor: Error in Directory watcher for: /misc/movies3 *** Error Report *** Version: Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-rpm_{version}_x86_64.rpm Operating system: Unix 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 4 Program data path: /var/lib/emby Application directory: /opt/emby-server/system System.UnauthorizedAccessException: Access to the path '/misc/movies3/.Trash-1000' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- System.UnauthorizedAccessException No Stack Trace Available InnerException: System.IO.IOException System.IO.IOException: Permission denied Will the LibraryMonitor just stop or does it continue on? It's no big deal for me to remove these directories, but I'm curious if this would cause a problem or if the LibraryMonitor will just keep on running even if it runs into issues such as this.
  15. vl1969

    a few quick questions on Emby use.

    Hi everyone. I have a home server running Proxmox VE 4.5 on ZFS the server has several ZFS pools where I store my data. i.e. custom user pools not connected to Proxmox except that the main machine hosts the disks. I want to create a VM container (LXC) where I will run Emby and other apps. Proxmox have a number of templates from TurnKey that I can use to create my container(s). I have tried the turnkey Mediaserver which is a TurnKey fileserver plus Emby. it works for the most part and works nicely but as I tried to setup additional things on it I broke the config and it has issues now so i want to rebuild it. in order to manage my existing data and media I bind-mount my data pools into container like tank0/share0 ==> mediaserver /mnt/share0 and tank1/share1 ==> mediaserver /mnt/share1 so my questions are : #1. the TKMS has Emby configured that all media folders are in "/srv/storage/ " like so @mfs /srv/storage# ls -l total 7 drwxrwxr-x 2 emby users 2 Jul 18 2017 Movies drwxrwxr-x 2 emby users 2 Jul 18 2017 Music drwxrwxr-x 2 emby users 2 Jul 18 2017 Photos -rw-r--r-- 1 root root 79 Jul 18 2017 README.txt drwxrwxr-x 2 emby users 2 Jul 18 2017 TVShows "/srv/storage/ " is the default location that is also SAMBA share and WebDav share. standard config for TK fileserver the medisserver is based on. now is it possible to move this folders into my storage? that is I have a bind-mount in /mnt/share1 that has folder media. I want to locally(within the VM) bind-mount that into "/srv/storage/media" and move all the folders inside. can I ? and How? #2. if I want to setup an NZBGet in separate VM and bind-mount the same pools there, how can I setup user NZBGet will use to run so when it downloads something it can be moved into appropriate folder and Emby will be able to see the new files and use it? permissions issue was one of the more difficult issues with this setup so far. the current config, which I moved the folders with mv command and reconfigured Emby to use the new locations, sees some movies but not one I downloaded with NZBGet or Transmission. it ignores any of my existing pictures and home videos that I copied with cp or rsynk from my local lib. not user how to set permissions on those properly. please point me to some how-to and help that will work. PS>> I already did the general search on many of the topics here and read the pin on this forum about file/folder permission. I will be setting up new container for test using that info but maybe there is something more I need/want to know. PPS>> maybe some one can chime in on the best setup for my needs as well. I want to have a basic VM server (already setup with Proxmox) that will run some special VMs. but main config is a 1. File Server 2. Emby 3. Transmission for torrents (!! I do not do much torrenting or downloads but good to have when needed ) 4. CoachPotato (again not much downloading but want to use that to automate organization of my existing collection) 5. SickRage 6. Lazy Librarian 7 Calibre Server 8. MythTV or what ever to record LiveTV in the future. I do not have the tuner now and it may never come to live but plans are plans. the question here is how to set all this apps so they will play well together nicely. should I run each in it's own LXC to which I mount-bind my storage? if yes should I / can I create/clone Emby user to all of this containers and use that to run the services? if yes How? what are my options here? thanks Vlad.
  16. I can get Emby Server to install ok on Raspbian. I can load it up and everything works, except that it can't read my storage device. Raspbian file explorer sees the storage and I can view the movies, but when I type that path to add to my library, it says it's not valid. I have zero experience here. I'm just googling what I can, but a lot of it is over my head. Can someone please help me out with a ELI5? Thank you!
  17. Emby WebUI - Please create a general device that represents all web browsers At present, its impossible to restrict users to only the WebUI without granting permissions to all devices. It would be good to have a device in devices, that represents the webUI or all web browsers in general. This way permission can be granted to users without granting permission to all devices. This would serve as a solution to allow only downloading (no streaming, no transcoding, no direct play, etc) Only browse library and file download.
  18. It would be really nice if there were more granular permissions per user. Right now you can only give a user broad delete permissions. I don't want users deleting anything except for TV Recordings (and ideally only ones that they owned or recorded unless the user had admin delete permissions or something). Right now I have only an admin account that is used to delete media and have to periodically go through and clean out recorded TV because users can't delete themselves.
  19. bric

    File permissions again

    Failure setting up Emby (my first time) I have a hard drive in my 'server' that contains all my media. It is formatted as NTFS. I have it mounted from the fstab. listing of files/directories show as ... -rwxr-xr-x 1 bric bric 110914782 Jun 16 21:11 Finding Dory-trailer.mov drwxr-xr-x 1 bric bric 4096 Jul 30 15:09 Home Video I added emby to the group owning the files on that drive. So the groups command returns: emby: emby bric When I try to add the media library (in the web interface) either with /path/to/mounted/drive/Movies or // or //MyServer/Movies I get this error: More info needed? Suggestions about what to try next?
  20. Long-ish question, *hopefully* easy answer: I recently upgraded from several external hard drives to a QNAP NAS. After testing the QNAP Emby app server performance, I preferred the old Windows-based server overall and thus the new QNAP is purely operating as the NAS, not the server (hence this forum). That being said... Similar to a question I had awhile back here, after changing my library media folders to the new NAS folders, I am again having difficulty saving metadata into local media folders (rather than in a generic "metadata" folder in the server files). When I add new content, the metadata is successfully being saved somewhere else (unknown location, log attached, tried to refresh "The Accountant" movie metadata). Not only do I instead want the metadata saved in the media folders, but wherever it's actually being saved is seemingly eating up scarce storage on my OS/server hard drive (small SSD). According to QNAP, I have enabled permissions for 'everyone' (see attached Capture #1) for my media content. Windows, however, is much more challenging as to confirming these network folder permissions. Unlike when using my external hard drives and simply assigning 'everyone' full R/W permissions through Windows Explorer and then applying these changes, Windows won't let me change these same settings for the QNAP folders, apparently giving full deference to QNAP's security settings and not allowing me to make any changes within Windows; I have navigated everywhere in the Windows folder permission settings and any changes I try simply won't stick, instead reverting to QNAP's overriding "special permissions" (see Capture #2). How do I get metadata to save directly in the media folders of the NAS? Thanks in advance for any input! server-63624863086.txt
  21. .17 I have permissions turned off for most of my users for any type of Live TV functionality. Users that don't have permissions are still seeing the ON NOW section on home screen of the app and regardless of their permissions they can access and play any live tv feed featured in ON NOW.
  22. I've just setup an fresh OpenMediaVault Install with emby enabled. So far everything went without problems, but now I'm stuck. Embys Library Scan is not working at all - it doesn't even try. If I click the scan button the progress bar is visible for just a fraction of a second - the log shows "scan completed on 0 minutes and 0 seconds" and of cause no movies show up in my library. I've already tried different folders, reinstalling emby and resetting the permissions of the media-folder. No luck so far... Permissions for the directory are as follows drwxrwsr-x 2 root users 4096 Jan 25 01:11 Movies Permissions for the Files -rw-rw-r-- 1 root users 11000000842 Jan 8 17:25 Captain Phillips (2013).mkv I'm using OpenMediaVault 2.1 with their current emby plugin (Emby Version Any idea what might be the problem? Log.txt
  23. Andreas.Emby


    How do I set permissions correctly?
  24. bmcclure937

    Deleting Media from Kodi

    All - I currently have my FreeNAS running Emby Media Server. I have the permissions set so Kodi only has read access to my media shares. Does anyone use the functionality within Kodi so you can delete media from your server via the context menu? I am considering changing my permissions to the media share to Emby is able to delete media items. I was just curious to hear how others used this functionality. The only way I can currently delete media is either mapping the SMB share to my PC with an authenticated user or logging in via SSH and removing files. Thanks
  25. Hi guys... I was wondering if there's any plans to make users on a server have the ability to set per library permissions. For example on my Music folder I might want some users to be able to stream/listen to the library, but not be able to download them. Others I might want the other way around. But at the same time. I may want them to not be able to encode/stream video to their devices but instead download the full file and play it locally. (Guests for example who are not in my network.) Where as another user I might prefer that they have the ability to stream or download video but have no download access to a single library. Basically I would like to see/have per library permissions for each user if possible. (Maybe adding group permissions might make more sense if you have to go down this road?) Hope that makes sense? If it needs further clarification or a flow chart or something let me know. Thanks! -Phantom
  • Create New...