Jump to content

No audio from 5.1 PCM track


crusher11

Recommended Posts

crusher11

I assume it needs to be transcoded and remuxed due to the high bitrate, but Emby isn't catching it so all I get is silence.

Link to comment
Share on other sites

crusher11
General
Format                                   : Matroska
Format version                           : Version 2
File size                                : 21.3 GiB
Duration                                 : 1 h 46 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 28.6 Mb/s
Encoded date                             : UTC 2020-10-08 19:46:36
Writing application                      : MakeMKV v1.15.2 win(x64-release)
Writing library                          : libmakemkv v1.15.2 (1.3.10/1.5.2) win(x64-release)

Video
ID                                       : 1
ID in the original source medium         : 4113 (0x1011)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings                          : CABAC / 3 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 3 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 1 h 46 min
Bit rate mode                            : Variable
Bit rate                                 : 24.0 Mb/s
Maximum bit rate                         : 40.0 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.482
Stream size                              : 17.9 GiB (84%)
Language                                 : English
Default                                  : No
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Original source medium                   : Blu-ray

Audio
ID                                       : 2
ID in the original source medium         : 4352 (0x1100)
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : A_MS/ACM / 00000001-0000-0010-8000-00AA00389B71
Duration                                 : 1 h 46 min
Bit rate mode                            : Constant
Bit rate                                 : 4 608 kb/s / 4 608 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 30.000 FPS (1600 SPF)
Bit depth                                : 16 bits
Stream size                              : 3.43 GiB (16%)
Title                                    : PCM 5.1
Language                                 : English
Default                                  : Yes
Forced                                   : No
Original source medium                   : Blu-ray

Text #1
ID                                       : 3
ID in the original source medium         : 4608 (0x1200)
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 1 h 42 min
Bit rate                                 : 16.3 kb/s
Count of elements                        : 1876
Stream size                              : 11.9 MiB (0%)
Language                                 : English
Default                                  : No
Forced                                   : No
Original source medium                   : Blu-ray

Text #2
ID                                       : 5
ID in the original source medium         : 4609 (0x1201)
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 1 h 42 min
Bit rate                                 : 17.7 kb/s
Count of elements                        : 2068
Stream size                              : 12.9 MiB (0%)
Title                                    : SDH (PGSSUB)
Language                                 : English
Default                                  : No
Forced                                   : No
Original source medium                   : Blu-ray

Menu
00:00:00.000                             : en:Chapter 01
00:08:43.981                             : en:Chapter 02
00:09:50.673                             : en:Chapter 03
00:14:56.979                             : en:Chapter 04
00:16:30.948                             : en:Chapter 05
00:20:57.339                             : en:Chapter 06
00:25:04.586                             : en:Chapter 07
00:32:26.069                             : en:Chapter 08
00:34:37.158                             : en:Chapter 09
00:36:28.394                             : en:Chapter 10
00:40:55.703                             : en:Chapter 11
00:43:22.933                             : en:Chapter 12
00:49:59.037                             : en:Chapter 13
00:54:53.039                             : en:Chapter 14
00:56:57.414                             : en:Chapter 15
00:59:59.804                             : en:Chapter 16
01:02:51.392                             : en:Chapter 17
01:04:35.037                             : en:Chapter 18
01:07:37.261                             : en:Chapter 19
01:12:16.832                             : en:Chapter 20
01:13:28.445                             : en:Chapter 21
01:17:33.315                             : en:Chapter 22
01:22:19.684                             : en:Chapter 23
01:31:38.409                             : en:Chapter 24
01:33:13.588                             : en:Chapter 25
01:35:52.788                             : en:Chapter 26
01:37:49.947                             : en:Chapter 27
01:42:15.462                             : en:Chapter 28
01:46:37.015                             : en:Chapter 29

 

Link to comment
Share on other sites

I think this should be remuxing.  Can you check the user settings on the server and confirm that all transcode/remux options are enabled.

Can you attach the server log when you try and play this (ideally with debug logging turned on)

Link to comment
Share on other sites

crusher11

They are, it remuxes Die Hard as discussed in the other thread. It also remuxes Shoah, which is 24 bit 2.0 PCM. 

Link to comment
Share on other sites

OK, from an audio perspective, remux is equivalent to an audio steam transcode.  So same comments as your other thread, this should be remuxing so it is doing the right thing, but the remux is not producing any audio.

 

So am I now correct?  You have two samples, DTS-MA and PCM5.1, both which are remuxing (as they should) but neither are producing any audio.  Correct?  That is the problem we need to resolve

Link to comment
Share on other sites

crusher11

No, that's not correct.

