After updating to 4.7.0 I get distorted video files #1820
Replies: 9 comments 11 replies
-
This looks like some bytes come in wrong order into extpipe. And your found error may be related Few questions:
|
Beta Was this translation helpful? Give feedback.
-
And how comfortable are you with compiling motion from sources? |
Beta Was this translation helpful? Give feedback.
-
Here is a patch that will show how many bytes actually has been written into the extpipe:
Please reproduce the issue and collect the full log again, this time it will be bigger, so maybe upload it to gist |
Beta Was this translation helpful? Give feedback.
-
In general, I wrote a line from the documentation in movie_extpipe and not a single failure occurred on any of the cameras, everything works great! Now I have changed the format to matroska, leaving the codec and everything else, I observe... There are no errors in the logs either. I'll see how it behaves with matroska. Current line: My old line: |
Beta Was this translation helpful? Give feedback.
-
In general, I tested with this line: And everything works perfectly, on all cameras! I applied your patch and returned the old my line to libx265 and now I'm watching (I'm waiting for statistics when they make a few videos). |
Beta Was this translation helpful? Give feedback.
-
I've only managed to catch it once so far. With the patch it works much more stable, apparently due to delays in writing to the log (my guess).
|
Beta Was this translation helpful? Give feedback.
-
Ok, can you try to revert this commit 629b3ba, build and try again? |
Beta Was this translation helpful? Give feedback.
-
Hello! Looks like you managed to find and solve the problem! Thank you! For yesterday I recorded: Everything without a hitch! Today at 7 am I changed the log level from 8 to 5 (which I use daily) for the purity of the experiment, a total of 15 videos have been recorded so far and there are no failures. As for the stand with one camera, the release build (without patches) fails, with a patch for extended logging a little less frequently. There are no glitches with the latest patch! Dear tosiara, during experiments Motion sometimes failed with a segmentation fault. This happens randomly and as far as I remember version 4.6.0 behaved the same way, I just didn’t have time to report then. The problem only appears when the program is shut down and there is nothing in the logs, only in dmesg. In this regard, I would like to ask what actions should I take to create a report? |
Beta Was this translation helpful? Give feedback.
-
Instead of reverting that commit, it may be as simple as commenting out this line. I think the zombies would only be for child processes. |
Beta Was this translation helpful? Give feedback.
-
Hello team!
After updating from 4.6.0 to 4.7.0, sometimes (quite often) distortions appear in the recorded files, it looks like a frame is broken. This happens randomly on any of the three cameras. In version 4.6.0 everything worked perfectly! For now I returned version 4.6.0. Photos are saved normally, regardless of the version. Please tell me what should I do? Should I create a bug report?
My system:
Calculate Linux 23
Kernel 6.6.32-calculate
v4l2 capture card based on cx25821
Driver cx25821 native from kernel.
And 3 analog b/w cameras 720x576
Normally frame:
![C2-08_10_2024-07 05 00 mkv_snapshot_00 00_ 2024-10-08_17 21 59](https://private-user-images.githubusercontent.com/120788804/374599946-523360e6-9d44-4552-93e8-debe5472091c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4NDc2OTksIm5iZiI6MTczOTg0NzM5OSwicGF0aCI6Ii8xMjA3ODg4MDQvMzc0NTk5OTQ2LTUyMzM2MGU2LTlkNDQtNDU1Mi05M2U4LWRlYmU1NDcyMDkxYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOFQwMjU2MzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNzZhYTI5NzljYTU3ZGI0YmM0NTI4ZjEzNjEwMmE0ODM4MzA4ZmQ4NDNjOTczMGQ4MGZjNmFhY2M3ZTk2YzIyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ETz0OMaW5Ywjlf8wwXkM1ymRH-nxZBbbVxgE6d1ysJQ)
![C2-08_10_2024-07 05 00 mkv_snapshot_00 05_ 2024-10-08_17 20 51](https://private-user-images.githubusercontent.com/120788804/374599478-c4d7d5eb-e0c6-41c6-a698-6510f54d1838.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4NDc2OTksIm5iZiI6MTczOTg0NzM5OSwicGF0aCI6Ii8xMjA3ODg4MDQvMzc0NTk5NDc4LWM0ZDdkNWViLWUwYzYtNDFjNi1hNjk4LTY1MTBmNTRkMTgzOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOFQwMjU2MzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iZThlZWYwMGZhNGVmY2U1NjIzNmNhYjkzOWIyNTEwYjlkMzU4YjZkYTYyNjE5Mjc1Njk3MzY2YmVlOGFjYjYyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.cHqocDe-p0lfKAUQp4syCC9k5RQ95ArHYNWtaR4iPWI)
Distorted frame:
The error I found was:
Oct 8 07:05:01 box motion[7041]: [2:ml2] [ERR] [EVT] event_extpipe_put: Error writing in pipe , state error 1: System call interrupted
Log:
Beta Was this translation helpful? Give feedback.
All reactions