@pixwel/pixwel-sdk 2.1.32 → 2.1.34
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.
- package/coverage/clover.xml +482 -479
- package/coverage/coverage-final.json +15 -15
- package/coverage/lcov-report/Ass.js.html +212 -212
- package/coverage/lcov-report/Asset.js.html +27 -27
- package/coverage/lcov-report/AssetType.js.html +1 -1
- package/coverage/lcov-report/Encode.js.html +1 -1
- package/coverage/lcov-report/File.js.html +1 -1
- package/coverage/lcov-report/Filename.js.html +1 -1
- package/coverage/lcov-report/Ingest.js.html +68 -62
- package/coverage/lcov-report/IngestFile.js.html +1 -1
- package/coverage/lcov-report/Model.js.html +136 -136
- package/coverage/lcov-report/Order.js.html +25 -31
- package/coverage/lcov-report/Srt.js.html +102 -102
- package/coverage/lcov-report/Sub.js.html +43 -43
- package/coverage/lcov-report/Tag.js.html +1 -1
- package/coverage/lcov-report/TimeFormat.js.html +62 -62
- package/coverage/lcov-report/fileType.js.html +4 -4
- package/coverage/lcov-report/index.html +85 -85
- package/coverage/lcov.info +876 -876
- package/dist/src/Ingest.js +4 -3
- package/package.json +1 -1
- package/src/Ingest.js +4 -2
- package/test/Ingest.spec.js +49 -0
package/dist/src/Ingest.js
CHANGED
|
@@ -263,14 +263,12 @@ var Ingest = function (_Model) {
|
|
|
263
263
|
width = _tags$Resolution$spli2[0],
|
|
264
264
|
height = _tags$Resolution$spli2[1];
|
|
265
265
|
|
|
266
|
-
var isHD = height === '1080' ? true : false;
|
|
267
|
-
|
|
268
266
|
var aspect = tags.Aspect.replace(':', 'X');
|
|
269
267
|
var standard = tags.Standard.toUpperCase();
|
|
270
268
|
var frameModeToken = tags["Frame Mode"][0].toLowerCase();
|
|
271
269
|
var frameRate = tags.Framerate.replace(".", "");
|
|
272
270
|
|
|
273
|
-
if (tags.
|
|
271
|
+
if ((height === '576' || height === '486') && (tags.Aspect === '4:3' || tags.Aspect === '16:9')) {
|
|
274
272
|
parts = parts.push(standard + "-" + aspect);
|
|
275
273
|
}
|
|
276
274
|
|
|
@@ -459,6 +457,9 @@ var Ingest = function (_Model) {
|
|
|
459
457
|
case "1.366":
|
|
460
458
|
tags.Aspect = "4:3";
|
|
461
459
|
break;
|
|
460
|
+
case "0.800":
|
|
461
|
+
tags.Aspect = "4:5";
|
|
462
|
+
break;
|
|
462
463
|
case "0.562":
|
|
463
464
|
tags.Aspect = "9:16";
|
|
464
465
|
break;
|
package/package.json
CHANGED
package/src/Ingest.js
CHANGED
|
@@ -222,14 +222,13 @@ export default class Ingest extends Model {
|
|
|
222
222
|
if (mediaType === 'video' && tags.Aspect && tags.Resolution && tags.Standard && tags.Framerate && tags['Frame Mode']) {
|
|
223
223
|
|
|
224
224
|
let [ width, height ] = tags.Resolution.split('x');
|
|
225
|
-
let isHD = (height === '1080') ? true : false;
|
|
226
225
|
|
|
227
226
|
let aspect = tags.Aspect.replace(':', 'X');
|
|
228
227
|
let standard = tags.Standard.toUpperCase();
|
|
229
228
|
let frameModeToken = tags["Frame Mode"][0].toLowerCase();
|
|
230
229
|
let frameRate = tags.Framerate.replace(".", "");
|
|
231
230
|
|
|
232
|
-
if (tags.
|
|
231
|
+
if ((height === '576' || height === '486') && (tags.Aspect === '4:3' || tags.Aspect === '16:9')) {
|
|
233
232
|
parts = parts.push(`${standard}-${aspect}`);
|
|
234
233
|
}
|
|
235
234
|
|
|
@@ -413,6 +412,9 @@ export default class Ingest extends Model {
|
|
|
413
412
|
case "1.366":
|
|
414
413
|
tags.Aspect = "4:3";
|
|
415
414
|
break;
|
|
415
|
+
case "0.800":
|
|
416
|
+
tags.Aspect = "4:5";
|
|
417
|
+
break;
|
|
416
418
|
case "0.562":
|
|
417
419
|
tags.Aspect = "9:16";
|
|
418
420
|
break;
|
package/test/Ingest.spec.js
CHANGED
|
@@ -26,6 +26,55 @@ describe("Ingest", () => {
|
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
28
|
describe("renderFilename", () => {
|
|
29
|
+
it("should not render EncodeName for PRORES 1080x1920", function() {
|
|
30
|
+
let data = {
|
|
31
|
+
asset: {
|
|
32
|
+
name: "HELLO",
|
|
33
|
+
slug: "HELLO",
|
|
34
|
+
type: "trailer.intl",
|
|
35
|
+
mediaType: "video",
|
|
36
|
+
project: {
|
|
37
|
+
filePrefix: "TESTPROJECT"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
filename: {
|
|
41
|
+
file: {
|
|
42
|
+
ext: "mp4"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
selected: {
|
|
46
|
+
download: {
|
|
47
|
+
enabled: false,
|
|
48
|
+
tags: {
|
|
49
|
+
Extra: ["REDUX"],
|
|
50
|
+
Framerate: "23.98",
|
|
51
|
+
Codec: "prores",
|
|
52
|
+
Resolution: "1080x1920",
|
|
53
|
+
"Frame Mode": "interlaced",
|
|
54
|
+
Text: "txtd2",
|
|
55
|
+
SubDub: {
|
|
56
|
+
sub: null,
|
|
57
|
+
dub: null
|
|
58
|
+
},
|
|
59
|
+
Standard: "ntsc",
|
|
60
|
+
Usage: "broadcast",
|
|
61
|
+
Aspect: "16:9"
|
|
62
|
+
},
|
|
63
|
+
embargo: { enabled: false },
|
|
64
|
+
country: "US",
|
|
65
|
+
language: "ENG"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
let ingest = new Ingest(data);
|
|
70
|
+
let allTags = [];
|
|
71
|
+
let allTypes = [];
|
|
72
|
+
let extension = "mp4";
|
|
73
|
+
let name = ingest.renderFilename({ allTags, allTypes, extension });
|
|
74
|
+
expect(name).toBe(
|
|
75
|
+
"TESTPROJECT_ITR-HELLO_ENG-US_TXTD2_REDUX_PRORES_1920i2398.mp4"
|
|
76
|
+
);
|
|
77
|
+
});
|
|
29
78
|
it("renders EncodeName for interlaced HD 1080i2398", function() {
|
|
30
79
|
let data = {
|
|
31
80
|
asset: {
|