360 video edit default home start orientation / pov?

Started by acem77, April 21, 2023, 12:47:41 PM

Previous topic - Next topic

acem77

Hello,
i have been messing with some gear 360 videos and id like to edit the start orientation.
not sure what the term is called home pov?
Orientation edits mess with the full video not the pov.
i must be missing something. are there any examples to add 180 to a video or still?
i hope to skip any re-encoding.

Stitching Software             : Spherical Metadata Tool
Projection Type                : equirectangular
Matrix Structure               : 1 0 0 0 1 0 0 0 1
Media Header Version           : 0
Media Create Date              : 0000:00:00 00:00:00
Media Modify Date              : 0000:00:00 00:00:00
Media Time Scale               : 90000
Media Duration                 : 5.20 s
Handler Description            : Video Media Handler
Other Format                   : tmcd
Handler Type                   : Metadata
Handler Vendor ID              : Apple
Encoder                        : Lavf59.17.102
XMP Toolkit                    : Image::ExifTool 12.41
Orientation                    : Rotate 180
Media Data Size                : 9826678
Media Data Offset              : 5203
Image Size                     : 2560x1280
Megapixels                     : 3.3
Avg Bitrate                    : 15.1 Mbps
Rotation                       : 0


thanks

StarGeek

Rotating a video is more comples, as two things have to be changed and one of them, MatrixStructure , isn't easily human readable.  Luckily, exiftool makes it easier with a Composite tag.  See Rotation on the Composite tags pagej.

Try setting Rotation to 90, 180, or 270
exiftool -Rotation=90 file.mp4
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

acem77

I tried this before and just now, it seem to rotate my video thumbnail and does not seem to related to the 360 videos start orientation?
i am looking for 360 video xmp meta data from what i understand

Phil Harvey

I think you may want to set some of the GPano tags, but I can't help with which ones.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

acem77

Quote from: Phil Harvey on April 21, 2023, 04:08:12 PMI think you may want to set some of the GPano tags, but I can't help with which ones.

- Phil
I believe its this but ill have to see how it can be added?

<GPano:InitialViewHeadingDegrees>180</GPano:InitialViewHeadingDegrees>

Phil Harvey

exiftool -InitialViewHeadingDegrees=180 FILE

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

acem77

Quote from: Phil Harvey on April 21, 2023, 09:10:59 PMexiftool -InitialViewHeadingDegrees=180 FILE

- Phil

thanks I gave it a try did not seem to help. i read that not all playback software checks the orientation values.
if thats true do you know of any that do as a test.

i have also been testing "VSDC Free Video Editor" using their tutorials still no luck but I maybe messing something up. or i dont have the software to play back as expected..

https://www.videosoftdev.com/free-360-video-editing?utm_source=video_editor&utm_medium=360
https://youtu.be/kaksX0_CCP0

testing with ricoh, vlc player and facebook uploads



acem77

I have a 9mb test file i can send if someone can try and see if they have any luck?

acem77

#8
ffmpeg did the trick, i only need to reinject the 360 metadata after with Spatial Media Metadata Injector

ffmpeg -i "test3.mp4" -vf v360=e:e:yaw=160:pitch=0:roll=0 "test3160ffout.mp4"