Get H.264 MP4 Dimensions

Does anyone know a ready-made, reliable way to tell the dimensions (width x height) of MP4 encoded using the H.264 codec without ffmpeg or similar extensions, in pure PHP?

Thanks for all the answers. The bounty ends, and I will not have time to check the proposed solutions before this happens. I will make a decision, which, it seems to me, has the greatest likelihood of work.

+3
source share
6 answers

It seems that http://code.google.com/p/php-mp4info/ might be your answer. He reads MP4, but does not mention anything about H.264.

Also, which OS are you using?

+2
source

getID3 - php . , , . getID3 . , .

+4

:

+1

php-reader is a complete implementation ISO 14496made in pure PHP. You can use this library to read all the fields that mp4 consists of, for example, the moov atom containing metadata about the file.

+1
source

Built-in PHP doesn't support anything like this, ffmpeg is just one library that comes to my mind.

0
source

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


All Articles