[Solved] Audio streams get incorrrectly detected as LPCM

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
jj123
Posts: 38
Joined: Tue Jul 29, 2014 10:33 am

[Solved] Audio streams get incorrrectly detected as LPCM

Post by jj123 »

Some MP4 videos are incorrectly getting their audio stream detected as lpcm, which then triggers an unnecessary transcode of the file.

I have tested this with 4.0.3 and 4.1.0

It appears to occur when a file has more than the usual 2 streams (1 video and 1 audio), some info from the log shows:

Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 720x404, 927 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 121 kb/s (default)
Stream #0:2(und): Data: none (mp4s / 0x7334706D), 0 kb/s (default)
Stream #0:3(und): Data: none (mp4s / 0x7334706D), 0 kb/s (default)

Audio codec "lpcm" failed to match support line f:mp4|m4v v:mp4|h264 a:aac m:video/mp4 n:2

When the file contains only the audio and video stream the audio stream is correctly detected as "aac"

I have also attached a Trace debug log from the latest 4.1.0, TestMovie1 exhibits the problem, TestMovie2 correctly detects audio as "aac".
Attachments
ums_dbg.zip
(34.21 KiB) Downloaded 381 times
User avatar
SubJunk
Lead Developer
Posts: 3800
Joined: Sun May 27, 2012 4:12 pm

Re: Some AAC Audio streams get incorrrectly detected as LPCM

Post by SubJunk »

This is fixed in 4.1.1 :) Thanks for the report!
Post Reply