Skip to content

Commit

Permalink
added support to build windows version
Browse files Browse the repository at this point in the history
#44 can now build windows version on windows systems
  • Loading branch information
pietrop committed Apr 29, 2018
1 parent 0015354 commit 73ae3e7
Show file tree
Hide file tree
Showing 7 changed files with 2,784 additions and 68 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ List of contributors that have helped shaped this version of autoEdit by contrib
## Active contributors

- [Pietro Passarelli](http://github.com/pietrop)
- [Andrea Baldo](https://twitter.com/and_baldo)




<!-- https://www.davidbaumgold.com/tutorials/wine-mac/ -->
Binary file modified build/icon.ico
Binary file not shown.
6 changes: 5 additions & 1 deletion electron/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,17 @@ DB.create = function(model, success, error){
languageModel: newElement.languageModel,
sttEngine: newElement.sttEngine,
cbMetadata: function(respM) {
console.log('respM: ', respM);
// update current transcription with metadata data
Transcription.findOne({ _id: transcription._id }, function (err, trs) {
trs.metadata = respM;
// saving current transcription
trs.save(function(err) {
if (err) console.error(err);
if (err) console.error('error saving tr meta: ',err);
console.log('trs-cbMetadata: ', JSON.stringify(trs,null,2));
});


});
},
cbTranscription: function(respErr, respT) {
Expand Down
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();
// });

// });
Loading

0 comments on commit 73ae3e7

Please sign in to comment.