-
Notifications
You must be signed in to change notification settings - Fork 38
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 lagging a lot #38
Comments
Make sure you're using h264 codec since the encoder for that uses a lot less cpu than vp8. If your computer/vps still struggles with that you can decrease the bitrate and/or resolution |
Thanks for the help, but apparently I don't believe it's a cpu problem,
since ffmpeg isn't consuming even 10% of it looking through the task
manager. I'll try hosting on a VPS and see if this problem is fixed, as
soon as I have an answer I'll let you know.
|
I just tested with a VPS, and it seems to work fine (almost), i just needed to set the stream FPS to 15, but that's not a problem for me. For better results maybe I need a better CPU? |
If it wasn't using too much cpu but the resulting video was still slow it could be your internet speed. Try lowering the bitrate and resolution |
Can you test the current version of the package? I've optimized various parts in the code, and it should be purely IO bound now. |
Same thing. Even with 240p 15fps |
I've added buffer and performance/quality is fine now.
and added
But audio still ahead of the video. And I have no idea how to fix that |
What kind of video input is it? A regular video file or a m3u8 livestream? I know that there's an issue with certain m3u8 streams where the audio is out of sync with the video and the only solution I found was to remove the '-re' flag. There's an open issue about it |
I'm using this interface https://github.com/ysdragon/StreamBot It doesn't support readAtNativeFps option afaik I've tested local file and youtube video (it still loads locally) Also this ysdragon/StreamBot#37 (comment) |
At some point it was the default, until I removed it and added it as an option instead since it did not affect all video files |
No errors in output, audio plays fine, but the video is lagging a lot, only some frames are playing...
Do you guys have some suggestions to fix this issue?
The text was updated successfully, but these errors were encountered: