Force rotation in media properties to 0?

relaxvideo wrote on 8/16/2023, 10:23 AM

I have some Gopro 7 footage which show as portrait in my landscape project.

At media properties i see that rotation is set to 90 degree.

Can we disable this metadata info and force all videos to 0 (original)?

Comments

mark-y wrote on 8/16/2023, 12:12 PM

Maybe with a metadata or hex editor, not sure. For now, just change the Media Properties or the output rotation.

jetdv wrote on 8/16/2023, 12:12 PM

You can use a script and change the rotation to 0 for all that are not zero.

relaxvideo wrote on 8/16/2023, 1:40 PM

mark-y: yes, but i have lot of such clips and change manually is not ideal.

jetdv: what would be that script exactly? :)

#1 Ryzen 5-1600, 16GB DDR4, Nvidia 1660 Super, M2-SSD, Acer freesync monitor

#2 i7-2600, 32GB, Nvidia 1660Ti, SSD for system, M2-SSD for work, 2x4TB hdd, LG 3D monitor +3DTV +3D projectors

Win10 x64, Vegas22 latest

Robert Johnston wrote on 8/16/2023, 5:34 PM

@relaxvideo

@mark-y

In addition to what mark-y said, you can select one or more media clips in the Project Media panel and then R click, select properties, then select one of the rotation options so your clips display the way you want. That will affect all the media clips you have selected.

Intel Core i7 10700K CPU @ 3.80GHz (to 4.65GHz), NVIDIA GeForce RTX 2060 SUPER 8GBytes. Memory 32 GBytes DDR4. Also Intel UHD Graphics 630. Mainboard: Dell Inc. PCI-Express 3.0 (8.0 GT/s) Comet Lake. Bench CPU Multi Thread: 5500.5 per CPU-Z.

Vegas Pro 21.0 (Build 108) with Mocha Vegas

Windows 11 not pro

mark-y wrote on 8/16/2023, 7:15 PM

Thank you @Robert Johnston

@relaxvideo You asked about changing the metadata, sorry I misunderstood your intent. That said, the solution to your undelying question is quite easy to do with one click ---

jetdv wrote on 8/17/2023, 8:04 AM

Here's where I first referenced Rotation in the tutorials

You can try this script and see if it does what you want:
 

using System;
using System.Collections.Generic;
using System.Collections;
using System.IO;
using System.Text;
using System.Windows.Forms;
using System.Globalization;
using System.Drawing;
using System.Runtime;
using System.Xml;
using ScriptPortal.Vegas;

namespace Test_Script
{
    public class Class1
    {
        public Vegas myVegas;

        public void Main(Vegas vegas)
        {
            myVegas = vegas;

            foreach (Track myTrack in myVegas.Project.Tracks)
            {
                if (myTrack.IsVideo())
                {
                    foreach (TrackEvent evnt in myTrack.Events)
                    {
                        VideoEvent vEvnt = (VideoEvent)evnt;
                        VideoStream vs = (VideoStream)vEvnt.ActiveTake.Media.Streams.GetItemByMediaType(MediaType.Video, vEvnt.ActiveTake.StreamIndex);
                        vs.Rotation = VideoOutputRotation.None;
                    }
                }
            }
        }
    }
}

public class EntryPoint
{
    public void FromVegas(Vegas vegas)
    {
        Test_Script.Class1 test = new Test_Script.Class1();
        test.Main(vegas);
    }
}

 

relaxvideo wrote on 8/17/2023, 8:16 AM

Oh, its easy to select all the footage in media pool, and when i right click, properties i see that at rotation it says differrent values. I can set it to zero. How easy!

Thanks :) :)

#1 Ryzen 5-1600, 16GB DDR4, Nvidia 1660 Super, M2-SSD, Acer freesync monitor

#2 i7-2600, 32GB, Nvidia 1660Ti, SSD for system, M2-SSD for work, 2x4TB hdd, LG 3D monitor +3DTV +3D projectors

Win10 x64, Vegas22 latest