[Ffmpeg-devel] WMA encoding and Windows Media Player for Mac OS X
Michael Niedermayer
michaelni
Mon Mar 5 14:04:54 CET 2007
Hi
On Sun, Mar 04, 2007 at 11:19:43PM -0600, Tyler Loch wrote:
> >ive fixed a few more random bugs in our asf muxer, could you retry?
>
> Seems to be the same. Pops and buzzes throughout the audio track.
> I did some tweaking a couple days ago, and found that the extra_size2
> variable was the trigger for the audio playback working:
>
> case CODEC_TYPE_AUDIO:
> wav_extra_size = 0;
> extra_size = 18 + wav_extra_size;
> ---> extra_size2 = 8;
> break;
> default:
>
> Before r7960, extra_size2 was effectively set to zero. With it set to
> 8 (or anything but zero), audio plays in WMP Mac (albeit glicthy).
> ...not terribly sure if the problem is related to a mismatch in
> sizing, or something else.
>
> I'm heading to bed right now...but would it be useful if I provide
> a .wav file of the pops and buzzes tomorrow along with the original
> audio, and/or any other data?
one thing you could try is to replace the following code in asf-enc.c
if(enc->codec_id == CODEC_ID_ADPCM_G726 || !enc->block_align){
put_le16(pb, 0x0190);
put_le16(pb, 0x0190);
}else{
put_le16(pb, enc->block_align);
put_le16(pb, enc->block_align);
}
by
put_le16(pb, enc->block_align);
put_le16(pb, 1);
or
put_le16(pb, 1);
put_le16(pb, enc->block_align);
or
put_le16(pb, 1);
put_le16(pb, 1);
or maybe even 0 instead of 1
and report back if any of this makes any difference or even fixes the problem
completely
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070305/e41c4c53/attachment.pgp>
More information about the ffmpeg-devel
mailing list