• 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 Is it possible to have separate library based on language?

     
    • 0 Vote(s) - 0 Average

    Is it possible to have separate library based on language?

    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-06-21, 07:02 PM (This post was last modified: 2024-06-21, 07:06 PM by TheDreadPirate. Edited 2 times in total.)
    In your ffprobe you are specifying "default=noprint_wrappers=1:nokey=1", but then grepping on the key "language". When nokey is set to 1 the output is

    Code:
    chris@rat-trap:~$ /usr/bin/ffprobe -v error -select_streams a:0 -show_entries stream=codec_type:stream_tags=language:stream=codec_name -of default=noprint_wrappers=1:nokey=1 "/media/storage2/testMovies/Mad Max Fury Road/Mad Max Fury Road.mkv"
    truehd
    audio
    eng

    As a result, the grep doesn't retrieve anything and LANG is always null. But when it is set to 0.

    Code:
    chris@rat-trap:~$ /usr/bin/ffprobe -v error -select_streams a:0 -show_entries stream=codec_type:stream_tags=language:stream=codec_name -of default=noprint_wrappers=1:nokey=0 "/media/storage2/testMovies/Mad Max Fury Road/Mad Max Fury Road.mkv"
    codec_name=truehd
    codec_type=audio
    TAG:language=eng

    And debug output confirms that LANG is populated now.

    Code:
    + grep -oP (?<=language=)[^,]+
    + + echohead /media/storage2/testMovies/Batman -n Begins/Batman 1 Begins.mkv
    + /usr/bin/ffprobe -v error -i /media/storage2/testMovies/Batman Begins/Batman Begins.mkv -select_streams a:0 -show_entries stream=codec_type:stream_tags=language:stream=codec_name -of default=noprint_wrappers=1:nokey=0
    + LANG=eng
    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]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Is it possible to have separate library based on language? - by fedonr - 2024-06-21, 03:05 PM
    RE: Is it possible to have separate library based on language? - by TheDreadPirate - 2024-06-21, 03:23 PM
    RE: Is it possible to have separate library based on language? - by fedonr - 2024-06-21, 03:32 PM
    RE: Is it possible to have separate library based on language? - by TheXaman - 2025-02-26, 10:57 AM
    RE: Is it possible to have separate library based on language? - by TheDreadPirate - 2024-06-21, 03:39 PM
    RE: Is it possible to have separate library based on language? - by fedonr - 2024-06-21, 06:37 PM
    RE: Is it possible to have separate library based on language? - by TheDreadPirate - 2024-06-21, 07:02 PM
    RE: Is it possible to have separate library based on language? - by TheDreadPirate - 2024-06-21, 07:19 PM
    RE: Is it possible to have separate library based on language? - by fedonr - 2024-06-21, 08:52 PM
    RE: Is it possible to have separate library based on language? - by TheDreadPirate - 2024-06-21, 08:57 PM
    RE: Is it possible to have separate library based on language? - by fedonr - 2024-06-22, 04:49 PM
    RE: Is it possible to have separate library based on language? - by fedonr - 2024-06-22, 05:19 PM
    RE: Is it possible to have separate library based on language? - by fedonr - 2024-06-21, 09:33 PM
    RE: Is it possible to have separate library based on language? - by TheDreadPirate - 2024-06-22, 05:27 PM
    RE: Is it possible to have separate library based on language? - by fedonr - 2024-06-22, 05:30 PM

    • 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