Fix #1598 #1599 : Fix support for portrait videos.
Merge pull request #818 from romainneutron/fix-1598

[3.8] Fix #1598 #1599 : Fix support for portrait videos.