Sha256: dc24f154cd3b75170c71959f6bb1a2bdbdbc3ddf933271626789d850755d047a
Contents?: true
Size: 1.77 KB
Versions: 3
Compression:
Stored size: 1.77 KB
Contents
require 'spec_helper' require 'time' describe 'MXFInfo::InfoObject' do context 'with a valid MXF file' do subject do MXFInfo.scan File.expand_path('fixtures/IMG_0395.MOV.A14DC7130D.mxf', __dir__) end its(:project_name) { should eq('Ballerinas_zippy') } its(:clip_name) { should eq('IMG_0395.MOV') } its(:clip_created_at) { should eq(Time.parse('2011-05-08 22:02:53.000')) } its(:project_edit_rate) { should eq((25 / 1)) } its(:clip_duration) { should eq(287) } its(:clip_edit_rate) { should eq((25 / 1)) } its(:video_tracks) { should eq(1) } its(:audio_tracks) { should eq(1) } its(:clip_track_string) { should eq('V1 A1') } its(:essence_type) { should eq('PCM') } its(:essence_label) { should eq('060e2b34040101010d01030102060200') } its(:track_number) { should eq(1) } its(:edit_rate) { should eq((48_000 / 1)) } its(:track_duration) { should eq(551_040) } its(:segment_duration) { should eq(551_040) } its(:segment_offset) { should eq(0) } its(:start_timecode) { should eq(0) } its(:audio_sampling_rate) { should eq((48_000 / 1)) } its(:quantization_bits) { should eq(16) } its(:channel_count) { should eq(1) } its(:material_package_uid) { should eq('060a2b340101010101010f00130000004dc7130d05831a0a060e2b347f7f2a80') } its(:file_package_uid) { should eq('060a2b340101010101010f00130000004dc7130d05841a0a060e2b347f7f2a80') } its(:physical_source_package_uid) { should eq('060a2b340101010101010f00130000004dc7130d05851a0a060e2b347f7f2a80') } its(:physical_package_type) { should eq(:import) } its(:physical_package_name) { should eq('IMG_0395.MOV') } its(:physical_package_locator) { should eq('file:///Macintosh%20HD/Users/susannehassepass/Desktop/London%201video/IMG_0395.MOV') } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mxfinfo-0.2.2 | spec/info_object_spec.rb |
mxfinfo-0.2.1 | spec/info_object_spec.rb |
mxfinfo-0.2.0 | spec/info_object_spec.rb |