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 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
    • Non-Emby General Discussion
    • Developer API
    • Hardware
    • Media Clubs
    • Legacy Support

Blogs

  • Emby Blog

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

  1. Hi, I am having some issues doing hardware transcoding through docker. I have everything setup correctly (I think) but it looks like it's still using software. I've setup my emby user as a member of the video group, set permissions to /dev/dri/renderD128 to 777, and have the hardware decoder mapped through docker. See below for my docker-compose config: # Emby Media Server emby: image: emby/embyserver container_name: emby restart: unless-stopped network_mode: bridge ports: - "8096:8096/tcp" - "8920:8920/tcp" environment: - TZ=${TZ} - UID=${PUID_EMBY} - GID=${PGID_KODI} - GIDLIST=44 volumes: - ${PICKYDIR}/emby:/config - ${DOCKERDIR}/media:/mnt/share1 - ${DOCKERDIR}/backups:/mnt/share2 - ${SSD}/transcode_emby:/transcode devices: - "/dev/dri/renderD128:/dev/dri/renderD128" Any other ideas? embyserver.txtffmpeg-transcode-50eb18ad-ccac-460a-aa92-d25b2f210ad6_1.txthardware_detection-63692603061.txt
  2. MyNeighborSelkie

    Linux Mint 18 and Emby

    Hello all. I've been lurking for a short while as an unregistered user and couldn't find the answer for which I searched. So first... Turned an old gaming rig into a server with linux mint 18 because I had an USB handy that had mint on it. i5 processor 8GB of ddr3 I don't have all the specs on hand but that's the baseline of the machine. After running for so many hours, the server freezes. But this ONLY happens when the emby service is running. Doesn't matter if anyone is using emby or not. The server eventually just freezes. If I turn emby off, this doesn't seem to happen. Any ideas or anyone seen this exact issue before? If there's a specific log or error I should be looking for, sorry in advance for not knowing where it should be!
  3. halvorsonnarcis

    [Bug] DLAN Remote

    I am using both, Emby server beta on ubuntu 18.04 also, android 9 with the newest Emby beta app. When streaming media over DLAN to an AnyCast device it plays successfully. But, the controls don't work except mute/unmute. Also, pause/play but that works intermittently. Emby Server Version 4.1.0.20 beta
  4. Hello, When I try to delete a file via Emby's interface (web interface or iOS interface), I get the following message : "There was an error deleting the item from Emby Server. Please check that Emby Server has write access to the media folder and try again." My question is, how do I grant write-access to Emby Server ? I guess I could use chown or chmod (although I am not very familiar with these commands), but I do not even know what Emby Server's username is, to begin with. Any help would be much appreciated. Here is my setup : Emby server version 3.5.2.0 on an ubuntu machine. Most files on this server belong to a user called "debian-transmission" (and to a group with the same name) The folders containing these files belong to a user called "bill" (and to a group with the same name). Thank you !
  5. I migrated my server from synology to an intel nuc running ubuntu server 18.04 lts. I installed emby server 4.0.2.0. After I did all my libraries and the scan was completed, I restore a backup. The backup was created from beta server 4.1.0.15. Everthing seems to work like it should. However, at startup, I get a lot of "Error App: LoaderException". See attached logs. I just wondering why I get all those errors at startup and if there is something I can do to fix it? Thank you Logs.txt
  6. I am already on server v4.0.2. I recently updated the LG TV Emby App to the latest and it was working fine. Today none of the devices work (LG TV, Samsung TV or any Web browsers). When I play a video file, the TV pops an error message: Playback Error No compatible streams are currently available. Please try again later or contact your system administrator for details. The server is Debian based OMV. According to the logs, there's a permission problem on the file: 2019-03-18 19:14:18.498 Error HttpServer: Error processing request *** Error Report *** Version: 4.0.2.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Unix 4.19.0.0 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 2 Program data path: /var/lib/emby Application directory: /opt/emby-server/system System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/sharedfolders/d1/movies/12 Years A Slave (2013)/12 Years A Slave (2013).srt' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at System.IO.File.ReadAllBytes(String path) Also, there seems to be a problem with FFMPEG: 2019-03-18 19:14:21.758 Error HttpServer: Error processing request *** Error Report *** Version: 4.0.2.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Unix 4.19.0.0 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 2 Program data path: /var/lib/emby Application directory: /opt/emby-server/system System.Exception: System.Exception: Error starting ffmpeg I checked the media file permission and the ACL for the full path. These have not changed since I installed Emby. It has RWX access to all the media for owner (admin:users) and the user emby:emby (see ACL below): root@OMV:/sharedfolders/d1/movies/12 Years A Slave (2013)# getfacl *.mkv # file: 12 Years A Slave (2013).mkv # owner: admin # group: users user::rwx user:root:rwx user:daemon:rwx user:systemd-timesync:rwx user:ntp:rwx user:statd:rwx user:avahi:r-x user:sshd:r-x user:emby:rwx user:admin:rwx user:openmediavault-webgui:rwx user:macnb:rwx user:nobody:rwx group::rwx group:root:rwx group:daemon:rwx group:adm:rwx group:audio:rwx group:video:rwx group:users:rwx group:systemd-journal:rwx group:systemd-timesync:rwx group:crontab:rwx group:ntp:rwx group:ssh:r-x group:emby:rwx group:openmediavault-config:rwx group:nogroup:rwx mask::rwx other::r-x Please see attached debug server & ffmpeg logs. Over the weekend I had uninstalled Debian MariaDB mysql server and replaced it with docker Mariadb. Also installed docker Nextcloud web service. But these should be independent of Emby server. I stopped the Emby server and over installed it using: root@OMV:# dpkg -i emby-server-deb_4.0.2.0_amd64.deb (Reading database ... 51255 files and directories currently installed.) Preparing to unpack emby-server-deb_4.0.2.0_amd64.deb ... Removed /etc/systemd/system/multi-user.target.wants/emby-server.service. Unpacking emby-server (4.0.2.0) over (4.0.2.0) ... Setting up emby-server (4.0.2.0) ... usermod: no changes Created symlink /etc/systemd/system/multi-user.target.wants/emby-server.service → /usr/lib/systemd/system/emby-server.service. Processing triggers for libc-bin (2.24-11+deb9u4) ... root@OMV:# This made no difference. The logs do not really tell what is the permission problem issue. What is wrong ? ffmpeg.txt log.txt
  7. I feel like I'm very close to having hardware acceleration working again, after switching to Debian Buster in a container, but I can't quite get it. This is AMD A10-5700, with Radeon HD 7660D. Please any help? As user emby, my ''vainfo'': error: can't connect to X server! libva info: VA-API version 1.4.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/r600_drv_video.so libva info: Found init function __vaDriverInit_1_4 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.4 (libva 2.4.0) vainfo: Driver version: Mesa Gallium driver 18.3.4 for AMD ARUBA (DRM 2.50.0 / 4.15.0-46-generic, LLVM 7.0.1) vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileNone : VAEntrypointVideoProc My hardware_detection log: {"Key":"vaapi","Decription":"vaapi"},"qsv":{"Key":"qsv","Decription":"qsv"},"cuvid":{"Key":"cuvid","Decription":"cuvid"}}},"DetectionOutputs":[{"CodecProviderName":"Vaapi","StandardError":"\n","Result":{ "ProgramVersion": { "Version": "4.0.2-emby_2018_12_09", "Copyright": "Copyright (c) 2018-2018 softworkz for Emby Llc", "Compiler": "gcc 6.3.0 (crosstool-NG crosstool-ng-1.23.0)", "Configuration": "--cc=x86_64-pc-linux-gnu-gcc --arch=x86_64 --prefix=/home/embybuilder/Buildbot/x64/ffmpeg-x64/staging --pkg-config=pkg-config --disable-doc --disable-ffplay --disable-vdpau --disable-xlib --enable-fontconfig --enable-gnutls --enable-gpl --enable-iconv --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libwebp --enable-libx264 --enable-libzvbi --enable-version3 --enable-libsmbclient --enable-cuda --enable-cuvid --enable-libmfx --enable-nvenc --enable-vaapi --enable-cross-compile --cross-prefix=x86_64-pc-linux-gnu- --extra-libs='-lexpat -lfreetype -lfribidi -lfontconfig -liconv -lpng -lz -lvorbis -logg -lnettle -lhogweed -lgmp -laddns-samba4 -lasn1util-samba4 -lauthkrb5-samba4 -lCHARSET3-samba4 -lcliauth-samba4 -lcli-cldap-samba4 -lcli-ldap-common-samba4 -lcli-nbt-samba4 -lcli-smb-common-samba4 -lcom_err -lcommon-auth-samba4 -ldbwrap-samba4 -ldcerpc-binding -ldcerpc-samba-samba4 -ldl -lflag-mapping-samba4 -lgenrand-samba4 -lgensec-samba4 -lgse-samba4 -lgssapi_krb5 -llibcli-lsa3-samba4 -llibsmb-samba4 -linterfaces-samba4 -liov-buf-samba4 -lk5crypto -lkrb5 -lkrb5samba-samba4 -lkrb5support -lldb -lldbsamba-samba4 -lmessages-dgm-samba4 -lmessages-util-samba4 -lmsghdr-samba4 -lmsrpc3-samba4 -lndr -lndr-krb5pac -lndr-nbt -lndr-samba-samba4 -lndr-standard -lreplace-samba4 -lsamba-cluster-support-samba4 -lsamba-credentials -lsamba-debug-samba4 -lsamba-errors -lsamba-hostconfig -lsamba-modules-samba4 -lsamba-security-samba4 -lsamba-sockets-samba4 -lsamba-util -lsamba3-util-samba4 -lsamdb -lsamdb-common-samba4 -lsecrets3-samba4 -lserver-id-db-samba4 -lserver-role-samba4 -lsmbconf -lsmbd-shim-samba4 -lsmb-transport-samba4 -lsocket-blocking-samba4 -lsys-rw-samba4 -ltalloc -ltalloc-report-samba4 -ltdb -ltdb-wrap-samba4 -ltevent -ltevent-util -ltime-basic-samba4 -lutil-cmdline-samba4 -lutil-reg-samba4 -lutil-setid-samba4 -lutil-tdb-samba4 -luuid -lwbclient -lwinbind-client-samba4 -ldrm' --target-os=linux --enable-shared --disable-static" }, "Devices": [ { "DeviceIndex": 0, "DeviceInfo": { "VendorName": "Advanced Micro Devices, Inc. [AMD/ATI]", "DeviceName": "Trinity [Radeon HD 7660D]", "SubsytemVendorName": "ASRock Incorporation", "VendorId": 4098, "DeviceId": 39169, "SubsytemVendorId": 6217, "SubsytemDeviceId": 39169, "DevPath": "/sys/bus/pci/devices/0000:00:01.0", "DrmCard": "/dev/dri/card0", "DrmRender": "/dev/dri/renderD128", "IsEnabled": 1, "IsBootVga": 1, "Error": { "Number": -1, "Message": "Failed to initialize VA /dev/dri/renderD128. Error -1" } } } ], "Log": [ { "Level": 48, "Category": 0, "Message": "Begin GetVaAdapterInfo" }, { "Level": 40, "Category": 0, "Message": "Found 24 device entries" }, { "Level": 48, "Category": 0, "Message": "Begin get_nodes" }, { "Level": 48, "Category": 0, "Message": "Found 3 drm entries" }, { "Level": 48, "Category": 0, "Message": "End GetVaAdapterInfo" } ] } And a portion of the output when I run ''ffdetect vaencdec'': [DEVICE] DeviceIndex=0 DEVICEINFO:VendorName=Advanced Micro Devices, Inc. [AMD/ATI] DEVICEINFO:DeviceName=Trinity [Radeon HD 7660D] DEVICEINFO:SubsytemVendorName=ASRock Incorporation DEVICEINFO:VendorId=4098 DEVICEINFO:DeviceId=39169 DEVICEINFO:SubsytemVendorId=6217 DEVICEINFO:SubsytemDeviceId=39169 DEVICEINFO:DevPath=/sys/bus/pci/devices/0000:00:01.0 DEVICEINFO:DrmCard=/dev/dri/card0 DEVICEINFO:DrmRender=/dev/dri/renderD128 DEVICEINFO:IsEnabled=1 DEVICEINFO:IsBootVga=1 DEVICEINFO:ApiVersionMajor=1 DEVICEINFO:ApiVersionMinor=4 DEVICEINFO:Driver=Mesa Gallium driver 18.3.4 for AMD ARUBA (DRM 2.50.0 / 4.15.0-46-generic, LLVM 7.0.1) [DECODER] CodecName=MPEG2VIDEO CodecProfile=MPEG2_SIMPLE CodecId=2 MaxWidth=2048 MaxHeight=1152 ColorFormats=NV12 RTFormat=1 [/DECODER] [DECODER] CodecName=MPEG2VIDEO CodecProfile=MPEG2_MAIN CodecId=2 MaxWidth=2048 MaxHeight=1152 ColorFormats=NV12 RTFormat=1 [/DECODER] Here is my /dev/dri/: emby@emby:/$ ls -lha /dev/dri total 0 drwxr-xr-x 2 root root 100 Mar 16 12:23 . drwxr-xr-x 9 root root 500 Mar 16 12:23 .. crw-rw---- 1 root video 226, 0 Mar 16 12:23 card0 crw-rw---- 1 root video 226, 0 Mar 16 12:23 controlD64 crw-rw---- 1 root video 226, 128 Mar 16 12:23 renderD128 What else can I provide to help?
  8. irie27

    One imports, the other doesn't

    I have a directory listed as /media/movies with the permissions If I have emby import the movies directory, nothing will get imported. However, if I have movies2 imported the files are seen. The directories and files all have 755 permissions with the user & group being the same in both directories. I can't get anything from the logs that would help. What is more weird to me is that if I set the content type to TV on the /media/movies import, the files are imported, but not with the content type set as MOVIES. I'm stumped on trying to figure this one out. I only have a monthly premiere pass to see if I want to leave Plex. As you can see here, the files are being seen.. And when I complete setting up the import this is all I get.. what logs would be needed to diagnose this issue?
  9. Hi, im having problems with my Emby server, running on Linux. Out of nowhere, my server started having problems recognizing Movies and TV-Shows, as well as searching for images. I noticed as well, that I couldn't add Emby connect users to my local users, at least for one user, haven't tried with others, since they already have their emby connect user connected. I have attached the error log from the server, in which I noticed this exception at line 8314: System.Net.Http.HttpRequestException: System.Net.Http.HttpRequestException: An asynchronous socket operation is already in progress using this SocketAsyncEventArgs instance. ---> System.InvalidOperationException: An asynchronous socket operation is already in progress using this SocketAsyncEventArgs instance. Hope someone can help me Thanks Log (1).txt
  10. kornster

    Library and Classifications

    Good Morning All, A long story short i`ve been using Emby for a number of years. I`ve recently rebuilt a brand new server having lost my old one (Divorce) using LMDE. My now partner has 3 children all under 18+. The oldest is asking for access to the Emby android application for me to give him an account. I`ve been thinking and i may not be doing this right but my thought was to move all the content, M15+ and higher into a separate directory and adding that as its own library item. If i do this does that mean Collections will still show the movies from that dir to my partners son if i only add that dir to myself and my partner?
  11. Original source Unix.stackexchange.com Thx to Adrian for this amazing script Since Emby doesnt have a proper scraper this will help to "fix" that Files to be renamed are all of the form [<tag>] <name> - <serial> [<quality>].mkv. Each anime has a lookup file called <name>.lst, listing the episodes in serial order, e.g. One Piece.lst contains: S01E01 S01E02 ... S01E08 S02E01 ... You use a bash shell at version 4 (minimum). #!/bin/bash # USAGE: canon_vids <dir> ... # Canonicalize the filenames of all MKV vids in each <dir> # All the anime lookup tables are in the lookup subdirectory # where canon_vids is stored lookup_dir="$(dirname "$0")/lookup" log_skip() { echo "SKIP ($1): $2" } find "$@" -name \*.mkv | while read f; do # Check filename against our desired pattern # (We don't want to rename what's already been renamed!) if [[ $f =~ /(\[[^]]+\])\ (.*)\ -\ ([0-9]+)\ (\[[^]]+\].mkv) ]]; then # We've now split our filename into: prefix="${BASH_REMATCH[1]}" name="${BASH_REMATCH[2]}" serial="${BASH_REMATCH[3]##0}" suffix="${BASH_REMATCH[4]}" # Some sanity checks if (( serial <= 0 )); then log_skip "$f" "Invalid serial# '$serial' for $name"; continue fi # Let's look up the episode episode="$(sed -n ${serial}p "$lookup_dir/${name}.lst")" if [[ -z "$episode" ]]; then log_skip "$f" "Can't find serial# '$serial' for $name"; continue fi mv -vn "$f" "${f%/*}/${prefix} ${name} - ${episode} ${suffix}" fi done And here's a bonus script that generates those lookup files, given the number of episodes in each season: #!/bin/bash # USAGE: generate_series <#eps> ... while [[ $1 ]]; do ((s++)) for e in $(seq "$1"); do printf "S%02dE%02d\n" $s $e done shift done Example: $ ls canon_vids generate_series # Create One Piece lookup table $ mkdir lookup $ ./generate_series 8 22 17 13 9 22 39 13 52 31 99 56 100 35 62 49 118 33 96 > lookup/One\ Piece.lst $ tail -n lookup/One\ Piece.lst S19E92 S19E93 S19E94 S19E95 S19E96 $ wc -l lookup/One\ Piece.lst 874 lookup/One Piece.lst # Create fake One Piece MKVs (adding a couple more to trigger errors) $ mkdir op $ for i in $(seq 0 876); do touch "$(printf "op/[TAG] One Piece - %02d [quality].mkv" $i)"; done $ ls op | wc -l 877 # And now, the moment of truth... $ ./canon_vids op renamed 'op/[TAG] One Piece - 724 [quality].mkv' -> 'op/[TAG] One Piece - S17E97 [quality].mkv' renamed 'op/[TAG] One Piece - 86 [quality].mkv' -> 'op/[TAG] One Piece - S06E17 [quality].mkv' ... renamed 'op/[TAG] One Piece - 819 [quality].mkv' -> 'op/[TAG] One Piece - S19E41 [quality].mkv' SKIP (op/[TAG] One Piece - 00 [quality].mkv): Invalid serial# '0' for One Piece renamed 'op/[TAG] One Piece - 52 [quality].mkv' -> 'op/[TAG] One Piece - S04E05 [quality].mkv' ... renamed 'op/[TAG] One Piece - 865 [quality].mkv' -> 'op/[TAG] One Piece - S19E87 [quality].mkv' SKIP (op/[TAG] One Piece - 875 [quality].mkv): Can't find serial# '875' for One Piece renamed 'op/[TAG] One Piece - 295 [quality].mkv' -> 'op/[TAG] One Piece - S11E69 [quality].mkv' ... renamed 'op/[TAG] One Piece - 430 [quality].mkv' -> 'op/[TAG] One Piece - S13E49 [quality].mkv' SKIP (op/[TAG] One Piece - 876 [quality].mkv): Can't find serial# '876' for One Piece renamed 'op/[TAG] One Piece - 655 [quality].mkv' -> 'op/[TAG] One Piece - S17E28 [quality].mkv' ... renamed 'op/[TAG] One Piece - 93 [quality].mkv' -> 'op/[TAG] One Piece - S07E02 [quality].mkv' renamed 'op/[TAG] One Piece - 278 [quality].mkv' -> 'op/[TAG] One Piece - S11E52 [quality].mkv' # OK, but what happens when we run it again? Will our files be further renamed? Will Luffy find One Piece? $ ./canon_vids op SKIP (op/[TAG] One Piece - 00 [quality].mkv): Invalid serial# '0' for One Piece SKIP (op/[TAG] One Piece - 875 [quality].mkv): Can't find serial# '875' for One Piece SKIP (op/[TAG] One Piece - 876 [quality].mkv): Can't find serial# '876' for One Piece # Of course! Those files were never found in the lookup table, so they're still # candidates for renaming. More importantly, no other files were touched. Little explanation: ./generate_series 8 22 17 13 9 22 39 13 52 31 99 56 100 35 62 49 118 33 96 > lookup/One\ Piece.lst Extra: If u want to automate create a line at crontab. canon_vids.txt generate_series.txt
  12. Hello I have emby set up on my Ubuntu 16.04.5 LTS and having issues with Tv-Show thumbnail Everything okay with movies and all but Only having issues with tv shows. Emby detects my tv shows and fetches data about newly added episode but it's not adding images to Thumbnail, Backdrops or sometimes the season poster. What to do?
  13. adwuk

    Emby and TVHeadend play nicely

    Thanks to all the contributions in this community, I have finally been able to get a setup of Emby, TVHeadend and our LG Smart TVs that works really well for me. I had a false start with the Emby TVHeadend plugin, which I am sure is working fine for others - unfortunately for me I couldn't get the TV schedule to update reliably, and sometimes it just went blank. When searching for a fix to these issues I saw a comment from Luke suggesting the use of the M3U tuner option. So here is where I have ended up: 1) Latest version of TVHeadend 4.3 tuned to Freesat UK with a DVB-S2 USB tuner on ubuntu 18.04 - TVH 4.3 required because I make use of the MPEG-TS/Spawn streaming profile 2) Hardware/VAAPI encoding streaming profile with FFMPEG - this makes use of the QuickSync encoding available on an Intel NUC with i3-7100 processor 3) Emby server connects to TVH via the M3U tuner options in Emby Live TV 4) A post recording script quickly converts the recorded MPEG-TS files to MP4 Details of the setup: 1) You can follow the install instructions for TVHeadend. The key is to install version 4.3 (it is named unstable, but seems pretty stable to me) as I wanted to make use of the Intel's VAAPI/QuickSync hardware encoder. Once installed, I created a MPEG-TS/Spawn streaming profile called 'mp4-h264-aac' with the following properties: 2) Create a bash script in /home/hts/scripts called h264aac.sh. Don't forget to make it executable with 'chmod +x h264aac.sh'. This script uses VAAPI and takes the video stream and english audio stream and converts to H264, Level 4.1, AAC audio, deinterlaces keeping the source frame rate and reasonable quality at the highest compression. The output container is MPEG-TS which is fed to the Emby server. It uses VAAPI hardware encoding which is pretty quick, and the CPU rarely gets above 10% usage while it is running. #!/bin/bash ffmpeg -loglevel info \ -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi \ -i pipe:0 -map 0:v -map 0:m:language:eng -sn \ -c:v h264_vaapi \ -quality 0 -compression_level 1 -qp 25 -level 41 \ -vf 'format=nv12|vaapi,hwupload,deinterlace_vaapi=rate=frame:auto=1' \ -c:a aac \ -f mpegts pipe:1 3) In your Emby server, using the Live TV options, add a M3U tuner with the following URL: http://user:password@server:9981/playlist/channels.m3u?profile=mp4-h264-aac This will load all the channels from your TVHeadend server using the newly created streaming profile. You will also need to add a TV guide provider, and I find that the new Emby one for the UK works well for me. 4) Finally you will need to convert the MPEG-TS files after they are recorded. MPEG-TS isn't seekable and so if you want to fast-forward or rewind during play, MP4 is more appropriate. In the DVR section on your Emby server you can define a post processing script. I set mine to "/var/lib/emby/video/convert.sh", and here is the script: #!/bin/bash # break up the input file name file=$(basename "$1") base=$(basename "$1" .ts) dir=$(dirname "$1") # transcode the file ffmpeg -y -i "$1" -map 0 -c copy "${dir}/${base}.mp4" # get the error code RC=$? if [ "${RC}" -ne "0" ]; then # had an error, so check if the output file exists # if so, remove the output file if [ -f "${dir}/${base}.mp4" ]; then rm -f "${dir}/${base}.mp4" fi else # all OK, so check if the output file exists # if so, remove the input file if [ -f "${dir}/${base}.mp4" ]; then rm -f "$1" fi fi The post-processing script runs in a few seconds after the recording has completed. It now means that the whole process from selecting the programme to record, to it being listed and ready to play in Emby anywhere, is fully automated and simple enough for anyone to use. Hopefully this lot will prove useful to someone.
  14. This project is being abandoned in favor of Wolveix's. https://github.com/Wolveix/Plexus Please visit his project to see any future work. Hello, I’m working on a little project to iterate through my NAS and convert all files that are not easily direct played through my Roku. I’m posting it’s Github page here, in case it is of use to anyone else. I’m very open to input, commits, suggestions, etc. I’d love for this to be useful to the community. https://github.com/gorgarp/BatchConverter/
  15. Hi There, I just completed a migration of my Emby Server 4.1.0.1 beta running headless Centos 7.6 from a virtualized Hyper-V (2008 R2) to Bare Metal (Intel Core2 Quad Q9300 with Gigabyte [nvidia] GeForce GTX 1050 and SSD) for the added horsepower of dedicated CPU access and transcoding capabilities. I haven't done a whole lot to this OS in terms of setup. Clean minimal install of operating system update updated packages (yum) Install Emby Open Firewall Port install backup plugin restore backup from my VM What I'm struggling to determine is a) has emby detected my GTX 1050? is emby using my GTX 1050 to transcode? c) is there anything I might need to install (e.g. Nvidia drivers) to get this all working? I'm not 100% certain what it is I'm looking for in the logs to ascertain whether this is working or not. I'm attaching the latest Transcoding log and Hardware Detection Log. Thanks in advance HardwareDetection.txt Transcoding.txt
  16. Hi, I'm running emby as a docker container under the following system: Linux openmediavault 4.9.0-0.bpo.6-amd64 #1 SMP Debian 4.9.88-1+deb9u1~bpo8+1 (2018-05-13) x86_64 GNU/Linux Docker version 17.05.0-ce, build 89658be latest emby docker It crashes quite regularly (every 1-3 days, running 24/7). docker logs emby: Aborted s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] syncing disks. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting. Any idea what could be the cause here and how to go on with debugging?
  17. Hello everybody! I'll try to keep it short and sweet. Right now, I'm running v3.6.0.81_beta (will upgrade soon to v4) on a headless Fedora 27 box with 4GB of RAM and a dual-core AMD A4-3300 APU on a WD HDD. It also leverages OpenLDAP running on another FreeBSD box on my network for authentication. Have used the setup for years; I try to keep the boxes physically clean and the setup is still running like a champ. Using a couple of external USB 3.0 drives for backup. It ain't pretty, but it works. Sometimes I have issues with the Android app spinning when trying to play music on my Pixel 2 phone or buffering over WiFi when playing a movie on my Fire TV Cube app (which results in some herky-jerkiness). Those instances are relatively rare, though although the latter issue is nonetheless more annoying. I am thinking that may be due to streaming higher-resolution movies over WiFi (ideal vs real world transfer speeds, essentially a bandwith issue and not a system resource issue?). Fast-forward to today, and I have just procured a bona-fide workstation (Dell Precision T3400, Core 2 Duo) that I am converting to (Free)NAS with 8GB ECC RAM, SSD for boot, and media on a RAID 1 two-HDD configuration for redunancy. Here is the question I'm wrestling with: Should I move from Fedora-server Emby to FreeNAS-plugin Emby? Let me say that I know there is no cut and dried answer to this due to different processors, operating systems (essentially Linux vs FreeBSD), chipsets, etc. But anecdotally I have heard of a more performant TCP/IP stack on BSD, and I want to reclaim my USB drives although that is not strictly speaking a dealbreaker. However, Emby would be running from an SSD which I am assuming would make a big difference. Of course, I also don't have any experience with the FreeNAS Emby plugin. Are there any relatively stable data points or pieces of information that I am missing that may suggest choosing one course over the other? Many thanks in advance!
  18. omegga

    Multiple dockers issue

    On the latest versions (3.6+), whenever I have more than one instance of emby running in docker, none of them work properly. The web ui doesn't respond, often takes too long to load and is generally unusable. It's almost like something is interfering between the different instances. As soon as I stop all dockers but one, it works flawlessly. I've made sure that every instance uses a different location for config and different ports. EDIT: I noticed that connect.txt in the data folder has the same value for both docker instances. Note that both docker containers are newly created and I haven't reused any data from one or the other. Could that explain the problem?
  19. Pafzedog

    server is crashing in few minutes

    Hello, I'm runing emby server 3.5.2 on debian Jessie. App is crashing quickly with this error message in Systemd status report : emby-server.service - Emby Server is a personal media server with apps on just about every device. Loaded: loaded (/usr/lib/systemd/system/emby-server.service; enabled) Active: failed (Result: exit-code) since lun. 2018-07-30 19:43:35 CEST; 16min ago Process: 16746 ExecStart=/opt/emby-server/bin/emby-server (code=exited, status=5) Main PID: 16746 (code=exited, status=5) juil. 30 19:43:35 Fozzy emby-server[16746]: at System.IO.File.InternalReadAllLines(String path, Encoding encoding) juil. 30 19:43:35 Fozzy emby-server[16746]: at System.IO.File.ReadAllLines(String path) juil. 30 19:43:35 Fozzy emby-server[16746]: at System.Net.NetworkInformation.StringParsingHelpers.ParseGatewayAddressesFromRouteFile(String filePath, String interfaceName) juil. 30 19:43:35 Fozzy emby-server[16746]: at System.Net.NetworkInformation.LinuxIPInterfaceProperties.GetGatewayAddresses() juil. 30 19:43:35 Fozzy emby-server[16746]: at System.Net.NetworkInformation.LinuxIPInterfaceProperties..ctor(LinuxNetworkInterface lni) juil. 30 19:43:35 Fozzy emby-server[16746]: at System.Net.NetworkInformation.LinuxNetworkInterface..ctor(String name) juil. 30 19:43:35 Fozzy emby-server[16746]: at System.Net.NetworkInformation.LinuxNetworkInterface.GetOrCreate(Dictionary`2 interfaces, String name) juil. 30 19:43:35 Fozzy emby-server[16746]: at System.Net.NetworkInformation.LinuxNetworkInterface.<>c__DisplayClass5_0.<GetLinuxNetworkInterfaces>b__1(String name, IpAddressInfo* ipAddr, UInt32* scopeId) juil. 30 19:43:35 Fozzy emby-server[16746]: InnerException: System.IO.IOException juil. 30 19:43:35 Fozzy emby-server[16746]: System.IO.IOException: Permission denied I notice that it happen since emby 3.5.1, It seems that it did'nt happen with first release 3.5.0 . thanks for your help. complete server log is here because uploader on this forum failed for me
  20. Just bought a QNAP TS-231 which has an ARM processor in it, but so far the only builds of Emby I can find are for Intel CPUs :-( Any ideas if there's any way to get it running on my ARM processor? Or whether anyone's working on an ARM build??
  21. Arch Linux emby server 3.5.3.0 filesystem ext4 The server detects when I delete a file but it doesn't detect if I move a file outside of library folder. I have to force a rescan to detect the changes.
  22. aNiclas

    Performance grievance

    Hi, Currently Emby runs off my QNAP-653A with performance issues as soon as more than one device connects. Example: Apple TV4K playing one of my 1080P TV Shows (Transcoding: 21fps, 4.1Mbps ts H264 ac3 with the QNAP CPU running at 98%) Any other connected device makes it all collapse due to lack of CPU-power. All my network components are enterprise grade (Cisco Catalyst, port trunking for the NAS) and soon my internet connection is 1Gbps so i was really hoping to have the Emby server deliever my shows and movies to me on any device at any location even with my kid and wife watching stuff at home... It might be too much to ask from the NAS so I might install Emby on one of my old laptops (Dell M4600, i7, Nvidia Quadro2000, 16GiB RAM, 256 SSD, 1Gbps Ethernet, e-SATA) but before I proceed: 1. Shouldnt my devices at home play without transcoding? - Apple TV4K - Apple TV4K - Openelec Cubox-i4-Pro - ASRock Kodi on Linux 2. If i install Emby on the M4600 Dell Precision Laptop, how do i get the best performance? Linux or Windows? Will it take advantage of the Quadro 2000 GPU? 3. Should i run Emby on both at the same time? Let my mobile devices use the QNAP, internal devices on the M4600? would this cause any new grievance? Anyway to improve QNAP performance in case i go down this road, if it means typing some lines in putty/terminal thats not a problem... Best regards happy Premium-user since I noticed iOS offline was supported
  23. nicheplayer

    Upgrading OS on VPS -- which to choose?

    Upgrading from Debian Wheezy to something newer and am looking for advice/thoughts on which Linux distro would be best for running emby server, sabnzbd, etc. Just go for Ubuntu 18.04? Thanks.
  24. birne

    Exception /opt/emby-server/system

    Hi! I've got an Exception, but the file permissions are ok i think ^^ Can anyone help? Thank you very much! ls -l /var/lib/emby/ drwxr-xr-x 18 emby emby 4096 Okt 27 18:17 cache drwxr-xr-x 4 emby emby 4096 Okt 27 20:00 config drwxr-xr-x 7 emby emby 4096 Okt 28 06:16 data drwxr-xr-x 2 emby emby 4096 Sep 29 14:27 localization drwxr-xr-x 2 emby emby 4096 Okt 28 06:16 logs drwxr-xr-x 7 emby emby 4096 Sep 29 23:07 metadata drwxr-xr-x 3 emby emby 4096 Okt 27 19:23 plugins drwxr-xr-x 3 emby emby 4096 Sep 29 14:27 root drwxr-xr-x 2 emby emby 53248 Okt 1 18:44 transcoding-temp 2018-10-28 06:18:09.353 Info HttpClient: GET https://image.tmdb.org/t/p/original/tPAV8vSLIlEDHDPWg7jicNR2qsk.jpg 2018-10-28 06:18:09.386 Error ProviderManager: Error in metadata saver *** Error Report *** Version: 3.5.3.0 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-deb_{version}_amd64.deb Operating system: Unix 4.9.0.8 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 8 Program data path: /var/lib/emby Application directory: /opt/emby-server/system System.IO.IOException: Read-only file system at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileStream(String path, FileOpenMode mode, FileAccessMode access, FileShareMode share, FileOpenOptions fileOpenOptions) at MediaBrowser.XbmcMetadata.Savers.BaseNfoSaver.SaveToFile(Stream stream, String path) at MediaBrowser.XbmcMetadata.Savers.BaseNfoSaver.Save(BaseItem item, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.ProviderManager.SaveMetadata(BaseItem item, ItemUpdateType updateType, IEnumerable`1 savers) System.IO.IOException at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileStream(String path, FileOpenMode mode, FileAccessMode access, FileShareMode share, FileOpenOptions fileOpenOptions) at MediaBrowser.XbmcMetadata.Savers.BaseNfoSaver.SaveToFile(Stream stream, String path) at MediaBrowser.XbmcMetadata.Savers.BaseNfoSaver.Save(BaseItem item, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.ProviderManager.SaveMetadata(BaseItem item, ItemUpdateType updateType, IEnumerable`1 savers) 2018-10-28 06:18:11.956 Info HttpServer: HTTP GET http://xx:8096/emby/Items/12a05dac156a069358d7db8473b08ea0/Images/Backdrop/0?Format=original&Tag=f01ce0531741e9341b049df55f645a2a. UserAgent: Kodi/17.6 (Linux; Android 5.1.1; AFTT Build/LVY48F) Android/5.1.1 Sys_CPU/armv7l App_Bitness/32 Version/17.6-Git:20171114-a9a7a20 2018-10-28 06:18:11.956 Info HttpResultFactory: Setting range response values for /var/lib/emby/metadata/library/12/12a05dac156a069358d7db8473b08ea0/backdrop.jpg. RangeRequest: bytes=0- Content-Length: 588905, Content-Range: bytes 0-588904/588905
  25. Crossfire0mega

    Server crash on media playback

    So for a little while I have been having issues playing movies, they will play for a few minutes then stop and the server will physically shutdown requiring a manual reboot. This does not seem to happen with tv shows but only movies. I also cannot get it to stop transcoding everything. I have a samsung smart tv 2014 running the emby app. I have also tried casting from an android phone and tablet to a chromecast or to the tv directly but all result in transcoding. I even tried using a ps4. I've attached the logs of the most recent incident but every movie I have tried to play recently does the same thing. ServerLog1.txt ServerLog2.txt TranscodingLog.txt
×
×
  • Create New...