Skip to content

Fix RTMP server handshake for FFmpeg #1318

@usa-

Description

@usa-

go2rtc.yaml:

streams:
    mystreamname:
rtmp:
    listen: ":1935"

I start go2rtc and see:

INF [rtmp] listen addr=:1935

Then I start streaming with ffmpeg from the same machine:

ffmpeg -re -i ./video.avi -c:v libx264 -c:a aac -f flv rtmp:/localhost/mystreamname

Nothing appears in go2rtc log. Processed frames don't appear in ffmpeg log.

Note: If I change the URL in the ffmpeg command line to YouTube live URL with my key, ffmpeg shows processed frames and the video appears on YouTube streaming panel.

If I cancel ffmpeg stream with CTRL+C, the following appears in go2rtc log:

ERR github.com/AlexxIT/go2rtc/internal/rtmp/rtmp.go:61 > error=EOF 

What am I doing wrong?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions