Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Edge or forward to the Douyu platform. #1031

Closed
Tracked by #2676
yangchar opened this issue Dec 22, 2017 · 8 comments
Closed
Tracked by #2676

Support Edge or forward to the Douyu platform. #1031

yangchar opened this issue Dec 22, 2017 · 8 comments
Assignees
Labels
Feature It's a new feature. TransByAI Translated by AI/GPT.
Milestone

Comments

@yangchar
Copy link

yangchar commented Dec 22, 2017

Douyu push stream address:
rtmp://send1.douyu.com/live/3455056rTfTqkuKRwsSecret=1c010114d48d8cd7dec686bdb705ec30&wsTime=5a3d1733&wsSeek=off

Error code location:
30696 amf0 read undefined marker failed. ret=2003

TRANS_BY_GPT3

@backylee
Copy link

backylee commented Feb 2, 2018

The librtmp inside SRS has issues when integrating with other platforms. Currently, it can only be integrated with SRS and nginx-rtmp.

TRANS_BY_GPT3

@winlinvip
Copy link
Member

winlinvip commented Jul 30, 2018

Please provide detailed logs or packet captures. It seems that there is some information in the AMF0 object returned by the Douyu server that cannot be parsed.

TRANS_BY_GPT3

@winlinvip
Copy link
Member

image

@winlinvip
Copy link
Member

image

@winlinvip
Copy link
Member

winlinvip commented Aug 1, 2018

image

SRS edge config:

vhost __defaultVhost__ {
    mode            remote;
    origin          send3a.douyu.com;
}

The server needs to place the requested parameters in the stream.

image

The above image is SRS2, and the below image is SRS3. Pushing in edge mode to Wangsu is successful.

image

TRANS_BY_GPT3

@winlinvip
Copy link
Member

winlinvip commented Aug 2, 2018

SRS is configured as Edge, for example:

listen              1935;
max_connections     1000;
pid                 objs/edge.pid;
daemon              off;
srs_log_tank        console;
vhost __defaultVhost__ {
    mode            remote;
    origin          send3a.douyu.com;
}

Alternatively, it can be configured as Forwarder as well:

listen              1935;
max_connections     1000;
pid                 ./objs/srs.master.pid;
daemon              off;
srs_log_tank        console;
vhost __defaultVhost__ {
    forward         send3a.douyu.com;
}

Use FFMPEG to push the stream to SRS, replace the token with your token:

token="wsSecret=xxxxxxxxx&wsTime=xxxxx&wsSeek=off&wm=0&tw=0" &&
ffmpeg -re -i doc/source.200kbps.768x320.flv -c copy -f flv -y \
    "rtmp://127.0.0.1/live/5426598rVrGUlcxm?$token"

Watch in Douyu room:

image

TRANS_BY_GPT3

@winlinvip
Copy link
Member

winlinvip commented Aug 2, 2018

@yangchar please re-export srslibrtmp and test if it works. If there are any issues, reopen this issue.

TRANS_BY_GPT3

@Fred-cn
Copy link

Fred-cn commented Nov 14, 2019

The client playback is having issues after making this change.
image

TRANS_BY_GPT3

@winlinvip winlinvip changed the title srs_librtmp 3.0 推送斗鱼出现2003的错误 支持Edge或Forward到斗鱼平台 Sep 12, 2021
@winlinvip winlinvip self-assigned this Sep 12, 2021
@winlinvip winlinvip added the Feature It's a new feature. label Sep 12, 2021
@winlinvip winlinvip added this to the 3.0 milestone Sep 12, 2021
@winlinvip winlinvip changed the title 支持Edge或Forward到斗鱼平台 Support Edge or forward to the Douyu platform. Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature It's a new feature. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

4 participants