• 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 Development Client Development How do I fetch the WAV version of an item?

     
    • 0 Vote(s) - 0 Average

    How do I fetch the WAV version of an item?

    antonlyap
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2023 Nov
    Reputation: 0
    #1
    2023-11-25, 10:17 AM
    I have a music library, and I would like to get a stream of an audio track in WAV format. Is it possible in Jellyfin? What parameters do I need to specify for that?

    Simply setting
    Code:
    containerType=wav
    seems to be insufficient. Jellyfin runs the following command:

    Code:
    /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M  -i file:"/media/path/to/file.m4a" -threads 0 -vn -ab 256000 -ac 2 -acodec copy -ar 48000 -id3v2_version 3 -write_id3v1 1 -y "/config/transcodes/03fc9fa635e92c205619ec637c295946.mp3"

    This command fails, the API request returns error 500. However, changing the output file extension to .wav seems to fix it. How do I get Jellyfin to do that?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2023-11-25, 05:47 PM
    I'm assuming you are accessing your Jellyfin remotely.  Locally it would just play the file but there is a setting for Internet quality that is probably the default setting (256kbps).

    Settings > Playback (not the one in the dashboard)

       
    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]
    antonlyap
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2023 Nov
    Reputation: 0
    #3
    2023-11-25, 08:58 PM
    Thanks for your reply.

    Actually, Jellyfin runs in a Docker container on the same machine I'm accessing it from. The audio files are M4A (AAC), so I assume adjusting the quality won't force JF to transcode them to a bigger format (WAV)?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2023-11-26, 12:12 AM (This post was last modified: 2023-11-26, 12:13 AM by TheDreadPirate.)
    First, why would you want to transcode from AAC to WAV? There is no benefit, only drawbacks (more bandwidth, no quality improvement). Second, Jellyfin supports higher quality (FLAC/WAV) to lower quality (OGG Vorbis, AAC, MP3) but not the other way around.
    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]
    antonlyap
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2023 Nov
    Reputation: 0
    #5
    2023-11-26, 07:14 AM
    I would like to perform some analysis on the music tracks (BPM, frequencies, language etc), and for that I need raw audio data. In that case fetching the item as is and converting it on the receiving end is probably the best solution.

    May I ask where the limitation comes from exactly (when using the API rather than the web UI)? Does Jellyfin put the ffmpeg command together in a specific way that does not allow transcoding to higher quality?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2023-11-26, 05:19 PM
    The "transcode helper" is written in a way that doesn't support your use case. The transcode helper constructs the ffmpeg command depending on client compatibility and your settings. And AFAIK cannot transcode audio to WAV. FFMPEG can do that, but Jellyfin will never tell FFMPEG to do that.
    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]
    antonlyap
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2023 Nov
    Reputation: 0
    #7
    2023-12-01, 08:38 AM
    Got it, thank you.
    Gastino Gangster
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2024 Jun
    Reputation: 0
    #8
    2024-06-25, 03:54 AM
    (2023-11-26, 12:12 AM)TheDreadPirate Wrote: First, why would you want to transcode from AAC to WAV?  There is no benefit, only drawbacks (more bandwidth, no quality improvement).  Second, Jellyfin supports higher quality (FLAC/WAV) to lower quality (OGG Vorbis, AAC, MP3) but not the other way around.

    (2023-11-26, 07:14 AM)antonlyap Wrote: I would like to perform some analysis on the music tracks (BPM, frequencies, language etc), and for that I need raw audio data. In that case fetching the item as is and converting it on the receiving end is probably the best solution.

    May I ask where the limitation comes from exactly (when using the API rather than the web UI)? Does Jellyfin put the ffmpeg command together in a specific way that does not allow transcoding to higher quality?
    Unfortunately I did try, but it didn't make a difference.
    « 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