Skip to main content
Known Participant
October 28, 2022
Answered

Is there a way to determine if audio track is 5.1 audio?

  • October 28, 2022
  • 1 reply
  • 664 views

The scripting command .overwriteClip overwrites the wrong track. I pass track 4 with 5.1 audio and it overwrites track 7 without 5.1. This behavior is completely inappropriate. It overwrites users' data.

 

I need a way to detect if the track is 5.1 audio type.

 

 

 

 

This topic has been closed for replies.
Correct answer Bruce Bullis

>Did you even read the question?

Definitely. Sorry to have seemed condescending. 

If you'd supply a project, some representative media, and an ExtendScript snippet that reliably reproduces the issue, we'd be happy to investigate further. 

1 reply

Bruce Bullis
Legend
October 31, 2022

It's always appropriate for overwriteClip() to overwrite; the key is in the name. 🙂


Also, overwriteClip is a Track method; might it work better, if you called it from a different track? 

I need a way to detect if the track is 5.1 audio type.

A given audio track can accept clips with different audio channelization. 

If you could provide an overview, from the user's perspective, of the workflow you'd like to support, we can provide better guidance.


Known Participant
December 9, 2022

Did you even read the question? 

 

I said it overwrites the WRONG track. Again, I said I pass track 4 and it overwrites data on a different track in case track 4 has an audio type of 5.1.

 

Thus, I expect the script to overwrite the track which I pass, not any other random track. Therefore, I asked if there is a way to determine that track is 5.1 type. I've searched across all of your documentation and examples.

 

Only to come here and receive a condescending answer that the "overwrite" command overwrites.

 

By the way, your overwriteClip command is horrible. It must return a newly created track item. How hard is it? 

Bruce Bullis
Bruce BullisCorrect answer
Legend
December 9, 2022

>Did you even read the question?

Definitely. Sorry to have seemed condescending. 

If you'd supply a project, some representative media, and an ExtendScript snippet that reliably reproduces the issue, we'd be happy to investigate further.