Is there any way to read the timecode trace of a Quicktime movie using applescript

I want to extract the temporary code from a QuickTime movie in Applescript.

Using this script

tell application "QuickTime Player"
    set themovie to open thefile
    set thetracks to tracks of document 1
    repeat with thetrack in thetracks
        if the kind of thetrack is "Timecode" then
            get the properties of thetrack
        end if
    end repeat
end tell

I can get the timecode track, track properties are:

{- sound variable: true, this video is a gray scale: false, audio sample size: 0, class: track, audio sampling frequency: 0.0, sound balance: 0, preload: false, streaming bit rate: -1.0, duration: 960300, language: "English", number of audio channels: 0, layer: 0, content: no value, bass gain: 0, start time: 0, data format: "Timecode", triple gain: 0, audio characteristic: false, sound volume: 0, mask: no value, video depth: 0, position: {0, 0}, id: 4, high quality: false, deinterlacing fields: false, href: "", natural size ry: {0, 0}, one field: false, view: "Timecode", index: 4, data size: 38412, visual characteristic: false, data transfer speed: 100, never cleaned: false, transparency: 49, chapterlist : {}, name:"Timecode Track", alternate: {}, operation color: {32768, 32768, 32768}, enabled: true, type: "tmcd", streaming quality: -1.0, transmission mode: unknown transmission mode, dimensions: { 0, 0}, current matrix: {{1.0, 0.0, 0.0}, {0.0, 1.0, 0.0}, {0.0, 0.0, 1.0}}}

, , . , " "

, 0, - 0.

, , . , .

-stib

+3
2

. , , timecodereader

, 152 timecodereader.m stderr stdout, applescript . :

fprintf(stderr,"%s\n", [timecodeString fileSystemRepresentation]);

fprintf(stdout,"%s\n", [timecodeString fileSystemRepresentation]);

, ,

set theStartTC to do shell script "timecodereader /Posix/Path/To/My/Movie.mov"

.

+2

:

on open myfiles
 repeat with thefile in myfiles

  tell application "QuickTime Player"
   set themovie to open thefile
   set thetracks to tracks of document 1
   repeat with thetrack in thetracks
    if the name of thetrack is "Closed Caption Track" then
     set thetrack enabled to false

    end if
   end repeat
  end tell
 end repeat
end open
0

Source: https://habr.com/ru/post/1712529/


All Articles