Jellyfin Forum
image grabber not working for short videos - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: image grabber not working for short videos (/t-image-grabber-not-working-for-short-videos)



image grabber not working for short videos - robbie1407 - 2023-11-21

hi there, im trying to get jellyfin to display all my videos but some thumbnails are missing. it seems to be the ones that are less than 40 seconds long. longer videos seem to have a thumbnail.
the videos are small as they are family videos. the library i created was photo, but i have tried all library types
im guessing image grabber does not work for smaller videos. is there a way to get this to work rather than having to go back to plex Slightly-frowning-face


thankyou

Robbie


RE: image grabber not working for short videos - robbie1407 - 2023-11-21

any ideas?

thanks


RE: image grabber not working for short videos - tmsrxzar - 2023-11-21

test video https://www.youtube.com/shorts/5C1BSTQr9Do
length 18s
downloaded with yt-dlp
scanned to library of media type "Photos"
server 10.8.12 host ubuntu/linuxserver.io in docker on debian bookworm

thumbnail extracted from video normally and displays properly in library views


suggest checking or providing logs or comparing your setup with the above "working normal" setup


RE: image grabber not working for short videos - robbie1407 - 2023-11-22

hi there, thanks for the quick reply.
i upgraded to the same version as yourself and retried adding the videos. here is the log...

[2023-11-22 01:24:10.866 +00:00] [INF] [30] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Killing ffmpeg process
[2023-11-22 01:24:10.831 +00:00] [INF] [32] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Killing ffmpeg process
[2023-11-22 01:24:11.142 +00:00] [ERR] [30] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: ffmpeg image extraction failed for "file:\"/volume1/Family/IMG_1355.MOV\""
[2023-11-22 01:24:11.142 +00:00] [ERR] [32] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: ffmpeg image extraction failed for "file:\"/volume1/Family/IMG_1147.MOV\""
[2023-11-22 01:24:11.558 +00:00] [ERR] [30] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: I-frame image extraction failed, will attempt standard way. Input: "file:\"/volume1/Family/IMG_1355.MOV\""
MediaBrowser.Common.FfmpegException: ffmpeg image extraction failed for file:"/volume1/Family/IMG_1355.MOV"
at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.ExtractImageInternal(String inputPath, String container, MediaStream videoStream, Nullable1 imageStreamIndex, Nullable1 threedFormat, Nullable1 offset, Boolean useIFrame, Nullable1 targetFormat, CancellationToken cancellationToken)
at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.ExtractImage(String inputFile, String container, MediaStream videoStream, Nullable1 imageStreamIndex, MediaSourceInfo mediaSource, Boolean isAudio, Nullable1 threedFormat, Nullable1 offset, Nullable1 targetFormat, CancellationToken cancellationToken)
[2023-11-22 01:24:11.576 +00:00] [ERR] [32] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: I-frame image extraction failed, will attempt standard way. Input: "file:\"/volume1/Family/IMG_1147.MOV\""
MediaBrowser.Common.FfmpegException: ffmpeg image extraction failed for file:"/volume1/Family/IMG_1147.MOV"
at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.ExtractImageInternal(String inputPath, String container, MediaStream videoStream, Nullable1 imageStreamIndex, Nullable1 threedFormat, Nullable1 offset, Boolean useIFrame, Nullable1 targetFormat, CancellationToken cancellationToken)
at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.ExtractImage(String inputFile, String container, MediaStream videoStream, Nullable1 imageStreamIndex, MediaSourceInfo mediaSource, Boolean isAudio, Nullable1 threedFormat, Nullable1 offset, Nullable1 targetFormat, CancellationToken cancellationToken)

thanks

robbie


RE: image grabber not working for short videos - robbie1407 - 2023-11-22

file info:

General
Complete name : \\NAS\Family\IMG_1355.MOV
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt 0000.00 (qt )
File size : 350 MiB
Duration : 33 s 260 ms
Overall bit rate mode : Variable
Overall bit rate : 88.2 Mb/s
Encoded date : UTC 2023-11-03 08:22:29
Tagged date : UTC 2023-11-03 08:23:03
Writing library : Apple QuickTime
com.apple.quicktime.location.accuracy.ho : 35.000000
com.apple.quicktime.location.ISO6709 : +52.4558+001.7035+013.021/
com.apple.quicktime.make : Apple
com.apple.quicktime.model : iPhone SE (3rd generation)
com.apple.quicktime.software : 17.1
com.apple.quicktime.creationdate : 2023-11-03T08:22:29+0000

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main@L5.1@High
Codec ID : hvc1
Codec ID/Info : High Efficiency Video Coding
Duration : 33 s 260 ms
Bit rate : 87.9 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 59.290 FPS
Minimum frame rate : 54.545 FPS
Maximum frame rate : 60.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.179
Stream size : 349 MiB (100%)
Title : Core Media Video
Encoded date : UTC 2023-11-03 08:22:29
Tagged date : UTC 2023-11-03 08:23:03
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Metas : 3,4,5
Codec configuration box : hvcC

Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 33 s 258 ms
Source duration : 33 s 321 ms
Bit rate mode : Variable
Bit rate : 192 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 776 KiB (0%)
Source stream size : 777 KiB (0%)
Title : Core Media Audio
Encoded date : UTC 2023-11-03 08:22:29
Tagged date : UTC 2023-11-03 08:23:03


RE: image grabber not working for short videos - robbie1407 - 2023-11-22

update, i can confirm that muxing video into mkv container solves the issue so i think its to do with the .MOV file. however plex produces the thumbnails without having to mux the video file. hopefully there is a better option to this without having to mux every video lol


RE: image grabber not working for short videos - tmsrxzar - 2023-11-22

i have remuxed 3 videos the other way to -> mov and the container works fine for me still

Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
encoder : Lavf60.17.100

1 was the original test from above
then i tried an additional which was an HEVC
then i tried a 3rd "file_example_MOV_1920_2_2MB.mov" which i downloaded from https://file-examples.com/index.php/sample-video-files/sample-mov-files-download

all of them are working for me

leaves me with 2 analysis

1. your files are unique to this situation (but they look to be standard from an iphone so not unique to the world) and jellyfin is simply not able to do this "right now" and needs to be added by a dev

or

2. your files are somehow broken but that seems quite unlikely since you are reporting "all" and not 1 video

which leaves 1 option (assuming you are in agreement they are not broken files)

file an official github issue report, you can link this thread, provide all the good details devs love and if possible provide a sample for them

https://github.com/jellyfin/jellyfin/issues