[FFmpeg-user] Problem creating video segment from still image
Moritz Barsnick
barsnick at gmx.net
Tue Dec 3 20:03:04 EET 2024
On Tue, Dec 03, 2024 at 11:22:16 -0600, FFmpeg user discussions wrote:
> I am blind but I'm trying to create a promotional video for my disabled rock
> climbing group. I would like to insert a still image into the video. The
> video has resolution 1280:720 so I resized the image to be less than
> 1280x720. ffprobe seems to indicate this worked:
>
> $ ffprobe -v error -select_streams v:0 -show_entries stream=width,height
> snapshot.jpg
> [STREAM]
> width=960
> height=720
> [/STREAM]
What ffprobe and ffmpeg's decoder (or demuxer?) apparently don't tell
us, is that the image has an "Orientation" flag:
$ identify -verbose snapshot.jpg | grep -i orientation
Orientation: RightTop
This indicates that it should be rotated 90 degress clock-wise (I
think). Something in ffmpeg's chain is taking that into consideration,
and rotating the image, but not reporting it in the console output
(which you forgot to post, so I had to reproduce this myself).
Cheers,
Moritz
More information about the ffmpeg-user
mailing list