Jump to content

Search the Community

Showing results for tags 'linux'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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
    • Android TV / Fire TV
    • Windows & Xbox
    • Apple iOS / macOS
    • Apple TV
    • Kodi
    • LG Smart TV
    • Linux & Raspberry Pi
    • Roku
    • Samsung Smart TV
    • Sony PlayStation
    • 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
  • Testing Area
    • WMC UI (Beta)
  • Other
    • Non-Emby General Discussion
    • Developer API
    • Hardware
    • Media Clubs

Blogs

  • Emby Blog

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

  1. eeeeeesy

    Unable to setup TVHeadEnd

    what am i supposed to use to get the tvheadend epg to work in emby? none of the channels are showing up
  2. Hi All, so, I have Emby for several years, after I head Plex for some time before then. In another thread here someone asked me if I used Sonarr and Radarr... I had no idea then what they were. So I first peeked at it, then looked at it, then I felt overwhelmed by what it all requires. I sidelined it for several months, before I thought to try it. Again, I was dumb-struck by what it all requires (indexers for example). I did have Emby, and I like that it recognized my movies even though my naming scheme was nothing like what Emby recommends (> Movies , > TV-Series). Mine is, more or less, movies/<year YYYY>/<movie name>.(<year YYYY>).some.other.info.like.res.or.language/<movie name>.some.other.info.like.res.or.language.<ext> TV shows are much more in disarray. So I installed Radarr, after I had decided to use debian as base-OS for the VM. And I thought Radarr would help me with my movies. Well, I had to correct my opinion really quick, I don't think it does help. Not with movies I already have. It might help with new movies, but I does have to test that. Not to get stuck on a specific problem, I added Sonarr. Then I understood, I will not get very far without an Indexer. So, I looked into NZBHydra2. I did like the looks of it, but then I decided to use Prowlarr nonetheless (at this point I purged this VM and started a new one from scratch, start from square one). I was lucky to get into drunkenslug for free, added Binsearch (free), looking at nzbplanet right now. I added Whisparr as last one of the Servarr package, I am not sure I need the others. I then added a headless qBit, and I started using it, just to test it. After some issues with it at first, I am quite fond of it now. As part of my DLNA troubleshooting, I had set up another VM along the way with Jellyfin that serves the same movies as Emby. Lastly, I added SABnzb. I had an Eweka subscription for some time, but it was dormant. I have to say I am used to download usenet article by article, and have some windows tool assemble it all. If the tool fails, I just kick the entire download. But I basically did not use nzb-files. That was years ago. (I first downloaded from the usenet in the first haf of the nineties,) Planned, but not implemented, it JD2. I have to say that I am not done at all. Populating Prowlarr with indexers helped to get all the other populated as well. So, without adding any connections or dataflow, this is my setup: I must admit I have not used the whole "Arr-"chitecture yet. Not once. I usually look at what is "hot" and "Top" on the trackers, I look at IMDB for similar movies to one I like or movies from an actor I like. How do I get Radarr or Sonarr to match my path-Setup: Radarr: Year/Movie Name (Year)/Movie file.ext Sonarr: Series Name/Season #/Series Name E##S##.<episode name if known>.ext Whisparr: <Genre or Keyword>/Movie Name (Year)/Movie file.ext How do I get Radarr to help my identify what is hot on a tracker? How do I get qBit not to lose track of where the data goes after it was completely downloaded? How do I get Sonarr prefer full seasons over single episodes? Has anyone else here a similar software-setup and perfected all the settings and the "inter-software-communication"? Can you help me with my issues? I would love to hear from others! Cheers, Roodee
  3. dylan62370

    LDAP extension Error

    Hello, I currently have a Windows server that runs an Active Directory (AD). All my Linux services (Gitlab, Grafana, etc...) are connected to my AD. It works perfectly, but I can't connect my Emby to it. I installed the LDAP extension and configured everything and when I choose the user it says "Incorrect username or password. Try again." It doesn't even load in 2 seconds it shows this is if I change the IP it's the same.... However if I ping the LDAP no problem it pings so it reaches the LDAP.
  4. Several times it has happened that I have done something (like moving my library around) that has caused items to be removed from my playlists to the point that it bugged me enough to write the following BASH script. What this does is to write out a VERY PRIMITIVE html file for each playlist on the server that the defined user has access to. It also creates an even more PRIMITIVE index file, with the current timestamp as its file name, with each of the playlists hyperlinked in it. In each playlist file, the name of each item on the list is written, and it's hyperlinked to the page on the Emby server for that item. Makes it real handy when you want more info about a particular item on the playlist. This also includes the overview of each item which solves another aggravation of mine which is not being able to see the overview in the playlist unless you go in and edit the metadata. I would point out, the script has to run under an OS that supports BASH and other common linux utilities, HOWEVER, the server can run on any system Emby supports. I'm running this on my linux machine to access the playlists from my Windows server. If you don't have such an OS running, I highly recommend, at the very least, getting cygwin, but preferably grab the FREE Windows version of VM Player and install a linux distro on it (I personally prefer Debian <g>). Also, this script relies heavily on JQ (https://stedolan.github.io/jq/download/) to parse the JSON data from the Emby server so if you don't have it installed already, you will need to do that first. Other than that, this script is VERY simple. Just set the 4 variables at the top and your good to go. If you use this, please let me know. Down the road, I might add more to it if there's a desire for it. One thought I'm toying with now is to zip up a week's worth of backups for archival reasons. Of course, if I did this, would likely also just add the option of deleting old ones, but we'll see down the road. As a final note, I've only tried this on playlists with movies and TV shows in them. No idea how it would handle with music or other such lists. save_playlist.sh
  5. mike3821

    I Lost My Guide

    Is there something wrong with Emby guide sources? Woke up this morning and I’m not able to pull Emby guide data… I noticed there was an Emby guide app update pushed yesterday too.
  6. Film Playlist

    I Lost My Guide

    I removed a playlist from my provider (unrelated to the stations you see below), the next thing I know, I can't update my EPG. Despite everything still being mapped, I can't get my channel information restored. All that hard work. I even replaced a backup of my old TVxml file. I'm using a Linux seedbox (Ubuntu 20.04) with my Roku. I sent the logs through my Roku. I don't know if you guys need me to send my logs from my seedbox; but I can't on this public forum, as the logs contain my IP address as well as my seedbox DNS.
  7. Hi, This is somewhat hard to tackle and to get 100% certainty, but I have a feeling EMBY hangs a complete linux node running on Docker. Setup: - Intel NUC, 16GB, 512GB SSD, CPU i5 - OS latest Alpine Linux distribution - Emby (latest production version) running in Docker (tried official image, tried Linuxserver.io image) - Running in a headless setup Problem: Runnng Emby in the setup (see above), keeps hanging the Intel NUC so that the NUC in complete unresponsive. No SSH, no Network responses. The server doesn't crash when: 1. Emby container is stopped (tested this for days) 2. Emby container is running but NO ONE connects (tested this for days) The server does crash when: People are watching video and after a while the server just stops responding. (within the same evening) I did memory tests, CPU tests on the NUC, but the hardware seems fine. Question: Can you help and point out ways to investigate this some more??
  8. Our server is an Apollo server where HW's are Intel XEON E5-2620 32 core processor 128GB Ram 150TB of Raid 5 Storage. 16gigs swap mem 10gbps throughput Os is running on Latest version of Linux and Emby version is 4.7.10.0 The main issue occurs at the peak hour when 20-30 starts streaming at the same time. Transcoding is enabled on our server but the contents are maintained so that the transcoding is minimal. This last 30 day's data on PlayMethod But at peak time CPU usage racks up to 90-95% where ram is used for only around 20% of the whole lot. This is causing serious lagging even with just loading the front page. I know transcoding consumes a lot of reso urces but wasn't this build is relatively okay for handling this much of data? What should we do? Here is the log file. embyserver.txt Should we add a GPU? What is the root issue here? Thank you. embyserver.txt
  9. This is a follow up to a previous thread i made, which seemed solved at the time, but the solution didn't survive a reboot for whatever reason. To recap, plus the current state of affairs: Created user/group emby:emby; uid=1005,gid=1005 Multiple internal HDDs. In this case, two for Movies and two for TV shows. Four total. Each HDD titled something obvious - Movies, Movies2, TV, TV2, and mounted to a corresponding location. Each mounted via fstab to a permanent home in /emby This folder, all subfolders, all future subfolders, and all files & future files owned by emby:emby with full rwx permission. Other users/groups also given access via setfacl command, and by adding them to the emby group. Emby can access the folders. Can scan them. Can build a library out of it all. But it absolutely will not, no matter what I do, delete a file if I so choose, always citing lack of write access to the media folder (picture). Interestingly, I have sickchill running as a service, and it is able to freely read/write/remove/replace files as a member of its group. Ditto for my normal user account. Terminal output: $ id emby uid=1005(emby) gid=1005(emby) groups=1005(emby),984(users),1004(media) $ id sickchill uid=959(sickchill) gid=959(sickchill) groups=959(sickchill),1004(media),1005(emby) $ ps aux | grep emby emby 89410 10.7 2.0 5278848 339104 ? Ssl 12:10 0:19 dotnet /usr/lib/emby-server/EmbyServer.dll -programdata /var/lib/emby -ffdetect /usr/bin/ffdetect-emby -ffmpeg /usr/bin/ffmpeg-emby -ffprobe /usr/bin/ffprobe-emby -restartexitcode 3 $ stat -c "%u %g" /proc/$pid/89410 1005 1005 $ pwd /emby/Videos $ ls -la total 148 drwxrwsrwx+ 6 emby emby 4096 Nov 27 15:52 . drwxrwsrwx+ 3 emby emby 4096 Nov 27 12:24 .. drwxrwsrwx+ 917 emby emby 73728 Dec 4 11:41 Movies drwxrwsrwx+ 349 emby emby 36864 Nov 18 13:34 Movies2 drwxrwsrwx+ 49 emby emby 4096 Nov 17 06:44 TV drwxrwsrwx+ 38 emby emby 4096 Nov 27 03:28 TV2 $ getfacl . # file: . # owner: emby # group: emby # flags: -s- user::rwx user:sickchill:rwx user:zero:rwx group::rwx group:sickchill:rwx group:zero:rwx group:media:rwx group:emby:rwx mask::rwx other::rwx default:user::rwx default:user:emby:rwx default:group::rwx default:mask::rwx default:other::rwx Anybody in the whole wide world should be able to waltz right into that folder and do as they please. Relevant section of embyserver.txt (with specific filename for this instance redacted): 2022-12-04 12:32:06.535 Info App: Removing item from database, Type: Movie, Name: NAME_OF_MOVIE, Path: /emby/Videos/Movies/NAME_OF_MOVIE/NAME_OF_MOVIE.mp4, Id: 142573 2022-12-04 12:32:06.535 Info App: Deleting directory /emby/Videos/Movies/NAME_OF_MOVIE 2022-12-04 12:32:06.538 Error Server: Error processing request *** Error Report *** Version: 4.7.9.0 Command line: /usr/lib/emby-server/EmbyServer.dll -programdata /var/lib/emby -ffdetect /usr/bin/ffdetect-emby -ffmpeg /usr/bin/ffmpeg-emby -ffprobe /usr/bin/ffprobe-emby -restartexitcode 3 Operating system: Linux version 5.15.78-1-MANJARO (builduser@fv-az296-38) (gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39.0) #1 SMP PREEMPT Thu Nov 10 20:50:09 UTC 2022 Framework: .NET 6.0.11 OS/Process: x64/x64 Runtime: usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.11/System.Private.CoreLib.dll Processor count: 6 Data path: /var/lib/emby Application path: /usr/lib/emby-server System.IO.IOException: System.IO.IOException: Access to the path '/emby/Videos/Movies/NAME_OF_MOVIE' is denied. at System.IO.FileSystem.RemoveDirectoryInternal(DirectoryInfo directory, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound) at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive) at System.IO.Directory.Delete(String path, Boolean recursive) at Emby.Server.Implementations.IO.ManagedFileSystem.DeleteDirectoryInternal(String path, Boolean recursive, Boolean sendToRecycleBin) at Emby.Server.Implementations.IO.ManagedFileSystem.DeleteDirectory(String path, Boolean recursive, Boolean sendToRecycleBin) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, Boolean notifyParentItem) at Emby.Api.Library.LibraryService.Any(DeleteItems request) at Emby.Api.Library.LibraryService.Any(DeleteItem request) at Emby.Server.Implementations.Services.ServiceController.<>c__DisplayClass6_0.<VoidActionDelegate>b__0(Object service, Object request) at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Void RemoveDirectoryInternal(System.IO.DirectoryInfo, Boolean, Boolean) Relevant fstab: /dev/disk/by-uuid/76d31525-0484-4678-a193-7846fa49eb8c /emby/Videos/TV ext4 auto,user,rw,sync,uid=1005,gid=1005 0 0 /dev/disk/by-uuid/900dfc5d-63cf-4ca7-bd9c-7108e23013b1 /emby/Videos/Movies2 ext4 auto,user,rw,sync,uid=1005,gid=1005 0 0 /dev/disk/by-uuid/1755aee9-6201-4627-a343-b293c7ce51e8 /emby/Videos/TV2 ext4 auto,user,rw,sync,uid=1005,gid=1005 0 0 /dev/disk/by-uuid/99734e42-5010-4603-b559-5cb414df920f /emby/Videos/Movies ext4 auto,user,rw,sync,uid=1005,gid=1005 0 0 The only thing I can think of as a possibility is that all these HDD mounts are also NFS exports, and bound to corresponding locations in /srv/nfs. But emby:emby also owns those and the facl is identical to what's posted above. Can somebody tell me what I'm doing wrong here? I just want to be able to delete something if I don't like it without having to SSH and/or RDP into the computer this is all running on.
  10. Hi, I'm running my Emby server on Manjaro Linux. The PC has a number of internal HDDs that are mounted at startup, and also shared via NFS. Each of the four HDDs contains one half of my Movies and TV libraries. I created a user and group 'media', and added my user, Emby, and one other service to the group. I set all the mount points to be owned by my user and the media group. Emby is able to read all the libraries, but can't delete something if I so choose. Interestingly, the other service has full rw permission. The folders are mounted in a folder /data, again owned by my user and the media group. I've used setfacl to allow my user, emby, and the other service to specifically create and delete files. Output of ls -l    /data  ls -l  ✔  zero@zero-desktop total 136 drwxrwsrwx+ 910 zero media 73728 Nov 15 15:50 Movies drwxrwsrwx+ 349 zero media 36864 Nov 18 13:34 Movies2 drwxrwsrwx+ 6 zero zero 4096 Nov 10 05:27 Storage drwxrwsrwx+ 49 zero media 4096 Nov 17 06:44 TV drwxrwsrwx+ 35 zero media 4096 Nov 13 17:22 TV2 Not sure what other info to provide. I've actually tried setting the owner as emby:emby, and it didn't make a difference. I've also tried other variations involving my user, my group, the 'media' user and group, the other service's user and group, each time followed by either restarting emby-server.service, or an outright system reboot. Still, when I try and delete a file from within the Emby interface, I get an error about not having write permission. How to I get Emby write access, despite the fact that it should already have it?
  11. Emby Server 4.7.8.0 running in Docker on Unraid 6.11.1 via official Embyserver Docker image. Not sure why 4.7.8.0 is returned for :latest as there are newer version tagged (4.8.0.12 for example) but hopefully that's not important for this issue. Issue is ffmpeg is segfaulting immediately when transcoding TrueHD 7.1 audio . Log line from syslog: Oct 16 22:23:41 GServer kernel: ffmpeg[32298]: segfault at fffffffffffff100 ip 0000147f2aedf5b8 sp 0000147f27e04610 error 5 in libavcodec.so.59.21.100[147f2ab17000+18c6000] Oct 16 22:23:41 GServer kernel: Code: 55 1a 48 89 08 48 83 c0 08 48 39 c2 75 f4 e9 17 f8 ff ff 0f 1f 80 00 00 00 00 48 8b 44 24 58 48 8b b4 24 48 83 e0 fe 48 29 c6 <f3> 0f 6f 0e 0f 11 8c 24 92 01 00 00 e9 e6 f7 ff ff 0f 1f 80 00 00 Interestingly, this only occurs if the video stream is 4k HEVC HDR10 (playing direct stream so not transcoded). Segfault doesn't happen with standard 4k HEVC HDR video files and TrueHD7.1 audio. I don't have any other types of HDR to test. Containers are mkv. Here's the (hopefully) relevant part from the main log in the dashboard. I'm refraining from posting the entire log as it's absolutely spammed full of thousands of repeats of these lines: 2022-10-16 22:38:28.602 Info Server: http/1.1 Response 404 to host1. Time: 1ms. http://192.168.1.100:8096/emby/videos/153573/hls1/main/1548.ts?PlaySessionId=11c4e0d69eef430ab689d43a22c86c17 2022-10-16 22:38:28.610 Info Server: http/1.1 GET http://192.168.1.100:8096/emby/videos/153573/hls1/main/1549.ts?PlaySessionId=11c4e0d69eef430ab689d43a22c86c17. Accept=*/*, Connection=keep-alive, Host=192.168.1.100:8096, User-Agent=libmpv, Icy-MetaData=1 2022-10-16 22:38:28.610 Error Server: Error processing request *** Error Report *** Version: 4.7.8.0 Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Linux version 5.19.14-Unraid (root@Develop) (gcc (GCC) 12.2.0, GNU ld version 2.39-slack151) #1 SMP PREEMPT_DYNAMIC Thu Oct 6 09:15:00 PDT 2022 Framework: .NET 6.0.8 OS/Process: x64/x64 Runtime: system/System.Private.CoreLib.dll Processor count: 16 Data path: /config Application path: /system System.IO.FileNotFoundException: System.IO.FileNotFoundException: Unable to find the specified file. at Emby.Server.MediaEncoding.Api.Hls.BaseHlsService.CreateRequestFromPlaySessionId(BaseSegmentRequest segmentRequest) at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.Get(GetHlsSegment segmentRequest) at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken) Source: Emby.Server.MediaEncoding TargetSite: System.Tuple`3[Emby.Server.MediaEncoding.Api.StreamRequest,System.String,MediaBrowser.Controller.Net.AuthorizationInfo] CreateRequestFromPlaySessionId(Emby.Server.MediaEncoding.Api.Hls.BaseSegmentRequest) I can see it says System.IO.FileNotFoundException, the file is obviously there and I can play the file fine with no playback issues when I select another audio stream line AC3 5.1. I have attached the transcode log in case that contains anything helpful. Thanks. ffmpeg-transcode-2ac1a4cd-5c5f-4f88-b3ac-ee5274870e73_1.txt
  12. Hello, my newly set up emby media server adds my locally stored files to my library just fine without any kind of additional input by me. I have a few problems though when adding my rclone mount into the mix and I would appreciate it if anyone with a bit more know-how than me could help me sort them out. Using the official rclone fork with my webdav cloud all of my files are put into a folder called "links". This is regardless of whether it is a tv show, movie or else. So adding this "links" folder to my library emby gets quite confused with correctly sorting all of my media, which is why I thought of using the "Auto Organize" Plugin. My idea was to tell it to move all of the files from the "links" folder to where all of my local files are (in their respective folders of course). At first it seemed to be working correctly, since it created a folder for the TV Series it was working on currently and put the episode into the folder. I later found out that while "moving" the file it seemed to be downloading it from my webdav cloud into the folder it was only supposed to be moving the file to. From what I understand rclone stores some sort of "dummy file" in the mounted folder that can be accessed and played by emby but moving/copying the file to another folder will result in my computer downloading the file from the cloud to my local storage which completely defeats the point of using rclone in the first place. One more thing to add: Before emby I used plex and to be honest, it worked fine with rclone since I could just point my movies as well as my tvshows library to that "links" folder and plex would just know which file is an episode from a show and which file is a movie and it would add them to the respective libraries automatically without having to move the files on the disk into separate folders. From what I understand emby requires a bit more work than that and I am totally fine with that if it means that I can select an external video player in the android tv app (this is why I made the switch from plex to emby. It's just not an option in plex) I've been tinkering with my media server for quite a while now and I feel like I am running in circles. All I really want to achieve is to combine my locally stored media with my media that is stored in my cloud so that I can watch it with emby in a kind of all-in-one solution but every time I seem to find a solution to my problems some get fixed but completely new problems arise and I feel like it's just all too complicated. What's most frustrating is that for most of them I wouldn't even know what to google to be completely honest with you, which is why I am now resorting to here in hopes that someone can help me out. I really hate asking on forums because I feel like these questions have been asked 1000 times before but somehow all of my search results on google that I get when searching for solutions to my problems really don't get me anywhere. I really appreciate any kind of help I can get. Setup: Emby in docker, rclone in docker, host is debian amd64
  13. When I first open the app (on android tv) I can see my media and then I see the different DVD covers that have already been scanned in. In the picture below you can see the categories and they show up.But when I go click on any of my media categories I can get TV shows to load infect it’s very quick. The error comes when I click on movies or classic movies it just sits and spins and says that error above. When I had just classic movies it loaded just fine but when I started having the other category of movies now neither open without error. However when I view it on the web through a web browser or on the server I can see it just fine. I did reboot the server. I’m running a remote server. App is android TV version 2.0.79 server is version 4.7.6. running Linux CPU dual AMD EPYC 7702 Drives are NVME Samsung MZQL23T8HCLS-00A07
  14. ShotToTheDome

    Emby post-processing dvr script for linux

    I thought I'd post my emby post-processing dvr script. Tested and working on Debian Linux 8.9 Files processed end up being named *originalvideoname*.ts.mkv so i can search by that and make sure recordings have no issues. After I look at them, I manually rename to just .mkv. I do not have automatically convert recordings checked or the two preserve boxes checked under live tv --> settings. Script flow: see if lockfile exists. if so wait 60 sec create lockfile commerical scan and commerical cutting ccextractor to pull out closed captions and convert to srt file Encode to h264 using ffmpeg and combine in srt file from previous step Trim off first 60 sec from recording (due to iptv delay you get a minute from previous show. I have recordings set to last 1 min longer in emby record. The shows using my OTA tuners start early by 1 min to compensate) Remove srt/extra files Overwrite original ts recording delete lockfile Depends on: comskip, comcut (comchap optional), ccextractor, ffmpeg I eventually want to fool around with a nvidia gtx 1050 and see how nevnc with hevc/h265 works on the ffmpeg encoding line. Software h265 encoding on very fast saves an additional 30-40% space on same setting as h264 on medium but my encoding framerate goes from 420fps (14x) to 69fps (2.3x) on dual Xeon e5-2670s. The picture looks pretty much identical when i look at them side by side post.sh emby script #!/bin/csh set path = ($path /usr/local/bin) set lockFile = '/tmp/dvrProcessing.lock' set origFile = "$1" set tmpFile = "$1.tmp" set tmpEncode = "$1.mkv" set tmpEncode2 = "$1.2.mkv" set tmpSrt = "$1.srt" set dvrPostLog = '/path/to/embydvr/dvrProcessing.log' set dvrLockLog = '/path/to/embydvr/dvrLock.log' #Wait if post processing is already running while ( -f $lockFile ) echo "'$lockFile' exists, sleeping processing of '$origFile'" | tee $dvrLockLog sleep 60 end #Create lock file to prevent other post-processing from running simultaneously echo "Creating lock file for processing '$origFile'" | tee -a $dvrPostLog touch $lockFile #Mark and cut commercials echo "cut from '$origFile'" | tee -a $dvrPostLog /path/to/embydvr/comchap/comcut --lockfile=/tmp/comchap.lock --comskip-ini=/path/to/embydvr/comskip.ini "$origFile" #Pull CC from file to SRT file echo "Pulling Closed captions from '$origFile' to SRT file" | tee -a $dvrPostLog ccextractor "$origFile" -o "$tmpSrt" #Encode file to H.264 with mkv container using ffmpeg and mux in CC srt echo "Re-encoding '$origFile' to MKV file while adding cc data" | tee -a $dvrPostLog /usr/bin/ffmpeg -i "$origFile" -i "$tmpSrt" -map 0 -map 1 -acodec copy -scodec copy -c:v libx264 -preset medium -crf 23 -profile:v high -level 4.1 -deinterlace "$tmpEncode" #Trim off first minute echo "Remove first 60 sec of file" | tee -a $dvrPostLog /usr/bin/ffmpeg -ss 00:01:00 -i "$tmpEncode" -vcodec copy -acodec copy -scodec copy "$tmpEncode2" #Remove SRT file echo "Remove SRT file" | tee -a $dvrPostLog rm -f "$tmpSrt" #Remove tmpEncode file echo "Remove tmpEncode file" | tee -a $dvrPostLog rm -f "$tmpEncode" #Rename transcoded file to temp file in case no subtitles echo "Rename 2nd transcoded file to tmp file" | tee -a $dvrPostLog mv -f "$tmpEncode2" "$tmpFile" #Overwrite original ts file with the transcoded file echo "Removing '$origFile'" | tee -a $dvrPostLog mv -f "$tmpFile" "$origFile" #Rename .ts file to .ts.mkv echo "Renaming '$origFile' to .mkv" | tee -a $dvrPostLog mv -f "$origFile" "$1.mkv" #Remove lock file echo "Done processing '$origFile' removing lock" | tee -a $dvrPostLog rm $lockFile exit 0
  15. When I click 'Save' Button, the problem will occur.(Picture 1) But When I return to the user page, it seems that it has been created successfully. Also, I can log in with this 'Ghost User'. However I cant edit any settings of this user, there is no any new user in /config/user, user.db in /data wasnt updated. Restarting emby and vps has been tried but doesnt work. Anyone know how to deal with it plz?
  16. Funkie

    HTTPS 8920 internal not running

    Hi @Luke I am running emby server 4.7.5.0 on Ubuntu 20.04.4 LTS. Not sure when this stopped working as I mainly access my server locally via http but setup HTTPS on port 8920 behind HAProxy and was working fine. I saw an error no backend to emby in HAProxy so investigated and indeed I cannot access the server at all on https. If I curl from the emby server I get this error curl: (7) Failed to connect to localhost port 8920: Connection refused
  17. On Arch Linux, Emby is using a basic ffmpeg by default. Now we have started publishing an Arch Linux package which allows easy installation of the same ffmpeg that is included in most of our other server installation packages and which is optimized for tone mapping, hardware acceleration and a number of other things in combination with Emby Server. Installation Download first to avoid signature issues, then install via pacman: wget https://mediabrowser.github.io/embytools/emby-ffmpeg-bin-2023_06_25-1-x86_64.pkg.tar.zst sudo pacman -U emby-ffmpeg-bin-2023_06_25-1-x86_64.pkg.tar.zst Please restart Emby server after installation: systemctl restart emby-server.service
  18. ItsNik

    TrueNas - File

    So today i tried setting up my Emby instance and it didnt went well... I am using truenas scale and emby inside a application (kubernetes + docker i think) and the files are softlinked to a directory inside emby from my smb share, they show up, but not inside emby thats the weird thing. With ls /home/movies everything shows up but inside emby when i triy to add the library nothing shows up. I also put the files there with FTP and then it worked but i want to be able to just drag and drop them from my smb to emby. Thanks in advance! :D (The pictures are inside the pod shell and the video is the "setup" shown, sry for german words and smth like that) 2022-06-24_18-42-43.mkv
  19. Hello Folks, After the success of getting a count of the current NowPlayingItem entries in the Sessions API, I am now trying to get a list of the Users and what they are currently playing - then send that to my InfluxDB to show in my Grafana server. I am nearly there with this command line, but cannot quite get it so that JQ only shows those session users who are actually playing something... wget -q -O - "http://localhost:8096/emby/Sessions?api_key=3469exxxxxxxxxxxxxxx201ef3f" | jq -M '.[].UserName, .[].NowPlayingItem.Name' will show me the following... null "Paul" "Tracey" "Sam" "Tom" "Katie" null "The Secret of the Unicorn (1)" null null null null ...which is every possible user. In the above example, only user "Paul" is actually playing ""The Secret of the Unicorn (1)". If I add the JQ options to now show 'nulls'... wget -q -O - "http://localhost:8096/emby/Sessions?api_key=3469exxxxxxxxxxxxxxx201ef3f" | jq -M '.[].UserName, .[].NowPlayingItem.Name | select(. != null)' then I can get it to this output... "Paul" "Tracey" "Sam" "Tom" "Katie" "The Secret of the Unicorn (1)" ...which is correct but still shows me users that are not playing anything at that time! Does anyone have knowledge of JSON and JQ or the API so that I can just get a list of those users that are playing an item now. I would be happy with this output... "Paul" "The Secret of the Unicorn (1)" ...or even better - turn it in to a key + value pair like this... { "Paul": "The Secret of the Unicorn (1)" } ...so that I can send that to a bash script and then to my InfluxDB. Thanks in advance! Regards, Paully
  20. Hi, I thought to give another try to Emby after 1 year Question: is possible to arrange Home screen ? meaning Latest TV Show Up (want to put it above Latest Movies, see picture Question: why after 1 year of absence when navigating to right and down will go as far as he can, still no fix, i posted this issue before
  21. Dan64

    How to speed up Emby on Linux

    Assuming that there is memory to spare, placing Emby's data and/or cache to RAM offers significant advantages. Even though opting for the partial route is an improvement by itself, the latter can make Emby even more responsive compared to its stock configuration. Benefits include, among others: - reduced drive read/writes; - heightened responsive feel; - many operations within Emby, such as quick search are nearly instantaneous. To do so we can make use of a tmpfs. Because data placed therein cannot survive a shutdown, a script responsible for syncing back to drive prior to system shutdown is necessary if persistence is desired. On the other hand, only relocating the cache is a quick, less inclusive solution that will slightly speed up user experience with Emby. In this post is provided an example of script to move and sync the "data" folder (where is stored the emby db) to RAM. Be sure that rsync is installed and save the "executable" script to /opt/emby-server/bin/emby-data_sync.sh, for example: #!/bin/sh # The script will first move emby's data to a new static location, # make a sub-directory in /dev/shm, softlink to it and later populate it with the contents of data. # The second time the script runs, it will then preserve the RAM profile by copying (sync) it back to disk. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin static=data-static link=data volatile=/dev/shm/emby-data IFS= set -efu cd /var/lib/emby if [ ! -r $volatile ]; then mkdir -m0700 $volatile fi if [ "$(readlink $link)" != "$volatile" ]; then echo "--> Emby: Init RAM Disk" mv $link $static ln -s $volatile $link fi if [ -e $link/.unpacked ]; then echo "--> Emby: Sync Disk" rsync -av --delete --exclude .unpacked ./$link/ ./$static/ else echo "--> Emby: Sync RAM" rsync -av ./$static/ ./$link/ touch $link/.unpacked fi It is best to add a cron job to guarantee the sync between RAM and disk, for example the following entry will run the sync process every 30min. */30 * * * * /opt/emby-server/bin/emby-data_sync.sh Then it is necessary to change the service: /lib/systemd/system/emby-server.service to guarantee the initial and final sync, as follow: [Unit] Description=Emby Server is a personal media server with apps on just about every device. After=network.target [Service] TimeoutSec=5min EnvironmentFile=/etc/emby-server.conf WorkingDirectory=/opt/emby-server ExecStartPre=/opt/emby-server/bin/emby-data_sync.sh ExecStart=/opt/emby-server/bin/emby-server ExecStopPost=/opt/emby-server/bin/emby-data_sync.sh RestartForceExitStatus=3 User=emby [Install] WantedBy=multi-user.target After this change it is necessary reload the service with the command: systemctl daemon-reload Finally it is possible to activate the shared-memory for Emby with the command systemctl restart emby-server It is possible to verify the execution of the script with the command: systemctl status emby-server ● emby-server.service - Emby Server is a personal media server with apps on just about every device. Loaded: loaded (/lib/systemd/system/emby-server.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2019-01-01 09:46:44 CET; 7min ago Process: 8310 ExecStopPost=/opt/emby-server/bin/emby-data_sync.sh (code=exited, status=0/SUCCESS) Process: 8315 ExecStartPre=/opt/emby-server/bin/emby-data_sync.sh (code=exited, status=0/SUCCESS) Main PID: 8320 (EmbyServer) Tasks: 23 (limit: 4915) Memory: 676.5M CGroup: /system.slice/emby-server.service └─8320 /opt/emby-server/system/EmbyServer -programdata /var/lib/emby -ffmpeg /opt/emby-server/bin/ffmpeg More details can be found with the command: journalctl | grep emby-data_sync.sh emby-data_sync.sh[23844]: sending incremental file list emby-data_sync.sh[23844]: activitylog.db-wal emby-data_sync.sh[23844]: authentication.db-wal emby-data_sync.sh[23844]: library.db emby-data_sync.sh[23844]: library.db-wal emby-data_sync.sh[23844]: users.db-wal emby-data_sync.sh[23844]: ScheduledTasks/6330ee8f-b4a9-57f3-3981-f89aa78b030f.js emby-data_sync.sh[23844]: ScheduledTasks/81267bb8-bb49-51de-4b1b-446262cc7365.js emby-data_sync.sh[23844]: ScheduledTasks/d459f39d-7abb-81f5-fcce-03048a7ecf4d.js emby-data_sync.sh[23844]: SyncData/Emby.Kodi.SyncQueue.I.1.40.json emby-data_sync.sh[23844]: sent 255,467,606 bytes received 227 bytes 30,055,039.18 bytes/sec emby-data_sync.sh[23844]: total size is 257,320,410 speedup is 1.01 emby-data_sync.sh[23852]: sending incremental file list emby-data_sync.sh[23852]: sent 4,561 bytes received 44 bytes 9,210.00 bytes/sec emby-data_sync.sh[23852]: total size is 257,320,410 speedup is 55,878.48 The paths used in this post are the default ones for a Debian installation, in the case the distribution used is different could be necessary to change some path. But the main concept remain the same. On my installation I was able to speed up the "quick searches" by 100 times. This improvement is mainly due to the increase of speed obtained by moving the SQLite databases to RAM. In this article: https://www.directionsmag.com/article/3794 is reported an interesting comparison on memory access vs disk access speed and is stated that: "If you have a problem with slow database access, placing the entire database in RAM can instantly provide a factor-of-100-thousand increase in access speed with no other programming or data structure changes required".
  22. With the new Emby server release, I see that there are two options for each hardware encoder/decoder now: the existing VA-API one and a new QuickSync one. My Emby Server runs directly in Debian on a Pentium Gold G5420, identified as Coffee Lake (gen9.5). So what's the difference? Which one is preferred, and why? (Technical details welcome.) Is this an "if it ain't broke, don't fix it" case or a "try it and see what works better/faster" deal? TIA
  23. First, thanks for what looks to be an amazing piece of software. I've scanned in all my music and some albums have appeared correctly but others not. The common ground between all those which failed is that they are in one single parent folder (which has various artist / album folders below it). Emby seems to think that the parent folder is an album with hundreds of tracks, although Metadata Manager shows me that it has read the Album ID3 tags correctly on each individual track. Does Emby make Album objects in the library based on the tags or on the folders? My audio tracks are not quite strictly organised as artist/album/track, but the same folder structure has worked fine with many bits of software over the past ten years or so (eg. Kodi, Foobar, Logitech Media Server etc), and I would much rather not re-folder if I can avoid it. Many thanks in advance for any help. SC Platform details: HP Microserver > Ubuntu > Flac files with ID3 tags > Emby 3.0.5675.1 - let me know if you need to know anything else!
  24. schmitty

    [Possible Bug] Can not invite users

    Hello, I can no longer invite users, when I click add user Emby Server does not bring up the dialog to Add Local User or Invite with Emby Connect. Has Emby Connect or inviting been removed again?
  25. I have an Ubuntu server running the emby server docker container. Just spun it up yesterday. My password worked no problem. Today, I tried to log in through firefox on another linux machine, and my password doesn't seem to be working. So I decided to try resetting my admin/user account password by clicking the "Forgot Password" button. When I clicked the button, it prompts me for a username. When I type the username and then hit "Submit", nothing at all seems to happen. What can I do to troubleshoot this further so I can get access to my media server again?
×
×
  • Create New...