• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Movie Duration

     
    • 0 Vote(s) - 0 Average

    Movie Duration

    What does Jellyfin player reads to display duration
    Stephane
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2025 Mar
    Reputation: 0
    Country:Canada
    #1
    2025-03-10, 02:15 AM
    Hi,

    I was wondering what does Jellyfin's player reads in order to display a movie duration? 

    Here's the context: I have created "fake" mp4 for my collection of DVDs and BluRay, movies not yet digitalized, in order to still have them in the list, while I browse my movies. I created "fake" mp4 that only last 5 seconds. Since they are named properly, they still show in the library, with all the details (poster, nfo file, etc), but of course, the duration is not an info scrapped from the internet, so it obviously comes from the video file itself.

    Now my problem is that when I sort movies by duration, say, ascending, all the "fake" movies are first because they show a duration of 1m.

    I found a way to cheat the duration "display" of an mp4 (it shows the duration of the real movie, even if the video plays for only 5 seconds), by changing hex values in the file. Tested on multiple different players, it successfully shows the movie duration (in my case example: 100m), but of course the video plays for only 5 seconds, which is fine, but I thought in Jellyfin, it would now show that this movie has a 100m duration, but it's not the case, it still shows 1m, so it must be reading that info from "something" else in the file. 

    Does anyone knows how I could trick Jellyfin to think that the movie is actually 100m?

    Thanx in advance

    Steph
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-03-10, 01:48 PM (This post was last modified: 2025-03-10, 01:51 PM by TheDreadPirate. Edited 1 time in total.)
    Jellyfin relies on the output of ffprobe for the files duration. I forget how ffprobe determines the duration. If you modified the file so that it is reported as 100 minutes, you'd need to rescan and "replace all metadata" for the files in question.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Stephane
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2025 Mar
    Reputation: 0
    Country:Canada
    #3
    2025-03-14, 05:16 PM
    Thanx for the answer.

    Unfortunately, I have deleted the extra files and rescan again, and it still display 1m.

    I will investigate your ffprobe idea, thanx again!

    Steph
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode