On 2022-09-23 19:47, Andreas Kohlbach wrote:
> On 23 Sep 2022 09:30:22 +1000, Computer Nerd Kev wrote:
>>
>> pH <
wNOS...@gmail.org> wrote:
>>> My daughter sent me some videos via her iphone. Some of them are sideways
>>> so I want to rotate them and save them in the rotated format rather than
>>> toggle the playback every time.
>>> [snip]
>>> Before I dive into it, does anyone know a a simple-to-use rotational tool
>>> along the lines of "twist -90degrees infile outfile"?
>>
>> My exact instructions for dealing with your exact problem are on
>> another computer, but rotation is done with ffmpeg using:
>> ffmpeg [arguments] -vf "transpose=[number]" [output]
>>
>> Where a web search brings up [number] being:
>> "1 = 90Clockwise, 2 = 90CounterClockwise, 3 = 90Clockwise and
>> Vertical Flip, "transpose=2,transpose=2" for 180 degrees".
>
> But that will re-encode it with loss of quality, no? Because "-vf"
> implies "video filter", which alters the video data.
>
> For meta data found
>
> ffmpeg -i original_file.mp4 -metadata:s:v rotate="1" -c copy outfile.mp4
>
> to just tells the video player about the orientation. Player (and the video
> format) must support that. That should take a split second per video, as
> its data are not altered.