Thanks ! Yes, API seems to be not very easy.
I compiled output_example.c, for mpeg1/2 it works fine, but when I try to do
something like this:
./output_example test.flv
I get error:
Output #0, flv, to 'test.flv':
Stream #0.0: Video: flv, yuv420p, 352x288, q=2-31, 400 kb/s, 25.00
tb(c)
Stream #0.1: Audio: libmp3lame, 44100 Hz, stereo, s16, 64 kb/s
Assertion failed: (size), function flv_write_packet, file
libavformat/flvenc.c, line 338.
Abort trap
What am I doing wrong ?
2008/12/12 Michael Conrad <[email protected]>
> On Thu, 11 Dec 2008 14:12:38 -0500, Artem Yunusov <[email protected]>
> wrote:
> > Hello,
> >
> > I want to write some kind of screencasting software(for Windows and OSX,
> > of
> > course there will be different code for screen grabing), so, I'll be
> > receiving screenshots, and would like convert it to the video on the fly,
> > ideally to FLV, but MPEG4 is an option too, is it possible to do using
> > libav?
>
> Libav is the right tool for the job, but it isn't easy to get started,
> because most people find the API to be unintuitive. Most of the
> documentation is in the header files and the example programs found in the
> source tree. You'll want to look at output_example.c
>
> If you also want to stream to the client, then you'll need to read through
> ffserver.c, and a good search of this list's archives will probably help
> too.
>
> If you want to use a specific codec and a specific streaming format, then
> you might find it easier to use libraries for that codec/format directly.
> However libav provides a nice wrapper that will make it easy to switch to
> new formats or codecs as needed.
>
> --
> Michael Conrad
> IntelliTree Solutions llc.
> 513-552-6362
> [email protected]
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user