mxfinfo 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  class MXFinfo
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/mxfinfo.rb CHANGED
@@ -23,6 +23,17 @@ class MXFinfo
23
23
  class InfoObject
24
24
  extend AttrReaders
25
25
 
26
+ @@render = ["Center Smooth",
27
+ "Color Correction",
28
+ "Crystal",
29
+ "Flip-Flop",
30
+ "FluidBlur",
31
+ "Left Box",
32
+ "Luma Key",
33
+ "Mosaic Effect",
34
+ "Stabilize",
35
+ "Timecode Burn-In"]
36
+
26
37
  # RAW AVIDMXFINFO OUTPUT
27
38
  def raw_data; @mxfinfo; end
28
39
 
@@ -96,6 +107,11 @@ class MXFinfo
96
107
  mxfinfo_attr_reader :physical_package_name
97
108
  mxfinfo_attr_reader :physical_package_locator
98
109
 
110
+ def render_file?
111
+ @@render.map{ |r| return true if clip_name.include?(r) }
112
+ false
113
+ end
114
+
99
115
  private
100
116
  def mxfinfo
101
117
  # TODO: - add check if return data is valid
@@ -0,0 +1,29 @@
1
+
2
+ Filename = stevetest_Center Sm4F4B79D1.mxf
3
+ Project name = steve
4
+ Project edit rate = 25/1
5
+ Clip name = stevetest,Center Smooth,19
6
+ Clip created = 2012-02-27 12:40:49.000
7
+ Clip edit rate = 25/1
8
+ Clip duration = 37 samples (00:00:01:12)
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 = 37 samples (00:00:01:12)
18
+ Track segment duration = 37 samples (00:00:01:12)
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 = 060a2b340101010101010f00130000004f4b79d1f48f1932060e2b347f7f2a80
25
+ File package UID = 060a2b340101010101010f00130000004f4b79d1f4901932060e2b347f7f2a80
26
+ Physical package UID = 060a2b340101010101010f00130000004f4b79d2faa71932060e2b347f7f2a80
27
+ Physical package type = Import
28
+ Physical package name = Precompute Source Mob
29
+ Physical package locator =
@@ -0,0 +1,29 @@
1
+
2
+ Filename = stevetest_Color Cor4F4B7978.mxf
3
+ Project name = steve
4
+ Project edit rate = 25/1
5
+ Clip name = stevetest,Color Correction,15
6
+ Clip created = 2012-02-27 12:39:20.000
7
+ Clip edit rate = 25/1
8
+ Clip duration = 48 samples (00:00:01:23)
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 = 48 samples (00:00:01:23)
18
+ Track segment duration = 48 samples (00:00:01:23)
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 = 060a2b340101010101010f00130000004f4b797898d91931060e2b347f7f2a80
25
+ File package UID = 060a2b340101010101010f00130000004f4b797898da1931060e2b347f7f2a80
26
+ Physical package UID = 060a2b340101010101010f00130000004f4b797aa0861931060e2b347f7f2a80
27
+ Physical package type = Import
28
+ Physical package name = Precompute Source Mob
29
+ Physical package locator =
@@ -0,0 +1,29 @@
1
+
2
+ Filename = stevetest_Crystal_24F4B79D2.mxf
3
+ Project name = steve
4
+ Project edit rate = 25/1
5
+ Clip name = stevetest,Crystal,20
6
+ Clip created = 2012-02-27 12:40:50.000
7
+ Clip edit rate = 25/1
8
+ Clip duration = 48 samples (00:00:01:23)
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 = 48 samples (00:00:01:23)
18
+ Track segment duration = 48 samples (00:00:01:23)
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 = 060a2b340101010101010f00130000004f4b79d2fb051932060e2b347f7f2a80
25
+ File package UID = 060a2b340101010101010f00130000004f4b79d2fb061932060e2b347f7f2a80
26
+ Physical package UID = 060a2b340101010101010f00130000004f4b79e33dee1933060e2b347f7f2a80
27
+ Physical package type = Import
28
+ Physical package name = Precompute Source Mob
29
+ Physical package locator =
@@ -0,0 +1,29 @@
1
+
2
+ Filename = stevetest_Flip-Flop4F4B79CE.mxf
3
+ Project name = steve
4
+ Project edit rate = 25/1
5
+ Clip name = stevetest,Flip-Flop,17
6
+ Clip created = 2012-02-27 12:40:46.000
7
+ Clip edit rate = 25/1
8
+ Clip duration = 22 samples (00:00:00: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 = 22 samples (00:00:00:22)
18
+ Track segment duration = 22 samples (00:00:00: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 = 060a2b340101010101010f00130000004f4b79ceeb1d1932060e2b347f7f2a80
25
+ File package UID = 060a2b340101010101010f00130000004f4b79ceeb1e1932060e2b347f7f2a80
26
+ Physical package UID = 060a2b340101010101010f00130000004f4b79cfedfa1932060e2b347f7f2a80
27
+ Physical package type = Import
28
+ Physical package name = Precompute Source Mob
29
+ Physical package locator =
@@ -0,0 +1,29 @@
1
+
2
+ Filename = stevetest_FluidBlur4F4B796A.mxf
3
+ Project name = steve
4
+ Project edit rate = 25/1
5
+ Clip name = stevetest,FluidBlur,12
6
+ Clip created = 2012-02-27 12:39:06.000
7
+ Clip edit rate = 25/1
8
+ Clip duration = 22 samples (00:00:00: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 = 22 samples (00:00:00:22)
18
+ Track segment duration = 22 samples (00:00:00: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 = 060a2b340101010101010f00130000004f4b796a63291931060e2b347f7f2a80
25
+ File package UID = 060a2b340101010101010f00130000004f4b796a632a1931060e2b347f7f2a80
26
+ Physical package UID = 060a2b340101010101010f00130000004f4b79758da21931060e2b347f7f2a80
27
+ Physical package type = Import
28
+ Physical package name = Precompute Source Mob
29
+ Physical package locator =
@@ -0,0 +1,29 @@
1
+
2
+ Filename = stevetest_Left Box_4F4B7976.mxf
3
+ Project name = steve
4
+ Project edit rate = 25/1
5
+ Clip name = stevetest,Left Box,14
6
+ Clip created = 2012-02-27 12:39:18.000
7
+ Clip edit rate = 25/1
8
+ Clip duration = 37 samples (00:00:01:12)
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 = 37 samples (00:00:01:12)
18
+ Track segment duration = 37 samples (00:00:01:12)
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 = 060a2b340101010101010f00130000004f4b797692e01931060e2b347f7f2a80
25
+ File package UID = 060a2b340101010101010f00130000004f4b797692e11931060e2b347f7f2a80
26
+ Physical package UID = 060a2b340101010101010f00130000004f4b7977987b1931060e2b347f7f2a80
27
+ Physical package type = Import
28
+ Physical package name = Precompute Source Mob
29
+ Physical package locator =
@@ -0,0 +1,29 @@
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 =
@@ -0,0 +1,29 @@
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 =
@@ -0,0 +1,29 @@
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 =
@@ -0,0 +1,29 @@
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 =
@@ -0,0 +1,25 @@
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mxfinfo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-12 00:00:00.000000000 Z
12
+ date: 2012-07-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: MXFinfo is a gem to use avidmxfinfo from http://ingex.sourceforge.net/
15
15
  directly in ruby.
@@ -31,8 +31,19 @@ files:
31
31
  - spec/fixtures/IMG_0395.MOV.A14DC7130D.mxf
32
32
  - spec/fixtures/IMG_0395.MOV.A14DC7130D.mxf.info
33
33
  - spec/fixtures/InvalidFileTest.mxf
34
+ - spec/fixtures/center_smooth.info
35
+ - spec/fixtures/color_correction.info
36
+ - spec/fixtures/crystal.info
37
+ - spec/fixtures/flip-flop.info
38
+ - spec/fixtures/fluidblur.info
39
+ - spec/fixtures/left_box.info
40
+ - spec/fixtures/luma_key.info
41
+ - spec/fixtures/mosaic_effect.info
42
+ - spec/fixtures/stabilize.info
43
+ - spec/fixtures/timecode_burn-in.info
34
44
  - spec/img_0395.mov.a14dc7130d_spec.rb
35
45
  - spec/mxfinfo_spec.rb
46
+ - spec/render_files_spec.rb
36
47
  - spec/spec_helper.rb
37
48
  homepage: http://github.com/bigzed/mxfinfo
38
49
  licenses: []
@@ -63,6 +74,17 @@ test_files:
63
74
  - spec/fixtures/IMG_0395.MOV.A14DC7130D.mxf
64
75
  - spec/fixtures/IMG_0395.MOV.A14DC7130D.mxf.info
65
76
  - spec/fixtures/InvalidFileTest.mxf
77
+ - spec/fixtures/center_smooth.info
78
+ - spec/fixtures/color_correction.info
79
+ - spec/fixtures/crystal.info
80
+ - spec/fixtures/flip-flop.info
81
+ - spec/fixtures/fluidblur.info
82
+ - spec/fixtures/left_box.info
83
+ - spec/fixtures/luma_key.info
84
+ - spec/fixtures/mosaic_effect.info
85
+ - spec/fixtures/stabilize.info
86
+ - spec/fixtures/timecode_burn-in.info
66
87
  - spec/img_0395.mov.a14dc7130d_spec.rb
67
88
  - spec/mxfinfo_spec.rb
89
+ - spec/render_files_spec.rb
68
90
  - spec/spec_helper.rb