mxfinfo 0.0.3.6 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +3 -0
- data/Gemfile +0 -6
- data/LICENSE +3 -2
- data/README.md +3 -3
- data/Rakefile +3 -5
- data/ext/mxfinfo/avid_mxf_info.c +1507 -0
- data/ext/mxfinfo/avid_mxf_info.h +194 -0
- data/ext/mxfinfo/extconf.rb +12 -0
- data/ext/mxfinfo/mxfinfo.c +313 -0
- data/lib/mxfinfo/version.rb +2 -2
- data/lib/mxfinfo.rb +24 -117
- data/mxfinfo.gemspec +13 -10
- data/spec/info_object_spec.rb +42 -0
- data/spec/mxfinfo_spec.rb +20 -70
- data/spec/spec_helper.rb +0 -18
- metadata +49 -48
- data/lib/mxfinfo/attr_readers.rb +0 -61
- data/lib/mxfinfo/string.rb +0 -25
- data/spec/alert_error_spec.rb +0 -10
- data/spec/fixtures/ALERT01.ERROR.info +0 -8
- data/spec/fixtures/IMG_0395.MOV.A14DC7130D.mxf.info +0 -44
- data/spec/fixtures/center_smooth.info +0 -29
- data/spec/fixtures/color_correction.info +0 -29
- data/spec/fixtures/crystal.info +0 -29
- data/spec/fixtures/flip-flop.info +0 -29
- data/spec/fixtures/fluidblur.info +0 -29
- data/spec/fixtures/left_box.info +0 -29
- data/spec/fixtures/luma_key.info +0 -29
- data/spec/fixtures/mosaic_effect.info +0 -29
- data/spec/fixtures/stabilize.info +0 -29
- data/spec/fixtures/timecode_burn-in.info +0 -29
- data/spec/img_0395.mov.a14dc7130d_spec.rb +0 -116
- data/spec/render_files_spec.rb +0 -25
data/spec/fixtures/luma_key.info
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
|
2
|
-
Filename = stevetest_Luma Key_4F4B7967.mxf
|
3
|
-
Project name = steve
|
4
|
-
Project edit rate = 25/1
|
5
|
-
Clip name = stevetest,Luma Key,11
|
6
|
-
Clip created = 2012-02-27 12:39:03.000
|
7
|
-
Clip edit rate = 25/1
|
8
|
-
Clip duration = 47 samples (00:00:01:22)
|
9
|
-
Clip video tracks = 1
|
10
|
-
Clip audio tracks = 0
|
11
|
-
Clip track string = V1
|
12
|
-
Video essence
|
13
|
-
Essence type = DNxHD 120
|
14
|
-
Essence label = 060e2b34040101010e04030102060102
|
15
|
-
Track number = 1
|
16
|
-
Edit rate = 25/1
|
17
|
-
Track duration = 47 samples (00:00:01:22)
|
18
|
-
Track segment duration = 47 samples (00:00:01:22)
|
19
|
-
Track segment offset = 0 samples (00:00:00:00)
|
20
|
-
Start timecode = 0 samples (00:00:00:00)
|
21
|
-
Image aspect ratio = 16/9
|
22
|
-
Stored WxH = 1920x1080 (full frame)
|
23
|
-
Display WxH = 1920x1080 (full frame)
|
24
|
-
Material package UID = 060a2b340101010101010f00130000004f4b796759b71931060e2b347f7f2a80
|
25
|
-
File package UID = 060a2b340101010101010f00130000004f4b796759b81931060e2b347f7f2a80
|
26
|
-
Physical package UID = 060a2b340101010101010f00130000004f4b796a627e1931060e2b347f7f2a80
|
27
|
-
Physical package type = Import
|
28
|
-
Physical package name = Precompute Source Mob
|
29
|
-
Physical package locator =
|
@@ -1,29 +0,0 @@
|
|
1
|
-
|
2
|
-
Filename = stevetest_Mosaic Ef4F4B79CC.mxf
|
3
|
-
Project name = steve
|
4
|
-
Project edit rate = 25/1
|
5
|
-
Clip name = stevetest,Mosaic Effect,16
|
6
|
-
Clip created = 2012-02-27 12:40:44.000
|
7
|
-
Clip edit rate = 25/1
|
8
|
-
Clip duration = 47 samples (00:00:01:22)
|
9
|
-
Clip video tracks = 1
|
10
|
-
Clip audio tracks = 0
|
11
|
-
Clip track string = V1
|
12
|
-
Video essence
|
13
|
-
Essence type = DNxHD 120
|
14
|
-
Essence label = 060e2b34040101010e04030102060102
|
15
|
-
Track number = 1
|
16
|
-
Edit rate = 25/1
|
17
|
-
Track duration = 47 samples (00:00:01:22)
|
18
|
-
Track segment duration = 47 samples (00:00:01:22)
|
19
|
-
Track segment offset = 0 samples (00:00:00:00)
|
20
|
-
Start timecode = 0 samples (00:00:00:00)
|
21
|
-
Image aspect ratio = 16/9
|
22
|
-
Stored WxH = 1920x1080 (full frame)
|
23
|
-
Display WxH = 1920x1080 (full frame)
|
24
|
-
Material package UID = 060a2b340101010101010f00130000004f4b79cce3ae1932060e2b347f7f2a80
|
25
|
-
File package UID = 060a2b340101010101010f00130000004f4b79cce3af1932060e2b347f7f2a80
|
26
|
-
Physical package UID = 060a2b340101010101010f00130000004f4b79ceea431932060e2b347f7f2a80
|
27
|
-
Physical package type = Import
|
28
|
-
Physical package name = Precompute Source Mob
|
29
|
-
Physical package locator =
|
@@ -1,29 +0,0 @@
|
|
1
|
-
|
2
|
-
Filename = stevetest_Stabilize4F4B79CF.mxf
|
3
|
-
Project name = steve
|
4
|
-
Project edit rate = 25/1
|
5
|
-
Clip name = stevetest,Stabilize,18
|
6
|
-
Clip created = 2012-02-27 12:40:47.000
|
7
|
-
Clip edit rate = 25/1
|
8
|
-
Clip duration = 31 samples (00:00:01:06)
|
9
|
-
Clip video tracks = 1
|
10
|
-
Clip audio tracks = 0
|
11
|
-
Clip track string = V1
|
12
|
-
Video essence
|
13
|
-
Essence type = DNxHD 120
|
14
|
-
Essence label = 060e2b34040101010e04030102060102
|
15
|
-
Track number = 1
|
16
|
-
Edit rate = 25/1
|
17
|
-
Track duration = 31 samples (00:00:01:06)
|
18
|
-
Track segment duration = 31 samples (00:00:01:06)
|
19
|
-
Track segment offset = 0 samples (00:00:00:00)
|
20
|
-
Start timecode = 0 samples (00:00:00:00)
|
21
|
-
Image aspect ratio = 16/9
|
22
|
-
Stored WxH = 1920x1080 (full frame)
|
23
|
-
Display WxH = 1920x1080 (full frame)
|
24
|
-
Material package UID = 060a2b340101010101010f00130000004f4b79cfee671932060e2b347f7f2a80
|
25
|
-
File package UID = 060a2b340101010101010f00130000004f4b79cfee681932060e2b347f7f2a80
|
26
|
-
Physical package UID = 060a2b340101010101010f00130000004f4b79d1f4411932060e2b347f7f2a80
|
27
|
-
Physical package type = Import
|
28
|
-
Physical package name = Precompute Source Mob
|
29
|
-
Physical package locator =
|
@@ -1,29 +0,0 @@
|
|
1
|
-
|
2
|
-
Filename = stevetest_Timecode 4F4B7975.mxf
|
3
|
-
Project name = steve
|
4
|
-
Project edit rate = 25/1
|
5
|
-
Clip name = stevetest,Timecode Burn-In,13
|
6
|
-
Clip created = 2012-02-27 12:39:17.000
|
7
|
-
Clip edit rate = 25/1
|
8
|
-
Clip duration = 31 samples (00:00:01:06)
|
9
|
-
Clip video tracks = 1
|
10
|
-
Clip audio tracks = 0
|
11
|
-
Clip track string = V1
|
12
|
-
Video essence
|
13
|
-
Essence type = DNxHD 120
|
14
|
-
Essence label = 060e2b34040101010e04030102060102
|
15
|
-
Track number = 1
|
16
|
-
Edit rate = 25/1
|
17
|
-
Track duration = 31 samples (00:00:01:06)
|
18
|
-
Track segment duration = 31 samples (00:00:01:06)
|
19
|
-
Track segment offset = 0 samples (00:00:00:00)
|
20
|
-
Start timecode = 0 samples (00:00:00:00)
|
21
|
-
Image aspect ratio = 16/9
|
22
|
-
Stored WxH = 1920x1080 (full frame)
|
23
|
-
Display WxH = 1920x1080 (full frame)
|
24
|
-
Material package UID = 060a2b340101010101010f00130000004f4b79758e001931060e2b347f7f2a80
|
25
|
-
File package UID = 060a2b340101010101010f00130000004f4b79758e011931060e2b347f7f2a80
|
26
|
-
Physical package UID = 060a2b340101010101010f00130000004f4b797692821931060e2b347f7f2a80
|
27
|
-
Physical package type = Import
|
28
|
-
Physical package name = Precompute Source Mob
|
29
|
-
Physical package locator =
|
@@ -1,116 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe "IMG_0395.MOV.A14DC7130D.mxf" do
|
4
|
-
before (:all) do
|
5
|
-
infoFile = File.open(name_to_fixture "IMG_0395.MOV.A14DC7130D.mxf.info")
|
6
|
-
@info = MXFinfo.import(infoFile.read)
|
7
|
-
end
|
8
|
-
|
9
|
-
it "should have a filename" do
|
10
|
-
@info.filename.should == "/home/steved/Documents/git/mxfinfo/spec/fixtures/IMG_0395.MOV.A14DC7130D.mxf"
|
11
|
-
end
|
12
|
-
|
13
|
-
it "should have a project name" do
|
14
|
-
@info.project_name.should == "Ballerinas_zippy"
|
15
|
-
end
|
16
|
-
|
17
|
-
it "should have a clip name" do
|
18
|
-
@info.clip_name.should == "IMG_0395.MOV"
|
19
|
-
end
|
20
|
-
|
21
|
-
it "should have a clip created at" do
|
22
|
-
@info.clip_created_at.should == Time.parse("2011-05-08 22:02:53.000")
|
23
|
-
end
|
24
|
-
|
25
|
-
it "should have a edit rate" do
|
26
|
-
@info.project_edit_rate.should == "25/1"
|
27
|
-
end
|
28
|
-
|
29
|
-
it "should have a clip duration" do
|
30
|
-
@info.clip_duration.should == 11120
|
31
|
-
end
|
32
|
-
|
33
|
-
it "should have a clip video tracks count" do
|
34
|
-
@info.video_tracks.should == 1
|
35
|
-
end
|
36
|
-
|
37
|
-
it "should have a clip audio tracks count" do
|
38
|
-
@info.audio_tracks.should == 1
|
39
|
-
end
|
40
|
-
|
41
|
-
it "should have a clip tracks string" do
|
42
|
-
@info.clip_track_string.should == "V1 A1"
|
43
|
-
end
|
44
|
-
|
45
|
-
it "should have a essence type" do
|
46
|
-
@info.essence_type.should == "PCM"
|
47
|
-
end
|
48
|
-
|
49
|
-
it "should have a essence label" do
|
50
|
-
@info.essence_label.should == "060e2b34040101010d01030102060200"
|
51
|
-
end
|
52
|
-
|
53
|
-
it "should have a track number" do
|
54
|
-
@info.track_number.should == 1
|
55
|
-
end
|
56
|
-
|
57
|
-
it "should have a edit rate" do
|
58
|
-
@info.edit_rate.should == "48000/1"
|
59
|
-
end
|
60
|
-
|
61
|
-
it "should have a track duration" do
|
62
|
-
@info.track_duration.should == 11120
|
63
|
-
end
|
64
|
-
|
65
|
-
it "should have a track segment duration" do
|
66
|
-
@info.track_segment_duration.should == 11120
|
67
|
-
end
|
68
|
-
|
69
|
-
it "should have a track segment offset" do
|
70
|
-
@info.track_segment_offset.should == 0
|
71
|
-
end
|
72
|
-
|
73
|
-
it "should have a start timecode" do
|
74
|
-
@info.start_timecode.should == "00:00:00:00"
|
75
|
-
end
|
76
|
-
|
77
|
-
it "should have a audio sampling rate" do
|
78
|
-
@info.audio_sampling_rate.should == "48000/1"
|
79
|
-
end
|
80
|
-
|
81
|
-
it "should have a channel count" do
|
82
|
-
@info.channel_count.should == 1
|
83
|
-
end
|
84
|
-
|
85
|
-
it "should have a quantization bits" do
|
86
|
-
@info.quantization_bits.should == 16
|
87
|
-
end
|
88
|
-
|
89
|
-
it "should have a unc path" do
|
90
|
-
@info.unc_path.should == "Macintosh HD:Users:susannehassepass:Desktop:London 1video:IMG_0395.MOV"
|
91
|
-
end
|
92
|
-
|
93
|
-
it "should have a material package uid" do
|
94
|
-
@info.material_package_uid.should == "060a2b340101010101010f00130000004dc7130d05831a0a060e2b347f7f2a80"
|
95
|
-
end
|
96
|
-
|
97
|
-
it "should have a file package uid" do
|
98
|
-
@info.file_package_uid.should == "060a2b340101010101010f00130000004dc7130d05841a0a060e2b347f7f2a80"
|
99
|
-
end
|
100
|
-
|
101
|
-
it "should have a physical package uid" do
|
102
|
-
@info.physical_package_uid.should == "060a2b340101010101010f00130000004dc7130d05851a0a060e2b347f7f2a80"
|
103
|
-
end
|
104
|
-
|
105
|
-
it "should have a physical package type" do
|
106
|
-
@info.physical_package_type.should == "Import"
|
107
|
-
end
|
108
|
-
|
109
|
-
it "should have a physical package name" do
|
110
|
-
@info.physical_package_name.should == "IMG_0395.MOV"
|
111
|
-
end
|
112
|
-
|
113
|
-
it "should have a physical package locator" do
|
114
|
-
@info.physical_package_locator.should == "file:///Macintosh%20HD/Users/susannehassepass/Desktop/London%201video/IMG_0395.MOV"
|
115
|
-
end
|
116
|
-
end
|
data/spec/render_files_spec.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe "IMG_0395.MOV.A14DC7130D.mxf" do
|
4
|
-
|
5
|
-
it "should recognize all render files" do
|
6
|
-
["Center Smooth",
|
7
|
-
"Color Correction",
|
8
|
-
"Crystal",
|
9
|
-
"Flip-Flop",
|
10
|
-
"FluidBlur",
|
11
|
-
"Left Box",
|
12
|
-
"Luma Key",
|
13
|
-
"Mosaic Effect",
|
14
|
-
"Stabilize",
|
15
|
-
"Timecode Burn-In"].each do |f|
|
16
|
-
infoFile = File.open(name_to_fixture "#{f.downcase.gsub(' ','_')}.info")
|
17
|
-
@info = MXFinfo.import(infoFile.read)
|
18
|
-
@info.physical_package_name.should == "Precompute Source Mob"
|
19
|
-
@info.clip_name.include?(f).should == true
|
20
|
-
@info.render_file?.should == true
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
|
25
|
-
end
|