Compare commits

...

85 Commits

Author SHA1 Message Date
Reto Kromer
6e9d9c9a29 Merge pull request #326 (uniform external links) 2018-06-09 07:48:59 +02:00
Reto Kromer
8810d40523 uniform external links 2018-06-09 06:46:48 +02:00
Ashley
1ebea5cf19 Merge pull request #325 from amiaopensource/imagemagick2
adds more imagemagick
2018-06-08 16:30:23 -04:00
Ashley Blewer
ec3829d1b6 adds image hash grabbing recipe 2018-06-06 18:21:16 -04:00
Ashley Blewer
468b7b3a09 adds compare images script 2018-06-06 18:06:28 -04:00
Ashley Blewer
7ecd3214d5 adds rm exif data recipe 2018-06-06 17:54:00 -04:00
Ashley Blewer
50166200b9 moves resize to width alphabetically 2018-06-06 17:41:38 -04:00
Ashley
f2ec08fd59 Merge pull request #321 from amiaopensource/decoder-details
Decoder details
2018-04-22 13:26:27 -04:00
Ashley Blewer
32004553a6 space fix in ffv1 fixity recipe too 2018-04-22 13:25:34 -04:00
Ashley Blewer
a67b7cc879 rm space 2018-04-22 13:18:34 -04:00
Ashley
b9da657b19 Merge pull request #318 from amiaopensource/rm-google-fonts
removes calls to google fonts CDN
2018-04-22 13:16:33 -04:00
Ashley
91e929dab4 Merge pull request #322 from amiaopensource/updates-contributor-list
Updates contributor list
2018-04-22 13:14:31 -04:00
Ashley Blewer
21e5561dc9 sneaks addition of cable bible into sister projects 2018-04-22 12:58:46 -04:00
Ashley Blewer
36deb1ea62 sub github for code for clarity in both places 2018-04-22 12:55:46 -04:00
Ashley Blewer
89139311f4 updates contributors list, we have grown 2018-04-22 12:55:23 -04:00
Ashley Blewer
fb6581a50e adds back undecided font detail 2018-04-22 12:46:18 -04:00
Ashley Blewer
5bdd6f8d8a adds check decoder errors recipe 2018-04-17 09:56:22 -04:00
Ashley Blewer
3b7ce0e79f moves Check FFV1 alphabetically for section 2018-04-17 09:52:13 -04:00
Ashley
b9b7e0fef9 adds show/hide all button (#319)
resolves https://github.com/amiaopensource/ffmprovisr/issues/211
2018-04-16 21:22:12 +02:00
Ashley Blewer
95e90bb26b clean singular font styling 2018-04-15 09:36:49 -04:00
Ashley Blewer
d70a1de6e1 removes line to google fonts 2018-04-15 09:34:33 -04:00
Ashley Blewer
8417883004 removes calls to google fonts CDN 2018-04-14 20:35:46 -04:00
Reto Kromer
937b9ae525 Merge pull request #317 (add ProRes 4444 XQ) 2018-04-14 20:22:19 +02:00
Reto Kromer
d46138a81b add ProRes 4444 XQ 2018-04-14 17:34:31 +02:00
Reto Kromer
e6317731c9 add missing space 2018-04-14 12:36:03 +02:00
Andrew Weaver
0849bd29e4 rewrap dv codec to .dv (#316) 2018-04-03 19:22:34 +02:00
Ashley
b2d5fcadf3 Merge pull request #315 from amiaopensource/italic
use italic
2018-03-30 11:40:13 -04:00
Reto Kromer
05395f4670 use italic 2018-03-30 10:01:48 +02:00
Ashley
078d20824c Merge pull request #314 from amiaopensource/imagemagick
adds imagemagick section
2018-03-29 13:32:00 -04:00
Ashley Blewer
44c8661e96 subs amp for escaped amp 2018-03-29 13:28:00 -04:00
Ashley Blewer
13bc9bef10 adds imagemagick section 2018-03-29 11:46:02 -04:00
Katherine Frances Nagels
585e0e1f18 Add info on concatenating files of different framerates (#308) 2018-02-18 20:29:35 +01:00
Katherine Frances Nagels
1ef6c3305b Concatenate files of different resolutions (#307) 2018-02-10 09:31:48 +01:00
Katherine Frances Nagels
9c4da4102a Merge pull request #306 from amiaopensource/style
unify coding style
2018-02-10 19:25:31 +13:00
Reto Kromer
c47a7a534f unify coding style 2018-02-10 06:53:13 +01:00
Reto Kromer
4d8fdc9f4e uniform coding style 2018-02-10 06:50:06 +01:00
Reto Kromer
ae590706b0 Merge pull request #305 (Code style: add enclosing quotation marks)
Code style: add enclosing quotation marks
2018-02-10 06:45:22 +01:00
kfrn
e84f0a9fb6 Code style: add enclosing quotation marks 2018-02-10 12:20:21 +13:00
Reto Kromer
e2850d38c0 simplify code (#304) 2018-02-09 21:22:31 +01:00
Reto Kromer
8927478efb Merge pull request #303 (uniform syntax) 2018-02-09 17:06:52 +01:00
Reto Kromer
3c815b1f3b uniform syntax 2018-02-09 16:20:26 +01:00
Ashley
58aa0549ff Merge pull request #301 from amiaopensource/css
replace tabs by spaces
2018-02-05 11:00:11 -05:00
Ashley
4a83b45e7e Merge pull request #302 from amiaopensource/html
fix HTML5
2018-02-05 10:59:59 -05:00
Reto Kromer
f6b44c56ce fix HTML5 2018-02-04 20:58:14 +01:00
Reto Kromer
8149aa163c replace tabs by spaces 2018-02-04 20:45:25 +01:00
Reto Kromer
94f935198f Merge pull request #300 (add alias) 2018-01-25 18:44:17 +01:00
Reto Kromer
c04c9ff12f add alias 2018-01-25 15:55:21 +01:00
Reto Kromer
64787edd4e Merge pull request #299 (Add explanation about input files for join_different_files recipe) 2018-01-25 10:41:06 +01:00
kfrn
f995e8b483 Improve explanation about input files for join_different_files recipe 2018-01-25 18:28:18 +13:00
Katherine Frances Nagels
dea85d1e47 Merge pull request #297 from amiaopensource/uniform_style
uniform style
2018-01-25 07:47:24 +13:00
Reto Kromer
e9fd3fd002 uniform style 2018-01-24 13:16:28 +01:00
Katherine Frances Nagels
debc510205 New recipe: concat files of different types (+ a few fixups) (#296) 2018-01-24 13:10:22 +01:00
Andrew Weaver
32260c405f Add stream md5s (#294) 2018-01-05 18:26:10 +01:00
Reto Kromer
d142564f36 add note about quantisation rates and MD5 (#293) 2017-12-31 09:16:48 +01:00
Reto Kromer
d41674a267 fix typo 2017-12-28 07:07:40 +01:00
Reto Kromer
99450e61de a little housekeeping
- use secure protocol whenever possible
- alignment
2017-12-24 13:19:54 +01:00
Ashley
1fec9b21c8 Merge pull request #290 from amiaopensource/embed-subs
adds embedded subtitles command c/o @federicomenaquintero #289
2017-12-11 09:43:46 -05:00
Ashley Blewer
42189e5b94 capitalize container/sub formats 2017-12-11 09:22:22 -05:00
Ashley
929f92a52a Merge pull request #291 from amiaopensource/mod-strip-metadata
consistent aliases used for strip metadata
2017-12-11 09:16:26 -05:00
Ashley Blewer
02e2f11718 consistent aliases used for strip metadata 2017-12-10 21:41:57 -05:00
Ashley Blewer
10636e24e2 adds embedded subtitles command c/o @federicomenaquintero #289 2017-12-10 21:38:55 -05:00
Reto Kromer
61b890d31c delete double spaces 2017-12-05 21:05:51 +01:00
Reto Kromer
85a79d2eb5 Merge pull request #288 (delete useless spaces) 2017-12-05 21:00:30 +01:00
Reto Kromer
b5ec56174a delete useless spaces 2017-12-05 20:51:45 +01:00
Ashley
f0e0cf8ed3 Merge pull request #286 from amiaopensource/life
adds game of life to test files
2017-12-04 14:31:08 -05:00
Ashley
5c1c336d77 adds extra linebreak 2017-12-04 14:30:35 -05:00
Ashley
d71793583e Merge pull request #285 from amiaopensource/link-to-site-locally
links to website permalink even when loading locally
2017-12-04 14:26:54 -05:00
Ashley
6705bdf41d Merge pull request #282 from amiaopensource/smpte-sine
smpte_sinewave should not end in .wav
2017-12-04 14:26:38 -05:00
Ashley
25e779a59f Merge pull request #284 from amiaopensource/streaming-vs-saving
explains difference between streaming w ffplay and saving w ffmpeg
2017-12-03 21:10:48 -05:00
Ashley
ba0852a957 Merge pull request #287 from amiaopensource/http-patch
link without http wasn't cutting it; threw error
2017-12-03 21:10:25 -05:00
Ashley
88024c040f link without http wasn't cutting it; threw error 2017-12-03 20:02:32 -05:00
Ashley Blewer
3d9b9edf1c adds game of life to test files 2017-12-03 13:31:03 -05:00
Ashley Blewer
c0326ad7d9 links to website permalink even when loading locally 2017-12-03 12:14:33 -05:00
Ashley Blewer
0cb6827b39 explains difference between streaming w ffplay and saving w ffmpeg 2017-12-03 11:52:51 -05:00
Reto Kromer
0d68614c04 Merge pull request #283 (removes extra colon in BRNG recipe description) 2017-12-03 00:08:36 +01:00
Ashley
1e86b70ba4 removes extra colon in BRNG recipe description 2017-12-01 17:55:54 -05:00
Ashley
ced142a215 Merge pull request #281 from amiaopensource/rm-breakall
lifts the break-all and sets a max-width on code for long lines
2017-11-30 16:52:15 -05:00
Ashley
bf301daa71 smpte_sinewave should not end in .wav 2017-11-30 16:23:24 -05:00
Ashley Blewer
278ac2baae allows code to break for small screens only 2017-11-28 16:16:50 -05:00
Ashley Blewer
10b8e4c941 lifts the break-all and sets a max-width on code for long lines 2017-11-28 16:06:43 -05:00
Ashley
1d1b3e4eac Merge pull request #280 from amiaopensource/andrew
adds andrew as maintainer
2017-11-28 14:11:16 -05:00
Ashley Blewer
5a3e437d76 adds andrew as maintainer 2017-11-28 12:38:41 -05:00
Ashley
75a7aa1299 Merge pull request #278 from amiaopensource/modern_HTML
use modern HTML
2017-11-13 15:57:46 +01:00
Reto Kromer
cf13529485 use modern HTML 2017-11-13 15:31:07 +01:00
Katherine Frances Nagels
7c03ae2f80 Add recipes for merging files & cropping video (#277) 2017-11-05 20:13:29 +01:00
12 changed files with 568 additions and 170 deletions

View File

@@ -1,6 +1,7 @@
html, body { html, body {
line-height: 1.5; line-height: 1.5;
font-size: 16px; font-size: 18px;
font-family: sans-serif;
color: #888888; color: #888888;
background-color: #060606; background-color: #060606;
margin: 0; margin: 0;
@@ -44,6 +45,9 @@ html, body {
"content" "content"
"footer"; "footer";
} }
code {
word-break: break-all;
}
} }
@media only screen and (min-width: 1000px) { @media only screen and (min-width: 1000px) {
@@ -85,9 +89,6 @@ a:visited {
display: inline; display: inline;
} }
h1, h2, h3, h4, h5, h6 {
font-family: 'Montserrat', sans-serif;
}
h1 { h1 {
letter-spacing: 0.1em; letter-spacing: 0.1em;
@@ -108,8 +109,11 @@ h3 {
font-size: 1.5em; font-size: 1.5em;
} }
h4 {
font-size: 1.2em;
}
.intro-lead { .intro-lead {
font-family: 'Montserrat', sans-serif;
font-size: 1em; font-size: 1em;
} }
@@ -118,8 +122,8 @@ code {
color: #c7254e; color: #c7254e;
background-color: #f9f2f4; background-color: #f9f2f4;
border-radius: 4px; border-radius: 4px;
word-break: break-all;
word-wrap: break-word; word-wrap: break-word;
max-width: 800px;
white-space: normal; white-space: normal;
display: inline-block; display: inline-block;
} }
@@ -150,8 +154,14 @@ img {
text-align: center; text-align: center;
} }
.sample-image-small {
margin: 0 auto;
margin-bottom: 18px;
max-width: 250px;
text-align: center;
}
div { div {
font-family: 'Merriweather', serif;
color: white; color: white;
} }
@@ -163,7 +173,6 @@ div {
color: white; color: white;
background-color: #383838; background-color: #383838;
padding: 14px; padding: 14px;
font-family: "Montserrat";
letter-spacing: 0.05em; letter-spacing: 0.05em;
border: 1px solid black; border: 1px solid black;
cursor: pointer; cursor: pointer;
@@ -240,17 +249,17 @@ nav .heading {
.hiding { .hiding {
opacity: 0; opacity: 0;
height: 0; height: 0;
overflow: hidden; overflow: hidden;
} }
input { input {
position: absolute; position: absolute;
left: -999em left: -999em;
} }
input[type=checkbox]:checked + div { input[type=checkbox]:checked + div {
opacity: 1; opacity: 1;
height: auto; height: auto;
overflow: hidden; overflow: hidden;
transition: opacity .5s linear, height .5s linear; transition: opacity .5s linear, height .5s linear;

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

BIN
img/crop_example_orig.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 436 KiB

BIN
img/life.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 KiB

File diff suppressed because it is too large Load Diff

View File

@@ -3,10 +3,11 @@ $(document).ready(function() {
// open recipe window if a hash is found in URL // open recipe window if a hash is found in URL
if(window.location.hash) { if(window.location.hash) {
id = window.location.hash id = window.location.hash
console.log(id.substring(1))
document.getElementById(id.substring(1)).checked = true; document.getElementById(id.substring(1)).checked = true;
$('html, body').animate({ scrollTop: $(id).offset().top}, 1000); $('html, body').animate({ scrollTop: $(id).offset().top}, 1000);
$(id).closest('div').find('.link').empty(); $(id).closest('div').find('.link').empty();
$(id).closest('div').find('.link').append("<small>Link to this command: <a href="+window.location.href+">"+window.location.href+"</a></small>"); $(id).closest('div').find('.link').append("<small>Link to this command: <a href='https://amiaopensource.github.io/ffmprovisr/index.html"+window.location.hash+"'>https://amiaopensource.github.io/ffmprovisr/index.html"+window.location.hash+"</a></small>");
} }
// add hash URL when recipe is opened // add hash URL when recipe is opened
@@ -14,7 +15,13 @@ $(document).ready(function() {
id = $(this).attr("for"); id = $(this).attr("for");
window.location.hash = ('#' + id) window.location.hash = ('#' + id)
$('#' + id).closest('div').find('.link').empty(); $('#' + id).closest('div').find('.link').empty();
$('#' + id).closest('div').find('.link').append("<small>Link to this command: <a href="+window.location.href+">"+window.location.href+"</a></small>"); $('#' + id).closest('div').find('.link').append("<small>Link to this command: <a href='https://amiaopensource.github.io/ffmprovisr/index.html"+window.location.hash+"'>https://amiaopensource.github.io/ffmprovisr/index.html"+window.location.hash+"</a></small>");
});
$('#open-all').on("click", function(){
$('input[type=checkbox]').each(function(){
this.checked = !this.checked;
})
}); });
}); });

View File

@@ -44,15 +44,18 @@ You can read our contributor code of conduct [here](https://github.com/amiaopens
## Maintainers ## Maintainers
[Ashley Blewer](https://github.com/ablwr), [Katherine Frances Nagels](https://github.com/kfrn), [Kieran O'Leary](https://github.com/kieranjol) and [Reto Kromer](https://github.com/retokromer) [Ashley Blewer](https://github.com/ablwr), [Katherine Frances Nagels](https://github.com/kfrn), [Kieran O'Leary](https://github.com/kieranjol), [Reto Kromer](https://github.com/retokromer) and [Andrew Weaver](https://github.com/privatezero)
## Contributors ## Contributors
* Gathered using [octohatrack](https://github.com/LABHR/octohatrack) * Gathered using [octohatrack](https://github.com/LABHR/octohatrack)
*GitHub Contributors*: *Code Contributors*:
ablwr (Ashley) ablwr (Ashley)
bastibeckr (Basti Becker)
bturkus
dericed (Dave Rice) dericed (Dave Rice)
edsu (Ed Summers) edsu (Ed Summers)
jamessam (Jim Sam)
jfarbowitz (Jonathan Farbowitz) jfarbowitz (Jonathan Farbowitz)
kfrn (Katherine Frances Nagels) kfrn (Katherine Frances Nagels)
kgrons (Kathryn Gronsbell) kgrons (Kathryn Gronsbell)
@@ -66,13 +69,19 @@ rfraimow
*All Contributors*: *All Contributors*:
ablwr (Ashley) ablwr (Ashley)
audiovisualopen audiovisualopen
bastibeckr (Basti Becker)
brainwane (Sumana Harihareswara) brainwane (Sumana Harihareswara)
bturkus bturkus
dericed (Dave Rice) dericed (Dave Rice)
drodz11 (Dave Rodriguez)
edsu (Ed Summers) edsu (Ed Summers)
EG-tech (Ethan Gates)
federicomenaquintero (Federico Mena Quintero)
Fizz24 Fizz24
GregH18
jamessam (Jim Sam) jamessam (Jim Sam)
jfarbowitz (Jonathan Farbowitz) jfarbowitz (Jonathan Farbowitz)
JonnyTech
jronallo (Jason Ronallo) jronallo (Jason Ronallo)
kellyhaydon (metacynic) kellyhaydon (metacynic)
kfrn (Katherine Frances Nagels) kfrn (Katherine Frances Nagels)
@@ -80,16 +89,19 @@ kgrons (Kathryn Gronsbell)
kieranjol (Kieran O'Leary) kieranjol (Kieran O'Leary)
llogan (Lou) llogan (Lou)
mulvya mulvya
nkrabben (Nick Krabbenhoeft)
pjotrek-b (Peter B.) pjotrek-b (Peter B.)
privatezero (Andrew Weaver) privatezero (Andrew Weaver)
retokromer (Reto Kromer) retokromer (Reto Kromer)
rfraimow rfraimow
richardpl (Paul B Mahol) richardpl (Paul B Mahol)
ross-spencer (Ross Spencer)
todrobbins (Tod Robbins) todrobbins (Tod Robbins)
Repo: amiaopensource/ffmprovisr Repo: amiaopensource/ffmprovisr
GitHub Contributors: 12 Code Contributors: 15
All Contributors: 22 All Contributors: 30
Last updated: 2018-04-22 (4:2:2 Day)
## AVHack Team ## AVHack Team
@@ -99,9 +111,12 @@ All Contributors: 22
## Sister projects ## Sister projects
[The Cable Bible](https://amiaopensource.github.io/cable-bible/): A Guide to Cables and Connectors Used for Audiovisual Tech
[Script Ahoy](http://dd388.github.io/crals/): Community Resource for Archivists and Librarians Scripting [Script Ahoy](http://dd388.github.io/crals/): Community Resource for Archivists and Librarians Scripting
[sourcecaster](https://datapraxis.github.io/sourcecaster/): helps you use the command line to work through common challenges that come up when working with digital primary sources. [sourcecaster](https://datapraxis.github.io/sourcecaster/): helps you use the command line to work through common challenges that come up when working with digital primary sources.
## License ## License
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png" /></a><br />This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/InteractiveResource" rel="dct:type">work</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="http://amiaopensource.github.io/ffmprovisr/" property="cc:attributionName" rel="cc:attributionURL">ffmprovisr</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://github.com/amiaopensource/ffmprovisr" rel="dct:source">https://github.com/amiaopensource/ffmprovisr</a>. <a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png"></a><br>
This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/InteractiveResource" rel="dct:type">work</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="http://amiaopensource.github.io/ffmprovisr/" property="cc:attributionName" rel="cc:attributionURL">ffmprovisr</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.<br>
Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://github.com/amiaopensource/ffmprovisr" rel="dct:source">https://github.com/amiaopensource/ffmprovisr</a>.

View File

@@ -1,12 +1,12 @@
#!/usr/bin/env bash #!/usr/bin/env bash
SCRIPT=$(basename "${0}") SCRIPT=$(basename "${0}")
VERSION='2017-07-08' VERSION="2018-02-10"
AUTHOR='ffmprovisr' AUTHOR="ffmprovisr"
RED='\033[1;31m' RED="\033[1;31m"
BLUE='\033[1;34m' BLUE="\033[1;34m"
NC='\033[0m' NC="\033[0m"
if [[ "${OSTYPE}" = "cygwin" ]] || [ ! $(which diff) ]; then if [[ "${OSTYPE}" = "cygwin" ]] || [[ ! "$(which diff)" ]]; then
echo -e "${RED}Error: 'diff' is not installed by default. Please install 'diffutils' from Cygwin.${NC}" echo -e "${RED}Error: 'diff' is not installed by default. Please install 'diffutils' from Cygwin.${NC}"
exit 1 exit 1
fi fi
@@ -67,9 +67,8 @@ old_file=$(grep -v '^#' "${input_hash}")
tmp_file=$(grep -v '^#' "${md5_tmp}") tmp_file=$(grep -v '^#' "${md5_tmp}")
if [[ "${old_file}" = "${tmp_file}" ]]; then if [[ "${old_file}" = "${tmp_file}" ]]; then
echo -e "${BLUE}'$(basename "${input_file}")' matches '$(basename "${input_hash}")'${NC}" echo -e "${BLUE}'$(basename "${input_file}")' matches '$(basename "${input_hash}")'${NC}"
rm "${md5_tmp}"
else else
echo -e "${RED}The following differences were detected between '$(basename "${input_file}")' and '$(basename "${input_hash}")':${NC}" echo -e "${RED}The following differences were detected between '$(basename "${input_file}")' and '$(basename "${input_hash}")':${NC}"
diff "${input_hash}" "${md5_tmp}" diff "${input_hash}" "${md5_tmp}"
rm "${md5_tmp}"
fi fi
rm "${md5_tmp}"

View File

@@ -1,12 +1,12 @@
#!/usr/bin/env bash #!/usr/bin/env bash
SCRIPT=$(basename "${0}") SCRIPT=$(basename "${0}")
VERSION='2017-07-08' VERSION="2018-02-10"
AUTHOR='ffmprovisr' AUTHOR="ffmprovisr"
RED='\033[1;31m' RED="\033[1;31m"
BLUE='\033[1;34m' BLUE="\033[1;34m"
NC='\033[0m' NC="\033[0m"
if [[ "${OSTYPE}" = "cygwin" ]] || [ ! $(which diff) ]; then if [[ "${OSTYPE}" = "cygwin" ]] || [[ ! "$(which diff)" ]]; then
echo -e "${RED}Error: 'diff' is not installed by default. Please install 'diffutils' from Cygwin.${NC}" echo -e "${RED}Error: 'diff' is not installed by default. Please install 'diffutils' from Cygwin.${NC}"
exit 1 exit 1
fi fi
@@ -64,9 +64,8 @@ old_file=$(grep -v '^#' "${input_hash}")
tmp_file=$(grep -v '^#' "${md5_tmp}") tmp_file=$(grep -v '^#' "${md5_tmp}")
if [[ "${old_file}" = "${tmp_file}" ]]; then if [[ "${old_file}" = "${tmp_file}" ]]; then
echo -e "${BLUE}'$(basename "${input_file}")' matches '$(basename "${input_hash}")'${NC}" echo -e "${BLUE}'$(basename "${input_file}")' matches '$(basename "${input_hash}")'${NC}"
rm "${md5_tmp}"
else else
echo -e "${RED}The following differences were detected between '$(basename "${input_file}")' and '$(basename "${input_hash}")':${NC}" echo -e "${RED}The following differences were detected between '$(basename "${input_file}")' and '$(basename "${input_hash}")':${NC}"
diff "${input_hash}" "${md5_tmp}" diff "${input_hash}" "${md5_tmp}"
rm "${md5_tmp}"
fi fi
rm "${md5_tmp}"

View File

@@ -10,7 +10,7 @@ if [[ "$(uname -s)" = "Darwin" ]] ; then
else else
ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1) ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
fi fi
if [ -n "${default_browser}" ] ; then if [[ -n "${default_browser}" ]] ; then
open -b "${default_browser}" "${ffmprovisr_path}" open -b "${default_browser}" "${ffmprovisr_path}"
else else
open "${ffmprovisr_path}" open "${ffmprovisr_path}"