Kodi Community Forum

Full Version: Passthrough: No Audio - Getting Bad Sample Rate
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,

Oddly, I get no sound with Across The Universe (http://www.imdb.com/title/tt0445922/), if using Passthrough.

Disabled Passthrough and sound is fine.

Hardware: Nvidia Shield TV (SHIELD Android TV Software Upgrade 3.2) and Pioneer 830

**Sample**: https://mega.nz/#!4kVTgbIB!2ChFNqAs-fH1n...x4jX2J3MJA

**MediaInfo**:

Code:
General
Unique ID                   : 223414291021023440655607005934040265787 (0xA81406FDAA9E8F76A72CCF297DE2343B)
Complete name               : K:\boxee\Movies (HD)\Across The Universe (2007)\Across.The.Universe.2007.1080p.BluRay.x264.mkv
Format                      : Matroska
Format version              : Version 1
File size                   : 7.94 GiB
Duration                    : 2h 13mn
Overall bit rate            : 8 533 Kbps
Encoded date                : UTC 2008-08-04 16:55:51
Writing application         : mkvmerge v2.2.0 ('Turn It On Again') built on Mar  4 2008 12:58:26
Writing library             : libebml v0.7.7 + libmatroska v0.8.1

Video
ID                          : 1
Format                      : AVC
Format/Info                 : Advanced Video Codec
Format profile              : [email protected]
Format settings, CABAC      : Yes
Format settings, ReFrames   : 5 frames
Codec ID                    : V_MPEG4/ISO/AVC
Duration                    : 2h 13mn
Bit rate                    : 8 083 Kbps
Width                       : 1 920 pixels
Height                      : 800 pixels
Display aspect ratio        : 2.40:1
Frame rate mode             : Constant
Frame rate                  : 23.976 fps
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits
Scan type                   : Progressive
Bits/(Pixel*Frame)          : 0.219
Stream size                 : 7.37 GiB (93%)
Writing library             : x264 core 60 r928M 4816918
Encoding settings           : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=hex / subme=6 / psy_rd=1.000000 / brdo=1 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=3 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / bime=1 / keyint=240 / keyint_min=24 / scenecut=40(pre) / rc=2pass / bitrate=8083 / ratetol=1.0 / rceq='blurCplx^(1-qComp)' / qcomp=1.00 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=2:1.00
Language                    : English
Default                     : Yes
Forced                      : No

Audio
ID                          : 2
Format                      : AC-3
Format/Info                 : Audio Coding 3
Mode extension              : CM (complete main)
Format settings, Endianness : Big
Codec ID                    : A_AC3
Duration                    : 2h 13mn
Bit rate mode               : Constant
Bit rate                    : 448 Kbps
Channel(s)                  : 6 channels
Channel positions           : Front: L C R, Side: L R, LFE
Sampling rate               : 48.0 KHz
Frame rate                  : 31.250 fps (1536 spf)
Compression mode            : Lossy
Stream size                 : 427 MiB (5%)
Language                    : English
Default                     : Yes
Forced                      : No

Note: I let it play on Passthrough for a bit with no sound then I turn off Passthrough and have stereo sound.

Log @ https://paste.ubuntu.com/23230225/

1.) Passthrough enabled when video starts - no Sound

2.) Disable Passthrough and have stereo sound now as expected

3.) Turn Passthrough back on and again no sound

FYI: Happening with both Kodi v17 “Krypton” Beta 2 and SPMC 16.4.2.

I noticed this:
Quote:13:13:24 T:1404029232 DEBUG: Draining Audio
13:13:24 T:1404029232 DEBUG: CActiveAESink::OpenSink - trying to open device AUDIOTRACK:AudioTrack
13:13:24 T:1404029232 DEBUG: CAESinkAUDIOTRACK::Initialize requested: sampleRate 48000; format: AE_FMT_RAW; channels: 6
13:13:24 T:1404029232 DEBUG: Minimum size we need for stream: 5130
13:13:24 T:1404029232 DEBUG: Opening Passthrough RAW Format: STREAM_TYPE_AC3 Sink SampleRate: 48000
13:13:24 T:1404029232 DEBUG: Created Audiotrackbuffer with playing time of 256.000000 ms min buffer size: 15390 bytes
13:13:24 T:1404029232 DEBUG: CAESinkAUDIOTRACK::Initialize returned: m_sampleRate 48000; format:AE_FMT_RAW; min_buffer_size 15390; m_frames 15390; m_frameSize 1; channels: 2
13:13:24 T:1404029232 DEBUG: CActiveAESink::OpenSink - AUDIOTRACK Initialized:
13:13:24 T:1404029232 DEBUG: Output Device : android
13:13:24 T:1404029232 DEBUG: Sample Rate : 48000
13:13:24 T:1404029232 DEBUG: Sample Format : AE_FMT_RAW
13:13:24 T:1404029232 DEBUG: Channel Count : 2
13:13:24 T:1404029232 DEBUG: Channel Layout: FL,FR
13:13:24 T:1404029232 DEBUG: Frames : 15390
13:13:24 T:1404029232 DEBUG: Frame Size : 1
13:13:24 T:1404029232 DEBUG: You did it wrong man - fully wrong! offset -1 head pos 0
So it thinks it's 2 channels and then the last line (https://github.com/xbmc/xbmc/blob/master...K.cpp#L537).

Also noticed:
Quote:13:13:51 T:1457588528 DEBUG: FactoryCodec - Audio: passthrough - Opening
13:13:51 T:1457588528 DEBUG: FactoryCodec - Audio: passthrough - Failed
6 channels ac3 are sent via 2 raw pcm channels. Depending on the bitrates of the ac3 the shield's ac3 packer fails, will work with Android N (while other stuff, e.g. HD audio won't work anymore)
Before you ask: it's the ultra low quality ac3 in your case. Why would anyone rip that sound quality?
OK, cool. Known issue then.

Well, AC-3 @ 448 kb/s was very common back in early 2000s before moving to 640 kb/s.

But yea, I hear you. Sad

And I see they did in fact re-realse it: http://www.blu-ray.com/movies/Across-the...u-ray/643/

Sweet, Dolby TrueHD 5.1. Smile

All good, was just wondering what was happening and if anything could be down about it. You answered that, thank you.
Quote:Well, AC-3 @ 448 kb/s was very common back in early 2000s before moving to 640 kb/s.
DVB has lots of 384kbps. 448 is the standard for DVD. Blu-ray uses 640.
It works fine on all platforms - but hey 2 years ago android was just a ringtone OS - give them some time. It looks that Android 7.1 makes a step in the right direction.