Python: find the time to record a movie .mp4

I have an MS Windows phone that records decent video in format .mp4. Looking at the gallery (film), all photos and videos are placed in the order in which they were taken.

In python, I was fortunate enough to find the "date" for taking photos (using the module exifread), but there was no luck with the video.

Does anyone know how to get this information via python?

I recorded a 3 second sample [Date: 2014/01/31] ( download it here ) if someone wants to see the file format.

+1
source share
2 answers

. , , , .

moov mvhd. . 0, 1 1904 ( QuickTime). moov, 2 trak (1 1 ). tkhd, ... , , 0 .

. , moov .

, , . , (, , ). , , , , .

+2

Python, Atomic Parsley , . , python , hachoir. Mpeg-4 hachoir, mp4- , MOV.

0

Source: https://habr.com/ru/post/1524507/


All Articles