mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-25 15:15:51 +03:00
[GH-ISSUE #718] Rotated mp4 files are warped in importing with ffmpeg #2313
Labels
No labels
copy cats
duplicated
future feature
pull-request
⬜ Accepted
⬜ Completed
⬜ Help Wanted 💪
⬜ In Progress
⬜ Missing Details
⬜ Pending
⬜ Waiting For Answer ⏳
🆕 feature preview
🔷 Bug 🐛
🔷 Out Of Scope
🔷 Out Of Scope
🔷 Question
🔷Enhancement
🔷Enhancement
🔷Invalid / External
🔷Knowledge Base
🔷Won't Fix
🕑 High
🕑 High
🕑 High
🕕 Medium
🕙 Low
🕛 Critical
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ScreenToGif#2313
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JJKylee on GitHub (Sep 11, 2020).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/718
OS: Windows 10 Home x64 19041.508
Program: ScreenToGif 2.27 portable
I recorded my iPad screen in the landscape mode, and the resulting mp4 file has a rotate tag of 270 degrees and a display aspect ratio of 3:4. Any normal player plays it as expected: the video is exactly the same as when it was recorded in the landscape mode.
But while trying to import the mp4 file in ScreenToGif, I found two weird behaviors of ScreenToGif.
Well, 2) doesn't matter since I can always rotate the frames within ScreenToGif. But 1) is a big problem.
In an attempt to fix this problem, I remuxed the mp4 file with a new DAR tag as follows:
ffmpeg -hide_banner -i INPUT.mp4 -aspect 4:3 -c copy OUTPUT.mp4But there was no change. ScreenToGif does not respect this new DAR and just rotates the video with a warped aspect ratio as before.
So this time I just removed the rotate tag without aspect ratio change as follows:
ffmpeg -hide_banner -i INPUT.mp4 -c copy -metadata:s:v:0 rotate=0 OUTPUT.mp4And as expected, this worked the same as 2), and I just needed to rotate the frames in ScreenToGif.
Well, this seems like a bug. Please fix it. Thanks.