I finally found the cause of my "video playback not working" issue. Need help finding a workaround
Posted: Tue Feb 20, 2024 6:11 pm
I have been stuck for a long time on this. I can view event playback in a web browser but I can't do it on the zmninja app. It doesn't work on android or in the linux desktop appimage. I am using zmninja 1.7.006 although I get this same issue on the older versions too. I am on zoneminder 1.37.51.
When I track down the physical location on disk of where an event video is stored, I can type that in to a web browser. The raw video file doesn't play and I get "No video with supported format and MIME type found." If I replace that file with a known working mp4 video that doesn't have mime issues, it will work when I try to play it in the browser. When I try to view that same event in Zmninja, the video file actually plays.
This proves that the reason I have not been able to get zmninja to work since updating to Debian 12 is because now, the saved videos are being saved with mime errors. I have not been able to find a way to make ffmpeg convert the borked mp4 files to working mp4 files but I expect I'll figure that out eventually. Then, I can make a script or program that checks through all my video files a few times a day and converts them from "broken because mime" to "working".
Is there a way to prevent zoneminder from saving videos with whatever mime shenanigans it's doing? Is there a way to modify zoneminder's saved video format settings in any way? Because if there's a better workaround for this issue that doesn't involve a clunky script that has to check and convert stuff, I would love to hear it.
When I track down the physical location on disk of where an event video is stored, I can type that in to a web browser. The raw video file doesn't play and I get "No video with supported format and MIME type found." If I replace that file with a known working mp4 video that doesn't have mime issues, it will work when I try to play it in the browser. When I try to view that same event in Zmninja, the video file actually plays.
This proves that the reason I have not been able to get zmninja to work since updating to Debian 12 is because now, the saved videos are being saved with mime errors. I have not been able to find a way to make ffmpeg convert the borked mp4 files to working mp4 files but I expect I'll figure that out eventually. Then, I can make a script or program that checks through all my video files a few times a day and converts them from "broken because mime" to "working".
Is there a way to prevent zoneminder from saving videos with whatever mime shenanigans it's doing? Is there a way to modify zoneminder's saved video format settings in any way? Because if there's a better workaround for this issue that doesn't involve a clunky script that has to check and convert stuff, I would love to hear it.