• 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

     
    • 0 Vote(s) - 0 Average

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

    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
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 Guest(s)


    Messages In This Thread
    Playback error: h264 file with AC3 audio will not playback on swiftfin - by linuxnoob0009 - 2024-10-08, 03:47 PM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by linuxnoob0009 - 2024-10-08, 04:04 PM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by TheDreadPirate - 2024-10-08, 04:14 PM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by linuxnoob0009 - 2024-10-09, 07:12 AM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by kandykarter - 2024-10-08, 04:46 PM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by TheDreadPirate - 2024-10-08, 04:54 PM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by linuxnoob0009 - 2024-10-09, 11:37 AM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by JamesOberegg - 2024-10-09, 02:01 PM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by TheDreadPirate - 2024-10-09, 02:06 PM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by linuxnoob0009 - 2024-10-09, 03:07 PM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by TheDreadPirate - 2024-10-09, 03:30 PM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by linuxnoob0009 - 2024-10-09, 07:05 PM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by TheDreadPirate - 2024-10-09, 07:29 PM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by linuxnoob0009 - 2024-10-09, 07:31 PM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by linuxnoob0009 - 2024-10-09, 10:43 PM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by TheDreadPirate - 2024-10-10, 02:02 AM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by JamesOberegg - 2024-10-10, 05:26 AM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by linuxnoob0009 - 2024-10-10, 07:48 AM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by linuxnoob0009 - 2024-10-10, 07:40 AM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by TheDreadPirate - 2024-10-10, 11:59 AM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by linuxnoob0009 - 2024-10-10, 01:56 PM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by TheDreadPirate - 2024-10-10, 05:41 PM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by linuxnoob0009 - 2024-10-11, 12:28 PM
    RE: Playback error: h264 file with AC3 audio will not playback on swiftfin - by TheDreadPirate - 2024-10-11, 01:25 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