I need to get the width and the height of a video, through the REST API.
I thought that would be at /videos/{id}, but I can’t find them. Is this information available somewhere else ? The only alternative I can think of right now, is to use the GetID3 php library on the first fileUrl link /videos/{id} provides.
This sample code gets the dimensions of a Peertube video through getID3.
Given that :
=> $video is filled with the output of API call /videos/{id}
=> your server has rw access to the ./tmp folder
=> getID3 library is available on your server in the ./getID3-master folder (see https://www.getid3.org)