EliasKotlyar / Xiaomi-Dafang-Hacks

4.19k stars 1k forks source link

v4l2rtspserver-master.log more than 1.5 Gb #804

Closed ortegafernando closed 5 years ago

ortegafernando commented 5 years ago

Hi, I have found today that my DAFANG camera has problems.

I deciced to delete the firmware mod and update it directly by copying files with a micro sd adapter (I have update last times with webgui update menu).

I have found that my v4l2rtspserver-master.log is about 1.6Gb !!!! I have a 2Gb micro sd card, so 1.6Gb plus swap file .... micro sd is full

So probably, that is my problem.

I have open it with notepad and I can see that from 2018-11-13 22:04:11 there are more than 14.000.000 of lines with these two lines:

ALSACapture.cpp:660 ERR| Audio Get Frame Data error ALSACapture.cpp:655 ERR| Audio Polling Frame Data error

Any one could know what is the problem?

ortegafernando commented 5 years ago

Hi, I have then copy new files from github, and the v4l2rtspserver-master.log is also full of

ALSACapture.cpp:660 ERR| Audio Get Frame Data error ALSACapture.cpp:655 ERR| Audio Polling Frame Data error

Does anybody has this problem? I don't how I can have it after deleting and copy again all the files from firmware_mod

jmtatsch commented 5 years ago

Maybe you selected some audio options rtspserver doesn't like.

ortegafernando commented 5 years ago

I don't know. It is strange that also, after deleting firmware_mod and copying it again, it happens also. Yesterday I switch off audio, probably this night I could test some audio options and check file size with ssh. Thanks.

ortegafernando commented 5 years ago

Hi, I have trid this week

Sound settings after deleting and copying new firmware:

After few days, the log is ok, so probably that about strange settings.

I will close this, only I have put my sound settings just in case there is anyone with the same problem

meidyjordan commented 4 years ago

Hi, I Have Question about v4l2rtspserver-master.log

image

in this case that /var/log/lighttpd-cgi-stderr.log say : can't open '/tmp/v4l2rtspserver-master.log': No such file or directory. Can someone tell me what's wrong ?

daniel-dona commented 4 years ago

This problem still persist on Sannce I21AG:

2020-04-19 09:43:58.680 (   3.365s) [main thread     ]               main.cpp:589      0| Create SDK audio Source...
2020-04-19 09:43:58.681 (   3.366s) [main thread     ]        ALSACapture.cpp:96       0| Audio In GetPubAttr samplerate : 44100
2020-04-19 09:43:58.681 (   3.366s) [main thread     ]        ALSACapture.cpp:97       0| Audio In GetPubAttr   bitwidth : 16
2020-04-19 09:43:58.681 (   3.366s) [main thread     ]        ALSACapture.cpp:98       0| Audio In GetPubAttr  soundmode : 1
2020-04-19 09:43:58.682 (   3.367s) [main thread     ]        ALSACapture.cpp:99       0| Audio In GetPubAttr     frmNum : 50
2020-04-19 09:43:58.682 (   3.367s) [main thread     ]        ALSACapture.cpp:100      0| Audio In GetPubAttr  numPerFrm : 1764
2020-04-19 09:43:58.682 (   3.367s) [main thread     ]        ALSACapture.cpp:101      0| Audio In GetPubAttr     chnCnt : 1
2020-04-19 09:43:58.688 (   3.373s) [main thread     ]        ALSACapture.cpp:107    ERR| enable ai 1 err
2020-04-19 09:43:58.689 (   3.374s) [DeviceSource    ]       DeviceSource.cpp:91       0| begin thread
2020-04-19 09:43:58.690 (   3.375s) [DeviceSource    ]        ALSACapture.cpp:655    ERR| Audio Polling Frame Data error
2020-04-19 09:43:58.691 (   3.376s) [DeviceSource    ]        ALSACapture.cpp:660    ERR| Audio Get Frame Data error
2020-04-19 09:43:58.693 (   3.378s) [DeviceSource    ]        ALSACapture.cpp:655    ERR| Audio Polling Frame Data error
2020-04-19 09:43:58.693 (   3.378s) [DeviceSource    ]        ALSACapture.cpp:660    ERR| Audio Get Frame Data error
2020-04-19 09:43:58.693 (   3.378s) [DeviceSource    ]        ALSACapture.cpp:655    ERR| Audio Polling Frame Data error
2020-04-19 09:43:58.694 (   3.379s) [DeviceSource    ]        ALSACapture.cpp:660    ERR| Audio Get Frame Data error
2020-04-19 09:43:58.694 (   3.379s) [DeviceSource    ]        ALSACapture.cpp:655    ERR| Audio Polling Frame Data error
2020-04-19 09:43:58.694 (   3.379s) [DeviceSource    ]        ALSACapture.cpp:660    ERR| Audio Get Frame Data error
2020-04-19 09:43:58.695 (   3.380s) [DeviceSource    ]        ALSACapture.cpp:655    ERR| Audio Polling Frame Data error
2020-04-19 09:43:58.696 (   3.381s) [DeviceSource    ]        ALSACapture.cpp:660    ERR| Audio Get Frame Data error
2020-04-19 09:43:58.697 (   3.382s) [DeviceSource    ]        ALSACapture.cpp:655    ERR| Audio Polling Frame Data error
2020-04-19 09:43:58.697 (   3.382s) [DeviceSource    ]        ALSACapture.cpp:660    ERR| Audio Get Frame Data error
nik0 commented 4 years ago

@daniel-dona Obviously the audio is not working. What does logcat log say ? Did you play with the audio settings ? Someone needs to implement a log rotate ...