-
Notifications
You must be signed in to change notification settings - Fork 149
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
my camera main stream and sub stream record video storage size is zero #300
Comments
When you see an infinite fps and bitrate on the UI, that suggests an RTSP connection received only a single frame before failing. Moonfire calculates duration of frames from the differences in frames' timestamps. The final frame ends up with a duration of 0. So if the connection fails between the first and second frames, it stores a total duration of 0 => infinite fps and bitrate. The reason this happened should be in the logs. |
2024-01-10T01:48:23.776244 INFO s-mycamera-main streamer{stream="mycamera-main"}: moonfire_nvr::cmds::run: starting conn: ConnectionContext { local_addr: 192.168.1.105:47728, peer_addr: 192.168.1.101:554, established_wall: WallTime(Timespec { sec: 1704851303, nsec: 780058874 }) } conn: 192.168.1.105:47728(me)->192.168.1.101:554@2024-01-10T01:48:23 conn: ConnectionContext { local_addr: 192.168.1.105:47726, peer_addr: 192.168.1.101:554, established_wall: WallTime(Timespec { sec: 1704851303, nsec: 780096500 }) } conn: 192.168.1.105:47726(me)->192.168.1.101:554@2024-01-10T01:48:23 |
What server are you using? "libavformat 58.25.100?" seems to match up to ffmpeg git revisions d06aae732c16bd4c490c6dfa35cc2a35129c640f..268d1466498b0f404719b21f3b78802820b6881b, but those don't have a built-in rtsp server afaict. (ffserver was deleted a while before then.) In #298, you said "video source is published using ffmpeg"; can you be more specific? I'm also a little confused that the screenshot and the later log comment describe different errors; did you change something between the two? |
I using ffmpeg + EasyDarwin , ffmpeg for push stream, and EasyDarwin for stream media service. |
I using vlc publish video streaming,but moonfire-nvr config test failed. I selected udp transport ,error message is |
I could likely fix this you'd be willing to send me a couple packet captures (e.g. via wireshark): one with Moonfire, one with some other client that's working successfully (e.g. the "ffmpeg tool pull stream"), and/or give me precise instructions to replace your vlc/ffmpeg(?) + EasyDarwin setup. |
I am having the same problem :
|
@Tuhinpaul5 I've never seen that one before, but it suggests your camera is sending multiple frames without advancing the timestamp at all. Could you open a new issue with details of your camera? If you're able to, it'd also really help to get a packet capture (e.g. with Wireshark) of the communication with your camera: with Moonfire, and/or with some other software that is successfully getting video. |
Oh, I see you did open #322 . I'll reply there. |
Describe the bug
A clear and concise description of the problem.
my flush_is_second is config 120 s.
my nvr config is following;
and my ui is show the folowing. the video length is 0 seconds.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Server (please complete the following information):
moonfire-nvr --version
is newest version 0.7.12
RUST_BACKTRACE=1
environment variable set if possible.Camera (please complete the following information):
V2.0.0.1215_16091800
]Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: