Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#2061 | Link |
Matroska find' ich toll
Join Date: Apr 2008
Posts: 1,351
|
Hi clsid
Since when can MPC-HC process the ProjectionPoseRoll element and rotate the video? My test file from the Matroska Playback repo is suddenly rotated correctly. The test version at the time was 1.8.6 and it didn't work there. |
![]() |
![]() |
![]() |
#2062 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,314
|
Parsing of the element was added to LAV 0.75.1 (mid 2021), all you need after that is a video renderer that can perform rotations based on the metadata.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
![]() |
![]() |
![]() |
#2065 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,314
|
A 2D image does not rotate around those axis.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
![]() |
![]() |
![]() |
#2067 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,314
|
Its a 2D image, you want to rotate it into a third dimension, with a 2D video renderer. Why? Cameras don't record like this, displays dont show like this, renderers dont render like this.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
![]() |
![]() |
![]() |
#2069 | Link |
Registered User
Join Date: Nov 2022
Posts: 9
|
MediaInfo.dll in MPC-HC.2.0.0.138.x64.zip
Just FYI, the MediaInfo.dll inside the MPC-HC.2.0.0.138.x64.zip development build is the 32 bit version. The one installed by MPC-HC.2.0.0.138.x64.exe is the proper 64 bit flavor.
And as always, thank you greatly for your continued work on this. Edit - now fixed. Last edited by Cutterkin; 17th September 2023 at 19:33. |
![]() |
![]() |
![]() |
#2070 | Link |
Registered User
Join Date: Dec 2008
Posts: 1,886
|
Rotate a frame in MKV
I found a problem with rotation.
I used the following command. Code:
ffmpeg -display_rotation 90 -i "movie.mp4" -y -c copy movie90.mp4 ffmpeg -display_rotation 90 -i "movie.mp4" -y -c copy movie90.mkv MPC-HC and MPC-BE rotate the MP4 frame counterclockwise (same as ffplay.exe), but rotate the MKV frame clockwise. Is there a bug in MPC-HC and MPC-BE or in FFmpeg?
__________________
MPC-BE 1.6.9 and Nightly builds | VideoRenderer | ImageSource | ScriptSource | BassAudioSource |
![]() |
![]() |
![]() |
#2072 | Link | |||
Registered User
Join Date: Dec 2008
Posts: 1,886
|
Quote:
Element Specifications > ProjectionPoseRoll Quote:
Therefore, we read the notes. Specification Notes > Rotation Quote:
If I understood everything correctly, then support for frame rotation for MKV in MPC-BE and MPC-HC is done incorrectly.
__________________
MPC-BE 1.6.9 and Nightly builds | VideoRenderer | ImageSource | ScriptSource | BassAudioSource |
|||
![]() |
![]() |
![]() |
#2073 | Link |
Matroska find' ich toll
Join Date: Apr 2008
Posts: 1,351
|
Oh yes, you are right.
What a inaccurate description LOL. You could ask Steve for better text there. I'm also confused now. I can understand the counter-clockwise method but we have positive and negative values and this changes the direction too. Negative value plus counter-clockwise = clockwise? Before ProjectionPoseRoll element there was the Tags method and there was only positive values for a clockwise rotation. 90 means clockwise rotation and why should now value 90 with ProjectionPoseRoll a counter-clockwise and -90 is then the clockwise rotation? really weird. |
![]() |
![]() |
![]() |
#2074 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,314
|
I tried to look at the ffmpeg code, but its written very confusingly. One path negates the rotation, the other one doesn't, it doesn't use the defined helper functions to get the rotation but calculates it itself for some reason or another.
From my understanding of the wording of it, I would think that the ffmpeg code is at fault here, because the forward vector of an image should be coming out of the image towards the user? But its a very weird way to describe it without an example or reference file to confirm.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders Last edited by nevcairiel; 24th September 2023 at 13:11. |
![]() |
![]() |
![]() |
#2075 | Link |
Big Bit Savings Now !
Join Date: Feb 2007
Location: close to the wall
Posts: 1,406
|
Coming from most physic rules, (and geometry does see ccw as positive too) the right-hand rule should imply that:
If thumb points to viewer (positive values assumed), then index finger would point ccw for positive Z-rotation values. (hope I did not screw that one up ;-)
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain) "Data reduction ? Yep, Sir. We're working on that issue. Synce invntoin uf lingöage..." |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|