srs icon indicating copy to clipboard operation
srs copied to clipboard

Bugfix: Avoid repeat transcoding when the transcode is the same and source ip is localhost

Open feixintianxia opened this issue 2 years ago • 0 comments

When transcoding, if the output is set as "rtmp://127.0.0.1:[port]/[app]/[stream]_[engine]?vhost=[vhost]", the source ip is "127.0.0.1", then it will cause repeated transcoding on the same server and the program crash.

For example:

-rw-rw-r-- 1 li li 9.6K  Jul  6 12:54 ffmpeg-encoder-__defaultVhost__-live-livestream.log
-rw-rw-r-- 1 li li 9.4K  Jul  6 12:54 ffmpeg-encoder-__defaultVhost__-live-livestream_.log
-rw-rw-r-- 1 li li 8.8K  Jul  6 12:54 ffmpeg-encoder-__defaultVhost__-live-livestream__.log
-rw-rw-r-- 1 li li 8.5K  Jul  6 12:54 ffmpeg-encoder-__defaultVhost__-live-livestream___.log
-rw-rw-r-- 1 li li 8.3K  Jul  6 12:54 ffmpeg-encoder-__defaultVhost__-live-livestream____.log
-rw-rw-r-- 1 li li 8.1K  Jul  6 12:54 ffmpeg-encoder-__defaultVhost__-live-livestream_____.log
-rw-rw-r-- 1 li li 7.5K  Jul  6 12:54 ffmpeg-encoder-__defaultVhost__-live-livestream______.log
-rw-rw-r-- 1 li li 7.4K  Jul  6 12:54 ffmpeg-encoder-__defaultVhost__-live-livestream_______.log
-rw-rw-r-- 1 li li 6.9K  Jul  6 12:54 ffmpeg-encoder-__defaultVhost__-live-livestream________.log
-rw-rw-r-- 1 li li 6.8K  Jul  6 12:54 ffmpeg-encoder-__defaultVhost__-live-livestream_________.log
-rw-rw-r-- 1 li li 3.3K  Jul  6 12:54 ffmpeg-encoder-__defaultVhost__-live-livestream__________.log


TRANS_BY_GPT3

feixintianxia avatar Jul 06 '23 04:07 feixintianxia