MP4/AAC sync fix - is it reasonable to assume it's not going to ever happen?

Thanks for your inputs everyone.  Glad to see many of you on the same boat as me and putting in the effort to do debugging to narrow the problem down.

To the guys that suspect that it is a problem with the MP4’s themselves and not a problem that exists in the WDTV Live:  it’s a good suggestion, and I found it interesting that somehow an MP4 produced in Handbrake would have audio sync issues whereas MP4’s encoded with other software did not.  I’m no tech guru, but I would assume that the h264 container is a standard that all encoders would adhere to, but obviously this isn’t the case judging from your test results.  But the fact remains that the 1.0 firmware works flawlessly as far as audio syncing is concerned.  Not to mention these same MP4’s also play just fine on any computer.  To me, this shows that the WD firmware had at one point the capability to play these MP4’s just fine, but somehow the audio sync programming in later firmware updates that came after fw 1.0 became broken.

To PixelPower:  I will run mediainfo and post data later this evening.

To Guy_K:  I have a bunch of mp4’s that don’t play correctly, but they’re all really huge full length movie files, but I’m super eager to get sample files submitted to you so that you guys can take a look at it.  Can you or anyone else recommend a program to me that can split up a movie file into smaller segments?  Thanks.

Sorry the thread started off with a bunch of negativity, but I’m glad and can’t say that I’m not happy that it’s become really productive now.

RoboPhung wrote:

To me, this shows that the WD firmware had at one point the capability to play these MP4’s just fine, but somehow the audio sync programming in later firmware updates that came after fw 1.0 became broken.

 

To PixelPower:  I will run mediainfo and post data later this evening.

 

To Guy_K:  I have a bunch of mp4’s that don’t play correctly, but they’re all really huge full length movie files, but I’m super eager to get sample files submitted to you so that you guys can take a look at it.  Can you or anyone else recommend a program to me that can split up a movie file into smaller segments?  Thanks.

 

Sorry the thread started off with a bunch of negativity, but I’m glad and can’t say that I’m not happy that it’s become really productive now.

Yeah, it’s usually the case that the most active members are the ones with the biggest issues and therefore are the most negative.  ;)

Try using YAMB or My MP4Box GUI to split an MP4.  

I’ve used YAMB and gotten along well with it but have seen some critical comments regarding it’s stability (including a worrying tale of it trashing the start menu on uninstall!).  No experience with My MP4Box GUI but apparently it works really well and gets a high rating.

Make sure to double-check the sample and make sure it’s long enough to exhibit the issue.  Sorry if I’m stating the obvious!

In any case, give it a whirl.  :)  Not sure how Guy_K wants the file but if you can upload to a public sharing site (megaupload?) I wouldn’t mind trying it out on my setup.  Almost all my files are MKV or else MP4 with AC3.  :)

It would be nice to see this fixed.

RoboPhung wrote:

 

To Guy_K:  I have a bunch of mp4’s that don’t play correctly, but they’re all really huge full length movie files, but I’m super eager to get sample files submitted to you so that you guys can take a look at it.  Can you or anyone else recommend a program to me that can split up a movie file into smaller segments?  Thanks.

 

you also try AviDemux (free) - Avidemux is a free video editor designed for simple cutting, filtering and encoding tasks. 

http://www.videohelp.com/tools/AviDemux

Another HooRah for MP4/AAC supporters…

When I got this device, one of the reasons was to find a ps3 alternative that would work with subtitles. SRT inside the MP4 did not work, but if I used SAMBA share and had an SRT file named same as MP4, as you know it loads, and works well. I decided to try IN mp4 again, due to some notes in release notes. So I used Subler to put the SRT into mp4, and it works perfect. This is great, because it also means I do NOT have to use SAMBA shares to play MP4s anymore, I can use a UPNP server, like Twonky or Playback. I am testing it now, works great. Still have the audio drop out issue, but the experience is getting better.

The only negative, is that wdtvlive doesn’t support chapters, and also thinks the chapters track is subtitles. But I can live with that.

So if I was forced to list my priorities, or I should say, if you were forced to listen to my priorities… :wink:

  1. Fix AAC audio dropout issue.

  2. When choosing DIGITAL on settings instead of stereo, decode AAC and send through hdmi as multi-channel PCM like the PS3.

If just the above were fixed, and nothing new was broken, I would buy at least 2 more, recommend them, and replace my PS3 in my home theater. Of course, I am just one guy, but here is hoping.

And lastly, I can live without, but what the hell…

  1. Support chapters in MP4

  2. Parental controls based on iTunes/Subler style ratings.

Thanks for the hard work.

