Opération très simple :
avconv -i fichier_a_pivoter.mp4 -vf transpose=0 fichier_final.mp4
Les valeurs de transpose sont :
A la place de transpose, vous pouvez aussi utiliser vflip et hflip : Plus d'informations
ffmpeg -i fichier_a_pivoter.mp4 -vf “transpose=2” fichier_pivote.mp4
Les “” autour de 'transpose' semblent très importants.
Une vidéo a “résisté” au pivotage à droite. Il a fallu enchaîner les 2 commandes suivantes :
La commande ci-dessous a fonctionné, mais en miroir.
ffmpeg -i fichier_a_pivoter.mp4 -vf "transpose=0, transpose=1" fichier_pivote.mp4
La commande suivante a effectué le flip
ffmpeg -i fichier_a_pivoter.mp4 -vf hflip fichier_pivote.mp4