-
-
Notifications
You must be signed in to change notification settings - Fork 35.2k
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
VideoTexture: Doesn't handle file rotation. #13671
Comments
Um, it's not clear to me what's your issue. Can you please provide a live example that demonstrates the problem? |
I can try to do thet, but I'm not shoure when I will have the time for that.
I will try to create an example in the next days. |
Please try your video with this live demo and test if the orientation is correct. |
I checked it and the rotation is wrong. I also noticed, that Windows Media-Player is also not rotating the file correctly. In VLC-Player is the rotation right. |
I don't think that's a |
I would expect that the texture has the same rotation like the video element I putted in. Or do you know a way to detract the rotation? |
No. And i don't think that's the task of a 3D library. You should first investigate why Windows Media-Player shows the same behavior. |
The reason for this is most likely the video rotation metadata that has been saved in the video when filming on a mobile device. The mobile will record the video with whatever its default rotation is, then add in the rotation metadata for video players to use when playing back. The reason I believe is to reduce any video processing needed during recording. Modern browsers will use this to rotate the videos in playback when using I think the solution is to transcode the video without the rotation metadata. |
Thanks for the replies, then I have to close this issue and try to convert the files on the server. |
@calrk Thanks for your explanation! |
@kenrussell what do you think about this? the browser applies the rotation specified in the video metadata when displaying it with |
I will reopen this and maybe you could make a feature out of this. |
That's the reason why |
Yes I agree with @Mugen87 . Given my research into the problem I don't believe the solution can be implemented in |
Maybe the video texture could load the video as file resource and read the file rotation direct? |
I think the browser is going to handle this (at least chrome). |
Hallo,
It seems that the video from some mobile devices are not rotating correctly. I used the same video element for the right view and the left plain and the rotation is not the same. Other videos are working.
video.zip
Three.js version
Browser
OS
The text was updated successfully, but these errors were encountered: