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

Server crashes once client tries to connect #6

Open
petered opened this issue Jun 1, 2023 · 2 comments
Open

Server crashes once client tries to connect #6

petered opened this issue Jun 1, 2023 · 2 comments

Comments

@petered
Copy link

petered commented Jun 1, 2023

I start the server:

% python -m rtmplite3 -dv
Thu Jun  1 10:53:03 2023 RTMPLite Server Starts - 0.0.0.0:1935 v0.4.0

Then in Terminal, I start a stream:

% ffmpeg -stream_loop -1 -i /Users/peter/drone/e2_dual/raw/dji_2023-02-26_15-12-52_0167.mov -b:v 50M -f flv rtmp://127.0.0.1:1935/live

This normally (when serving with "Local RTMP Server" (Mac) or "MonaServer" (Windows), will start streaming, but when using rtmplite3, it fails, outputting

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/peter/drone/e2_dual/raw/dji_2023-02-26_15-12-52_0167.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    creation_time   : 2023-02-26T08:12:41.000000Z
    encoder         : Lavf56.15.102
  Duration: 00:00:11.04, start: 0.000000, bitrate: 36857 kb/s
  Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080, 36855 kb/s, 29.97 fps, 29.97 tbr, 30k tbn (default)
    Metadata:
      creation_time   : 2023-02-26T08:12:41.000000Z
      handler_name    : VideoHandler
      vendor_id       : FFMP
[rtmp @ 0x600001a10180] Cannot read RTMP handshake response
rtmp://127.0.0.1:1935/live: Connection reset by peer

And the server just crashes with no error message or output.

@KnugiHK
Copy link
Owner

KnugiHK commented Jun 2, 2023

It works fine in my Windows environment. You are using it in MacOS right?

@guangjieguo
Copy link

I start the server:

% python -m rtmplite3 -dv
Thu Jun  1 10:53:03 2023 RTMPLite Server Starts - 0.0.0.0:1935 v0.4.0

Then in Terminal, I start a stream:

% ffmpeg -stream_loop -1 -i /Users/peter/drone/e2_dual/raw/dji_2023-02-26_15-12-52_0167.mov -b:v 50M -f flv rtmp://127.0.0.1:1935/live

This normally (when serving with "Local RTMP Server" (Mac) or "MonaServer" (Windows), will start streaming, but when using rtmplite3, it fails, outputting

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/peter/drone/e2_dual/raw/dji_2023-02-26_15-12-52_0167.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    creation_time   : 2023-02-26T08:12:41.000000Z
    encoder         : Lavf56.15.102
  Duration: 00:00:11.04, start: 0.000000, bitrate: 36857 kb/s
  Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080, 36855 kb/s, 29.97 fps, 29.97 tbr, 30k tbn (default)
    Metadata:
      creation_time   : 2023-02-26T08:12:41.000000Z
      handler_name    : VideoHandler
      vendor_id       : FFMP
[rtmp @ 0x600001a10180] Cannot read RTMP handshake response
rtmp://127.0.0.1:1935/live: Connection reset by peer

And the server just crashes with no error message or output.

Change 'rtmp://127.0.0.1:1935/live' to 'rtmp://127.0.0.1:1935/live/stream'. You missed a key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants