Jellyfin Forum
Jellyfin showing wrong video duration & cutting video off - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification)
+---- Thread: Jellyfin showing wrong video duration & cutting video off (/t-jellyfin-showing-wrong-video-duration-cutting-video-off)



Jellyfin showing wrong video duration & cutting video off - Ghostly_Ghost - 2024-09-12

Hi guys,

I've got a really odd problem with one video on my jellyfin, and it's driving me bananas.

The episode is actually 48mins long - but jellyfin's description only lists it as 32mins.  When I play the video via jellyfin (web/android app/roku app) it does indeed end after 32mins.  If I play the video in vlc, it's 48mins long.  jellyfin is configured to pull metadata off tvdb and the episode duration is correctly listed on their website.

Anyone any ideas at all?  I'm scratching my head with this one, utterly baffled 😩


RE: Jellyfin showing wrong video duration & cutting video off - TheDreadPirate - 2024-09-12

What is the output of ffprobe when you run it against that file?


RE: Jellyfin showing wrong video duration & cutting video off - Ghostly_Ghost - 2024-09-14

Hi, sorry haven't been near my pc for a couple of days.

ffprobe:

ffprobe version 4.2.7-0ubuntu0.1 Copyright © 2007-2022 the FFmpeg developers
built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-liblensfun --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'S06E09.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
title : 'Revenge'
artist : ''
date : '1982'
encoder : Lavf58.76.100
comment : ''
description : 'Petrie falls under suspicion when someone he was squabbling with is murdered. Chris finds out a reporter she's dating isn't just interested in her romantically.'
show : 'Cagney & Lacey'
episode_id : '9'
season_number : 6
Duration: 00:32:41.34, start: 0.000000, bitrate: 459 kb/s
Stream #0:0(und): Video: hevc (Main) (hev1 / 0x3176656Nerd-face, yuv420p(tv, bt709, progressive), 720x576 [SAR 16:15 DAR 4:3], 326 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 23.98 tbc (default)
Metadata:
handler_name : USP Video Handler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : USP Sound Handler


RE: Jellyfin showing wrong video duration & cutting video off - gnattu - 2024-09-14

Well ffmpeg only recognizes it as 32 minute long and that this why. You need to figure out a way to fix that file


RE: Jellyfin showing wrong video duration & cutting video off - Efficient_Good_5784 - 2024-09-14

This is just a guess since it plays the full 48 minutes with VLC.

Are you using a video with ordered chapters?


RE: Jellyfin showing wrong video duration & cutting video off - theguymadmax - 2024-09-14

This happened to me once before and it did perplex me for a while. I figured out that the audio track was shorter than the video track. I remuxed audio in from a different file with the correct length and then the video played the "correct" length.


RE: Jellyfin showing wrong video duration & cutting video off - Ghostly_Ghost - 2024-09-15

Ooh, the plot thickens and I don't think it's a jellyfin issue, but it's really screwy.

I have the video on a usb stick - play it and vlc shows 48mins length. If I copy the video to my desktop or my media server, it suddenly becomes 32mins. How is that even possible?!


RE: Jellyfin showing wrong video duration & cutting video off - Ghostly_Ghost - 2024-09-17

I eventually gave up and re-downloaded the video again - it's now showing as 48mins. No idea what was wrong with the version on the USB stick.