Jump to content

Generating thumbnails/images fails for .ts files


Recommended Posts

AdminPanda
Posted

As the title says, generating thumbnails/images fails for .ts files, while it works for other file types. There are many examples of the error appearing in my log, here is one that also shows server and ffmpeg versions:
 

2024-06-13 22:33:52.122 Error QuickSingleImageExtractor: ProcessRun 'quick-extract-image' Error Output:
ffmpeg version 5.1-emby_2023_06_25 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
Execution Date: 2024-06-13 22:32:52
-vsync is deprecated. Use -fps_mode
Passing a number to -vsync is deprecated, use a string argument as described in the manual.
[mpegts @ 00000245f6bee7c0] start time for stream 2 is not set in estimate_timings_from_pts
Input #0, mpegts, from 'file:C:\Series\Other\aaaa.ts':
Duration: 01:58:05.40, start: 0.101000, bitrate: 2537 kb/s
Program 1
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], Level 40, 30 fps, 30 tbr, 90k tbn, Start-Time 0.168s
Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 170 kb/s, Start-Time 0.101s
Stream #0:2[0x102]: Data: timed_id3 (ID3 / 0x20334449), Start-Time 0.101s
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[swscaler @ 00000245f8d98b80] [swscaler @ 00000245f8da5b40] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000245f8d98b80] [swscaler @ 00000245f859f840] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000245f8d98b80] [swscaler @ 00000245f913f180] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000245f8d98b80] [swscaler @ 00000245f918f080] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000245f8d98b80] [swscaler @ 00000245f91dce40] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000245f8d98b80] [swscaler @ 00000245f9256640] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000245f8d98b80] [swscaler @ 00000245f9265500] deprecated pixel format used, make sure you did set range correct
2024-06-13 22:33:52.122 Error ImageExtraction: Thumbnail-Filter extraction failed, will attempt standard way. Input: file:"C:\Series\Other\aaaa.ts"
2024-06-13 22:33:52.123 Info QuickSingleImageExtractor: ProcessRun 'quick-extract-image' Execute: C:\Users\tttt\AppData\Roaming\Emby-Server\system\ffmpeg.exe -skip_list 708 -f mpegts -threads 1 -i file:"C:\Series\Other\aaaa.ts" -an -sn -update 1 -vsync 0 -f image2 "C:\Users\tttt\AppData\Roaming\Emby-Server\programdata\cache\temp\86b74a01-2687-4fc4-8d9a-a8b09d3399e3.jpg"

2024-06-13 22:34:52.142 Error QuickSingleImageExtractor: QuickSingleImageExtractor.RunExtraction [B23FB9027C91]: Error running quick-extract-image -skip_list 708 -f mpegts -threads 1 -i file:"C:\Series\Other\aaaa.ts" -an -sn -update 1 -vsync 0 -f image2 "C:\Users\tttt\AppData\Roaming\Emby-Server\programdata\cache\temp\86b74a01-2687-4fc4-8d9a-a8b09d3399e3.jpg"
*** Error Report ***
Version: 4.8.8.0
Command line: C:\Users\tttt\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
Operating system: Microsoft Windows 10.0.22621
Framework: .NET 6.0.30
OS/Process: x64/x64
Runtime: C:/Users/tttt/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
Processor count: 24
Data path: C:\Users\tttt\AppData\Roaming\Emby-Server\programdata
Application path: C:\Users\tttt\AppData\Roaming\Emby-Server\system
System.Exception: System.Exception: Error running ffmpeg quick-extract-image for file:"C:\Series\Other\aaaa.ts" - Command: -skip_list 708 -f mpegts -threads 1 -i file:"C:\Series\Other\aaaa.ts" -an -sn -update 1 -vsync 0 -f image2 "C:\Users\tttt\AppData\Roaming\Emby-Server\programdata\cache\temp\86b74a01-2687-4fc4-8d9a-a8b09d3399e3.jpg"
at Emby.Server.MediaEncoding.ImageExtraction.ImageExtractorBase.RunExtraction(String inputPath, Nullable`1 container, MediaStream videoStream, Nullable`1 protocol, Nullable`1 streamIndex, Nullable`1 threedFormat, Nullable`1 startOffset, Nullable`1 interval, String targetDirectory, String targetFilename, Nullable`1 maxWidth, Boolean enableThumbnailFilter, CancellationToken cancellationToken)
Source: Emby.Server.MediaEncoding
TargetSite: Void MoveNext()


This appears to be happening for all .ts files

Posted

Hello AdminPanda,

** This is an auto reply **

Please wait for someone from staff support or our members to reply to you.

It's recommended to provide more info, as it explain in this thread:


Thank you.

Emby Team

Posted

Hi, it's normal that this can fail for some .ts files. You may want to consider not enabling it for this library.

On the to do list is adding an option to disable it specifically for mpegts.

AdminPanda
Posted

If I run the command manually and change the things it's telling you are wrong, it works fine, I can see the tmp thumbnail file updated over and over with valid images

rbjtech
Posted (edited)

some .ts files have no timing marks - thus trying to skip every 10 seconds fails - so if you look, emby tries an alternative (slower) way to get the images.

Are you saying that fails as well - and no .bif file is created at all ?

There should be a quick-extract-image ffmpeg log file created for each file - posting that as well as the above would be useful.

Edited by rbjtech
AdminPanda
Posted (edited)

Yes i meant both methods fail, in the apps no images are shown for those files. However it seems a bif file has been created. I have no idea where those quick-extract-image logs are. I only see the directsteam logs.

Also, there is no poster or .fp file with the .bif like I see in other folders, not sure if it has any relevance

Edited by AdminPanda
rbjtech
Posted
8 hours ago, AdminPanda said:

Yes i meant both methods fail, in the apps no images are shown for those files. However it seems a bif file has been created. I have no idea where those quick-extract-image logs are. I only see the directsteam logs.

Also, there is no poster or .fp file with the .bif like I see in other folders, not sure if it has any relevance

so the .fp is a fingerprint file for IntroSkip and no poster could be that one is not available - but it's more likely that they are not being picked up for some reason.   File Permissions ?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...