Comments (25)
Thanks @sqr ! That's awesome, looks very promising!
Re-pocketsphinx
, for background, I wouldn't expect it to work on windows, as the binaries it uses (and this bin) has been compiled for mac os x, and it would need for the app to be packaged with the windows binary for it to work. Which I don't have, and don't know how to make.
This was initially extracted as a component to add to autoEdit, from videogrep os x electron app, see http://saaaam.s3.amazonaws.com/VideoGrep.app.zip
in readme.
However adding pocketsphinx as an opiton to autoEdit, was more of a prof of concept for offline local transcription, as it is not very accurate as is. With the thought that if one could change the language model for the pocketsphinx module with a better trained one it could become a valuable alternative.
I think the module could also be used in the future to help with alignment when adding existing plain texts without timecodes, if I get around adding that feature.
re-tests on windows, could you try with Speechmatics?
See the setup instructions for Speechmatics in the user manual, it's much easier to get credentials then with IBM.
Speechmatics also gives you 60 min for free when you sign up so that could be good for a quick test, to see what comes up in the console.log if it doesn't go through.
Let me know how it goes, or if you have any questions.
from autoedit_2.
That was it! Now I got a 120MB .exe file that I can move around and execute on its own from any directory and it works!
from autoedit_2.
Hello, thanks for listening to our requests! As a Windows user, is there any way in which I can help or test the software?
from autoedit_2.
That's great, thanks @sqr !
Try this
- cd into the repository directory using terminal equivalent in windows
npm run start
to start the development environment and check everything works before building/packaging final version- for building/packaging final version can use
npm run build:win
, this will create the.exe
file in thedist
folder.
- for building/packaging final version can use
- Once you opened the app use inspector, on
cmd
+shift
+i
in windows it should be eitherCtrl
+Alt
+I
orCtrl
+Shift
+I
, see if that works. - this gives you a console, equivalent to open inspector console in chrome, that should have a fair bit of errors, if you can take a screenshot and post it here we can look into what to address first.
Let me know if that makes sense, or any of that is not clear.
If that works, first thing to try is
- fixing the bootstrap CSS.
Since bootstrap is not showing my best guess is that, it is one of the path issues I was referring to in previous posts. os x and linux use /
and windows uses \
. We can use the path module ( official docs ) to delegate that logic to path.join
(official docs path.join
).
You could you try and change this line, in the index.html
line 13
to be
if (window.process !== undefined) {
// we are in the browser, eg in the demo page
document.write('<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.css">');
} else {
// we are in electron, node environment, as `.process` is defined.
var path = require('path');
var bootstrapPath = path.join('..','node_modules','bootstrap','dist','css','bootstrap.css');
document.write(`<link rel="stylesheet" href="${bootstrapPath}">`);
}
from line 13 to 17 can replace the all block.
Let me know if you have a chance to try this out, and if you have any questions on any of this.
Thanks for your help, much appreciated!
from autoedit_2.
That’s awesome! Thanks @sqr,
So in theory every module that has been added autoEdit should install when you run npm install
, so you shouldn't need to install separately.
(As you can see it's here in the list of dependencies in package.json
-124
)
If it doesn’t find it, it could be the module, in this case linvodb3
might not be compatible with Windows.
Having had a look in the repo of original module and under issues, it seems like it should work whith windows. See these instrucitons.
- might be worth trying the post install script as describe there by adding it to package.json and the running
npm install
and thennpm start
.
Let me know when you have a chance to try that out.
I am not familiar with the electron-packager module
but for development, it's pretty inefficient to have to package the app everytime you want to check if something works especially if there's quiet a bit of debugging to do. So it might be much more preferable to run npm start
.
Then when you are done build it with npm run build:win
, this will create the .exe
file in the dist
folder.
The build step this way follows a bunch of setup instructions in the package.json that add the right version of the ffmpeg and ffprobe (two dependencies for video editing) that might be missed out if simply use electron packages.
could you try in terminal from the folder of this project's repository
-
npm install
-
npm start
and then let me know if you get the same console errors? with another screenshot
Also let me know if any of this is not clear, happy to explain in more details.
from autoedit_2.
Hello @pietrop, quick update.
I realized there were several things I was doing wrong, in regards to the dev environment in general and dependencies. With that out of the way and the CSS issues fixed, as far as look&feel and interaction, it seems to work!
I am waiting for my IBM Watson credentials so in the meantime I decided to try with Pocketsphinx. I get the following error, tried to find a workaround by myself but so far I haven't found a way.
The transcriptions section show the name and it keeps spinning forever and wont let me delete it. However, files are created in transcription.db, paperedit.db and media folders.
Thanks!
from autoedit_2.
No problem @pietrop!
I didn't realize you already had an icon for the software, so i've gone ahead and converted to .ico, you can find it here
I have tried moving the .exe to a different folder and the software doesn't run, it says it cannot find node.dll and ffmpeg.dll, so it seems like it is not standalone.
from autoedit_2.
Thanks @sqr !
- I'll update the image
@sq It be good to have a look at tweaking the electron-builder
configuration to create a standalone windows executable for autoEdit.
In package.json
L98 is where the type of windows application settings are specified. These are used when running npm run build
.
"win": {
"target": "nsis",
"icon": "build/icon.ico",
"files": [
"node_modules/ffmpeg-static/bin/win/${arch}/ffmpeg",
"!node_modules/ffmpeg-static/bin/win/ia32${/*}",
"!node_modules/ffmpeg-static/bin/linux${/*}",
"!node_modules/ffmpeg-static/bin/mac${/*}"
]
},
"nsis": {
"perMachine": true,
"oneClick": false
}
At the moment it uses nsis
which is supposed to be an Installer
. It be good to try with portable
option, which is described as a portable app without installation.
- if you could replace that part of
package.json
target
attribute withportable
as follows:
"win": {
"target": "portable",
"icon": "build/icon.ico",
"files": [
"node_modules/ffmpeg-static/bin/win/${arch}/ffmpeg",
"!node_modules/ffmpeg-static/bin/win/ia32${/*}",
"!node_modules/ffmpeg-static/bin/linux${/*}",
"!node_modules/ffmpeg-static/bin/mac${/*}"
]
},
- And then run
npm run build
and see what it gives you in thedist
folder - and if the
.exe
app works.
More details on the electron builder options to package windows applications here
from autoedit_2.
Ok, thanks @sqr , I had a look, and I think there's a trailing comma ,
that should not be there in package - Copy.txt
on line 104
, and that might be effecting the compiling
Try with this one package.json.txt
(first remove the .txt
extension) and that should work, or might give some other build errors. let me know.
from autoedit_2.
ah, ok, thanks. I think it's coz it's not fully packed, I am trying repacking by changing
"build:win": "build --win nsis-web --x64",
to
"build:win": "build --win portable --x64",
in package.json
but I get a file that is 77.8
mb which I uploaded to the previous release as autoEdit2-1.0.10.exe.zip
you can try it but I don't think it's going to work. Need to have a better look into it.
Anyway, for now good to know it's possible to package it on windows for windows.
from autoedit_2.
Hi @sqr,
How comfortable are you with node js and electron?
Do you have a windows machine?
Would you be ok compiling a build for the app on Windows and checking that it all works fine?
If Not, I can give you more detailed instructions on the steps to follow.
from autoedit_2.
Hi @pietrop
I do have a windows machine. As far as node.js, I have it in a separate machine that I use as a server, but don't really know that well about it. In any case, let me do some research on how to actually use node.js and install electron/compile an app, any helpful links are appreciated :)
from autoedit_2.
quick update @pietrop
Managed to download 1.0.9 and compile it using electron packager on Windows
The four first links don't work, as well as the "Toggle Navigation". Anything under "Donate" and "Help" works. My guess is that I should compile a specific build designed for Windows instead of the one I compiled. Is that right?
Let me know if I can assist you with anything else and thanks again!
from autoedit_2.
hello @pietrop I just wanted to update you a bit on this.
I have managed to fix the display of the CSS, so now it looks like this
However now i get this error
Instead of packaging the way you told me to, I've done it using the electron-packager module, do you know if this will affect in some way?
I will download the linvodb3 module and try again tonight and let you know how it goes.
from autoedit_2.
It is working with Speechmatics! And pretty accurate!
I am going to tinker with the different options and workflow and let you know of any weird stuff I find! It's amazing! If there is something specific you want me to look for let me know.
I also tried packaging it with the method you mention and no issues so far :)
from autoedit_2.
Fantastic! Thanks @sqr !
Ok, so it seems like now that we know it works on Windows. I'd like to package it and add it to the release section so that others interested in this can also use it on windows, such as @sedubois, @jsdephillips.
@sqr can we recap what are the steps you did to get it to work? And any other things you might have changed in the code base?
In development
- changed the CSS import code in index.html (as described in previous comment)
-
npm install
-
npm start
- obviously added credentials for speechmatics etc...for app setup
And that was it? or did you change or do anything else to get it working in development on a windows machine?
In Production, to package it for windows as a .exe
file
- already changed the CSS import code in index.html (as described in previous comment) from previous development setup.
-
npm run build:win
- that gave you a
.exe
file in the./dist
folder? - You were able to open/ run that,
- and use speechmatics credentials to get a transcription with this packaged version as well?
Ok, let me know if that all worked as expected or fi there's any other changes or tweaks that you did to get it working, so that I can look into @probonopd idea in issue #36 about setting up automatic continuous deployment using CircleCI.
from autoedit_2.
from autoedit_2.
Hello @pietrop sure, let's do a quick recap on the steps.
Finally, I didn't have to add the css fix you provided, it is working with the default index.html. I think in the beginning the CSS wasn't displaying because all sort of stuff was missing and my environment was not properly setup.
At the moment I have the app working with the css referenced like this
which if i'm not mistaken is the default way.
I basically just had to run npm install and then do an npm run start and the app is working without me having to modify the code. I had several issues but I think it was all me and dependencies and the environment, nothing code-related.
As far as packaging goes, the only thing I had to do was modify the default icon.ico on autoEdit_2-1.0.9\build , as running npm run build:win with the default icon returned an error.
After packaging and running the .exe i'm able to get it to work with speechmatics after running /dist/win-unpacked/autoEdit2.exe. However, if I try to run the installer (/dist/autoEdit2 Web Setup 1.0.9.exe) I get the following error
from autoedit_2.
@sqr that's great!
So
-
glad to hear that after
npm install
,npm run build:win
the/dist/win-unpacked/autoEdit2.exe
works.- Does that requires an "installation" or works out of the box? eg you double click and it loads the app?
-
the
/dist/autoEdit2 Web Setup 1.0.9.exe
I think is the wrong type of setup for this app, so I'd just disregard that.- I think I might need to adjust the electron-builder settigns in package.json so that it doesn't create it.
-
@sqr could you share the
icon.ico
you have? You can either drop it in this text area here in the comment or do a Pull Request if you are familiar with it. -
@jsdephillips, yes you'd be able to use the same credentials across different operating systems.
Next Up
- I am looking into using travis or circle ci to setup a "continuos deployment" to create the windows version similarly to how @probonopd did for the Linux version. If anybody has any insight into how to set this up so that it can create OS X, Linux and Windows on either Travis or CircleCi and automatically add to github releases do let me know.
from autoedit_2.
Hello @pietrop
- Does that requires an "installation" or works out of the box?
It works out of the box! you double click it and the app is loaded, the directory structure looks like this
- @sqr could you share the icon.ico you have?
.ico files are not supported on github comments, I put together a quick icon you can use, you can access it here. It will be faster than doing a PR
I will keep testing in windows and let you know if I run into issues! Thank you very much again and let me know If I can help in anything else
from autoedit_2.
Thanks @sqr !
-
I just updated the repo with
icon
you shared as a place holder.- while I figure out how to do a
.ico
with the autoEdit logo image.
- while I figure out how to do a
-
Could you try and move
autoEdit2.exe
from the screenshot you shared, into the application folder, or somewhere else, and delete those other files, to see if it still works as standalone or whether is dependent on those to work? I want to understand if the windows version is packaged as standalone or not.
from autoedit_2.
Hi @pietrop I tried to run npm run build but got an error. I have attached the log and the package.json file, maybe you can find why it fails! I tried to find a solution but didn't know exactly where the problem is.
Thanks!
2018-04-29T00_19_51_975Z-debug.log
package - Copy.txt
from autoedit_2.
Ok, I think I found a way to build/deploy/compile for windows, while being on Mac.
But can't check it it actually works.
@sqr could you download and try out this windows release I just uploaded ?
from autoedit_2.
@pietrop doesn't work for me, it tries to locate node.dll and ffmpeg.dll
from autoedit_2.
Closing this for now in favour of #55
from autoedit_2.
Related Issues (20)
- how can add speaker into my transcription with IBM HOT 3
- wich is size max for upload for watson HOT 2
- when will update this to version3?
- I'm not able to download AutoEdit 2 text
- Tweet a clip selection - new feature HOT 5
- No option to stop or delete after starting transcription HOT 1
- SRT/VTT Add option without Transcriptions HOT 1
- Stuck in "Demo Mode" with CEP Panel HOT 2
- Where does autoEdit save transcription/PaperEdit sessions? HOT 5
- Is there a web based version of this editor? HOT 6
- Update User Manual new IBM credentials info
- Update autoEdit to IBM credentials to `iam_apikey` and `url`
- Update autoEdit to new IBM credentials system
- Offline transcription on Linux and Windows HOT 8
- Min height for video element
- BBC News Labs adapter file name issue
- check links in product page www.autoEdit.io HOT 1
- .srt captions process endlessly (Windows 10) HOT 5
- i cant install in windows 10 HOT 1
- i want to contribute with translation to spanish UI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autoedit_2.