-
Notifications
You must be signed in to change notification settings - Fork 492
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
Boxing completion detection needs improvement? #644
Comments
OK. I can look into that but have some other Bullseye related tasks to complete first. One issue is that the MP4Box process is launched asynchronously so there is no direct feedback on failure. One possible method would to relabel the file on failure making it automatically move on. Can you share the modified command you used as an adaptation of that might do the trick? |
The following is my replacement for the default
A quick overview of the above script:
|
Thanks. I would like to replace the install version with this. One question. TNAME seems to be set twice? Seems OK if I remove the second one. |
I figured it was safer to set it twice, since the original MP4Box_cmd string had four placeholders, two of which were for the filename of the temporary input file: And it looked like the code that uses the MP4Box_cmd string to produce the final command string passed the value of |
OK That makes sense. The original code for MP4Box_Cmd did pass a different value for the 4th parameter but when it was updated it became the same as the 2nd. It was duplicated to keep compatibility. I have updated the value in raspimjpeg to use both copies of the parameter like yours so that all parameters are used. |
Does the code in the scheduler that automatically purges old files need to be updated to also delete files with the .bad and .log file extensions? Or does that code already delete old files regardless of their file extensions? |
The routine that deletes files in config.php needed to be updated to deal with the extra extensions. That then deals with the cases where it is manually deleted or by the schedule purge. Latest version has the changes needed which should work OK, but I never get this type of error myself. I did a simulation which worked. |
Thank you for making the changes. |
Recently encountered an issue where the boxing process (MP4Box) failed on a .h264 file, causing the boxing queue to eventually become full and all subsequent videos to not get boxed, resulting in "Busy" being shown on the preview page for all those videos. It would be great if the mechanism for detecting failures in the boxing process could be improved.
It looks like the current detection mechanism periodically checks whether the .h264 file being boxed is still present, and if so, assumes that the boxing process is still running, even if it failed (i.e. MP4Box exited with an error). Maybe the detection mechanism could be enhanced to also check whether the boxing process is still running?
Also, if errors from the boxing process could be logged by default, that would be quite helpful in troubleshooting. I ended up having to manually change the MP4Box_cmd in /etc/raspimjpeg to have MP4Box log to a file, to determine that it was MP4Box failing with an error when trying to box a particular .h264 file.
The text was updated successfully, but these errors were encountered: