Rotating videos with ffmpeg

Often, a video taken with a mobile phone will be rotated in a different way than you expect. It may be taken vertically or upside-down. So you may want to correct that and get yourself a properly rotated video for viewing on computer.

All right, on Linux we use ffmpeg and there is no problem with it. The ffmpeg will happily rotate the video. What you do not expect is that the rotation information will remain in the media and then the player will try to rotate it again. What you get is a mess and you will be cursing away trying to understand why your video ends up upside down all the time although you enter the parameters to rotate it correctly.

So, the first thing you want to do is to remove the meta-information about rotation from the video. Like this:

ffmpeg -i 20160225_211430.mp4 -metadata:s:v rotate="0" -codec copy 20160225_211430_2.mp4

Once the meta-information is gone, we can check the actual rotation of the video stream and finally correct it with the ffmpeg:

ffmpeg -i 20160225_211430_2.mp4 -vf "transpose=1" 20160225_211430_3.mp4

Interestingly, the meta-information is used by some players and not used by others, so the results are unpredictable if you leave the video rotated. I prefer it to be “physically” rotated to the right direction and remove the original rotation angle – then you get reliable view on all devices. More or less :)… -->

continue reading →

Americans want to nuke Russia to keep their “superiority”

Media analyst Mark Dice asked beachgoers in San Diego, California to sign a petition supporting President Obama’s supposed plan to launch of preemptive nuclear attack against Russia to help keep the United States of America the world’s leading superpower.


continue reading →

Ukraine war documentary

The documentary presents a collection of recordings with English subtitles on extensive war crimes in Donbass from July 2 to July 24, 2014. Kiev’s warmongers continue genocide of civilian population and deliberate destruction of Eastern Ukraine’s infrastructure – schools, hospitals, kindergartens, power plants, train stations, etc. The majority of the footage and interviews you will see in this documentary film have never been shown on TV. This is not for the faint of heart.


continue reading →

Ukrainian media showed World of Tanks as “Russian invasion”

Ukrainian TV Channel 1+1 showed videos of Russian tanks as a proof of the Russian army offensive on Donetsk. The video turned out to be gaming exercises near Moscow landfill, reported

What was shown on the video are game exercises arranged by the fans of the popular online game World of Tanks. The machines all sport logos of WoT. The visuals were accompanied by an inscription that this is supposedly a footage of Donetsk region.

The author of the video, Sergey Karapetyan, was critical of Ukrainian journalists in his comments. “Oh, God, what morons they are in the Ukrainian media. Took a piece of my video of the T-72, inserted it into a plot, and supposedly those became tanks attacking Donetsk. They were not even confused by the fact that all tanks have paint logos of WoT. No shame, no conscience, not a drop of brain in their heads, “- wrote Karapetyan on Facebook.

Earlier, Ukrainian media quoted military reported column of Russian armored vehicles moving in the direction of Lugansk. According to the data presented, the vehicles allegedly passed through the village Hryaschevatoe from the side of the border with Russia.… -->

continue reading →