I would be happy to take one for the team, and send a disk of full length 1080P files that can be tested. I have a ton of disks, SATA 500GB and 250GB disks that I replaced for larger from servers. I can load up a bunch of files and send, but I would want to be contacted personally by some staff member so that if I do this I know I am sending it to the right place, and that it will do some good.

I can fill up a 500GB SATAII drive that you can test, all are encoded backups done with handbrake from MakeMKV blurays that I own, all with chapters, some with 3GPP Text subtitles embedded, most with multiple audio tracks, usually the first AAC track is 5.1 AAC and then I add commentary tracks.

So if WD staff would like to take me up on this, and you don’t have to send the disk back, contact me at ragboy - at - mac - dot - com

Hey ragboy,

I PM’d Guy_K to make sure he saw your offer.

Cool, let me know.

OK, so I loaded up 475 GB of MP4/AAC files, most 5.1 AAC, many with extra commentary tracks. A couple of 7.1 AAC MP4 files, some files that don’t play due to the libmp4v2 optimization issue, that play on anything else. MP4/AAC 5.1 files with SRT subtitles in them, and a couple of raw MKVs from makemkv with DTSHD and PCM.

Sending out UPS today, should get to WD tomorrow, since we are both in california. Hope it helps, be happy to send other samples if necessary.

Awesome, thanks.  Can’t wait to see what the results are.  If you don’t see anything is a few days, PM me to see what’s going on.

Wow Ragboy thank you for doing this!  The entire wdc community owes you big time.  Sorry I never got a chance to break up my own mp4’s and provide them to the WD staff, but I was checking out the latest 1.02.21 fw and I noticed that some MP4’s were playing perfectly synced (although with audio dropouts every 5 seconds or so), some MP4’s were playing slightly off sync although could be “resynced” if I simply fastforwarded the video and played it again, and some MP4’s were not synced no matter what I did.

I guess there is no need for me to provide any MP4’s now that Ragboy went beyond the call of duty, but here’s the media info for some of my movies anyway just for kicks.

MEDIAINFO FOR MOVIE WITH UNFIXABLE AUDIO:

General
Complete name : D:\Media\Movies\HD Quality\Law Abiding Citizen (720p)\Law Abiding Citizen.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 2.02 GiB
Duration : 1h 58mn
Overall bit rate : 2 450 Kbps
Encoded date : UTC 2010-01-16 10:25:34
Tagged date : UTC 2010-01-16 10:25:34
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1h 58mn
Bit rate mode : Variable
Bit rate : 2 110 Kbps
Maximum bit rate : 16.6 Mbps
Width : 1 280 pixels
Height : 544 pixels
Display aspect ratio : 2.35:1
Frame rate mode : Constant
Frame rate : 23.976 fps
Resolution : 8 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.126
Stream size : 1.74 GiB (86%)
Writing library : x264 core 83 r1391M 3d0f110
Encoding settings : cabac=1 / ref=8 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=1.0:1.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-4 / threads=3 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=4 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=1 / wpredb=1 / wpredp=2 / keyint=24 / keyint_min=2 / scenecut=40 / intra_refresh=0 / rc_lookahead=24 / rc=2pass / mbtree=1 / bitrate=2110 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=40000 / vbv_bufsize=30000 / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2010-01-16 02:24:24
Tagged date : UTC 2010-01-16 10:26:57
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : Yes
Format settings, PS : No
Codec ID : 40
Duration : 1h 58mn
Bit rate mode : Variable
Bit rate : 337 Kbps
Maximum bit rate : 458 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Stream size : 285 MiB (14%)
Language : English
Encoded date : UTC 2010-01-16 10:26:35
Tagged date : UTC 2010-01-16 10:26:57

MEDIAINFO FOR MOVIE THAT CAN BE FIXED BY FF AND THEN PLAYING AGAIN:

General
Complete name : D:\Media\Movies\HD Quality\Adventureland (720p)\Adventureland.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 1.44 GiB
Duration : 1h 46mn
Overall bit rate : 1 934 Kbps
Encoded date : UTC 2009-08-04 05:19:40
Tagged date : UTC 2009-08-04 05:19:40
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1h 46mn
Bit rate mode : Variable
Bit rate : 1 700 Kbps
Maximum bit rate : 4 392 Kbps
Width : 1 280 pixels
Height : 690 pixels
Display aspect ratio : 1.855
Frame rate mode : Constant
Frame rate : 23.976 fps
Resolution : 8 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.080
Stream size : 1.27 GiB (88%)
Writing library : x264 core 68 r1183M f21daff
Encoding settings : cabac=1 / ref=4 / deblock=1:0:0 / analyse=0x1:0x111 / me=umh / subme=9 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=0 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=3 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=1 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=1700 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
Encoded date : UTC 2009-08-03 13:48:58
Tagged date : UTC 2009-08-04 05:22:12
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
Duration : 1h 46mn
Bit rate mode : Variable
Bit rate : 230 Kbps
Maximum bit rate : 328 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Stream size : 176 MiB (12%)
Encoded date : UTC 2009-08-04 05:21:30
Tagged date : UTC 2009-08-04 05:22:12

