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

Video keep streaming from the very beginning instead of live stream #647

Open
NRicode opened this issue Jun 11, 2024 · 0 comments
Open

Video keep streaming from the very beginning instead of live stream #647

NRicode opened this issue Jun 11, 2024 · 0 comments

Comments

@NRicode
Copy link

NRicode commented Jun 11, 2024

ffmpeg -f gdigrab -framerate 10 -i desktop -c:v libx264 -preset ultrafast -tune zerolatency -f flv rtmp://192.168.1.3/live/STREAM_NAME

nodejs code

const config = {
rtmp: {
port: 1935,
chunk_size: 60000,
gop_cache: true,
ping: 30,
ping_timeout: 60,
},
http: {
port: 8000,
allow_origin: '*',
},
};

const nms = new NodeMediaServer(config);
nms.run()

when I access the stream through web page, it keeps playing the video from the very beginning. how do I fix this?

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

1 participant