-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Openshot 2.4.4 incorrectly exports vertical video #2969
Comments
Try to save your project file (.osp) and then load it again (use new empty folder for the project's file). |
@SuslikV Just tried it. Unfortunately, it doesn't work, even if empty directory is used to save the project file. |
It looks like I found the root cause: video file that came from my Huawei P30 has 1920x1080 dimensions even though it is oriented vertically. Somehow VLC and other media players still open it properly, but OpenShot can't detect this irregularity. I reencoded the file using Could OpenShot automatically detect and apply a workaround for such cases? |
Short file sample is needed to test it out (about 2 seconds is well enough). |
Sample video attached. |
Without linked changes I can't find suitable workaround. (you can apply changes manually, just locate required file in your application's folder). More over even if you apply the changes to
There were number of optimizations in the rendering code, so it wasn't well tested and this caused the problem. |
In a sense it does, in that if you import a vertical video in typical phone/tablet format (which is a horizontal video with metadata that defines an initial rotation), OpenShot will detect that and import the video already-rotated. (So, the video will load with The problem is that a horizontal video rotated 90° isn't really the same thing as a video with swapped dimensions. OpenShot's rotation in general is currently quite naive, and doesn't account for how rotation (any rotation) alters the dimensions of the video image. Even though the video is rotated, it still has If your output profile is the same size as your input video, as @SuslikV indicated setting Still, it would be far better if libopenshot was smarter about rotation and how it affects the source video, which is the focus of OpenShot/libopenshot#322. |
@ferdnyc I'm going to fix some Preview File bugs (so that it start acting same to the regular Video Preview) first. That will show number of optimization assumptions that was just dead code and do nothing good. I think these changes will be important, because the Painter transform related on geometry of the source and its currently visible size. Issues are not only in rotation but in whole transform. I need a bit more time for it to complete. Then, it would be nice to see new actual transform formulas and calculations. |
@SuslikV BTW, maybe it deserves standalone issue, but I also had problems with inaccuracy of exported video dimensions when tried to merge it with 1080x1920 picture. You can see it at the very end of my resulting video when transformation from video to picture is in progress. IIRC I had to use 1082x1920 picture to minimize the effect and make it appear on up/down edges. With 1080x1920 picture the issue was on the left edge: https://www.youtube.com/watch?v=R6NvCqXmVJg It is hard to see on PC (you need to use full screen mode and you will see a stripe of video at the very top), but on my smartphone is it easily visible. |
@sknaumov You're talking about the very end section, where it fades from video to the title card? I'll be honest, I've gone over that fade several times, using different YouTube views, even at half speed, and I'm not really seeing the issue. So I guess it minimized pretty well! (Or I'm blind.) If your image is exactly the size of your output frame, though, it's probably worth trying But, using a slightly-larger-than-frame image as a workaround makes a lot of sense (and would be the next option anyway, if |
@ferdnyc I think, he says about two bright horizontal lines (1-2 pixels height) at top and at the bottom of the image, when transition is almost complete (you can notice that this bright lines is just background video that is still running behind the black image with the text that simply covers the video). YouTube player shades the top and bottom of the footage when playback controls are active, thus it is harder to notice them when you looking for it :) Edit: Stretch may work better. |
Ah, OK. I do see that. (Viewing the video in non-theater mode (which is actually better for vertical video, size-wise) didn't help either, since it uses a white background.) Maybe 2px on the top, and not even a full 1px on the bottom — it's more like half a line of pixels, at the bottom left edge. The interesting thing about that is, I'd expect a Yeah, I'm definitely leaning back towards There's also another, simple workaround for the issue (not that it wouldn't be better to solve it, of course): If the title card were placed on the track below the video, and then the video faded out instead of the title card fading in, that would eliminate any bleed-through from under the image. |
Yes, exactly, with 1080x1920 picture I had vertical bright line from the video on the side. I created the picture using GIMP. |
Thank you so much for submitting an issue to help improve OpenShot Video Editor. We are sorry about this, but this particular issue has gone unnoticed for quite some time. To help keep the OpenShot GitHub Issue Tracker organized and focused, we must ensure that every issue is correctly labelled and triaged, to get the proper attention. |
Describe the bug:
Vertical video looks very small, with big black frames around all edges. Original video has black frames only from left and right of the video and looks about 2 times bigger.
Steps to reproduce the behavior:
Expected behavior:
Get the same video as original one.
System Details:
Screenshots:
Original:

Exported from OpenShot with default HD 1080p 1920x1080 profile.

Exported from OpenShot with custom vertical profile:

The text was updated successfully, but these errors were encountered: