Strange behavior on downloaded mp4 video files

Current Development version likely to have breaking changes
Post Reply
Pjoms
Posts: 12
Joined: Fri Jan 14, 2022 12:05 pm

Strange behavior on downloaded mp4 video files

Post by Pjoms »

I may have missed something obvious here, but for me right now it looks like there is something funny going on with the downloaded mp4 event files.
I have experienced this on 1.37.40 and 1.37.41 on different installations.

The downloaded files can be viewed in many applications but some don't like those files at all, and I guess that it maybe can have something to do with framerate and/or detected length of the clip.

The reason for that guess is that is based on those three observations:
1. If I import the video file to "VideoPad Video Editor" it see all files as 0.5s regardless of original length.
2. If I try to use some file in a Home Assistant video notification it fails due to to short clip, as it looks like.
3. If I pass the file through the conversation in VLC media player, some of the converted files works fine in both cases above.

What have I missed...?

Edit 230724: I may mention that I have never experienced those problems with any files from other sources.


The setup
- ZM in vm on Proxmox
- Some different cameras (Reolink, D-link, TP-link)

Monitor Settings
- Source Type: Ffmpeg
- Method: TCP
- Decoder: Auto
- Video Writer: Passthrough
- OutputContainer: Auto
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Strange behavior on downloaded mp4 video files

Post by iconnor »

Maybe you'd like to post a clip?
Pjoms
Posts: 12
Joined: Fri Jan 14, 2022 12:05 pm

Re: Strange behavior on downloaded mp4 video files

Post by Pjoms »

Sure.
Here is two clips from different cameras and different ZM installations.
(I renamed the files as .txt to be able to attach them. Is there any other way to do it?)

This test file for example works as expected.
Attachments
1210980-video.h264 - Copy.mp4.txt
(649.16 KiB) Downloaded 216 times
8786-video.h264 - Copy.mp4.txt
(164.22 KiB) Downloaded 199 times
Pjoms
Posts: 12
Joined: Fri Jan 14, 2022 12:05 pm

Re: Strange behavior on downloaded mp4 video files

Post by Pjoms »

This file is one of the attached above that I have convert trough VLC media player using the profile "Video -H.264 + MP3 (MP4)" and that makes it possible to use in e.g. the applications mentioned earlier.
Attachments
8786_2-video.h264 - Copy.mp4.txt
(244.13 KiB) Downloaded 193 times
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Strange behavior on downloaded mp4 video files

Post by iconnor »

All files look good to me... play well in vlc/ffplay. Looking at the converted video, some metadata differences, but mostly just missing dts values, allowing the player more flexibility I guess. All values look good to me at first glance though.

Weird.
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Strange behavior on downloaded mp4 video files

Post by iconnor »

The file produced by zm is variable frame rate, the converted is fixed frame rate, perhaps that is it.

We don't actually set frame rate, we copy it from the input....
Pjoms
Posts: 12
Joined: Fri Jan 14, 2022 12:05 pm

Re: Strange behavior on downloaded mp4 video files

Post by Pjoms »

Thanks for checking.
I tested the files in the old Windows Movie Maker and have the same problem. It will not even open the original files, but the converted works.
As I understand you, there is not possible (in this case) to have contant framerate with passthrough?

What do you recommend to use for some basic editing on Windows and Linux?
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Strange behavior on downloaded mp4 video files

Post by iconnor »

kdenlive works here on your files.

I would imagine any linux based video software will like them as they will likely use the ffmpeg libraries to read the video.
Post Reply