Jump to content

Search the Community

Showing results for tags 'ffmpeg'.

  • 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. kpirnie

    Update to FFMPEG 7

    Think this may solve alot of issues with live tv channels taking so long to load...
  2. When attempting video playback in my browser, I get this error and the attached logs indicate: /opt/emby-server/bin/ffmpeg: /usr/lib/libOpenCL.so.1: no version information available (required by /opt/emby-server/bin/ffmpeg) /opt/emby-server/bin/ffmpeg: /usr/lib/libOpenCL.so.1: no version information available (required by /opt/emby-server/bin/ffmpeg) /opt/emby-server/bin/ffmpeg: symbol lookup error: /opt/emby-server/bin/ffmpeg: undefined symbol: clCreateImage, version OPENCL_1.2 I can play the files on my mobile however. This is an Arch machine that I want to use as media storage and server. ffmpeg-transcode-2519360f-804c-4228-9c4c-44ce7c31ac4f_1.txt embyserver.txt
  3. Darkheir

    External subtitles not rendered

    Hello, Since I updated from 4.7.14 to 4.8.3.0 the external subtitles are not rendered anymore on videos. Here's some information about the NAS: Version: DSM 7.1.1-42962 Update 5 Model: DS213j CPU: MARVELL Armada 370 88F6707 It seems that all ffmpeg related operations are failing, here are some logs of the errors: 2024-03-06 16:29:09.193 Info Main: Emby Command line: /volume1/@appstore/EmbyServer/system/EmbyServer.exe -programdata /var/packages/EmbyServer/var -ffdetect /var/packages/EmbyServer/target/bin/ffdetect -ffmpeg /var/packages/EmbyServer/target/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/bin/ffprobe -defaultdirectory /volume1/Public -updatepackage emby-server-synology7-mono_{version}_armv7_legacy.spk -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -nolocalportconfig -noskia -ignore_vaapi_enabled_flag Operating system: Linux version 3.2.101 (root@build7) (gcc version 8.5.0 (GCC) ) #42962 Fri Mar 24 00:28:03 CST 2023 Framework: Mono: 6.12.0.182 (tarball Thu Jan 19 10:28:52 PM UTC 2023) OS/Process: X86/X86 Runtime: volume1/@appstore/EmbyServer/lib/mono/4.5/mscorlib.dll Processor count: 1 Data path: /var/packages/EmbyServer/var Application path: /volume1/@appstore/EmbyServer/system 2024-03-06 16:29:38.836 Info FfmpegManager: ProcessRun 'ffmpeg -hide_banner -version' Execute: /var/packages/EmbyServer/target/bin/ffmpeg -hide_banner -version 2024-03-06 16:29:39.849 Info App: Starting entry point Emby.Dlna.Main.DlnaEntryPoint 2024-03-06 16:29:41.036 Info FfmpegManager: ProcessRun 'ffmpeg -hide_banner -version' Process exited with code 132 - Failed 2024-03-06 16:29:41.101 Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -version' Output: 2024-03-06 16:29:41.103 Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -version' Error Output: 2024-03-06 17:11:51.835 Info SubtitleEncoder: ProcessRun 'ffmpeg-subtitle_convert' Process exited with code 132 - Failed 2024-03-06 17:11:51.840 Error SubtitleEncoder: ffmpeg subtitle conversion failed for /volume1/video/subtitle.eng.srt 2024-03-06 17:11:51.841 Error SubtitleEncoder: ProcessRun 'ffmpeg-subtitle_convert' Output: 2024-03-06 17:11:51.841 Error SubtitleEncoder: ProcessRun 'ffmpeg-subtitle_convert' Error Output: 2024-03-06 17:11:51.972 Error App: Error getting subtitles *** Error Report *** Version: 4.8.3.0 Command line: /volume1/@appstore/EmbyServer/system/EmbyServer.exe -programdata /var/packages/EmbyServer/var -ffdetect /var/packages/EmbyServer/target/bin/ffdetect -ffmpeg /var/packages/EmbyServer/target/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/bin/ffprobe -defaultdirectory /volume1/Public -updatepackage emby-server-synology7-mono_{version}_armv7_legacy.spk -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -nolocalportconfig -noskia -ignore_vaapi_enabled_flag Operating system: Linux version 3.2.101 (root@build7) (gcc version 8.5.0 (GCC) ) #42962 Fri Mar 24 00:28:03 CST 2023 Framework: Mono: 6.12.0.182 (tarball Thu Jan 19 10:28:52 PM UTC 2023) OS/Process: X86/X86 Runtime: volume1/@appstore/EmbyServer/lib/mono/4.5/mscorlib.dll Processor count: 1 Data path: /var/packages/EmbyServer/var Application path: /volume1/@appstore/EmbyServer/system System.Exception: System.Exception: ffmpeg subtitle conversion failed for /volume1/video/subtitle.eng.srt at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.ConvertExternalSubtitleInternal (MediaBrowser.Model.Entities.MediaStream subtitleStream, System.Collections.Generic.IDictionary`2[TKey,TValue] requestHeaders, System.String outputPath, Emby.Media.Model.Enums.SubtitleMediaTypes outputCodec, System.Nullable`1[T] startTime, System.Nullable`1[T] endTime, System.Boolean preserveOriginalTimestamps, System.Threading.CancellationToken cancellationToken) [0x0073a] in <3f3cc22c13094dd1a8ace54832e3e042>:0 at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.ConvertExternalSubtitle (MediaBrowser.Model.Entities.MediaStream subtitleStream, System.Collections.Generic.IDictionary`2[TKey,TValue] requestHeaders, System.String outputPath, Emby.Media.Model.Enums.SubtitleMediaTypes outputCodec, System.Nullable`1[T] startTime, System.Nullable`1[T] endTime, System.Boolean preserveOriginalTimestamps, System.Threading.CancellationToken cancellationToken) [0x0013f] in <3f3cc22c13094dd1a8ace54832e3e042>:0 at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.GetReadableFile (System.String mediaPath, MediaBrowser.Model.MediaInfo.MediaProtocol mediaSourceProtocol, System.Boolean isAudio, System.Collections.Generic.IDictionary`2[TKey,TValue] requestHeaders, MediaBrowser.Model.Entities.MediaStream subtitleStream, System.String outputFormat, System.Int64 startTimeTicks, System.Int64 endTimeTicks, System.Boolean preserveOriginalTimestamps, MediaBrowser.Model.Dlna.EncodingContext encodingContext, System.Threading.CancellationToken cancellationToken) [0x0037f] in <3f3cc22c13094dd1a8ace54832e3e042>:0 at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.GetSubtitles (System.String inputPath, MediaBrowser.Model.MediaInfo.MediaProtocol inputProtocol, System.Boolean isAudio, System.Collections.Generic.IDictionary`2[TKey,TValue] requestHeaders, MediaBrowser.Model.Entities.MediaStream subtitleStream, System.String outputFormat, System.Int64 startTimeTicks, System.Int64 endTimeTicks, System.Boolean preserveOriginalTimestamps, MediaBrowser.Model.Dlna.EncodingContext encodingContext, System.Threading.CancellationToken cancellationToken) [0x0011a] in <3f3cc22c13094dd1a8ace54832e3e042>:0 at Emby.Api.Subtitles.SubtitleService.GetSubtitles (Emby.Api.Subtitles.GetSubtitle request, System.Threading.CancellationToken cancellationToken) [0x002fc] in <53aa55c1ddf84136832a4775a5507478>:0 at Emby.Api.Subtitles.SubtitleService.Get (Emby.Api.Subtitles.GetSubtitle request) [0x00265] in <53aa55c1ddf84136832a4775a5507478>:0 Source: mscorlib TargetSite: Void Throw() I tried to execute the ffmpeg binary packaged with the server but I' m not able to run it.
  4. Hi there, first time poster and relatively new media server-hoster trying out Emby for a few weeks. Love the UX and just recently upgraded to Premiere. Currently running Emby and Jellyfin simultaneously in docker containers while I transition. Having an issue with playing media when using DVDSUB/PGS (image-based?) subtitles. I am able to play videos with SRT subtitles or no subtitles just fine, but whenever I load a media file with DVDSUB/PGS subtitles it seems to hang and my logs get filled with errors. I think that my issue may be related to the one described in this thread . For further context I have tested with both the web and chromecast clients and the error persists in each. Additionally, when I play the media with the DVDSUBs in Jellyfin it loads just fine. ffmpeg-transcode.txt
  5. Hi @Luke, I'm experiencing issue on my emby installation (Terramaster f2-210). I was on 4.7.6 and everything was fine, then I decided to move to 4.8.0.8 but this seems to broke playback capability (especially on 4k streams). So I moved back to 4.7.6, but still the issues remain, so I checked and found out that ffmpeg process is feasting on RAM, even when the Emby Server is stopped (see attached screenshot). I also attached an emby server log: you can find a correct playback of 1080 stream (txt line 455), and a failed playback of a 4k one, previously working (txt line 891). Hope this will help in solving the issue, thanks! embyserver.txt
  6. 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
  7. 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
  8. Hello devs! I just installed emby server with com.emby.embyserver_4.7.6.0.apk on my xiaomi 10 pro with android 12. But after I added media folders, all video playback failed and no thumbnails were generated. I take a look at the logs and there are many errors regarding ffmpeg failing to execute. Log files below. Could it be an android 12 specific issues? embyserver.txt ffmpeg-transcode-3732ef57-a432-4e02-942c-b669cfe5a843_1.txt
  9. 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
  10. Model: Pixel 3a - Google/google ---> Official ROM Android 11 Hardware: sargo/sargo/sargo/sargo CANNOT LINK EXECUTABLE "/data/user/0/com.emby.embyserver/files/ffmpeg/ffmpeg": cannot locate symbol "__trunctfdf2" referenced by "/data/user/0/com.emby.embyserver/files/ffmpeg/ffmpeg"... i cant watch videos With Emby server for android App version 4.7.0.9 beta and 4.6.4.0 LOG.zipLOG.zip
  11. Today I found that video files containing embedded closed captions, such as DVB recordings or iTunes downloads, will show that subtitles are present but none of my clients are able to display them and the server is not able to transcode them to a usable format. This example is from the iTunes Store. In the local and remote webapps some corrupted text is shown: The Android client behaves like the webapps. The Kodi plugin and Samsung Orsay client both display nothing at all but detect the correct language. The Emby's log shows ffmpeg bombing out: Stream #0:0(eng): Subtitle: subrip (srt), 1280x720 (default) Metadata: creation_time : 2016-12-07T11:23:24.000000Z encoder : Lavc57.64.100 srt Stream mapping: Stream #0:2 -> #0:0 (eia_608 (cc_dec) -> subrip (srt)) Press [q] to stop, [?] for help [Closed caption Decoder @ 0xa9ca000] Data Ignored since exceeding screen width Last message repeated 2029 times size= 1kB time=00:19:50.89 bitrate= 0.0kbits/s speed=1.52e+04x video:0kB audio:0kB subtitle:1kB other streams:0kB global headers:0kB muxing overhead: 52.568306% The root cause is a known deficiency in ffmpeg which can identify the caption stream correctly but cannot extract it, refer to https://trac.ffmpeg.org/ticket/4616 which also has a sample video attached. I would be curious to know if iOS devices are able to DirectPlay this type of content with working captions. WORKAROUND To extract usable subtitles from a video simply run the file through CCExtractor (http://ccextractor.sourceforge.net), generally you will not need to specify any special options as the defaults will produce an external SubRip (.srt) file as output. To get rid of the unusable caption stream (or replace it with the SubRip subtitles) simply remux the file to Matroska using mkvtoolnix or avimux.
  12. Hello, I have an odd one and I do not think it is emby directly. Read to the end.... I'm encoding some movies into HEVC using Hardware Acceleration. I decided to have two audio tracks (1. Original Audio Passthru, 2. AAC Track @ 960K). When I view the data in emby the second AAC audio track is wrong. It is being reported as 320K. So I figured maybe its the file itself. Here is the audio mediaInfo on the file. Perhaps it is the FFmpeg commands I am using for the audio. This is the main list of commands I have come up with for encoding HEVC with two audio tracks. Mind you the titles and names of the metadata for the audio tracks can change from title to title. I am not really sure why the second audio track is being mis-read. ffmpeg -y -vsync 0 -hwaccel cuda -i "inputFile.mkv" // First Audio Track (Source) Commands -map 0:v -map 0:a:0? -c:a:0 copy -metadata:s:1 title="Surround 5.1 Track" -metadata:s:1 handler="Surround 5.1 Track" -metadata:s:1 language=eng // Second Audio Track (AAC) Commands -map 0:a:0? -c:a:1 aac -metadata:s:2 title="AAC Track" -metadata:s:2 handler="AAC Track" -metadata:s:2 language=eng -b:2 960K -ac:2 6 -filter:2 aformat=channel_layouts=6.0
  13. David9Points

    Subtitles not downloading on MacOS

    Hello, Although scheduled to run each night. The process to download any new subtitles is set to run, and does. However, it doesn't download all the subtitles, in fact it fails with the following message: ffmpeg subtitle extraction failed for file:"/Users/David/emby-server/cache/temp/23f0ce6d-0784-4cf4-afe8-dc84a7fd885f.txt" to /Users/David/emby-server/cache/subtitles I have noticed a number of the TV Show's I have on my NAS (That is connected to Emby) doesn't have subtitles. Does anyone have any ideas how I can fix this? Thanks
  14. Hey everyone. I would like to ask about Intel Quicksync with ffmpeg, I tried to encode 10bit h264 by ffmpeg but it seems that Intel Quicksync doesn't support h264 10bit unlike hevc, so anyone have idea and if I'm mistaken plz inform me.
  15. oisecnet

    Optimizing scanning Library

    Hey guys, Been using emby on Linux for quite some time now. However after a new install on a clean machine, while importing my existing files. I encountered some performance issues. After looking at it it seems the library scanning process only will utilize 1 core at a time. The ffmpeg process that is forked for the chapter images is explicitly started with -threads 1. Is there any option to increase that ? Or is it limited that way due to locking issues ? On current systems it would speed up these processes quite a lot if multiple threads where forked. Even if ffmpeg was only forked with -threads 1 it would be possible to start multiple ffmpeg's for multiple media files. Also it looks like the chapter imaging task limits emby from doing other tasks (like re-importing the .nfo files I have for every media file). Are there any parameters that can be used to force emby to multi-thread some processes or is this currently not possible ?
  16. First of all I love all the work that has been done for this great product and I’ve been using Emby for 2 months without a hitch. However, yesterday I noticed Emby server was only sending stereo audio to my chromecast where surround sound with a range of different transcoded codecs always worked before. I could not find an easy fix, I had the feeling it was ffmpeg related but no errors occurred and software I believe was not updated. However, the Emby logs said it was sending out a stereo signal. I reinstalled Emby Server and everything works except when Emby is casting, the chromecast freezes (loading circle) when I play a movie. I tried a range of files with different audio codecs and containers, AC3, AAC stereo, DTS, Dolby, DTS-HD etc. It keeps freezing What works: Other apps cast fine to the chromecast including surround sound. Casting is initialised by Emby through the android app and the item metadata appears on the casted screen. Emby server plays the items perfectly on my android phone or Mac laptop. Everything worked perfectly until some change somewhere this week. What doesn't work: Once I press play the chromecast shows the circle loading icon over the Emby interface and nothing happens. Hardware/Software: - Chromecast, Firmware 1.42.172094 - Synology DS418play, DSM 6.2.3-25426 - Emby Server (4.4.3) - Emby Client Android (3.1.23) - Marantz SR6006 I believe it has something to do with ffmpeg but don't know why this would just change from one day to another. I attached the log files where the embyserver.txt log ends with the chromecast freezing. Any tips would be highly appreciated. hardware_detection-63735854706.txt embyserver.txt
  17. CaffNoir

    Nothing want to start

    Hi ! So this night with no reason, my emby server decided to not transcode movies and all of stuff on it. Here is my log file : https://paste2.org/9cFkEk0p
  18. well the title explains HOW ITS MEANT TO BE SEEN HOW ITS SEEN THROUGH A BROWSER LOG FILEffmpeg-transcode-2e5de3da-59ec-4e6e-87fe-0c9abef5ea0c_1.txt in the "Processing Plan", in the "SubtitleBurnIn" part it says "false" for burning subtitles but i have this option disabled
  19. lesensei

    Unable to stream some movies

    Hello, I've been happily using Emby (with Premiere) on a XPenology NAS for a few years now, and recently seem to have hit a bug. When I try to play some movies of my collection, I hit the "Aucun flux compatible n'est actuellement disponible." (please pardon my french setup, this would be "No available stream" or something like that in english). I looked at the attached logs, tried to launch the "actual command" and sure enough, got the same error before ffmpeg quits: Stream specifier ':3' in filtergraph description [0:3]scale@f1=width=720:height=-2:force_original_aspect_ratio=decrease[f1_out0];[0:0][f1_out0]overlay@f2=x=(W-w)/2:y=(H-h):repeatlast=0[f2_out0] matches no streams. Just in case, here's the output of ffprobe on the file: ffprobe version 4.3.0-emby_2020_02_24-20200406T210855UTC Copyright (c) 2007-2019 the FFmpeg developers and softworkz for Emby LLC built with gcc 7.3.0 (GCC) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/volume1/video/redactedfilename.m4v': Metadata: major_brand : mp42 minor_version : 512 compatible_brands: isomiso2avc1mp41 creation_time : 2017-10-22T20:12:17.000000Z encoder : HandBrake 1.0.7 2017040900 Duration: 02:05:05.32, start: 0.000000, bitrate: 1089 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/bt709), 720x426 [SAR 64:45 DAR 512:213], 756 kb/s, Level 31, 25 fps, 25 tbr, 90k tbn, 180k tbc (default) Metadata: creation_time : 2017-10-22T20:12:17.000000Z handler_name : VideoHandler Stream #0:1(fra): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default) Metadata: creation_time : 2017-10-22T20:12:17.000000Z handler_name : Stereo Stream #0:2(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s Metadata: creation_time : 2017-10-22T20:12:17.000000Z handler_name : Stereo Stream #0:3(fra): Subtitle: dvd_subtitle (mp4s / 0x7334706D), 720x576, 1 kb/s (default) Metadata: creation_time : 2017-10-22T20:12:17.000000Z handler_name : SubtitleHandler Stream #0:4(eng): Subtitle: dvd_subtitle (mp4s / 0x7334706D), 720x576, 2 kb/s Metadata: creation_time : 2017-10-22T20:12:17.000000Z handler_name : SubtitleHandler Stream #0:5(eng): Data: bin_data (text / 0x74786574) Metadata: creation_time : 2017-10-22T20:12:17.000000Z handler_name : SubtitleHandler Unsupported codec with id 100359 for input stream 5 Any idea what I can do to make this work again (I'm pretty sure it has worked in the past) ? Thanks for your help. ffmpeg-transcode-8b813c11-e81a-4a0b-876d-a6cf032d5a2f_1.txt
  20. marky9074

    FLAC 7.1 to LG WebOS?

    Not sure if this is the right place for this, however having re-ripped all my media using FLAC given the lack of license with Synology (and others) for DTS, I am wondering why Emby is not handling the native 7.1 streams on 'newer' blu-rays and 4K UHD and outputting them as 5.1 to clients. Maybe this is an LG specific thing, as a quick test playing on Android phone and through the browser on my desktop (2ch) seems OK? All I get through my LG 65" OLED (2018) is a blank screen and no sound, and on the LG 32" LCD a high pitched buzz/whistle. Going back to Plex (which I am trying to get away from), they play OK on both. Presumably Emby is also using some FFmpeg library (same as Plex), so there would be no benefit in me installing the one from the SynoCommunity? Any help would be much appreciated. I don't really want to re-rip or remux my library having already done it once to FLAC.... Cheers, Mark
  21. Problem: transcoding a movie with 6-channel audio on a 2-channel (stereo) it TV causes the playback to loop, play a bit, then loop, then play a bit, then loop. This only starts to happen after an hour or so of the movie's playtime. If I fast forward a movie to an hour and ten minutes, the looping will happen. If I fast forward to the ten minute mark, or play ten minutes from the start, the looping will not happen. It only happens when I'm far into the movie. i've seen it happen with multiple movies after the hour (or so) mark. Server Platform: Raspberry PI 4 Server Version: Emby 4.3, and 4.4 beta. (I never saw this happen on 4.1... not sure about 4.2) Affected Apps: Emby on TCL TV with Roku Software, Roku Stick, old Roku box. Unaffected: Emby app on Samsung Galaxy, Emby played through a browser on a few laptops I've tried. I'm guessing transcoding is not happening so those are unaffected. I did not notice this happening until recently after I upgraded emby to 4.3 (from 4.1 or 4.2... sorry I don't recall the version I was using) and upgraded the hardware to a Raspberry PI 4 from a 3. I tried upgrading from 4.3 to the 4.4 beta, but the problem persists. I've tried adjusting transcoding settings, a variety of ways, including turning on and off hardware transcoding. Nothing seems to make any difference. The frequency of the looping happens roughly every few seconds at the max, and a high volume of ffmpeg-remux logfiles get generated. I've uploaded the server logfile, and several of the ffmpeg-remux log files (there are around 20 per minute generated sometimes) embyserver.txt ffmpeg-remux-1227e031-e60a-498d-bb6a-2a0dd5c5c08b_1.txt ffmpeg-remux-bf700119-a27c-4a9c-9a75-0bb32017e6cd_1.txt ffmpeg-remux-c82537e4-2b42-45fc-b58a-dc9439cac80b_1.txt hardware_detection-63713319499.txt
  22. I've seen that some files are being remuxed (changed from mp4 to ts, no changes in video or audio codec) whitout apparent reason. Can somebody give me a clue why this file is being converted from mp4 to ts copying both the video and the audio? The device where is being seen is able to do DirectPlay but insted it is DirectStreaming. Thanks, can provide more info if needed. ffmpeg-directstream-f118d222-127c-45bf-b8f8-f4943b9f68be_1.txt
  23. I have a .STRM file and have disabled transcoding for the user. In the dashboard the content shows up as direct played but it is evident this is not happening because there is massive stutter. I looked in the log files and Emby is still using FFmpeg to transcode it even though it should be direct play. I am using Emby Web Client on Chrome.
  24. Don't know whether this is the right place for this sorry. When FFmpeg transcodes the m3u stream on the fly for viewing where is the code that handles this? I cannot seem to find it anywhere in the source code on GitHub.
  25. I have a .m3u8 file that looks something like this: #EXTM3U #EXT-X-VERSION:3 #EXT-X-STREAM-INF:BANDWIDTH=614000,AVERAGE-BANDWIDTH=564000,RESOLUTION=480x270,CODECS="avc1.77.30,mp4a.40.2" https://example.com/270/prog_index.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=1118000,AVERAGE-BANDWIDTH=1028000,RESOLUTION=640x360,CODECS="avc1.77.30,mp4a.40.2" https://example.com/360/prog_index.m3u8 This is a valid streaming file and the servers are responding. The file works in VLC and using ffmpeg command line. However when trying to play the file in Emby it fails. Here is my log (where [EXAMPLE_FILE] is emby's .mp4 output): 2019-12-02 21:28:36.671 Info App: ProcessRun 'StreamTranscode 3931b4' Execute: /opt/emby-server/bin/ffmpeg -loglevel +timing -f mp4 -i file:"/home/[EXAMPLE_FILE].mp4" -threads 0 -map 0:0 -map 0:1 -sn -c:v:0 libx264 -pix_fmt yuv420p -maxrate 2914608 -bufsize 5829216 -preset veryfast -profile:v:0 high -level:v:0 4.1 -crf 23 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -g:v:0 72 -keyint_min:v:0 72 -sc_threshold:v:0 0 -copyts -vsync -1 -codec:a:0 libmp3lame -disposition:a:0 default -ac:a:0 2 -ab:a:0 63903 -f segment -max_delay 5000000 -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 -start_at_zero -segment_time 3 -individual_header_trailer 0 -segment_format mpegts -segment_write_temp 1 -segment_list_type m3u8 -segment_start_number 0 -segment_list "/var/lib/emby/transcoding-temp/cea4a7824123e700ac386c08c4969e3c.m3u8" -y "/var/lib/emby/transcoding-temp/cea4a7824123e700ac386c08c4969e3c%d.ts" 2019-12-02 21:28:36.759 Info App: ProcessRun 'StreamTranscode 3931b4' Process exited with code 1 2019-12-02 21:28:36.798 Error HttpServer: Error processing request *** Error Report *** Version: 4.3.0.30 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 5.2.0.2 64-Bit OS: True 64-Bit Process: True User Interactive: True Runtime: file:///opt/emby-server/system/System.Private.CoreLib.dll Processor count: 2 Program data path: /var/lib/emby Application directory: /opt/emby-server/system System.Exception: System.Exception: Error starting ffmpeg at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg(StreamState state, String outputPath, CancellationTokenSource cancellationTokenSource, Boolean acquireResources) at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetDynamicSegment(StreamRequest request, String playlistId, String segmentId, Int32 subtitleStreamIndex) at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task) 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: Void MoveNext() I know the correct ffmpeg command for this (similar example): ffmpeg -protocol_whitelist file,http,https,tcp,tls -i "org_file.m3u8" -c copy -bsf:a aac_adtstoasc output.mp4 If all else fails I can change the source code to match the above code.
×
×
  • Create New...