Compare commits

...

149 Commits

Author SHA1 Message Date
Katherine Frances Nagels
b7bc7218b8 Merge pull request #240 from kfrn/gh-pages
Reorganise some recipes + add filtergraph explanation 'command'
2017-10-08 10:39:35 +13:00
kfrn
7ec21fb6d2 Both info sections at top of page; consistent naming 2017-10-08 09:19:05 +13:00
kfrn
1e2b2dd18f Add target="_blank"s to links; correct to Set Stream Properties recipe
I've replaced the links in the Set Stream Properties recipe with a more specific link.
Also, according to the docs, the correct flag is -color_primaries, not -color_primary.
2017-10-08 01:05:36 +13:00
kfrn
9d4e18e6ef Improve descriptions; ffmpeg → FFmpeg as appropriate
Consistently use FFmpeg to refer to the program and ffmpeg for the command line invocation of the program.
Add another example to the 'asic structure of an FFmpeg command explanation.
Add a note on filter order to the Filtergraph explanation.
2017-10-08 00:47:31 +13:00
kfrn
61681c8dd3 Add basic command explanation; relocate filtergraph explanation
- New section at top: 'Getting started with ffmpeg'. Added basic command explanation under this heading.
- New section at bottom: 'Advanced ffmpeg concepts'. Filtergraph explanation moved there.
2017-10-07 21:35:05 +13:00
kfrn
71e68b5e2e Add filtergraph explanation in new ffmpeg concepts section 2017-10-07 16:02:08 +13:00
kfrn
872eec2aa7 Reorg items: section for GIFs, 'Modify speed' under 'Change Properties' 2017-10-07 14:57:40 +13:00
Katherine Frances Nagels
863f70054d Merge pull request #239 from kfrn/gh-pages
Add basic rewrap command
2017-10-07 10:15:58 +13:00
kfrn
16c8d68e39 Add note on terminology 2017-10-07 00:21:29 +13:00
kfrn
08593bb221 Add basic rewrap command 2017-10-07 00:06:29 +13:00
Ashley
516a78d397 Merge pull request #236 from kfrn/gh-pages
Create more subheadings and reorganise commands
2017-10-04 16:52:10 -04:00
kfrn
89ea7a28bd Rename heading; move recipe; fix broken recipe
- Move 'Set stream properties' to the 'Change video properties' section.
- Heading change: 'Create a video' to 'Create a video from images'. (In the ToC, it's 'Create a video from image(s) and audio')
- 'View Subprogram Info' is fixed (data-target now matches the new ID).
- Consistent capitalisation
2017-10-05 08:59:35 +13:00
kfrn
763e9c594f Add missing </div>; remove comment 2017-10-04 23:11:03 +13:00
kfrn
fd7528a6bd Add 'contents' section at the top of the page
These links wrap a <button> tag and use the "btn" class. To distinguish them from the command buttons that trigger the modals, I've given them a different colour scheme and a different emoji prefix.
2017-10-04 22:22:20 +13:00
kfrn
efd9e55b66 Command name change: 'View Format Info' to 'View ffmpeg subprogram info'
'View format info' seemed to me to be poorly named, what this command actually does is to give details of various libraries, muxers, encoders, etc. 'View ffmpeg subprogram info' may not itself be a totally correct nomenclature, but it's a bit closer to the practical meaning, I think.

Also: a couple of minor text changes.
2017-10-04 21:44:14 +13:00
kfrn
da94557324 Reorganise ffmpeg commands under more/different subheadings 2017-10-04 21:39:18 +13:00
kfrn
f5887473f3 Merge branch 'gh-pages' of https://github.com/amiaopensource/ffmprovisr into gh-pages 2017-10-04 18:20:11 +13:00
Katherine Frances Nagels
17ea63f7b9 Merge pull request #234 from amiaopensource/refactor-headers
refactors headers to be more semantically correct
2017-10-04 09:11:52 +13:00
Ashley Blewer
d7db07bcab refactors headers to be more semantically correct 2017-10-03 12:35:33 -04:00
Katherine Frances Nagels
e92a1cf713 Merge pull request #232 from amiaopensource/html5
cleanup HTML5 code
2017-10-03 07:51:58 +13:00
Reto Kromer
96903f018c cleanup HTML5 2017-10-02 17:45:00 +02:00
Reto Kromer
fcc95ce518 Merge pull request #231 (missing quotes in link) 2017-10-02 15:34:48 +02:00
Reto Kromer
8c349b8282 missing quotes in link 2017-10-02 15:20:27 +02:00
Katherine Frances Nagels
93627e0da2 Stylistic changes; expansion on a small number of commands (#230) 2017-10-02 15:13:57 +02:00
kfrn
593bb63e23 Cleanups: bold post-heading colons, ffmpeg → ffplay/ffprobe as approp.
In several places, ffprobe or ffplay commands said ffmpeg in the command breakdown. This is because of me doing a sloppy cut & paste in a previous commit in this PR.

Previously, colons succeeding a bold 'Notes' mini-heading were not themselves also bold. Reto noted this, and the Chicago Manual of Style does indicate that such colons should also be in bold.
2017-10-03 02:05:00 +13:00
kfrn
3a58b6ae82 Style: add spaces in long filtergraphs; only use italics for inputs
In filtergraphs that are reasonably long or unwieldy, I've added a space after each comma for readability.
In ffmpeg commands, italics should denote user inputs/outputs. Where italics had been used for 'regular' variables (i.e., not an input/output file or a variable for which the user must explicitly choose the value), I've deleted them.

These are stylistic changes that, I think, make things more readable and/or more uniform.
2017-10-03 01:31:23 +13:00
kfrn
11848054a3 Break out commands into subsegments
I've elaborated further on certain commands, and added lines for opening and closing quotation marks for others.
There are also some minor style fixes.
2017-10-03 00:34:47 +13:00
kfrn
c0e9a05e1d Fix-ups: inline links, grammar corrections, etc
I've also moved the link to Dinah Handel's NDSR blog (http://ndsr.nycdigital.org/diving-in-head-first/) next to a different subcommand that it more directly relates to.
2017-10-02 23:41:27 +13:00
Ashley
7cbdd6a074 Merge pull request #229 from kfrn/gh-pages
Downsize large GIFs + add favicon
2017-09-20 10:57:08 -04:00
kfrn
fa1cda441e Add VHS tape favicon 2017-09-19 21:02:22 +12:00
kfrn
7d07c3818a Replace large GIFs with smaller versions 2017-09-19 18:02:23 +12:00
Reto Kromer
3374812782 Merge pull request #225 (check if connected to the web) 2017-08-25 19:01:26 +02:00
Reto Kromer
9c871d760a better description 2017-08-25 16:25:40 +02:00
Reto Kromer
22fa09470b new version 2017-08-25 15:53:28 +02:00
Reto Kromer
9bae51d6a4 delete space 2017-08-25 15:17:38 +02:00
Reto Kromer
b598ed1040 check if connected to the web 2017-08-25 15:15:04 +02:00
Katherine Frances Nagels
23148d4721 Merge pull request #224 from amiaopensource/rectangular
change `modified_e_weighted` to `rectangular`
2017-08-24 11:47:12 +12:00
Reto Kromer
df422912d6 change modified_e_weighted to rectangular 2017-08-23 13:54:21 +02:00
Katherine Frances Nagels
e5f6f5cf2d Merge pull request #223 from amiaopensource/HTML_fixes
HTML fixes
2017-08-21 19:47:33 +12:00
Reto Kromer
96c382943b HTML fixes 2017-08-21 09:41:50 +02:00
Katherine Frances Nagels
ef6e5d07dc Merge pull request #222 from jamessam/gh-pages
add note about dither methods to the audio recipes.
2017-08-21 12:49:09 +12:00
jamessam
bf260c2ee2 redo explanations 2017-08-20 16:48:31 -07:00
jamessam
7f1a765dd8 add note about dither methods to the audio recipes. Recently, I noticed a strange pheonomenon with the previous dither method where the FFMPEG resampler would greatly increase the gain. 2017-08-20 15:46:41 -07:00
Kieran O'Leary
6c85518288 Merge pull request #221 from amiaopensource/kieranjol-typo
split audio/video tracks - match command line with explanation
2017-08-16 01:14:01 +01:00
Kieran O'Leary
63abcd36d0 split audio/video tracks - match command line with explanation
explanation said `0✌️0`, command line said `0:v`
2017-08-16 01:09:00 +01:00
Kieran O'Leary
905b75547b batch processing mac/linux: adds find command - for #207 (#220) 2017-08-15 17:53:47 +02:00
Reto Kromer
7aa124c3d1 fix closing tag 2017-08-08 18:06:07 +02:00
Ashley
50185eb04e Merge pull request #219 from amiaopensource/wordbreak-in-ff
sets wordbreak in firefox for long code
2017-08-07 16:44:12 -04:00
Katherine Frances Nagels
975766188f Merge pull request #218 from amiaopensource/weaver-branch
add sample rate flag to loudnorm
2017-08-08 08:43:58 +12:00
Ashley Blewer
fd1d596f50 sets wordbreak in firefox for long code 2017-08-07 15:25:15 -04:00
Andrew Weaver
18a80c10f1 add sample rate flag 2017-08-07 11:23:41 -07:00
Ashley
c6f7593d65 Merge pull request #217 from amiaopensource/phase-shift
adds audio phase shift command #195
2017-08-07 13:46:06 -04:00
Ashley Blewer
e6962b3ca4 uses word rotating instead of shifting, as it is more specific 2017-08-07 13:44:06 -04:00
Ashley Blewer
0ba25be082 removes spaces from pan= command command command 2017-08-07 13:40:54 -04:00
Ashley Blewer
e4611d8b6b removes spaces from pan= command 2017-08-07 13:39:45 -04:00
Reto Kromer
d609a9b943 guillemets (#216) 2017-08-07 19:33:44 +02:00
Ashley Blewer
d132e86f1d adds audio phase shift command #195 2017-08-07 13:30:35 -04:00
Ashley
e1e1060904 Merge pull request #215 from amiaopensource/ydif-scene-detection
adds ffprobe command for csv of timecode/ydif #213
2017-08-07 13:11:35 -04:00
Ashley Blewer
8b5fa8aa6a adds ffprobe command for csv of timecode/ydif #213 2017-08-07 12:32:54 -04:00
Reto Kromer
7bd05a8163 Merge pull request #214 (typos) 2017-07-29 21:09:12 +02:00
Reto Kromer
126fb1d284 typos 2017-07-29 14:26:47 +02:00
Reto Kromer
9799316c19 Merge pull request #212 (-an not needed) 2017-07-21 20:21:41 +02:00
Reto Kromer
6e4ed74841 -an not needed 2017-07-21 19:33:59 +02:00
Reto Kromer
0a6204264c Merge pull request #210 from kfrn/gh-pages
Normalise filename extensions (except VOB) to lower-case
2017-07-15 09:36:17 +02:00
Kieran O'Leary
c835746c24 change codec explanation for field order (#205)
* change codec explanation for field order

* add ffv1
2017-07-15 09:35:41 +02:00
kfrn
86e53b92c8 Normalise filename extensions (except VOB) to lower-case 2017-07-15 13:39:57 +12:00
Katherine Frances Nagels
41423e0917 Merge pull request #202 from amiaopensource/colorspace-link
convert colourspace - fix ffmpeg link
2017-07-15 11:51:12 +12:00
Reto Kromer
9a0875b692 use official naming 2017-07-14 10:57:41 +02:00
Reto Kromer
0473e85448 Merge pull request #203 from amiaopensource/trimming-map 2017-07-14 10:31:34 +02:00
Reto Kromer
b57349a3ec > should be encoded (#201) 2017-07-13 12:31:56 +02:00
Kieran O'Leary
9f3b56305c Merge pull request #204 from amiaopensource/aspect-ration
fixes aspect ration typo
2017-07-13 09:46:34 +01:00
Kieran O'Leary
5593b86ab7 fixes aspect ration typo 2017-07-12 23:33:37 +01:00
Kieran O'Leary
3544828fb1 adds -map 0 to trimming recipes, #196 2017-07-12 23:28:03 +01:00
Kieran O'Leary
c8691285cc convert colourspace - fix ffmpeg link 2017-07-12 22:56:07 +01:00
bturkus
e4a660967b Update index.html 2017-07-12 22:31:04 +02:00
bturkus
86138a55e1 Update index.html 2017-07-12 22:31:04 +02:00
bturkus
4c14af3209 add eia608 gif 2017-07-12 22:31:04 +02:00
Reto Kromer
8d18077af5 Merge pull request #198 from amiaopensource/update 2017-07-08 20:10:06 +02:00
Reto Kromer
8871868eda Merge pull request #199 from amiaopensource/little_changes 2017-07-08 17:01:07 +02:00
Reto Kromer
e1fb86ec94 Merge pull request #200 from amiaopensource/little_changes-1 2017-07-08 17:00:41 +02:00
Reto Kromer
7fe503d324 uniform 2017-07-08 12:48:15 +02:00
Reto Kromer
513631c80b uniform 2017-07-08 12:48:02 +02:00
Reto Kromer
22ff2368ad uniform 2017-07-08 11:19:09 +02:00
Kieran O'Leary
c81827d98f temporal difference - typo fix 2017-06-17 17:23:14 +01:00
Reto Kromer
19d249a09b Merge pull request #194 from amiaopensource/structure 2017-05-22 16:07:40 +02:00
Ashley
04abe26b53 updates contributors list (#193) 2017-05-22 15:59:43 +02:00
Ashley
ab3a8b25cf adds strip metadata recipe (#192)
- adds strip metadata recipe
2017-05-22 15:48:15 +02:00
Reto Kromer
40e8f8c73c move "Repair" 2017-05-22 14:51:17 +02:00
Ashley
129540fbfc Merge pull request #191 from amiaopensource/licence
CC BY 4.0
2017-05-20 18:47:53 -04:00
Reto Kromer
8578f01e1c CC BY 4.0 2017-05-20 18:43:23 +02:00
Reto Kromer
0158a85a4b HTML5 tweaks 2017-05-20 10:53:30 +02:00
Reto Kromer
cc724200d1 Merge pull request #189 from pjotrek-b/gh-pages
Added command for splitting into segments (segment muxer).
2017-05-18 10:30:45 +02:00
Peter B
0c03f57df6 Added printf-number examples and fixed requested changes. 2017-05-18 10:24:13 +02:00
Reto Kromer
659e920e0b Merge pull request #187 from amiaopensource/offline
add comment
2017-05-18 07:04:52 +02:00
Reto Kromer
2037ec922f Merge pull request #188 from amiaopensource/readme
update installation instructions
2017-05-18 07:04:05 +02:00
Reto Kromer
c745152f8e fix error 2017-05-17 19:27:19 +02:00
Peter B
e12bbb0c6d Added command for splitting into segments (segment muxer). 2017-05-17 18:53:04 +02:00
Reto Kromer
2c0e555dc1 update installation instructions 2017-05-17 18:50:29 +02:00
Reto Kromer
ed81a16458 Merge pull request #186 from amiaopensource/uniform_spacing
uniform spacing
2017-05-13 15:59:53 +02:00
Reto Kromer
172657b1bb add comment 2017-05-13 07:04:10 +02:00
Reto Kromer
7af1a3de2c uniform spacing 2017-05-13 06:48:57 +02:00
Reto Kromer
3f76abc053 Merge pull request #185 from amiaopensource/update-load-script
add query for default browser
2017-05-09 19:30:27 +02:00
Andrew Weaver
e3d11b3e7c add query for default browser 2017-05-09 11:45:28 -04:00
Reto Kromer
dbe9e1a049 Merge pull request #183 from amiaopensource/HTML5
fix HTML5
2017-05-09 11:32:21 +02:00
Reto Kromer
0fe609a683 Merge pull request #184 from kfrn/gh-pages
Minor wording amendment
2017-05-09 11:28:10 +02:00
kfrn
704a87f22c Minor wording amendment 2017-05-09 20:46:51 +12:00
Reto Kromer
b1a5f14e8c uniformise typography
vu en passant
2017-05-08 20:32:00 +02:00
Reto Kromer
55b34452f7 fix HTML5
- delete not opened closing tag
- uniform wells
2017-05-08 16:38:28 +02:00
Andrew Weaver
18e2c17ab4 Script to open ffmprovisr when installed via homebrew (#181)
- script for opening ffmprovisr from terminal
2017-05-05 17:37:50 +02:00
Andrew Weaver
e4309d6664 add audio bitscope (#180)
* add audio bitscope

* alphabetical

* ch ch ch ch changes
2017-05-04 19:58:24 +02:00
Andrew Weaver
750810d392 Loudness/RIAA Curve (#179)
- start normalization section
- add RIAA
2017-05-03 04:58:20 +02:00
Reto Kromer
b2a04d138f Merge pull request #177 from kfrn/gh-pages
Tweak wording of readme
2017-04-19 10:15:32 +02:00
kfrn
b53f6c9984 Amend formatting & wording 2017-04-19 20:13:17 +12:00
kfrn
64a362314c Tweak wording of readme 2017-04-19 19:33:51 +12:00
Reto Kromer
2a71179776 Merge pull request #175 from amiaopensource/script_folder
scripts folder
2017-04-18 19:38:56 +02:00
Reto Kromer
77e346c067 Merge pull request #176 from amiaopensource/signature-examples
Add examples for using new Signature filter
2017-04-17 20:28:55 +02:00
Andrew Weaver
b995fb05c5 FFmpeg -> ffmpeg 2017-04-17 14:27:58 -04:00
Andrew Weaver
d30741e378 add generate fingerprint
wording
2017-04-17 14:11:26 -04:00
Andrew Weaver
e3b01e2aa8 add compare fingerprints 2017-04-17 13:40:18 -04:00
Reto Kromer
750a763157 more coherent output prompt 2017-04-17 11:46:46 +02:00
Reto Kromer
0a6e5a4a7a more coherent output prompt 2017-04-17 11:46:10 +02:00
Reto Kromer
54a8ab6057 plural 2017-04-17 07:58:26 +02:00
Reto Kromer
e762c7dc42 plural 2017-04-17 07:57:49 +02:00
Reto Kromer
cb7f001444 plural 2017-04-17 07:55:58 +02:00
Reto Kromer
89039f55b3 [WIP] update readme
- add maintainers
- add link to PR
- move licence at the end

Remarks:
- It needs more work by an English native.
- The section `AVHack Team` could be called `History` and start with Ashley’s first release.
2017-04-17 07:52:12 +02:00
Reto Kromer
59e6c6d879 correct link 2017-04-17 07:05:07 +02:00
Reto Kromer
195bc5446e script folder 2017-04-17 07:04:00 +02:00
Reto Kromer
a1cc5a4428 update date 2017-04-17 07:00:48 +02:00
Reto Kromer
58663a869f script folder 2017-04-17 07:00:15 +02:00
Reto Kromer
05d16367f0 script folder 2017-04-17 06:58:14 +02:00
Reto Kromer
9477bcfe0a Merge pull request #173 from amiaopensource/weaver-branch
add script for comparing audio framemd5
2017-04-16 16:56:05 +02:00
aweaver
ad439d3b78 version 2017-04-16 07:53:28 -07:00
aweaver
736b01e426 caveat about transcode 2017-04-16 07:40:00 -07:00
Ashley
57166fe61d Merge pull request #174 from amiaopensource/don_t_leave_ffmprovisr
external link opens a new window
2017-04-16 10:25:08 -04:00
aweaver
ec26d2038a urls and quotes 2017-04-16 07:17:27 -07:00
aweaver
321d998b5a name,filter and spaces 2017-04-16 07:01:40 -07:00
Reto Kromer
009670eed1 external link opens a new window
- add missing `target="_blank"`
- uniform `href` before `target` (easier to maintain)
2017-04-16 10:17:43 +02:00
aweaver
d3a941a725 add script for audio 2017-04-15 14:02:23 -07:00
Reto Kromer
d334d7b4de HTML cleanup
before new release
2017-04-14 08:31:40 +02:00
Reto Kromer
d08cf349f6 Merge pull request #172 from pjotrek-b/text
Split "change formats" into separate categories
2017-04-13 19:11:34 +02:00
Peter B
b5b06021b0 Rearranged aspect-ratio conversions to be next to each other. 2017-04-13 16:24:17 +02:00
Peter B
e0ceeb0d73 Split "change formats" into: rewrap,transcode,formats 2017-04-13 16:23:09 +02:00
Reto Kromer
dc47dbc618 Merge pull request #170 from pjotrek-b/avsync
Added AV sync repair option (aresample/async)
2017-04-13 15:42:46 +02:00
Reto Kromer
28ae979652 Merge pull request #171 from pjotrek-b/gh-pages
Fixed outdated link to ffmpeg filters paragaph.
2017-04-13 15:32:38 +02:00
Peter B
0e2a2c2bfe Fixed outdated link to ffmpeg filters paragaph. 2017-04-13 15:00:21 +02:00
Peter B
388b107a3f Added AV sync repair option (aresample/async) 2017-04-13 14:43:35 +02:00
Reto Kromer
117ebf506d Merge pull request #167 from pjotrek-b/gh-pages
Added framemd5 for audio.
2017-04-13 12:33:05 +02:00
Peter B
9356f9af93 Added testvideo with image + sound (SMPTE bars) 2017-04-13 11:10:41 +02:00
Peter B
4d2d5c7c81 Added framemd5 for audio. 2017-04-13 10:35:42 +02:00
16 changed files with 2152 additions and 1396 deletions

11
assets/css/pure-min.css vendored Executable file

File diff suppressed because one or more lines are too long

View File

11
assets/javascript/buzz.min.js vendored Normal file

File diff suppressed because one or more lines are too long

4
assets/javascript/jquery-3.1.1.min.js vendored Normal file

File diff suppressed because one or more lines are too long

1
cache_file.json Normal file

File diff suppressed because one or more lines are too long

View File

@@ -2,8 +2,22 @@ h1, h2, h3, h4, h5, h6 {
font-family: 'Montserrat', sans-serif;
}
h2 {
font-size: 24px;
}
.intro-lead {
font-family: 'Montserrat', sans-serif;
font-size: 20px;
}
.select-from {
font-size: 16px;
}
code {
word-break: break-all;
word-wrap: break-word;
}
dd {
@@ -72,6 +86,18 @@ div {
transform: scale(1.3) translateZ(0);
}
.contents-list {
color: black;
}
.contents-list:hover {
color: #2a9fd6;
}
.contents-list:before {
content: "📼"
}
.codeblock {
font-family: monospace
padding: 2px 4px;

BIN
img/16_32_abitscope.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 450 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 MiB

BIN
img/eia608_captions.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

BIN
img/vhs.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

2996
index.html

File diff suppressed because it is too large Load Diff

View File

@@ -1,37 +1,55 @@
# [ffmprovisr](http://amiaopensource.github.io/ffmprovisr)
Repository of useful FFmpeg command lines for archivists! [AMIA hackday](http://wiki.curatecamp.org/index.php/Association_of_Moving_Image_Archivists_%26_Digital_Library_Federation_Hack_Day_2015) edition.
Repository of useful FFmpeg command lines for archivists!
## What is this?
Project Objective: To facilitate better understanding of FFmpeg through collaborative sharing of useful scripts and detailed flag-level description of how each script works so archivists can copy-paste and produce their own scripts but also understand how and why they work.
#### Project Objective
To facilitate better understanding of FFmpeg through collaborative sharing of useful scripts and detailed flag-level description of how each script works, so archivists can copy-paste and produce their own scripts, but also understand how and why they work.
## How do I see it?
Code stuff in the gh-pages branch (the default primary branch). Readme is right here. The site is live and lives on github pages. You can see it [here](http://amiaopensource.github.io/ffmprovisr), or you can download a [release](https://github.com/amiaopensource/ffmprovisr/releases) and use it locally.
The code is found in the gh-pages branch (the default primary branch). Readme is right here. You can see the site live on [GitHub pages](http://amiaopensource.github.io/ffmprovisr).
You can also install the latest [release](https://github.com/amiaopensource/ffmprovisr/releases) on your computer with the command:
```
brew install amiaopensource/amiaos/ffmprovisr
```
and then call it locally with the command:
```
ffmprovisr
```
This works currently under macOS, Linux and the Linux subsystem on Windows. On classic Windows you can install the last [release](https://github.com/amiaopensource/ffmprovisr/releases) manually and the open `index.html` in a browser.
## How do I contribute?
You are welcome to edit the codebase yourself or just supply the information and ask it to be added to the site.
You are welcome to edit the codebase yourself, or just supply the information and ask it to be added to the site.
To contribute to this project directly (and more quickly), clone this repository and create a new branch (`git checkout -b your-branch-name`) and add or modify a new block in index.html. Then submit a pull request and someone can review and integrate your code. There is a commented-out sample available at the bottom of index.html that can be used to build your own block.
#### Edit codebase
If you are having trouble with the coding it yourself or with github, feel free to [submit an issue](https://github.com/amiaopensource/ffmprovisr/issues) with the kind of command you would like to see added to the site.
To contribute to this project directly (and more quickly), clone this repository and create a new branch (`git checkout -b your-branch-name`) and add or modify a new block in `index.html`. Then [submit a pull request](https://github.com/amiaopensource/ffmprovisr/pulls) and the maintainers will review and integrate your code. There is a commented-out sample block available at the bottom of `index.html` that can be as a guideline for your command.
#### Make a request
If you are having trouble with coding it yourself or with GitHub, feel free to [submit an issue](https://github.com/amiaopensource/ffmprovisr/issues) with the kind of command you would like to see added to the site.
#### General help
If you want to help but don't have a new script to add, you can help us by testing out the scripts available, by refining or clarifying the documentation, or [creating an issue](https://github.com/amiaopensource/ffmprovisr/issues) for anything that sounds confusing and requires clarification.
## 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>.
## Code of Conduct
You can read our contributor code of conduct [here](https://github.com/amiaopensource/ffmprovisr/blob/gh-pages/code_of_conduct.md).
## 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)
## Contributors
* Gathered using [octohatrack](https://github.com/LABHR/octohatrack)
GitHub Contributors:
*GitHub Contributors*:
ablwr (Ashley)
dericed (Dave Rice)
edsu (Ed Summers)
@@ -40,39 +58,50 @@ kfrn (Katherine Frances Nagels)
kgrons (Kathryn Gronsbell)
kieranjol (Kieran O'Leary)
llogan (Lou)
pjotrek-b (Peter B.)
privatezero (Andrew Weaver)
retokromer (Reto Kromer)
rfraimow
All Contributors:
*All Contributors*:
ablwr (Ashley)
audiovisualopen
brainwane (Sumana Harihareswara)
bturkus
dericed (Dave Rice)
edsu (Ed Summers)
Fizz24
jamessam (Jim)
jamessam (Jim Sam)
jfarbowitz (Jonathan Farbowitz)
jronallo (Jason Ronallo)
kellyhaydon (metacynic)
kfrn (Katherine Frances Nagels)
kgrons (Kathryn Gronsbell)
kieranjol (Kieran O'Leary)
llogan (Lou)
mulvya
pjotrek-b (Peter B.)
privatezero (Andrew Weaver)
retokromer (Reto Kromer)
rfraimow
richardpl (Paul B Mahol)
todrobbins (Tod Robbins)
Repo: amiaopensource/ffmprovisr
GitHub Contributors: 11
All Contributors: 18
GitHub Contributors: 12
All Contributors: 22
## AVHack Team:
## AVHack Team
[Ashley Blewer](https://github.com/ablwr), Eddy Colloton, Rebecca Dillmeier, [Jonathan Farbowitz](https://github.com/jfarbowitz), Rebecca Fraimow, Samuel Gutterman, Kelly Haydon, [Reto Kromer](https://github.com/retokromer), Nicole Martin, [Katherine Frances Nagels](https://github.com/kfrn), [Kieran O'Leary](https://github.com/kieranjol), Catriona Schlosser, Ben Turkus
[Association of Moving Image Archivists & Digital Library Federation Hack Day 2015](http://wiki.curatecamp.org/index.php/Association_of_Moving_Image_Archivists_%26_Digital_Library_Federation_Hack_Day_2015)
[Ashley Blewer](https://github.com/ablwr), [Eddy Colloton](https://github.com/eddycolloton), Rebecca Dillmeier, [Jonathan Farbowitz](https://github.com/jfarbowitz), [Rebecca Fraimow](https://github.com/rfraimow), Samuel Gutterman, [Kelly Haydon](https://github.com/kellyhaydon), [Reto Kromer](https://github.com/retokromer), Nicole Martin, [Katherine Frances Nagels](https://github.com/kfrn), [Kieran O'Leary](https://github.com/kieranjol), Catriona Schlosser, [Ben Turkus](https://github.com/bturkus)
## Sister projects
[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.
## 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>.

37
check_framemd5.sh → scripts/check_audio_framemd5.sh Normal file → Executable file
View File

@@ -1,19 +1,19 @@
#!/usr/bin/env bash
SCRIPT=$(basename "${0}")
VERSION='2016-12-31'
VERSION='2017-07-08'
AUTHOR='ffmprovisr'
RED='\033[1;31m'
BLUE='\033[1;34m'
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}"
exit 1
fi
_output_prompt(){
cat <<EOF
Usage: ${SCRIPT} [-h] | [ -i <av_file> -m <md5_file> ]
Usage: ${SCRIPT} -i <av_file> -m <md5_file> | -h
EOF
exit 1
}
@@ -21,18 +21,16 @@ EOF
_output_help(){
cat <<EOF
Syntax:
${SCRIPT}
Prompts a short help message.
${SCRIPT} -h
This help.
${SCRIPT} -i <av_file> -m <md5_file>
Pass to the script the audio-visual file and the corresponding MD5
file to check.
${SCRIPT} -h
This help.
Dependency:
ffmpeg
About:
Version: ${VERSION}
Website: https://github.com/amiaopensource/ffmprovisr/blob/gh-pages/check_framemd5.sh
Website: https://github.com/amiaopensource/ffmprovisr/blob/gh-pages/scripts/check_audio_framemd5.sh
EOF
exit 0
}
@@ -40,11 +38,11 @@ EOF
unset input_file
unset input_hash
while getopts ":hi:m:" opt; do
while getopts ":i:m:h" opt; do
case "${opt}" in
i) input_file=${OPTARG} ;;
m) input_hash=${OPTARG} ;;
h) _output_help ;;
i) input_file=$OPTARG ;;
m) input_hash=$OPTARG ;;
:) echo -e "${RED}Error: option -${OPTARG} requires an argument${NC}" ; _output_prompt ;;
*) echo -e "${RED}Error: bad option -${OPTARG}${NC}" ; _output_prompt ;;
esac
@@ -54,21 +52,24 @@ done
echo -e "${BLUE}Please wait...${NC}"
unset md5_tmp
if [[ $OSTYPE = "cygwin" ]]; then
md5_tmp=""${USERPROFILE}/$(basename ${input_hash}).tmp""
md5_tmp="${USERPROFILE}/$(basename "${input_hash}").tmp"
else
md5_tmp="${HOME}/$(basename ${input_hash}).tmp"
md5_tmp="${HOME}/$(basename "${input_hash}").tmp"
fi
$(ffmpeg -i ${input_file} -loglevel 0 -f framemd5 -an ${md5_tmp})
# Find audio frame size for hash calculation
unset sample_rate
sample_rate=$(grep -v '^#' "${input_hash}" | head -n 1 | tr -d ' ' | cut -d',' -f4)
ffmpeg -i "${input_file}" -loglevel 0 -af "asetnsamples=n='$sample_rate'" -f framemd5 -vn "${md5_tmp}"
[[ ! -f ${md5_tmp} ]] && { echo -e "${RED}Error: '${input_file}' is not a valid audio-visual file.${NC}" ; _output_prompt ; }
unset old_file
unset tmp_file
old_file=$(grep -v '^#' ${input_hash})
tmp_file=$(grep -v '^#' ${md5_tmp})
old_file=$(grep -v '^#' "${input_hash}")
tmp_file=$(grep -v '^#' "${md5_tmp}")
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
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}"
rm "${md5_tmp}"
fi

View File

@@ -0,0 +1,72 @@
#!/usr/bin/env bash
SCRIPT=$(basename "${0}")
VERSION='2017-07-08'
AUTHOR='ffmprovisr'
RED='\033[1;31m'
BLUE='\033[1;34m'
NC='\033[0m'
if [[ "${OSTYPE}" = "cygwin" ]] || [ ! $(which diff) ]; then
echo -e "${RED}Error: 'diff' is not installed by default. Please install 'diffutils' from Cygwin.${NC}"
exit 1
fi
_output_prompt(){
cat <<EOF
Usage: ${SCRIPT} -i <av_file> -m <md5_file> | -h
EOF
exit 1
}
_output_help(){
cat <<EOF
Syntax:
${SCRIPT} -i <av_file> -m <md5_file>
Pass to the script the audio-visual file and the corresponding MD5
file to check.
${SCRIPT} -h
This help.
Dependency:
ffmpeg
About:
Version: ${VERSION}
Website: https://github.com/amiaopensource/ffmprovisr/blob/gh-pages/scripts/check_video_framemd5.sh
EOF
exit 0
}
unset input_file
unset input_hash
while getopts ":i:m:h" opt; do
case "${opt}" in
i) input_file=${OPTARG} ;;
m) input_hash=${OPTARG} ;;
h) _output_help ;;
:) echo -e "${RED}Error: option -${OPTARG} requires an argument${NC}" ; _output_prompt ;;
*) echo -e "${RED}Error: bad option -${OPTARG}${NC}" ; _output_prompt ;;
esac
done
[[ -z "${#}" || ! ${input_file} || ! ${input_hash} ]] && _output_prompt
echo -e "${BLUE}Please wait...${NC}"
unset md5_tmp
if [[ "${OSTYPE}" = "cygwin" ]]; then
md5_tmp="${USERPROFILE}/$(basename "${input_hash}").tmp"
else
md5_tmp="${HOME}/$(basename "${input_hash}").tmp"
fi
ffmpeg -i "${input_file}" -loglevel 0 -f framemd5 -an "${md5_tmp}"
[[ ! -f "${md5_tmp}" ]] && { echo -e "${RED}Error: '${input_file}' is not a valid audio-visual file.${NC}" ; _output_prompt ; }
unset old_file
unset tmp_file
old_file=$(grep -v '^#' "${input_hash}")
tmp_file=$(grep -v '^#' "${md5_tmp}")
if [[ "${old_file}" = "${tmp_file}" ]]; then
echo -e "${BLUE}'$(basename "${input_file}")' matches '$(basename "${input_hash}")'${NC}"
rm "${md5_tmp}"
else
echo -e "${RED}The following differences were detected between '$(basename "${input_file}")' and '$(basename "${input_hash}")':${NC}"
diff "${input_hash}" "${md5_tmp}"
rm "${md5_tmp}"
fi

25
scripts/ffmprovisr Executable file
View File

@@ -0,0 +1,25 @@
#!/usr/bin/env bash
# This allows to open the online version of the ffmprovisr, when the computer is
# connected to the Web, and the local version otherwise.
if [[ "$(uname -s)" = "Darwin" ]] ; then
default_browser=$(plutil -convert json ~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist -r -o - | grep https -b1 | tail -n1 | cut -d'"' -f4)
if ping -c 1 amiaopensource.github.io >/dev/null 2>&1 ; then
ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/'
else
ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
fi
if [ -n "${default_browser}" ] ; then
open -b "${default_browser}" "${ffmprovisr_path}"
else
open "${ffmprovisr_path}"
fi
elif [[ "$(uname -s)" = "Linux" ]] ; then
if ping -c 1 amiaopensource.github.io >/dev/null 2>&1 ; then
ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/'
else
ffmprovisr_path=$(find ~/.linuxbrew/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
fi
xdg-open "${ffmprovisr_path}"
fi