<div dir="ltr"><div>Hello,</div><div><br></div><div>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 clients...</div><div><br></div><div>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 ()</div><div>, I got an "Floating point exception".</div><div><br></div><div>There is the gdb's backtrace:</div><div>[</div><div>Program received signal SIGFPE, Arithmetic exception.</div><div>0x000000000051f470 in compute_pkt_fields2 ()</div><div>(gdb) bt</div><div>#0  0x000000000051f470 in compute_pkt_fields2 ()</div><div>#1  0x0000000000520538 in av_write_frame ()</div><div>#2  0x00000000004922fa in myFunction (this=0x7fffe40008f0,  ...</div><div>]</div><div><br></div><div>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.</div><div><br></div><div>Cordially,</div><div>Seb</div><div><br></div></div>