Hi Manuel,

On Sat, Jun 25, 2011 at 10:15 AM, Manuel Reimer
<[email protected]> wrote:
> I plan to use libav/ffmpeg as "multi decoder" for a audio player. I starts
> to suck to have to use several different interfaces of different audio
> decoder libraries. Porting to libav could simplify code and add a few more
> supported audio formats.
>
> I need file support and stream support.
>
> For files, I have to open that file first. Then I need to get the play time
> and file info (like the ID3 Tag of a MP3 file). After that I would implement
> a loop calling "some function" until the file end is reached. I have to get
> PCM data to forward this to my output code. What I also need is some way to
> seek. For example I want to be able to tell libav "go 20 seconds forward or
> backward". Oh, and of course I need the current playtime while playing data
> in my loop.
>
> For streams, I want to forward this in parts to "some API function". At that
> time I don't know in which format the stream is sent. Anything, I want in
> return, is the PCM data.
>
> Problem is, that I don't know where to start searching or if libav can solve
> my problem at all...

Yes it can do all of that. Start looking at ffplay.c it is way more
complex than what you need, but will serve as an example.
libavcodec/api-example.c is a simple decoding example, and the packet
reading can be got from ffplay.c.

Ronald
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to