Video has no data on dimensions, ratio or orientation

Hi,

I noticed that the width/height, ratio etc. of uploaded video files are not recognised in kirby 3.
Works perfectly fine for images. Is this a known issue or am I doing something wrong?

I need to retrieve the ratio of a video in php to define a ratio for its container, hence the need for this data.

Here is a screenshot of the file page:

When capturing the output of the video object, I get:

[dimensions] => Array
    (
        [width] => 0
        [height] => 0
        [ratio] => 0
        [orientation] => 
    )

Thanks!

You need either ffmpeg or the getID3 library.

1 Like

there was a thread for a custom filemethod getting the mp3 metadata. maybe it helps you getting started.