Replies: 6 comments 1 reply
-
Yes. I have to get back to this one....it is a difficult one to solve on the audio pts. I'd note that the ultrafast and crf do not affect anything for the netcam_params. |
Beta Was this translation helpful? Give feedback.
-
I am looking forward to making full use of motionplus, i.e. with audio PTS issue above resolved. Over the past one year, I feel grateful for having motion in operations at my farmland. It works fine and surprisingly consumes virtually no extra cpu work load even with almost 10 cameras (passthrough mode). Recently I have just been able to build motionplus and have done some testing & setup. There seems to be more settings for threshold variables which I haven't been able to figure out much. So far both motion and motionplus seem to run along each other fine, except some output videos from motionplus seem to get the above error when replayed by mpv (the screen will get stuck in gray). |
Beta Was this translation helpful? Give feedback.
-
I just tried a few sources (file, rtsp) and did not get an issue. Can you post a gist of the Motion log at debug level where it is recording from that camera (full log). Also paste a ffprobe of the resulting movie. I can then try to replicate the source, Motion configuration and result. |
Beta Was this translation helpful? Give feedback.
-
I have this for you; however, I am not sure whether this meets your requirements or not. Please let me know if anything else needed. logfile loglevel 8 Sample file ffprobe command used: ffprobe output Observation |
Beta Was this translation helpful? Give feedback.
-
Today I also do some test on my camera by reading and writing audio and video packets using pyav. My observations are as follows.
For your inspection, this is my python code.
I have no idea if motion/motionplus use anything similar to pyav I tested above. Anyway I just recently learned about this pyav and my curiosity after seeing this invalid PTS in motionplus led me to trying this test code. Not sure if this has anything to do with motionplus or not. I suppose it has something to do with how stable the camera sending in packets and the way av package establish pts/dts from the time it receives packet. |
Beta Was this translation helpful? Give feedback.
-
I just happened to test motionplus again lately and the issue above has gone. Thank you so much. |
Beta Was this translation helpful? Give feedback.
-
When I playback the video with mpv, I often get these lines and I am not so sure it has to do with my hardware or video file.
Invalid audio PTS: 28.926000 -> 50.308000
Reset playback due to audio timestamp reset.
Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
My log file is motionplus.log.
My camera config files have this netcam_high_params preset=ultrafast,crf=32 which I often include in ffmpeg to get the file size as small as possible.
Beta Was this translation helpful? Give feedback.
All reactions