Sha256: b239724eab47a06fd37b4cb78ceead980b822d3a2c1d53578890d60a224b3b8a
Contents?: true
Size: 1.98 KB
Versions: 4
Compression:
Stored size: 1.98 KB
Contents
require 'spec_helper' describe 'MXFInfo::InfoObject' do context 'when created from an valid MXF file' do subject do MXFInfo.scan File.expand_path('../fixtures/IMG_0395.MOV.A14DC7130D.mxf', __FILE__) 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(: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((48000/1)) } its(:track_duration) { should eq(551040) } its(:segment_duration) { should eq(551040) } its(:segment_offset) { should eq(0) } its(:start_timecode) { should eq(0) } # its_converted(:start_timecode) { should eq('00:00:00:00') } its(:audio_sampling_rate) { should eq((48000/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') } # Left-overs from the previous version (0.3.6) of mxfinfo # its(:unc_path) { should('Macintosh HD:Users:susannehassepass:Desktop:London 1video:IMG_0395.MOV') } # => Isn't exported from libmxf. end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mxfinfo-0.0.7 | spec/info_object_spec.rb |
mxfinfo-0.0.6 | spec/info_object_spec.rb |
mxfinfo-0.0.5 | spec/info_object_spec.rb |
mxfinfo-0.0.4 | spec/info_object_spec.rb |