zouhouzi / mp4parser

Automatically exported from code.google.com/p/mp4parser
0 stars 0 forks source link

The track header box for AACTrackImpl should have a sensible default volume #56

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
An attempt to create an MP4 using an AAC file and a H.264 file produced the 
correct output but the volume of the audio was set to 0 in the track header 
box. This value is probably not used by many players, but QTKit on the Mac 
definitely uses it (so I heard no audio but the video was fine).

This was my fix:

AACTrackImpl audioTrack = new AACTrackImpl(aacIn.getChannel());
audioTrack.getTrackMetaData().setVolume(1.0f);

Not a big deal to correct, but in my view all audio tracks should have a 
sensible default volume (which I am assuming is 1.0f).

Original issue reported on code.google.com by antonmar...@gmail.com on 25 Mar 2013 at 1:38

GoogleCodeExporter commented 8 years ago
Thanks for notifying me about this. Change 866 corrects the behavior. 

Original comment by Sebastian.Annies on 20 Apr 2013 at 9:43

GoogleCodeExporter commented 8 years ago

Original comment by Sebastian.Annies on 20 Apr 2013 at 9:44