-
Notifications
You must be signed in to change notification settings - Fork 512
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
Help me understand framerate disrepency #1471
Comments
Some utilities can show FPS from stream metadata. Some utilities check real FPS from stream. Metadata can lie. |
I understand that but it is sourced from the same stream so it is go2rtc that is causing the difference. If go2rtc was just restreaming without any repackaging or adjustments they would be the same and it is that I am trying to understand. when streaming from the camera is says
but when putting this stream through go2rtc it is says
whilst writing this I came across https://superuser.com/questions/1362410/what-is-fps-tbr-tbn-tbc-in-ffmpeg which I guess explains the 90k values. I guess my question is what go2RTC is doing to the RTSP stream? Is it just repackaging the stream into a transport stream container? (Several facets to this, I am seeing 25% CPU usage from go2RTC which would seem a bit high if it isn't doing anything, I have had some issues with a couple of camera feeds not working properly and I would just like to understand this at a lower level) |
If go2rtc accepts RTSP stream, it outputs RTSP stream without any changes. Same SDP info and same RTP packets. In case of other transport formats - it can convert the data. |
Which is what I was expecting. The go2RTC bit of my Frigate config is
but as you can see from the above, the output of viewing that RTSP stream directly and viewing it via go2RTC are giving different output (both in VLC and via ffmpeg directly). so something is different in the two streams |
I'll check with my camera |
I have two Reolink RCL-820As setup in Frigate and I noticed a difference in the reported fps between the feed direct from the camera an the feed via go2RTC.
I have started doing some digging and when I grabbed the steam using ffmpeg
Then I get this for the direct camera feed (there are some issues in there but the metadata does show up as 15fps which is what I had changed it to for testing.
ffmpeg camera output
ffmpeg go2RTC output
which does seem to suggest the feed is 15fps but the metadata appears to have bee lost (not sure what
tbr
,tbn
,tbc
mean)If I open up the go2RTC stream in VLC it is reporting the frame rate as 29.97 (but if I play the mkv output from above there is no fps at all)
Now the go2RTC feed appears to play better than the direct camera feed and I am trying to work out what (if anything) go2RTC is doing to change the feed (or is this just an issue with what VLC is showing as the metadata ?)
The text was updated successfully, but these errors were encountered: