Skip to content

SRT stream transcoding failed. #4351

Open
@bestspiders

Description

@bestspiders

Transcoding with SRT is resulting in errors. Attempts were made on Ubuntu 22 and Ubuntu 20 using SRS versions 6.0-a2 and 5.0-r3, respectively, and the issue occurred with both. The content of the log is as follows:
==88627==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffd0d9a2000; bottom 0x7f5636149000; size: 0x00a6d7859000 (716580425728) False positive error reports may follow

The content of the configuration file is as follows:
`
listen 1935;
max_connections 1000;
daemon off;
srs_log_tank console;

http_api {
enabled on;
listen 1985;
}

http_server {
enabled on;
listen 8080;
dir ./objs/nginx/html;
}

srt_server {
enabled on;
listen 10080;
maxbw 1000000000;
connect_timeout 4000;
peerlatency 0;
recvlatency 0;
latency 0;
tsbpdmode off;
tlpktdrop off;
sendbuf 2000000;
recvbuf 2000000;
}

@doc #1147 (comment)

vhost defaultVhost {
srt {
enabled on;
srt_to_rtmp on;
}

http_remux {
    enabled     on;
    mount       [vhost]/[app]/[stream].flv;
}
transcode {
    enabled     on;
    ffmpeg      ./objs/ffmpeg/bin/ffmpeg;
    engine ff {
        enabled         on;
        vfilter {
        }
        vcodec          libx264;
        vthreads        4;
        vprofile        main;
        vpreset         medium;
        vparams {
        }
        acodec          libfdk_aac;
        aparams {
        }
        output          rtmp://127.0.0.1:[port]/[app]/[stream]_[engine]?vhost=[vhost];
    }
}

}

For SRT to use vhost.

vhost srs.srt.com.cn {
}

stats {
network 0;
disk sda sdb xvda xvdb;
}

`
The screenshot is as follows:
Image

TRANS_BY_GPT4

Metadata

Metadata

Assignees

No one assigned

    Labels

    TransByAITranslated by AI/GPT.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions