[FFmpeg-devel] [Jack-Devel] [PATCH] libavdevice: JACK demuxer
Michael Niedermayer
michaelni
Mon Mar 9 17:35:45 CET 2009
On Sun, Mar 08, 2009 at 12:51:48AM +0100, Olivier Guilyardi wrote:
> Michael, Paul has answered you on jack-devel. See below.
>
> Note: I'm cross-posting this mail to linux-audio-dev, since Michael has recently
> subscribed to it. At least, we should be able to discuss together in there.
>
> Paul Davis wrote :
> > I have no idea how any of you have kept this conversation going when one
> > of the main protagonists is not even subscribed to one of the two
> > mailing lists, and i suspect that one of the others isn't subscribed to
> > the other.
> > perhaps the FFmpeg-devel list doesn't require membership.
it does, though we have some fearless admin that occasionally in the past
went over the held mails, not sure if he did this recently though.
> >
> > anyway, i've finally had enough of reading Michael's stuff about
> > buffers, timing and so forth and felt obligated to comment.
> >
> > michael - i would politely request that you stop shooting off at the
> > mouth about stuff that the JACK community has been dealing with for more
> > than 9 years.
Olivier had posted several patches to ffmpeg-dev that add libjack support
and some "timefilter".
And these contributions are certainly appreciated!
Ive reviewed them and suggested improvments, the timefilter patch has
already reached svn (a bug less, time values have roughly half the error
from before and variable time periods being supported now)
You arent suggesting we should accept patches without review, are you?
> >
> > you do not need to write your own ring buffer code - JACK's is LGPL'ed
> > and you are free (and probably even recommended) to copy it.
we have our own ring buffer as well in libavutil/fifo.c|h, it just had a
little issue with an unuseable element, that ive just fixed.
i see jacks ringbuffer has the same issue, in addition it seems limited
to sizes that are a power of 2.
and considering ours supports user provided functions instead of just memcpy()
to access the fifo directly and has just 1/3 the number of lines of code
than jacks, id prefer to keep ours.
> > furthermore, you would be very foolish to imagine (especially based on
> > your incredibly naive comments about uint8_t) that you understand the
> > subtleties of these buffers. the JACK community (and a couple of other
> > exclusively audio-focused development groups) have been working with
> > this buffer design for many, many years, and we are absolutely confident
> > that our buffers are (a) SMP/multi-core safe (b) as efficient as they
> > can be without using assembler. you should also be aware that there are
> > very good arguments for the current structure of the ringbuffer code,
> > which explicitly does NOT use any memory barriers. if you don't
> > understand why it works without them, then you should probably refrain
> > from commenting on the design of these buffers at all.
It works because you are lucky
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090309/816b5866/attachment.pgp>
More information about the ffmpeg-devel
mailing list