Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Icon
- Bundle ffmpeg - Fix menus on windows - fs-methods seem to hang on windows, so exec instead Resources: https://discuss.atom.io/t/information-about-bundled-ffmpeg/28456/6 https://github.com/wulkano/kap/blob/27730fd269d549157057cdcc2e4042be2842a66c/app/src/scripts/mp4-to-gif.js https://github.com/orionhealth/electron-packager-plugin-non-proprietary-codecs-ffmpeg https://github.com/konsumer/easy-ffmpeg https://github.com/eugeneware/ffmpeg-static
- Loading branch information
Showing
17 changed files
with
231 additions
and
111 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ node_modules | |
npm-debug.log | ||
dist | ||
package | ||
ffmpeg-tmp | ||
icon-dist |
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
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,21 @@ | ||
## TODO / ideas | ||
- Visual feedback on button presses | ||
- support for previewing other formats by streaming through ffmpeg? | ||
- Slow scrub with modifier key | ||
- show frame number (approx?) | ||
- ffprobe show keyframes (pprobe -of json -select_streams v -show_frames file.mp4) | ||
- cutting out the commercials in a video file while saving the rest to a single file? | ||
- With the GOP structure of h.264 you could run into some pretty nasty playback issues without re-encoding if you cut the wrong frames out. | ||
- Shortcut Cmd+o also triggers o (cut end) | ||
- implement electron app event "open-file" | ||
- Travis github deploys https://docs.travis-ci.com/user/deployment | ||
- react video ref="video" this.refs.video.play() | ||
- A dedicated "Options" menu where the users can set a default output folder for captured frames and for cut videos will also be handy, now lossless-cut uses the input folder. | ||
|
||
## Links | ||
- http://apple.stackexchange.com/questions/117306/what-options-are-available-to-losslessly-trim-mp4-m4v-video-on-10-8-or-above | ||
- http://superuser.com/questions/554620/how-to-get-time-stamp-of-closest-keyframe-before-a-given-timestamp-with-ffmpeg/554679#554679 | ||
- http://www.fame-ring.com/smart_cutter.html | ||
- http://electron.atom.io/apps/ | ||
- https://github.com/electron/electron/blob/master/docs/api/file-object.md | ||
- https://github.com/electron/electron/issues/2538 |
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,15 @@ | ||
ffmpeg_linux_ia32=https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-32bit-static.tar.xz | ||
ffmpeg_linux_x64=https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz | ||
ffmpeg_darwin_x64=http://evermeet.cx/ffmpeg/ffmpeg-3.2.7z | ||
ffmpeg_win32_ia32=https://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-3.1.5-win32-static.zip | ||
ffmpeg_win32_x64=https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-3.1.5-win64-static.zip | ||
ffprobe_darwin_x64=http://evermeet.cx/ffmpeg/ffprobe-3.2.7z | ||
|
||
mkdir -p ffmpeg-tmp/archives && | ||
(cd ffmpeg-tmp/archives && | ||
wget -O ffmpeg_linux_ia32.tar.xz "${ffmpeg_linux_ia32}" && | ||
wget -O ffmpeg_linux_x64.tar.xz "${ffmpeg_linux_x64}" && | ||
wget -O ffmpeg_darwin_x64.7z "${ffmpeg_darwin_x64}" && | ||
wget -O ffmpeg_win32_ia32.zip "${ffmpeg_win32_ia32}" && | ||
wget -O ffmpeg_win32_x64.zip "${ffmpeg_win32_x64}" && | ||
wget -O ffprobe_darwin_x64.7z "${ffprobe_darwin_x64}") |
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,32 @@ | ||
( | ||
mkdir -p ffmpeg-tmp/extracted && | ||
cd ffmpeg-tmp/extracted && | ||
(mkdir -p linux_ia32 && cd linux_ia32 && | ||
7z x ../../archives/ffmpeg_linux_ia32.tar.xz && tar xvfp ffmpeg_linux_ia32.tar) && | ||
(mkdir -p linux_x64 && cd linux_x64 && | ||
7z x ../../archives/ffmpeg_linux_x64.tar.xz && tar xvfp ffmpeg_linux_x64.tar) && | ||
(mkdir -p win32_ia32 && cd win32_ia32 && | ||
unzip ../../archives/ffmpeg_win32_ia32.zip) && | ||
(mkdir -p win32_x64 && cd win32_x64 && | ||
unzip ../../archives/ffmpeg_win32_x64.zip) && | ||
(mkdir -p darwin_x64 && cd darwin_x64 && | ||
7z x ../../archives/ffmpeg_darwin_x64.7z && | ||
7z x ../../archives/ffprobe_darwin_x64.7z) | ||
) && | ||
cd ffmpeg-tmp && | ||
mkdir -p binaries/linux_ia32 && | ||
mkdir -p binaries/linux_x64 && | ||
mkdir -p binaries/win32_ia32 && | ||
mkdir -p binaries/win32_x64 && | ||
mkdir -p binaries/darwin_x64 && | ||
mv extracted/linux_ia32/ffmpeg-3.2-32bit-static/ffmpeg binaries/linux_ia32 && | ||
mv extracted/linux_ia32/ffmpeg-3.2-32bit-static/ffprobe binaries/linux_ia32 && | ||
mv extracted/linux_x64/ffmpeg-3.2-64bit-static/ffmpeg binaries/linux_x64 && | ||
mv extracted/linux_x64/ffmpeg-3.2-64bit-static/ffprobe binaries/linux_x64 && | ||
mv extracted/win32_ia32/ffmpeg-3.1.5-win32-static/bin/ffmpeg.exe binaries/win32_ia32 && | ||
mv extracted/win32_ia32/ffmpeg-3.1.5-win32-static/bin/ffprobe.exe binaries/win32_ia32 && | ||
mv extracted/win32_x64/ffmpeg-3.1.5-win64-static/bin/ffmpeg.exe binaries/win32_x64 && | ||
mv extracted/win32_x64/ffmpeg-3.1.5-win64-static/bin/ffprobe.exe binaries/win32_x64 && | ||
mv extracted/darwin_x64/ffmpeg binaries/darwin_x64 && | ||
mv extracted/darwin_x64/ffprobe binaries/darwin_x64 && | ||
echo Done |
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.