Op 30 okt 2008, om 18:20 heeft Dave Mulford het volgende geschreven:
> I was thinking of using SDL to play the audio. I'm going to try and
> get
> something to work. If you'd like, I can pastebin the code I have that
> semi-works with alsa (it's just a little off speedwise, choppy, etc).
>
> If
I was thinking of using SDL to play the audio. I'm going to try and get
something to work. If you'd like, I can pastebin the code I have that
semi-works with alsa (it's just a little off speedwise, choppy, etc).
If I can get audio to work using SDL, I'd be happy to let ya have it.
On Thu, Oct 30,
And, can you tell us what is this other way which makes things easier?
it can be usefull for some people... like me for example :D
Yvan
Dave Mulford a écrit :
> I've gone through the code everyone has given me, and I've come to the
> conclusion that audio decoding is simply way over my head. I'l
I've gone through the code everyone has given me, and I've come to the
conclusion that audio decoding is simply way over my head. I'll find another
way to output sound that makes things easier. Thanks to all that have tried
to help me. I really do appreciate it ;-)
mw007
On Mon, Oct 27, 2008 at 6
I've written a short howto on this subject which you can find here :
http://qtdvd.com/guides/ffmpeg.html
Let me know if this helps and of course if you find problems with it let
me know as well.
Varol :)
slippyr4 wrote:
> no, you can't control how much audio is returned from av_read_frame. That
no, you can't control how much audio is returned from av_read_frame. That
function returns a "packet", which is a chunk of audio data, compressed. You
pass data to avcodec_decode_audio2. The return value his how much data it
managed to use in the decode; this is therefore in terms of compressed dat
That did help. I can now play sound that is somewhat familiar, however, now
it's very slow and choppy. Oddly enough, libav tells me that I'm reading in
somewhere around 700 bytes, whereas alsa tells me consistently that I'm
writing out 4608 bytes. So, I tried buffering the sound until I had around
avcodec_decode_audio2 takes a *pointer* to your output buffer size,
specifically so it can modify the value. After the function returns, your
buf_size variable will have the value of the number of bytes of output
buffer actually used. Therefore, you need to reset it before each call. I
suspect that
That didn't work, unfortunately. I still have the same issue :-(
I had something similar before, which also didn't work. Now it just seems
I'm trying things and hoping something works. Which is never the way to go.
Anything else I can try? I'd really like to stick with libav* and alsa, but
if it'
On Fri, Oct 24, 2008 at 5:42 PM, Dave Mulford <[EMAIL PROTECTED]> wrote:
> Are there any good tutorials on decoding audio with libavcodec? I've seen
> the one about "How to write a video player in less than 1000 lines" but that
> uses SDL for audio output, and that's not what I want. I've looked at
Are there any good tutorials on decoding audio with libavcodec? I've seen
the one about "How to write a video player in less than 1000 lines" but that
uses SDL for audio output, and that's not what I want. I've looked at
apiexample.c from the ffmpeg git sources, and still cannot get this to work.
H
11 matches
Mail list logo