-
Notifications
You must be signed in to change notification settings - Fork 61
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
Prudynt does not respect sampling and bitrate settings #251
Comments
@yangminglong Please upgrade to the latest firmware, all issues related to Prudynt config have been fixed as of Also |
Great, I have use Now I can save the configuration changes of the Main stream and Sub stream normally after restarting the camera. I can hear the camera's sound through RTSP streaming. I found that there is still a little problem with the configuration of the Audio group: I saw that the default configuration for Sampling is 16000Hz, but I saw in the RTSP stream of VLC that the codec information displayed Sampling as 48000Hz. I made some modifications to Sampling and then restarted the camera, but Sampling remained at 48000Hz. I am not sure if other Audio configurations can be saved properly. Thank you again, Thingino firmware looks really great now My camera is: iflytek_xfp301_m_rtl8188ftv |
@yangminglong I did some testing regarding audio and it does seem that no matter what Sampling is chosen it always defaults to 48000. The underlying issue is coming from prudynt-t itself, seems like it is disregarding |
Opus always shows up at 48 kHz no matter what the input sampling |
@nschimme is it possible to provide some information on whicht codec can support which setting ? |
@Lu-Fi Yeah, it's hard coded here in the
|
We should have it default to 48khz, but be adjustable in the config to what the user wants, it would be nice =D |
There are limitations in the codecs that prevent that. The user problem here is that they're surprised and there isn't much we can do other than hide certain sample rates where its mandatory to be 8 kHz for that codec, or in the case of Opus we say that it's working but will have a note show up that 48 kHz will come out. |
Oh, on the note of codec mandatory settings. |
Is it an IMP imposed limit? Whitepaper states that "G.726 : 40, 32, 24, 16 kbit/s Adaptive Differential Pulse Code Modulation (ADPCM)" |
Yeah, the Ingenic SDK only provides G.726-16 so we'll have to implement our own G726 if we want the other variants. |
i have added automatic changes to sampling rates when selecting different codecs. please check and verify. let me know if more variants are needed. |
we should still implement variable sample rate in opus. even if it will still report as 48khz, lowering the samplerate will save bandwidth and maintain quality since opus is pretty good. |
The Opus library used only seems to allow a sample rate of 48 kHz, 24 kHz, 16 kHz, 12 kHz, 8 kHz as per spec. https://github.com/xiph/opus/blob/7db26934e4156597cb0586bb4d2e44dccdde1a59/src/opus_encoder.c#L546 It seems like the bandwidth profile can be set to save bandwidth as @gtxaspec stated. xiph/opus#170 |
I have updated the latest Thingino firmware (2024.10.10)
I modified the “Main stream” - “FPS” from 25 to 20, press F5 to refresh, and keep the FPS configuration at 20. After restarting the camera, the FPS was restored to 25
I modified the "Main stream" - "Audio" Switch from the default value of off to on, and refreshed it by pressing F5. The switch was restored to off
The text was updated successfully, but these errors were encountered: