• 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 Troubleshooting Playback error: h264 file with AC3 audio will not playback on swiftfin

    Pages (3): « Previous 1 2 3 Next »

     
    • 0 Vote(s) - 0 Average

    Playback error: h264 file with AC3 audio will not playback on swiftfin

    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #11
    2024-10-09, 03:30 PM
    (2024-10-09, 03:07 PM)linuxnoob0009 Wrote:
    (2024-10-09, 02:06 PM)TheDreadPirate Wrote: Try remuxing one of the files and test the new file.  This will copy the existing video/audio into a new container.  Since there is no encoding it should take a few seconds to complete.

    Code:
    /usr/lib/jellyfin-ffmpeg/ffmpeg -fflags +genpts+igndts -i "/MEDIADRIVE/SERIES/Millennium/Season 1/Millennium - 01x01 - Pilot.mp4" -map 0 -codec copy -max_muxing_queue_size 2048 -max_interleave_delta 0 -avoid_negative_ts disabled newFile.mp4

    Then try playing the new file.
    Hello again! 

    I did this and the file actually plays!

    ....However - the timecode just stays at 0:00 the whole time. I can't search / forward or rewind when playing. And I cannot switch between the audio tracks. Luckily it played with the standard track and not the commentary. This is very mysterious.... does this make any sense at all?

    I also made a .mkv-version, leaving the video and converting the audio to aac, using ffmpeg and this one works normally (except that it only has one audio track - i guess i messed up the CLI command)

    Something is off spec or broken with that file.  These flags, -fflags +genpts+igndts, are supposed to help deal with some weird container issues.

    Try running the same command without those flags and see what happens with the resulting file.
    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]
    linuxnoob0009
    Offline

    Junior Member

    Posts: 12
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:Denmark
    #12
    2024-10-09, 07:05 PM
    (2024-10-09, 03:30 PM)TheDreadPirate Wrote:
    (2024-10-09, 03:07 PM)linuxnoob0009 Wrote:
    (2024-10-09, 02:06 PM)TheDreadPirate Wrote: Try remuxing one of the files and test the new file.  This will copy the existing video/audio into a new container.  Since there is no encoding it should take a few seconds to complete.

    Code:
    /usr/lib/jellyfin-ffmpeg/ffmpeg -fflags +genpts+igndts -i "/MEDIADRIVE/SERIES/Millennium/Season 1/Millennium - 01x01 - Pilot.mp4" -map 0 -codec copy -max_muxing_queue_size 2048 -max_interleave_delta 0 -avoid_negative_ts disabled newFile.mp4

    Then try playing the new file.
    Hello again! 

    I did this and the file actually plays!

    ....However - the timecode just stays at 0:00 the whole time. I can't search / forward or rewind when playing. And I cannot switch between the audio tracks. Luckily it played with the standard track and not the commentary. This is very mysterious.... does this make any sense at all?

    I also made a .mkv-version, leaving the video and converting the audio to aac, using ffmpeg and this one works normally (except that it only has one audio track - i guess i messed up the CLI command)

    Something is off spec or broken with that file.  These flags, -fflags +genpts+igndts, are supposed to help deal with some weird container issues.

    Try running the same command without those flags and see what happens with the resulting file.
    Hello - I did this and get exactly the same result as with the flags. The movie plays but timecode is stuck at 0 and i cannot scrub
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #13
    2024-10-09, 07:29 PM
    There is definitely something broken with the file. More than just the container.

    I don't know what command you used to try to permanently transcode to AAC (the one that only grabbed the commentary track), but here is how I would do it.

    Code:
    /usr/lib/jellyfin-ffmpeg/ffmpeg -fflags +genpts+igndts -i "/MEDIADRIVE/SERIES/Millennium/Season 1/Millennium - 01x01 - Pilot.mp4" -map 0 -c:v copy -c:s copy -c:a libfdk_aac -vbr:a 5 -max_muxing_queue_size 2048 -max_interleave_delta 0 -avoid_negative_ts auto newFile.mp4

    That should transcode all audio tracks to AAC, the ones that aren't corrupt enough to fail, and copy the video and subtitles.
    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]
    linuxnoob0009
    Offline

    Junior Member

    Posts: 12
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:Denmark
    #14
    2024-10-09, 07:31 PM
    Thanks a lot for the help. I asked AI and got this:

    for file in *.mp4; do
    audio_count=$(ffmpeg -i "$file" 2>&1 | grep 'Stream #' | grep 'Audio' | wc -l)
    if [ "$audio_count" -eq 1 ]; then
    sudo ffmpeg -i "$file" -map 0:v -map 0:a:0 -vcodec copy -acodec aac -b:a 192k -ar 48000 -sample_fmt fltp "${file%.mp4}.mkv"
    else
    sudo ffmpeg -i "$file" -map 0:v -map 0:a:0 -map 0:a:1 -vcodec copy -acodec aac -b:a 192k -ar 48000 -sample_fmt fltp "${file%.mp4}.mkv"
    fi
    done

    it brings over both tracks and encodes with the same samplingrate
    linuxnoob0009
    Offline

    Junior Member

    Posts: 12
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:Denmark
    #15
    2024-10-09, 10:43 PM
    Just tried another file from another show. exact same problem. Strangely it seems that jellyfin wants to convert the eac3 audio to aac. why? can i fix this in the settings?

    Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
    BPS-eng : 5608741
    DURATION-eng : 00:30:02.092000000
    NUMBER_OF_FRAMES-eng: 43207
    NUMBER_OF_BYTES-eng: 1263433624
    _STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
    _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1(side), fltp, 256 kb/s (default)
    Metadata:
    BPS-eng : 256000
    DURATION-eng : 00:30:02.208000000
    NUMBER_OF_FRAMES-eng: 56319
    NUMBER_OF_BYTES-eng: 57670656
    _STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
    _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

    Stream mapping:
    Stream #0:0 -> #0:0 (copy)
    Stream #0:1 -> #0:1 (eac3 (native) -> aac (libfdk_aac))
    Press [q] to stop, [?] for help
    Output #0, mpegts, to '/cache/transcodes/8662d50651764fbae0cb0f35a8358844.ts':
    Metadata:
    encoder : Lavf60.3.100
    Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 90k tbn (default)
    Stream #0:1: Audio: aac, 48000 Hz, 5.1, s16, 256 kb/s (default)
    Metadata:
    encoder : Lavc60.3.100 libfdk_aac
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #16
    2024-10-10, 02:02 AM
    I'm not sure about the Swiftfin or the other Apple clients, but on the Android TV client there is a setting to passthrough Dolby audio. Does Swiftfin have something similar?
    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]
    JamesOberegg
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2023 Sep
    Reputation: 0
    Country:Switzerland
    #17
    2024-10-10, 05:26 AM
    Hi @TheDreadPirate. Since I just moved and currently don't own an AppleTV (or TV Smiling-face) I unfortunately can't test this.

    Hi @linuxnoob0009. What change do you mean? Disabling video transcoding? This can be set in the user settings.
    Love Jellyfin Red-heart
    Running a Jellyfin Server on Debian behind a NGINX proxy. 
    I consider video transcodes a waste of CPU/GPU cycles.
    linuxnoob0009
    Offline

    Junior Member

    Posts: 12
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:Denmark
    #18
    2024-10-10, 07:40 AM
    I downloaded the swiftfin app for iphone and the videos play there.
    So there is something going on specifically with the apple tv.

    I have no idea what is going in. Apple TV supposedly supports dolby sound
    linuxnoob0009
    Offline

    Junior Member

    Posts: 12
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:Denmark
    #19
    2024-10-10, 07:48 AM
    I
    (2024-10-10, 05:26 AM)JamesOberegg Wrote: Hi @TheDreadPirate. Since I just moved and currently don't own an AppleTV (or TV Smiling-face) I unfortunately can't test this.

    Hi @linuxnoob0009. What change do you mean? Disabling video transcoding? This can be set in the user settings.

    I found the settings.
    Now the TV can play back the file. However I'm back to the problem where regardless of what audio track i play i get the commentary.... I might just throw in the towel soon
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #20
    2024-10-10, 11:59 AM
    Do you have remuxing enabled?
    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]
    Pages (3): « Previous 1 2 3 Next »

    « 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