[Libav-user] AVStream and multiple clients
Sebastien Bonopera
sebastien.bonopera at gmail.com
Fri Nov 14 16:32:19 CET 2014
Hello,
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...
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 ()
(gdb) bt
#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.
Cordially,
Seb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20141114/da42f406/attachment.html>
More information about the Libav-user
mailing list