[Libav-user] AVStream and multiple clients
sebastien.bonopera at gmail.com
Fri Nov 14 16:32:19 CET 2014
I succesfully implemented a server using ffmpeg libraries that send a
stream to a client. This stream is feed by capturing screenshots of my
desktop. Now, I'm wondering how to send this same stream to multiple
I tried several things such as simply use one copy of AVStream,
AVFormatContext, AVCodec, AVCodecContext, AVOutputContext per client.
However, whenever I call av_write_frame ()
, I got an "Floating point exception".
There is the gdb's backtrace:
Program received signal SIGFPE, Arithmetic exception.
0x000000000051f470 in compute_pkt_fields2 ()
#0 0x000000000051f470 in compute_pkt_fields2 ()
#1 0x0000000000520538 in av_write_frame ()
#2 0x00000000004922fa in myFunction (this=0x7fffe40008f0, ...
How I am suppose to do to send the same stream to different clients ? Is
there any tutorial/example ? I tried to read ffserver.c, but it seems this
one launches one application (ffmpeg) per clients.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user