[mythtv] [PATCH] Video timebase

Isaac Richards ijr at po.cwru.edu
Tue Dec 23 11:02:40 EST 2003


On Tuesday 23 December 2003 04:01 am, steve at nexusuk.org wrote:
> On Mon, 22 Dec 2003, Isaac Richards wrote:
> > This looks pretty good, though I'd probably want the buffers in
> > AddAudioData more static, as otherwise, that's a lot of memory
> > allocation/deallocation going on.
>
> That should be trivial to do - I'll have a look into it.  Is there an
> upper limit to the size of the audio samples passed to AddAudioData()
> that I can use for sizing the buffers?

I believe there is for mpeg2 streams, but not for the nuvs mythtv itself 
produces.  I'd just pick a size and make it grow as needed if it encounters a 
larger packet.

> > > Bugs: The audio warper for void NuppelVideoPlayer::AddAudioData(char
> > > *buffer, int len, long long timecode) makes a complete mess of the
> > > audio. This basically affects PCM audio and probably MPEG2 playback -
> > > MP3 audio uses void NuppelVideoPlayer::AddAudioData(short int *lbuffer,
> > > short int *rbuffer, int samples, long long timecode) which works fine.
> >
> > Are you planning on fixing this?
>
> Yes, when I've worked out what's going on.  I am copying (audio_channels *
> audio_bits / 8) sized chunks of the audio stream which should equate to a
> single sample from all channels, but I must be getting something wrong
> because it sounds terrible.

Allright, just wanted to make sure you weren't going to leave it like that.

Isaac


More information about the mythtv-dev mailing list