MEDIAINFO FOR MOVIE THAT SYNCS HARMONIOUSLY:

General
Complete name : D:\Media\Movies\HD Quality\Ronin (720p)\Ronin.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 2.05 GiB
Duration : 2h 1mn
Overall bit rate : 2 413 Kbps
Encoded date : UTC 2010-01-27 22:14:14
Tagged date : UTC 2010-01-27 22:14:14
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 2h 1mn
Bit rate mode : Variable
Bit rate : 2 091 Kbps
Maximum bit rate : 9 602 Kbps
Width : 1 280 pixels
Height : 544 pixels
Display aspect ratio : 2.35:1
Frame rate mode : Constant
Frame rate : 23.976 fps
Resolution : 8 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.125
Stream size : 1.78 GiB (87%)
Writing library : x264 core 84 r1400kGIT 20fa784
Encoding settings : cabac=1 / ref=8 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=1.0:1.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-4 / threads=3 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=4 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=1 / wpredb=1 / wpredp=2 / keyint=24 / keyint_min=2 / scenecut=40 / intra_refresh=0 / rc_lookahead=24 / rc=2pass / mbtree=1 / bitrate=2091 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=40000 / vbv_bufsize=30000 / ip_ratio=1.40 / aq=1:1.00 / pulldown=0 / nal_hrd=1
Encoded date : UTC 2010-01-27 02:20:57
Tagged date : UTC 2010-01-27 22:16:07
Audio
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 1mn
Bit rate mode : Variable
Bit rate : 318 Kbps
Maximum bit rate : 407 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Stream size : 277 MiB (13%)
Language : English
Encoded date : UTC 2010-01-27 22:15:44
Tagged date : UTC 2010-01-27 22:16:07

What about .MKVs encoded with h264 and AAC or AC3.

Presumably the .MP4 audio sync issue is the same as the .MKV audio sync issue?

WD can you test some .MKVs too?  Maybe recode those MP4s as MKVs, they should experience the same audio sync issues.   Then make sure your firmware update fixes both the .MP4 and .MKV files.

the player has problems with AAC, I have some mkv with aac, and is out of sync, I had to re-encode audio on mp3 to make it work.

the player has a big problem with AAC that’s all, AC3 goes good

cellax wrote:

the player has problems with AAC, I have some mkv with aac, and is out of sync, I had to re-encode audio on mp3 to make it work.

 

the player has a big problem with AAC that’s all, AC3 goes good

No!  AC3 also has problems.  In fact some of my MKV’s encoded with AC3 work fine whilst others have audio sync issues!

Its not just AAC!

Here’s the media info from one such file that has audio sync issues…

General
Complete name : \\server\Videos\MKV\01.mkv
Format : Matroska
File size : 411 MiB
Duration : 40mn 31s
Overall bit rate : 1 417 Kbps
Writing application : HandBrake 0.9.4

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Muxing mode : Container profile=Unknown@3.1
Codec ID : V_MPEG4/ISO/AVC
Duration : 40mn 31s
Bit rate : 1 165 Kbps
Width : 720 pixels
Height : 592 pixels
Display aspect ratio : 1.287
Frame rate : 25.000 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.109
Stream size : 338 MiB (82%)
Writing library : x264 core 79
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=1 / wpredb=1 / wpredp=2 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=25.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Color primaries : BT.601-6 525, BT.1358 525, BT.1700 NTSC, SMPTE 170M
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.601-6 525, BT.1358 525, BT.1700 NTSC, SMPTE 170M

Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Codec ID : A_AC3
Duration : 40mn 31s
Bit rate mode : Constant
Bit rate : 224 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 48.0 KHz
Stream size : 64.9 MiB (16%)
Language : English

Menu
00:00:00.000 : Chapter 1
00:05:52.080 : Chapter 2
00:09:51.800 : Chapter 3
00:17:03.400 : Chapter 4
00:25:23.120 : Chapter 5
00:32:48.240 : Chapter 6
00:40:31.040 : Chapter 7

another easily accessible video for testing would be any of the Revision3.com videos listed as HD 30fps.