wolfgangw / digital_cinema_tools

Collection of useful scripts and notes for an open source based digital cinema pipeline
https://github.com/wolfgangw/digital_cinema_tools/wiki
95 stars 41 forks source link

ForensicMarkFlag option #27

Open kmazur opened 10 years ago

kmazur commented 10 years ago

Hi,

Could you provide an option in the cinemaslides command line to generate KDM without ForensicMarkFlagList node?

        <ForensicMarkFlagList>
          <ForensicMarkFlag>http://www.smpte-ra.org/430-1/2006/KDM#mrkflg-picture-disable</ForensicMarkFlag>
          <ForensicMarkFlag>http://www.smpte-ra.org/430-1/2006/KDM#mrkflg-audio-disable</ForensicMarkFlag>
        </ForensicMarkFlagList>

I think it's generated via DSL in: https://github.com/wolfgangw/digital_cinema_tools/blob/master/cinemaslides#L1346

wolfgangw commented 10 years ago

Sure. Can you tell me in return why you need it?

kmazur commented 10 years ago

I needed it in an application which uses cinemaslides to generate KDM's.

I did changes in cinemaslides:

options.kdm_forensicmarkflag = 'enable'
options.kdm_forensicmarkflag_choices = [ 'skip', 'enable' ]

...

opts.on( '--forensicmarkflag F', String, 'KDM mode: Should ForensicMarkFlagList be included?' ) do |p|
      if options.kdm_forensicmarkflag_choices.include?( p.downcase )
        options.kdm_forensicmarkflag = p.downcase
      end
end

...

} # KeyIdList
          case options.kdm_forensicmarkflag
          when 'skip'
          else
             xml.ForensicMarkFlagList_ {
               # example
               xml.ForensicMarkFlag_ 'http://www.smpte-ra.org/430-1/2006/KDM#mrkflg-picture-disable'
               xml.ForensicMarkFlag_ 'http://www.smpte-ra.org/430-1/2006/KDM#mrkflg-audio-disable'
             } # ForensicMarkFlagList
          end
        } # KDMRequiredExtensions