Ffmpeg: Thumbnail video in original orientation in php

I am trying to create a thumbnail of a video. My team works fine, but it generates a thumbnail in the wrong orientation.

I want to keep the same orientation of the video that I use.

Here is my command:

exec("ffmpeg  -i  567293a3a6b48.mp4 -ss   01:00  -vframes 1  thumbnail.jpg");

Also, the thumbnail does not contain orientation information in exif data.

+4
source share
1 answer

Having a similar problem, I found the following commands:

ffmpeg -i input -metadata:s:v:0 rotate=0 -c copy output

or

ffmpeg -i input -metadata rotate=0 -c copy output

Found here: http://ffmpeg.gusari.org/viewtopic.php?f=11&t=1293#p3523

, , ? , , , , .

+1

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


All Articles