Die Hard 4K has a DTS-HD MA 2.0 soundtrack. This should simply extract the DTS core and Direct Play. Instead, it converts the audio to AAC and remuxes. There is audio.
Unbreakable has a PCM 5.1 soundtrack. This should convert the audio and remux, but it doesn't. It plays silently.

 

embyserver.txt ffmpeg-remux-4d77a3e0-e35a-4d27-99f1-db2e51a8e564_1.txt

Link to comment
Share on other sites

We're getting the threads mixed up now.  I don't know why this isn't trying to DirectPlay.  It may have been something that's already resolved for the next version.

If you turn on debug logging temporarily and try playback again, that might tell us a bit more

Link to comment
Share on other sites

From the log with debugging it looks like Die Hard tried to DirectPlay, then failed, so it requested Transcoding.  However, because the original video codec (HEVC) is requested in the Transcode request only the audio has been converted so it has DirectStreamed instead.  I suspect that if you try this original file from a USB drive with the TV's built in player that it may fail to play there as well.  Not sure why, maybe the container is corrupt?

For this file https://emby.media/community/index.php?/topic/92745-no-audio-from-51-pcm-track/&do=findComment&comment=957703 I expect that we need a channel limit on PCM files to force remuxing if there are more than 2 channels.  @Luke, what are your thoughts on this?  It's really an ARC bandwidth issue, but until we see support eARC support, I can't see people playing PCM5.1 any other way, and I think this is rare as it's never come up before.  Having said that, @crusher11, I would suggest it would be better to add your own compressed 5.1 track to this file, then let it DirectPlay

 

 

 

Link to comment
Share on other sites

rbjtech

Re : Diehard 4K DTS Core issue - If you are familiar with ffmpeg on the command line, then you can extract the DTS core yourself to confirm if it's not corrupt.

ffmpeg -i input.mkv -map 0 -c:v copy -bsf:a dca_core -c:a copy -c:s copy output.mkv

 

 

Link to comment
Share on other sites

crusher11
6 hours ago, SamES said:

From the log with debugging it looks like Die Hard tried to DirectPlay, then failed, so it requested Transcoding.  However, because the original video codec (HEVC) is requested in the Transcode request only the audio has been converted so it has DirectStreamed instead.  I suspect that if you try this original file from a USB drive with the TV's built in player that it may fail to play there as well.  Not sure why, maybe the container is corrupt?

For this file https://emby.media/community/index.php?/topic/92745-no-audio-from-51-pcm-track/&do=findComment&comment=957703 I expect that we need a channel limit on PCM files to force remuxing if there are more than 2 channels.  @Luke, what are your thoughts on this?  It's really an ARC bandwidth issue, but until we see support eARC support, I can't see people playing PCM5.1 any other way, and I think this is rare as it's never come up before.  Having said that, @crusher11, I would suggest it would be better to add your own compressed 5.1 track to this file, then let it DirectPlay

 

 

 

It's forcing a remux on Shoah and its bonus films, which are two-channel PCM. Is that because 24-bit and 16-bit are treated differently? I assume I'm going to have to go through my movies and look for other potentially problematic files.

4 hours ago, rbjtech said:

Re : Diehard 4K DTS Core issue - If you are familiar with ffmpeg on the command line, then you can extract the DTS core yourself to confirm if it's not corrupt.

ffmpeg -i input.mkv -map 0 -c:v copy -bsf:a dca_core -c:a copy -c:s copy output.mkv

 

 

How would that confirm corruption or lack thereof?

Link to comment
Share on other sites

crusher11

I muxed the DTS-HD MA track onto the Blu-ray, and it Direct Plays. So it's not an issue with the audio track itself.

 

Link to comment
Share on other sites

rbjtech
45 minutes ago, crusher11 said:

How would that confirm corruption or lack thereof?

If it exports the entire core without issue, then no corruption ... if it errors, then there is - and this is possibly why emby resorted to transcoding..

Without the files it's difficult to investigate - but there are plenty of excellent free tools on the web to help you identify the issue yourself.  eac3to, tsMuxer to name a few ..

Link to comment
Share on other sites

17 hours ago, crusher11 said:

ffmpeg extracted it just fine.

And as I said, if I mux that DTS-HD MA track onto the Blu-ray, it Direct Plays.

 

Sounds like the original mkv container is corrupt?

 

18 hours ago, crusher11 said:

It's forcing a remux on Shoah and its bonus films, which are two-channel PCM. Is that because 24-bit and 16-bit are treated differently? I assume I'm going to have to go through my movies and look for other potentially problematic files.

Yes, it's possible that they are treated differently.  It depends on the codec tag

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...