This reimplements a change authored by Brian Brice <bbr...@gmail.com> 2015-01-19 "librtmp: Allow changing the socket send buffer size" (Brian is aware of this change). also negates change by Michael Niedermayer <michae...@gmx.at> 2015-01-23 10:45:35 "avformat/librtmp: Fix build with --disable-network --enable-librtmp" because it is no longer necessary.
The reason for this is that the socket settings changes need to be made in librtmp internally because: 1. librtmp may attemp a new socket connection internally. in that case, it would not get the buffer settings. 2. if using the tee muxer to send to more than one destination, the arguments can't be passed through the flv muxer. passing them as key-value paires in the manner already supported in librtmp works for that use case. A patch has been sent to the librtmp mailing list rtmpd...@mplayerhq.hu with the title "subject: librtmp arguments added for socket buffer size". *This* patch is dependent on the one above, and should be applied after it appears in the git://git.ffmpeg.org/rtmpdump repository. Options to the ffmpeg commandline in support of now arguments in librtmp. rtmp_buffer_size - sets rtmp socket send buffer size in bytes. this is the same as the patch it replaces. rtmp_nodelay - on or off. defaults to on. allows users to control whether nagel is active. rtmp_buffchunks - on or off. default is off. allows users to try using internal buffering instead of writing 128 byte chunks to sockets. See this thread on Zeranoe forum: http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=7&t=657&p=7823#p7823 I believe this addresses case 1604 on the ffmpeg tracker. "Summary of the bug: Rtmp output to justin.tv fps continually drops, ..." - note the memory problem mentioned had been fixed. This fix only applies if librtmp is enabled. https://trac.ffmpeg.org/ticket/1604 Defualt behavior leaves things unchanged. Users must employ options intentionally.
0001-Topic-Socket-options-for-librtmp.patch
Description: Binary data
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel