2024-08-29, 03:06 AM
(This post was last modified: 2024-08-29, 03:23 AM by theguymadmax. Edited 1 time in total.)
Thanks, Pirate. I tried narrowing it down further and it looks like the issue is with MP2 audio codec in MP4 containers. I converted a standard Big Buck Bunny file to have MP2 audio stream and encountered the same error message.
If you want to keep your files in an MP4 container, you'll need to transcode the audio to a different codec—AAC, for example. Alternatively, as mentioned in my previous post, you can simply remux your files into an MKV container, where MP2 audio doesn’t cause any issues. In a mkv container, the file is playable because jellyfin correctly transcodes the file:
In the mp4 it just remuxes the file and fails:
If you want to keep your files in an MP4 container, you'll need to transcode the audio to a different codec—AAC, for example. Alternatively, as mentioned in my previous post, you can simply remux your files into an MKV container, where MP2 audio doesn’t cause any issues. In a mkv container, the file is playable because jellyfin correctly transcodes the file:
Code:
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (mp2 (native) -> aac (libfdk_aac))
In the mp4 it just remuxes the file and fails:
Code:
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Code:
/usr/lib/jellyfin-ffmpeg/ffmpeg -i path/to/input.mp4 -map 0:v -c:v copy -map 0:a -c:a aac /path/to/output.mp4