Author Topic: 2 AAC Streams, MP4 Container, can't switch between them  (Read 3866 times)

September 26, 2009, 02:51:34 AM
Read 3866 times

MegaManX4

  • Newbie

  • Offline
  • *

  • 1
Good Day Comrades,

I want to rip my DS9 Collection to an mp4 container, with german and english audio (2 aac streams) with nero digital. The rip is fine, and i can play it on my computer, but the WDTV doesn't let me switch the current audio stream.

Does anyone know how to circumvent this issue?

October 07, 2010, 07:22:16 AM
Reply #1

Ron[NL]

  • Sr. Member

  • Offline
  • ****

  • 425
    • WDTV Movie Sheet Generator
Came across this today too for the first time. Never had such a file before  ;)

This is the file :
Code: [Select]
General
Complete name                    : L:\Movies\Test.mp4
Format                           : MPEG-4
Format profile                   : Base Media / Version 2
Codec ID                         : mp42
File size                        : 2.15 GiB
Duration                         : 2h 4mn
Overall bit rate                 : 2 471 Kbps
Encoded date                     : UTC 2010-09-07 06:48:10
Tagged date                      : UTC 2010-09-07 06:48:10

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High@L4.1
Format settings, CABAC           : Yes
Format settings, ReFrames        : 12 frames
Codec ID                         : avc1
Codec ID/Info                    : Advanced Video Coding
Duration                         : 2h 4mn
Bit rate mode                    : Variable
Bit rate                         : 2 043 Kbps
Maximum bit rate                 : 6 292 Kbps
Width                            : 1 280 pixels
Height                           : 544 pixels
Display aspect ratio             : 2.35: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.122
Stream size                      : 1.78 GiB (83%)
Writing library                  : x264 core 67 r1162M f7bfcfa
Encoding settings                : cabac=1 / ref=12 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=7 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=12 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=12 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=2043 / ratetol=1.0 / qcomp=0.50 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=24000 / vbv_bufsize=24000 / ip_ratio=1.10 / pb_ratio=1.10 / aq=1:1.00
Encoded date                     : UTC 2010-09-07 06:48:10
Tagged date                      : UTC 2010-09-07 06:56:09

Audio #1
ID                               : 2
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format version                   : Version 4
Format profile                   : LC
Format settings, SBR             : No
Codec ID                         : 40
Duration                         : 2h 4mn
Bit rate mode                    : Variable
Bit rate                         : 125 Kbps
Maximum bit rate                 : 183 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 48.0 KHz
Stream size                      : 111 MiB (5%)
Encoded date                     : UTC 2010-09-07 06:55:00
Tagged date                      : UTC 2010-09-07 06:56:09

Audio #2
ID                               : 3
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format version                   : Version 4
Format profile                   : LC
Format settings, SBR             : No
Codec ID                         : 40
Duration                         : 2h 4mn
Bit rate mode                    : Variable
Bit rate                         : 298 Kbps
Maximum bit rate                 : 393 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Side: L R, LFE
Sampling rate                    : 48.0 KHz
Stream size                      : 266 MiB (12%)
Encoded date                     : UTC 2010-09-07 06:55:20
Tagged date                      : UTC 2010-09-07 06:56:09


My wdtv gen1 only sees the stereo AAC stream when pressing the options button, not the 6 channel stream...  Not a big deal, as I know the wdtv site says :

Quote
Audio -- MP3, WMA, MPA, M4A, MP4A, OGG, WAV/PCM/LPCM, AAC, FLAC, Dolby Digital, AIF/AIFF, MKA

    * An audio receiver is required for surround sound output (including the unsupported DTS audio codec). For more information see Answer ID 3590: DTS support on the WD TV Media Player
    * AAC/Dolby Digital decodes in 2 channel output only.

The file plays fine and I have sound, but weird it doesn't mention the 2nd audiostream.
Have not looked into this further, so don't know if it's caused by the MP4 container, the 6 channel stream or something else.
Anyone knows ???
WDLXTV 0.5.8.1 + Showcase v2 OSD Mod

Philips 40PFL8605H, Sitecom WL-351

Trust HU-5440 USB Hub
WDTV MSG 1.7.0,  TheTvDBv3.0 TVSheetGenerator - rev 5.4.1

October 07, 2010, 07:24:38 AM
Reply #2

RoofingGuy

  • Full Member

  • Offline
  • ***

  • 157
As far as I know, it's an .mp4 container issue.

I made a test .mp4 with 2 2.0 audio streams, that played fine in VLC, for someone with a different WD device who was having multiple-audio problems.  Turns out, the WD devices only "see" the first audio stream (and don't see any subtitle streams) when they're handed an .mp4 container.


If you need multiple audio tracks, and/or internal subtitles, it looks like you have to go with a different container, like Matroska.
« Last Edit: October 07, 2010, 07:52:19 AM by RoofingGuy »

October 07, 2010, 09:05:15 AM
Reply #3

Ron[NL]

  • Sr. Member

  • Offline
  • ****

  • 425
    • WDTV Movie Sheet Generator
Thanks for the info RoofingGuy ! It saved me some work, to determine where things go wrong.  ;)
As you mentioned that subtitles are a problem too with mp4 (can't confirm yet, but I believe you), I remuxed the 2 audio streams and the videostream (stream copy) into an mkv as that container has no probs afaik. Dutch subtitle will go in too in the near future.

Thanks again  ;D I'll try to stay away from mp4's in the future as often as possible...
WDLXTV 0.5.8.1 + Showcase v2 OSD Mod

Philips 40PFL8605H, Sitecom WL-351

Trust HU-5440 USB Hub
WDTV MSG 1.7.0,  TheTvDBv3.0 TVSheetGenerator - rev 5.4.1

October 07, 2010, 11:04:21 AM
Reply #4

RoofingGuy

  • Full Member

  • Offline
  • ***

  • 157
Well, the box that the .mp4 subtitles wouldn't work with was a WDTV Mini.  I'm not sure whether subs in .mp4s would work on a WDTV HD, a WDTV Live or a WDTV Live Plus -- I have my doubts, but I've never actually tried it.  ;)



The odd part is, that the WD boxes tend to be able to play multiple audio tracks in an .avi, despite the fact that that wasn't in the official standard, yet the .mp4 standard allows for multiple audio tracks, and the WD devices seem to not allow it.  So ya, I've just been sticking with .mkv too.  Especially when you can re-mux an .avi into an .mkv and add subtitles in just a few seconds.  As long as you're not compressing the headers, you really don't seem to be able to go wrong with .mkv files and WD boxes.
« Last Edit: October 07, 2010, 03:20:10 PM by RoofingGuy »

December 27, 2010, 07:35:30 PM
Reply #5

carmatana

  • Full Member

  • Offline
  • ***

  • 142
@RoofingGuy

What tool do you use to convert avi to mkv in SECONDS? Does it work for mp4-to-mkv?

With the tools I use I spend about 20 minutes per file, without reencoding, just remuxing.

Thanks
« Last Edit: December 27, 2010, 08:04:09 PM by carmatana »

December 28, 2010, 07:22:43 AM
Reply #6

Pangadaywalker

  • Sr. Member

  • Offline
  • ****

  • 349
I use the MKVToolNix. It just creates a new container. For a 4.3GB it takes about 2 minutes on my computer from Mp4 to Mkv.

Cheers.
My set:

December 28, 2010, 07:43:44 AM
Reply #7

carmatana

  • Full Member

  • Offline
  • ***

  • 142