-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support to build windows version
#44 can now build windows version on windows systems
- Loading branch information
Showing
7 changed files
with
2,784 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 117 additions & 0 deletions
117
lib/interactive_transcription_generator/video_metadata_reader/index.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
|
||
var metadataReader = require('./index.js'); | ||
//TODO: how to test this module without testing the ffprobe binary? What is a good way to deal with the media dependency to run the test? eg you need an audio or video file to run the test. | ||
var sampleVideo = "/Users/pietropassarelli/Desktop/Demo_media/Vox.com/norman_door/norman_door.mp4"; | ||
// var exampleFfprobePath = "/Users/pietropassarelli/Dropbox/CODE/Vox/SubtitleBurner_project/SubtitleBurner/bin/ffprobe"; | ||
|
||
//TODO: why here the file is relative to root of app but in metadataReader module require is nested inside spec folder? | ||
// var exampleFfprobePath = "../../interactive_transcription_generator/bin/ffprobe"; | ||
var ffprobePath = require('ffprobe-static').path; | ||
|
||
|
||
// var expectedMetadataEDL = { | ||
// filePathName: sampleVideoPath, | ||
// fileName: 'Bowman.mov', | ||
// date: '2016-02-18 16:38:20', | ||
// reelName: 'time', | ||
// timecode: 'NA', | ||
// fps: '1/60000', | ||
// duration: 2287.285 | ||
// } | ||
|
||
var expectedMetadataEDL = { filePathName: '/Users/pietropassarelli/Desktop/Demo_media/Vox.com/norman_door/norman_door_trimmed.mp4.temp.wav', | ||
fileName: 'norman_door.mp4', | ||
date: 'NA', | ||
reelName: 'NA', | ||
timecode: 'NA', | ||
r_frame_rate: '24000/1001', | ||
fps: '23.98', | ||
duration: 331.748083 } | ||
|
||
// describe("Video Metadata Reader ", function() { | ||
// //https://jasmine.github.io/2.0/introduction.html#section-Asynchronous_Support | ||
// var result; | ||
|
||
// beforeEach(function(done) { | ||
|
||
metadataReader.read({ | ||
file: sampleVideo, | ||
ffprobePath: ffprobePath, | ||
callback: function(resp){ | ||
console.log(resp); | ||
// result = resp; | ||
// done(); | ||
} | ||
}) | ||
|
||
|
||
// beforeAll(() => { | ||
|
||
// metadataReader.read({ | ||
// file: sampleVideo, | ||
// ffprobePath: ffprobePath, | ||
// callback: function(resp){ | ||
// console.log(resp); | ||
// // result = resp; | ||
// // done(); | ||
// } | ||
// }) | ||
|
||
// }); | ||
|
||
// }) | ||
|
||
// it("should Read metada from video", function(done){ | ||
// expect(result).toEqual(expectedMetadataEDL); | ||
// done(); | ||
// }); | ||
|
||
|
||
// test('should Read metada from video', () => { | ||
|
||
// metadataReader.read({ | ||
// file: sampleVideo, | ||
// ffprobePath: ffprobePath, | ||
// callback: function(resp){ | ||
// console.log(resp); | ||
// // result = resp; | ||
// // done(); | ||
// expect(resp).toEqual(expectedMetadataEDL); | ||
// } | ||
// }) | ||
|
||
|
||
// }); | ||
|
||
|
||
// it("it should read file name", function(done){ | ||
// expect(result.fileName).toEqual(expectedMetadataEDL.fileName); | ||
// done(); | ||
// }); | ||
|
||
// it("it should read file path", function(done){ | ||
// expect(result.filePathName).toEqual(expectedMetadataEDL.filePathName); | ||
// done(); | ||
// }); | ||
|
||
// it("it should read card/reel name", function(done){ | ||
// expect(result.reelName).toEqual(expectedMetadataEDL.reelName); | ||
// done(); | ||
// }); | ||
|
||
// it("it should read fps", function(done){ | ||
// expect(result.fps).toEqual(expectedMetadataEDL.fps); | ||
// done(); | ||
// }); | ||
|
||
// it("it should read duration", function(done){ | ||
// expect(result.duration).toEqual(expectedMetadataEDL.duration); | ||
// done(); | ||
// }); | ||
|
||
// it("it should read camera timecode (tc start)", function(done){ | ||
// expect(result.timecode).toEqual(expectedMetadataEDL.timecode); | ||
// done(); | ||
// }); | ||
|
||
// }); |
Oops, something went wrong.