Re: [FFmpeg-devel] rtmps connect block

2017-09-19 Thread Moritz Barsnick
On Thu, Sep 07, 2017 at 12:46:54 +, Qiming Jin (qimijin) wrote:
> Hi all
> Please help check an issue:

You should report this on ffmpeg's issue tracker:
https://trac.ffmpeg.org/

Also please include a command line and the command's complete, uncut
console output, along with your other given explanations (and perhaps
your example code).

Moritz
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


[FFmpeg-devel] rtmps connect block

2017-09-07 Thread Qiming Jin (qimijin)
Hi all
Please help check an issue:
When I sent date to rtmps server(facebook live).  Connection will block after 
sent 10 packet.
Below is the situation:
1 build: ./configure –enable-openssl && make && make install
2 connet to rtmp is ok. But rtmps is fail, BLOCK after sent out 10 packet.
3 if delete  this line :
ret = ffurl_read(rt->stream, &c, 1);
and add:
  ret = AVERROR(EAGAIN);
in function rtmp_write(), then every thing will be ok.
I also found this line was added at this commit:
https://github.com/FFmpeg/FFmpeg/commit/7dc747f50b0adeaf2bcf6413e291dc4bffa54f9a
4 my code is attached,  for your reference.

  I want to know if this is a bug, if not, how to fix this? Can I simply fix it 
as point3 said.
Thanks!


(gdb) bt
#0  0x76657bb0 in __poll_nocancel () from /lib64/libc.so.6
#1  0x005ae7a5 in ff_network_wait_fd (write=0, fd=8) at 
libavformat/network.c:79
#2  ff_network_wait_fd_timeout (fd=8, write=write@entry=0, timeout=0, 
int_cb=int_cb@entry=0x1c37e70)
at libavformat/network.c:92
#3  0x005b9fc6 in tcp_read (h=0x1c37e40, buf=0x1c45b93 "\027\003\003", 
size=5) at libavformat/tcp.c:219
#4  0x005a2c86 in retry_transfer_wrapper (transfer_func=0x5b9f80 
, size_min=1, size=5,
buf=0x1c45b93 "\027\003\003", h=0x1c37e40) at libavformat/avio.c:380
#5  ffurl_read (h=0x1c37e40, buf=0x1c45b93 "\027\003\003", size=5) at 
libavformat/avio.c:416
#6  0x005ba901 in url_bio_bread (b=0x1c363c0, buf=, 
len=)
at libavformat/tls_openssl.c:97
#7  0x77494c4b in BIO_read () from /lib64/libcrypto.so.10
#8  0x771787d4 in ssl3_read_n () from /lib64/libssl.so.10
#9  0x77179acd in ssl3_read_bytes () from /lib64/libssl.so.10
#10 0x77176d74 in ssl3_read_internal () from /lib64/libssl.so.10
#11 0x005baaba in tls_read (h=0x1ce0c80, buf=0x7fffdcf0 
"L\001\305\001", size=1)
at libavformat/tls_openssl.c:306
#12 0x005a2c86 in retry_transfer_wrapper (transfer_func=0x5baa80 
, size_min=1, size=1,
buf=0x7fffdcf0 "L\001\305\001", h=0x1ce0c80) at libavformat/avio.c:380
#13 ffurl_read (h=0x1ce0c80, buf=buf@entry=0x7fffdcf0 "L\001\305\001", 
size=size@entry=1) at libavformat/avio.c:416
#14 0x005b540c in rtmp_write (s=s@entry=0x1caf500, 
buf=buf@entry=0x1c50140 "\b", size=size@entry=434)
at libavformat/rtmpproto.c:3083
#15 0x005a2fdb in retry_transfer_wrapper (transfer_func=0x5b5070 
, size_min=434, size=434,
buf=0x1c50140 "\b", h=0x1caf500) at libavformat/avio.c:380
#16 ffurl_write (h=0x1caf500, buf=0x1c50140 "\b", size=434) at 
libavformat/avio.c:434
#17 0x0047c5bd in writeout (len=434, data=, s=0x1cab1c0) 
at libavformat/aviobuf.c:154
#18 flush_buffer (s=0x1cab1c0) at libavformat/aviobuf.c:171
#19 avio_flush (s=0x1cab1c0) at libavformat/aviobuf.c:227
#20 0x00510d45 in write_packet (pkt=0x7fffdec0, s=0x1c37260) at 
libavformat/mux.c:776
#21 av_interleaved_write_frame (s=0x1c37260, pkt=0x0) at libavformat/mux.c:1291
#22 0x00464202 in main ()


m.cpp
Description: m.cpp
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel