Compare commits

...

121 Commits

Author SHA1 Message Date
Katherine Frances Nagels
839d50111e Merge pull request #393 from amiaopensource/kn/remove-unnecessary-command
Remove MKV → MP4 command
2019-08-01 07:32:51 +12:00
Reto Kromer
a6dd9c203c update recipe list 2019-07-31 16:50:39 +02:00
kfrn
3402d968a7 Remove MKV → MP4 command
Addressing user feedback received by Andrew Weaver (@privatezero).

When the source file is ffv1 in MKV, the command will fail on the `-c:v copy` flag, since MP4s can't house ffv1.
Therefore, the command is misleading, and has limited value from an archival perspective.

We already have a basic rewrap command (which includes a note addressing the possibility of stream/wrapper incompability), so I think our bases are covered with that.

See https://github.com/amiaopensource/ffmprovisr/issues/392
2019-07-31 23:37:53 +12:00
Reto Kromer
283756f8cf Merge pull request #390 (Revert "update recipe list") 2019-07-19 19:34:49 +02:00
Ashley
d28ae29f5c Merge pull request #389 from amiaopensource/revert-387-issue-383
Revert "Adds mapping all audio to access script"
2019-07-19 13:33:24 -04:00
Reto Kromer
2be5576012 Revert "update recipe list" 2019-07-19 19:25:01 +02:00
Ashley
43c98527a7 Revert "Adds mapping all audio to access script" 2019-07-19 13:11:06 -04:00
Reto Kromer
164d757309 Merge pull request #388 (update recipe list) 2019-07-17 19:14:07 +02:00
Ashley
2a87a120c3 Merge pull request #387 from amiaopensource/issue-383
Adds mapping all audio to access script
2019-07-17 12:42:07 -04:00
Ashley
fbe5f216a7 patch linebreaks 2019-07-17 12:40:50 -04:00
Reto Kromer
f93922a9c3 update recipe list 2019-07-17 18:34:00 +02:00
Ashley Blewer
e06a76f559 Adds mapping all audio to access script 2019-07-17 12:08:14 -04:00
Ashley
0279c1d842 Merge pull request #385 from amiaopensource/fix-intrapage-anchor-bug
Fix intrapage anchor bug
2019-07-15 11:49:40 -04:00
Ashley Blewer
7e72b1c254 Links updates within categories #384 2019-07-13 21:38:38 -04:00
Ashley Blewer
07fe8bf966 Move repeated JS into functions 2019-07-13 18:41:44 -04:00
Ashley Blewer
c32a7f44ad Supports intralinking for recipes 2019-07-13 17:52:49 -04:00
Ashley
ea2c29a38c Merge pull request #382 from mipops/gh-pages
Add Micropops to Sister Projects
2019-07-02 18:26:14 -04:00
A. Lavigne
d624a3fc11 Add Micropops to Sister Projects 2019-07-02 15:08:23 -07:00
Ashley
ade2615da3 Merge pull request #378 from amiaopensource/lowercase_hex
use always lowercase for hex
2019-03-24 18:20:31 +01:00
Ashley
72545d5c31 Merge pull request #376 from amiaopensource/add_recipe_list
add recipe list
2019-03-24 18:19:51 +01:00
Reto Kromer
c6215c1953 use always lowercase for hex 2019-03-24 11:25:02 +01:00
Reto Kromer
abfb9ea982 shorter one-liner 2019-03-24 09:43:33 +01:00
Reto Kromer
02beb6ab1d update link 2019-03-24 09:40:33 +01:00
Reto Kromer
b552ec4a31 update ReadMe 2019-03-24 09:39:47 +01:00
Reto Kromer
c26c0d57ea Create get_recipe_list 2019-03-24 09:36:03 +01:00
Reto Kromer
d023bf7500 Merge pull request #375 (delete period) 2019-03-23 19:52:14 +01:00
Reto Kromer
5b795e53dd add recipe list 2019-03-23 17:35:54 +01:00
Reto Kromer
806fd0c49b delete period 2019-03-23 17:34:21 +01:00
Reto Kromer
8a2cdbc088 Merge pull request #373 (unify syntax of recipe with syntax of the index) 2019-02-28 17:45:43 +01:00
Reto Kromer
9df208345c unify syntax of recipe with syntax of the index 2019-02-28 16:30:19 +01:00
Ashley
19e38145dd Merge pull request #372 from amiaopensource/h264
complete information
2019-02-18 10:25:39 -05:00
Reto Kromer
7453e500df complete information 2019-02-18 07:23:35 +01:00
Andrew Weaver
8ceb0f4fc6 Merge pull request #370 from amiaopensource/update-contributors
Update contributors
2019-02-11 18:48:52 -08:00
Andrew Weaver
d95c2e6aa1 update date 2019-02-11 16:21:25 -08:00
Andrew Weaver
ef82e43fb8 update contributors
add @b00giehead and @mgiraldo to README

fix spacing
2019-02-11 16:21:24 -08:00
Reto Kromer
445bd681a0 Merge pull request #369 (update installation instructions) 2019-02-07 15:44:06 +01:00
Reto Kromer
c01f821b59 update installation instructions 2019-02-07 09:38:16 +01:00
Andrew Weaver
47575a57ed Merge pull request #367 from amiaopensource/silence-trim
Silence trim
2019-02-03 19:06:48 -08:00
Weaver
2d6bf9159f change wording 2019-02-01 15:53:36 -08:00
Weaver
60d452a431 wording 2019-02-01 10:03:24 -08:00
Andrew Weaver
dbd7687fb4 rough start to end trim
little less rough

more silence
2019-01-31 19:27:44 -08:00
Andrew Weaver
193d5f30fb start trim start silence
update id
2019-01-28 16:58:12 -08:00
Andrew Weaver
7ad290734e remove video specific language 2019-01-23 16:41:43 -08:00
Andrew Weaver
9686a76ed6 change to match ToC 2019-01-23 16:38:13 -08:00
Reto Kromer
2dee34d429 uniform URLs (#364) 2019-01-17 15:11:25 +01:00
Ashley
6daace9149 Merge pull request #363 from b00giehead/patch-2
add "synchronize video and audio streams" recipe
2019-01-16 19:00:14 -05:00
Joanna White
01a7404ece Update index.html 2019-01-16 13:04:02 +00:00
Ashley
1062f8cf36 Merge pull request #362 from amiaopensource/add-xstack
Add xstack
2019-01-03 11:29:18 -05:00
Andrew Weaver
65161a567e fixes 2019-01-02 23:13:36 -08:00
Andrew Weaver
c78323d8e7 clarifications 2019-01-02 19:23:18 -08:00
Andrew Weaver
afac0cda74 start xstack 2018-12-21 15:39:49 -08:00
Reto Kromer
cc188eaf07 Merge pull request #361 (update info for Windows)
update info for Windows
2018-12-21 21:21:07 +01:00
Reto Kromer
2f2ba5e6f1 update info for Windows 2018-12-21 19:55:33 +01:00
Reto Kromer
c6021ea19b Merge pull request #360 (remove +ilme flag) 2018-12-21 18:40:35 +01:00
Reto Kromer
7a4ae9d2ea remove +ilme flag 2018-12-21 15:21:31 +01:00
Ashley
6b99821230 Merge pull request #359 from amiaopensource/US-English
uniform to US English
2018-12-20 11:33:11 -05:00
Reto Kromer
ed8c09daa6 uniform to US English 2018-12-20 17:28:25 +01:00
Ashley
c0181f51f8 Merge pull request #358 from amiaopensource/prores
update ProRes name
2018-12-20 10:46:06 -05:00
Reto Kromer
1aeb95468d update ProRes name 2018-12-20 16:35:29 +01:00
Ashley
a3005e42d3 Merge pull request #356 from b00giehead/patch-1
Update to index.html
2018-12-20 09:55:11 -05:00
Joanna White
3934d85f54 Update to index.html
Addition of 'Change colour to black and white' in Change Video Properties
2018-12-20 14:42:33 +00:00
Andrew Weaver
f771ff3816 Merge pull request #354 from amiaopensource/weaver-branch
CDDA Emphasis
2018-11-15 09:45:47 -08:00
Weaver
db219e201c cleaning 2018-11-15 09:08:04 -08:00
Andrew Weaver
a727aa7d5c check for cd emph 2018-11-14 14:54:17 -08:00
Andrew Weaver
5f7a01e920 cd de-emph 2018-11-14 14:02:28 -08:00
Ashley
76a93b7211 Merge pull request #353 from amiaopensource/ab/add-get-checksum-on-streams
Add get checksum on streams
2018-11-09 11:52:13 -05:00
Ashley Blewer
e431fbb3c5 Add space between Note and the note in Create stream md5s 2018-11-09 08:47:18 -05:00
Ashley Blewer
14e66c13db Add command for getting checksum from stream 2018-11-09 08:46:56 -05:00
Ashley
2d14e3266b Merge pull request #350 from amiaopensource/ablwr-patch-1
rm "optionally" for Matroska-specific description
2018-11-07 13:36:36 -05:00
Ashley
7615c872e4 rm "optionally" for Matroska-specific description 2018-11-07 13:30:35 -05:00
Andrew Weaver
de039c667b Merge pull request #349 from amiaopensource/more-cdda
More cdda
2018-10-29 13:55:10 -07:00
Andrew Weaver
b2233fe170 quotes - thank you Reto! 2018-10-28 12:40:57 -07:00
Andrew Weaver
6d74c84cc5 remove rogue closing tag 2018-10-26 08:39:07 -07:00
Andrew Weaver
4caca0a698 add note about XLD GUI 2018-10-25 16:58:37 -07:00
Andrew Weaver
6ec07fd3dd add cdparanoia 2018-10-25 16:37:20 -07:00
Weaver
5e059adfb2 suggestions
simpler command/order
2018-10-17 14:00:45 -07:00
Andrew Weaver
06501bc8bd start offset section 2018-10-15 20:44:41 -07:00
Andrew Weaver
ac4a14c54f add notes to cdda2wav 2018-10-11 16:40:28 -07:00
Ashley
dbf59f919a Merge pull request #347 from bturkus/patch-1
small codec default addition
2018-10-02 11:41:08 -04:00
bturkus
4e75f3f540 small codec default addition
for @ablwr. I did something! MXF
2018-10-02 11:39:05 -04:00
Ashley
387876676d Merge pull request #346 from amiaopensource/cdda-to-toc
add CDDA to ToC #340
2018-10-02 09:25:02 -04:00
Ashley
05e2775d49 close div 2018-10-01 11:44:23 -04:00
Ashley
ba1d2757c6 add CDDA to ToC #340 2018-10-01 10:19:13 -04:00
Ashley
150faff29d Merge pull request #345 from amiaopensource/cdda
add cdda2wav
2018-09-30 12:42:45 -04:00
Andrew Weaver
ff1871273f typos! 2018-09-29 11:21:43 -07:00
Andrew Weaver
36da6d3e79 add cdda2wav 2018-09-28 16:35:11 -07:00
Reto Kromer
d00d9f91de Merge pull request #344 (delete not needed tags) 2018-09-27 22:19:39 +02:00
Reto Kromer
a948b1519b delete not needed tags 2018-09-27 21:49:56 +02:00
Andrew Weaver
33d3a4d10d Merge pull request #343 from amiaopensource/add-div
add closing tag
2018-09-27 11:57:51 -07:00
Weaver
b88cbbd248 add closing tag 2018-09-27 11:24:23 -07:00
Ashley
982a1a6525 Merge pull request #341 from amiaopensource/fix_typo
fix typos
2018-09-27 11:26:50 -04:00
Reto Kromer
ec5e7621b5 other typo 2018-09-27 12:55:13 +02:00
Reto Kromer
6a0a70d1d5 fix typo 2018-09-27 12:46:22 +02:00
Ashley
6b24940df1 Merge pull request #339 from amiaopensource/weaver
Add fast start note
2018-09-19 17:11:04 -04:00
Weaver
e08ec96fd9 add note for +faststart 2018-09-19 13:57:48 -07:00
Weaver
42cacd8414 change to reflect aac transcode 2018-09-19 13:43:50 -07:00
Ashley
d6ab2d63bb Merge pull request #338 from amiaopensource/weaver-branch
Weaver branch
2018-08-30 22:52:24 -04:00
Andrew Weaver
c3ff180189 add to ToC 2018-08-29 17:35:06 -07:00
Andrew Weaver
ac22e3e361 fix tag/add link 2018-08-29 17:25:30 -07:00
Andrew Weaver
963e0591e5 add flac tool 2018-08-29 15:25:28 -07:00
Andrew Weaver
1bf462820e codec defaults section 2018-08-29 12:40:34 -07:00
Ashley
98fe0c5b67 Merge pull request #337 from amiaopensource/modify_speed_recipe
add `-r` in modify speed recipe
2018-07-28 15:49:53 -04:00
Reto Kromer
8ee96228bc Merge pull request #336 (unify style) 2018-07-28 11:27:00 +02:00
Reto Kromer
738ceabfe6 fix error 2018-07-28 11:22:47 +02:00
Reto Kromer
52dd44778f add -r in modify speed recipe 2018-07-28 10:28:47 +02:00
Reto Kromer
2f7b390f9b unify style 2018-07-28 10:01:02 +02:00
Katherine Frances Nagels
d5e13458eb Merge pull request #335 from amiaopensource/tail_spaces
tail spaces
2018-07-28 17:21:15 +12:00
Reto Kromer
493489517f tail spaces 2018-07-28 06:48:16 +02:00
Katherine Frances Nagels
71ae32541f Merge pull request #332 from mgiraldo/patch-2
changed italics and bold
2018-07-28 11:23:38 +12:00
Katherine Frances Nagels
e7b18b8fd4 Merge branch 'gh-pages' into patch-2 2018-07-28 11:20:55 +12:00
Reto Kromer
dde92c2b4e Merge pull request #333 (one empty line as separator) 2018-07-27 15:08:23 +02:00
Reto Kromer
05eb182352 Merge pull request #334 (fix title) 2018-07-27 13:04:33 +02:00
Reto Kromer
c9660d3c7b fix title (Transcode to Ogg/Theora) 2018-07-27 11:18:23 +02:00
Reto Kromer
7398b7f25e one empty line as separator 2018-07-27 07:09:03 +02:00
Mauricio Giraldo
a6bb255817 changed italics and bold
to use proper semantic tags 🧐
2018-07-26 22:35:55 -04:00
Ashley
67b34592e4 Merge pull request #331 from mgiraldo/patch-1
added Ogg recipe
2018-07-26 21:44:03 -04:00
Mauricio Giraldo
04037bda1e added Ogg recipe 2018-07-26 16:03:46 -04:00
Ashley
dc633dfa8d Merge pull request #330 from amiaopensource/update_version_CoC
update version of CoC
2018-07-13 11:28:06 -04:00
Reto Kromer
1b890fd630 update version of CoC 2018-07-13 09:37:17 +02:00
Reto Kromer
0d12f57720 Merge pull request #328 (update maintainers) 2018-06-28 21:38:25 +02:00
Reto Kromer
0e2e90e72b update maintainers 2018-06-28 20:12:01 +02:00
6 changed files with 989 additions and 460 deletions

View File

@@ -43,8 +43,8 @@ incident.
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 1.3.0, available at
[http://contributor-covenant.org/version/1/3/0/][version]
version 1.4.1, available at
[https://www.contributor-covenant.org/version/1/4/code-of-conduct.html][version]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/3/0/
[homepage]: https://www.contributor-covenant.org/
[version]: https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

1156
index.html

File diff suppressed because it is too large Load Diff

View File

@@ -1,23 +1,38 @@
$(document).ready(function() {
// open recipe window if a hash is found in URL
if(window.location.hash) {
id = window.location.hash
console.log(id.substring(1))
function appendLink(id) {
$(id).next('div').find('.link').empty();
$(id).next('div').find('.link').append("<small>Link to this command: <a href='https://amiaopensource.github.io/ffmprovisr/index.html" + id + "'>https://amiaopensource.github.io/ffmprovisr/index.html" + id + "</a></small>");
}
function moveToRecipe(id) {
document.getElementById(id.substring(1)).checked = true;
$('html, body').animate({ scrollTop: $(id).offset().top}, 1000);
$(id).closest('div').find('.link').empty();
$(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>");
$('html, body').animate({ scrollTop: $(id).offset().top }, 1000);
appendLink(id)
}
// open recipe window if a hash is found in URL
if (window.location.hash) {
id = window.location.hash
moveToRecipe(id)
}
// add hash URL when recipe is opened
$('label[class="recipe"]').on("click", function(){
id = $(this).attr("for");
window.location.hash = ('#' + id)
$('#' + id).closest('div').find('.link').empty();
$('#' + 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>");
});
appendLink('#' + id)
})
// open recipe when clicked
$('a').on("click", function(){
intralink = $(this).attr("href")
if (intralink[0] == "#") {
moveToRecipe(intralink)
}
})
// open all windows if button is clicked
$('#open-all').on("click", function(){
$('input[type=checkbox]').each(function(){
this.checked = !this.checked;

View File

@@ -12,15 +12,36 @@ To facilitate better understanding of FFmpeg through collaborative sharing of us
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:
You can also install the latest [release](https://github.com/amiaopensource/ffmprovisr/releases) on your computer with the two commands:
```
brew install amiaopensource/amiaos/ffmprovisr
brew tap amiaopensource/amiaos
brew install 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.
This works currently under macOS, Linux and the Linux apps on Windows (Ubuntu and Debian tested). On classic Windows you can install the last [release](https://github.com/amiaopensource/ffmprovisr/releases) manually and the open `index.html` in a browser.
#### Parseable list of the commands
A list of all recipes in an easily parseable [ASCII text](recipes.txt) format is provided as well. It contains for each recipe its title and command in the following format:
```
# title of recipe 1
ffmpeg command 1
# title of recipe 2
ffmpeg command 2
...
# title of recipe n-1
ffmpeg command n-1
# title of recipe n
ffmpeg command n
```
The used [one-liner](scripts/get_recipe_list) is in the `scripts` folder.
## How do I contribute?
@@ -44,7 +65,7 @@ You can read our contributor code of conduct [here](https://github.com/amiaopens
## Maintainers
[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)
[Ashley Blewer](https://github.com/ablwr), [Katherine Frances Nagels](https://github.com/kfrn), [Kieran O'Leary](https://github.com/kieranjol) and [Andrew Weaver](https://github.com/privatezero)
## Contributors
* Gathered using [octohatrack](https://github.com/LABHR/octohatrack)
@@ -52,6 +73,7 @@ You can read our contributor code of conduct [here](https://github.com/amiaopens
*Code Contributors*:
ablwr (Ashley)
bastibeckr (Basti Becker)
b00giehead (Joanna White)
bturkus
dericed (Dave Rice)
edsu (Ed Summers)
@@ -61,6 +83,7 @@ kfrn (Katherine Frances Nagels)
kgrons (Kathryn Gronsbell)
kieranjol (Kieran O'Leary)
llogan (Lou)
mgiraldo (Mauricio Giraldo)
pjotrek-b (Peter B.)
privatezero (Andrew Weaver)
retokromer (Reto Kromer)
@@ -70,6 +93,7 @@ rfraimow
ablwr (Ashley)
audiovisualopen
bastibeckr (Basti Becker)
b00giehead (Joanna White)
brainwane (Sumana Harihareswara)
bturkus
dericed (Dave Rice)
@@ -88,6 +112,7 @@ kfrn (Katherine Frances Nagels)
kgrons (Kathryn Gronsbell)
kieranjol (Kieran O'Leary)
llogan (Lou)
mgiraldo (Mauricio Giraldo)
mulvya
nkrabben (Nick Krabbenhoeft)
pjotrek-b (Peter B.)
@@ -99,9 +124,9 @@ ross-spencer (Ross Spencer)
todrobbins (Tod Robbins)
Repo: amiaopensource/ffmprovisr
Code Contributors: 15
All Contributors: 30
Last updated: 2018-04-22 (4:2:2 Day)
Code Contributors: 17
All Contributors: 32
Last updated: 2019-02-11
## AVHack Team

210
recipes.txt Normal file
View File

@@ -0,0 +1,210 @@
# Basic rewrap command
ffmpeg -i input_file.ext -c copy -map 0 output_file.ext
# Rewrap DV video to .dv file
ffmpeg -i input_file -f rawvideo -c:v copy output_file.dv
# Transcode to deinterlaced Apple ProRes LT
ffmpeg -i input_file -c:v prores -profile:v 1 -vf yadif -c:a pcm_s16le output_file.mov
# Transcode to an H.264 access file
ffmpeg -i input_file -c:v libx264 -pix_fmt yuv420p -c:a aac output_file
# Transcode from DCP to an H.264 access file
ffmpeg -i input_video_file.mxf -i input_audio_file.mxf -c:v libx264 -pix_fmt yuv420p -c:a aac output_file.mp4
# Transcode your file with the FFV1 Version 3 Codec in a Matroska container
ffmpeg -i input_file -map 0 -dn -c:v ffv1 -level 3 -g 1 -slicecrc 1 -slices 16 -c:a copy output_file.mkv -f framemd5 -an framemd5_output_file
# Convert DVD to H.264
ffmpeg -i concat:input_file_1\|input_file_2\|input_file_3 -c:v libx264 -c:a aac output_file.mp4
# Transcode to an H.265/HEVC MP4
ffmpeg -i input_file -c:v libx265 -pix_fmt yuv420p -c:a copy output_file
# Transcode to an Ogg Theora
ffmpeg -i input_file -acodec libvorbis -b:v 690k output_file
# Convert WAV to MP3
ffmpeg -i input_file.wav -write_id3v1 1 -id3v2_version 3 -dither_method rectangular -out_sample_rate 48k -qscale:a 1 output_file.mp3
# Generate two access MP3s (with and without copyright).
ffmpeg -i input_file -i input_file_to_append -filter_complex "[0:a:0]asplit=2[a][b];[b]afifo[bb];[1:a:0][bb]concat=n=2:v=0:a=1[concatout]" -map "[a]" -codec:a libmp3lame -dither_method modified_e_weighted -qscale:a 2 output_file.mp3 -map "[concatout]" -codec:a libmp3lame -dither_method modified_e_weighted -qscale:a 2 output_file_appended.mp3
# Convert WAV to AAC/MP4
ffmpeg -i input_file.wav -c:a aac -b:a 128k -dither_method rectangular -ar 44100 output_file.mp4
# Transform 4:3 aspect ratio into 16:9 with pillarbox
ffmpeg -i input_file -filter:v "pad=ih*16/9:ih:(ow-iw)/2:(oh-ih)/2" -c:a copy output_file
# Transform 16:9 aspect ratio video into 4:3 with letterbox
ffmpeg -i input_file -filter:v "pad=iw:iw*3/4:(ow-iw)/2:(oh-ih)/2" -c:a copy output_file
# Flip video image
ffmpeg -i input_file -filter:v "hflip,vflip" -c:a copy output_file
# Transform SD to HD with pillarbox
ffmpeg -i input_file -filter:v "colormatrix=bt601:bt709, scale=1440:1080:flags=lanczos, pad=1920:1080:240:0" -c:a copy output_file
# Change display aspect ratio without re-encoding
ffmpeg -i input_file -c:v copy -aspect 4:3 output_file
# Convert colorspace of video
ffmpeg -i input_file -c:v libx264 -vf colormatrix=src:dst output_file
# Modify image and sound speed
ffmpeg -i input_file -r output_fps -filter_complex "[0:v]setpts=input_fps/output_fps*PTS[v]; [0:a]atempo=output_fps/input_fps[a]" -map "[v]" -map "[a]" output_file
# Synchronize video and audio streams
ffmpeg -i input_file -itsoffset 0.125 -i input_file -map 1:v -map 0:a -c copy output_file
# Clarify stream properties
ffprobe input_file -show_streams
# Crop video
ffmpeg -i input_file -vf "crop=width:height" output_file
# Change video color to black and white
ffmpeg -i input_file -filter_complex hue=s=0 -c:a copy output_file
# Extract audio without loss from an AV file
ffmpeg -i input_file -c:a copy -vn output_file
# Combine audio tracks
ffmpeg -i input_file -filter_complex "[0:a:0][0:a:1]amerge[out]" -map 0:v -map "[out]" -c:v copy -shortest output_file
# Inverses the audio phase of the second channel
ffmpeg -i input_file -af pan="stereo|c0=c0|c1=-1*c1" output_file
# Calculate Loudness Levels
ffmpeg -i input_file -af loudnorm=print_format=json -f null -
# RIAA Equalization
ffmpeg -i input_file -af aemphasis=type=riaa output_file
# Reverse CD Pre-Emphasis
ffmpeg -i input_file -af aemphasis=type=cd output_file
# One Pass Loudness Normalization
ffmpeg -i input_file -af loudnorm=dual_mono=true -ar 48k output_file
# Two Pass Loudness Normalization
ffmpeg -i input_file -af loudnorm=dual_mono=true:measured_I=input_i:measured_TP=input_tp:measured_LRA=input_lra:measured_thresh=input_thresh:offset=target_offset:linear=true -ar 48k output_file
# Fix A/V sync issues by resampling audio
ffmpeg -i input_file -c:v copy -c:a pcm_s16le -af "aresample=async=1000" output_file
# Join (concatenate) two or more files of the same type
ffmpeg -f concat -i mylist.txt -c copy output_file
# Join (concatenate) two or more files of different types
ffmpeg -i input_1.avi -i input_2.mp4 -filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0]concat=n=2:v=1:a=1[video_out][audio_out]" -map "[video_out]" -map "[audio_out]" output_file
# Split one file into several smaller segments
ffmpeg -i input_file -c copy -map 0 -f segment -segment_time 60 -reset_timestamps 1 output_file-%03d.mkv
# Trim file
ffmpeg -i input_file -ss 00:02:00 -to 00:55:00 -c copy -map 0 output_file
# Create an excerpt, starting from the beginning of the file
ffmpeg -i input_file -t 5 -c copy -map 0 output_file
# Create a new file with the first five seconds trimmed off the original
ffmpeg -i input_file -ss 5 -c copy -map 0 output_file
# Create a new file with the final five seconds of the original
ffmpeg -sseof -5 -i input_file -c copy -map 0 output_file
# Trim silence from beginning of an audio file
ffmpeg -i input_file -af silenceremove=start_threshold=-57dB:start_duration=1:start_periods=1 -c:a your_codec_choice -ar your_sample_rate_choice output_file
# Trim silence from the end of an audio file
ffmpeg -i input_file -af areverse,silenceremove=start_threshold=-57dB:start_duration=1:start_periods=1,areverse -c:a your_codec_choice -ar your_sample_rate_choice output_file
# Upscaled, pillar-boxed HD H.264 access files from SD NTSC source
ffmpeg -i input_file -c:v libx264 -filter:v "yadif, scale=1440:1080:flags=lanczos, pad=1920:1080:(ow-iw)/2:(oh-ih)/2, format=yuv420p" output_file
# Deinterlace video
ffmpeg -i input_file -c:v libx264 -vf "yadif,format=yuv420p" output_file
# Inverse telecine
ffmpeg -i input_file -c:v libx264 -vf "fieldmatch,yadif,decimate" output_file
# Set field order for interlaced video
ffmpeg -i input_file -c:v video_codec -filter:v setfield=tff output_file
# Identify interlacement patterns in a video file
ffmpeg -i input file -filter:v idet -f null -
# Create opaque centered text watermark
ffmpeg -i input_file -vf drawtext="fontfile=font_path:fontsize=font_size:text=watermark_text:fontcolor=font_color:alpha=0.4:x=(w-text_w)/2:y=(h-text_h)/2" output_file
# Overlay image watermark on video
ffmpeg -i input_video file -i input_image_file -filter_complex overlay=main_w-overlay_w-5:5 output_file
# Burn in timecode
ffmpeg -i input_file -vf drawtext="fontfile=font_path:fontsize=font_size:timecode=starting_timecode:fontcolor=font_colour:box=1:boxcolor=box_colour:rate=timecode_rate:x=(w-text_w)/2:y=h/1.2" output_file
Embed subtitles
ffmpeg -i input_file -i subtitles_file -c copy -c:s mov_text output_file
# Export one thumbnail per video file
ffmpeg -i input_file -ss 00:00:20 -vframes 1 thumb.png
# Export many thumbnails per video file
ffmpeg -i input_file -vf fps=1/60 out%d.png
# Create GIF from still images
ffmpeg -f image2 -framerate 9 -pattern_type glob -i "input_image_*.jpg" -vf scale=250x250 output_file.gif
# Create GIF from a video
ffmpeg -ss HH:MM:SS -i input_file -filter_complex "fps=10,scale=500:-1:flags=lanczos,palettegen" -t 3 palette.png
ffmpeg -ss HH:MM:SS -i input_file -i palette.png -filter_complex "[0:v]fps=10, scale=500:-1:flags=lanczos[v], [v][1:v]paletteuse" -t 3 -loop 6 output_file
# Transcode an image sequence into uncompressed 10-bit video
ffmpeg -f image2 -framerate 24 -i input_file_%06d.ext -c:v v210 output_file
# Create video from image and audio
ffmpeg -r 1 -loop 1 -i image_file -i audio_file -acodec copy -shortest -vf scale=1280:720 output_file
# Audio Bitscope
ffplay -f lavfi "amovie=input_file, asplit=2[out1][a], [a]abitscope=colors=purple|yellow[out0]"
# Play a graphical output showing decibel levels of an input file
ffplay -f lavfi "amovie='input.mp3', astats=metadata=1:reset=1, adrawgraph=lavfi.astats.Overall.Peak_level:max=0:min=-30.0:size=700x256:bg=Black[out]"
# Identify pixels out of broadcast range
ffplay -f lavfi "movie='input.mp4', signalstats=out=brng:color=cyan[out]"
# Vectorscope from video to screen
ffplay input_file -vf "split=2[m][v], [v]vectorscope=b=0.7:m=color3:g=green[v], [m][v]overlay=x=W-w:y=H-h"
# Side by Side Videos/Temporal Difference Filter
ffmpeg -i input01 -i input02 -filter_complex "[0:v:0]tblend=all_mode=difference128[a];[1:v:0]tblend=all_mode=difference128[b];[a][b]hstack[out]" -map [out] -f nut -c:v rawvideo - | ffplay -
# Use xstack to arrange output layout of multiple video sources
ffplay -f lavfi -i testsrc -vf "split=3[a][b][c],[a][b][c]xstack=inputs=3:layout=0_0|0_h0|0_h0+h1[out]"
# Pull specs from video file
ffprobe -i input_file -show_format -show_streams -show_data -print_format xml
# Strip metadata
ffmpeg -i input_file -map_metadata -1 -c:v copy -c:a copy output_file
# Batch processing (Mac/Linux)
for file in *.mxf; do ffmpeg -i "$file" -map 0 -c copy "${file%.mxf}.mov"; done
# Check decoder errors
ffmpeg -i input_file -f null -
# Check FFV1 fixity
ffmpeg -report -i input_file -f null -
# Create MD5 checksums (video frames)
ffmpeg -i input_file -f framemd5 -an output_file
# Create MD5 checksums (audio samples)
ffmpeg -i input_file -af "asetnsamples=n=48000" -f framemd5 -vn output_file
# Create MD5 checksum(s) for A/V stream data only
ffmpeg -i input_file -map 0:v:0 -c:v copy -f md5 output_file_1 -map 0:a:0 -c:a copy -f md5 output_file_2
# Get checksum for video/audio stream
ffmpeg -loglevel error -i input_file -map 0:v:0 -f hash -hash md5 -
# QCTools report (with audio)
ffprobe -f lavfi -i "movie=input_file:s=v+a[in0][in1], [in0]signalstats=stat=tout+vrep+brng, cropdetect=reset=1:round=1, idet=half_life=1, split[a][b];[a]field=top[a1];[b]field=bottom, split[b1][b2];[a1][b1]psnr[c1];[c1][b2]ssim[out0];[in1]ebur128=metadata=1, astats=metadata=1:reset=1:length=0.4[out1]" -show_frames -show_versions -of xml=x=1:q=1 -noprivate | gzip > input_file.qctools.xml.gz
# QCTools report (no audio)
ffprobe -f lavfi -i "movie=input_file,signalstats=stat=tout+vrep+brng, cropdetect=reset=1:round=1, idet=half_life=1, split[a][b];[a]field=top[a1];[b]field=bottom,split[b1][b2];[a1][b1]psnr[c1];[c1][b2]ssim" -show_frames -show_versions -of xml=x=1:q=1 -noprivate | gzip > input_file.qctools.xml.gz
# Read/Extract EIA-608 Closed Captioning
ffprobe -f lavfi -i movie=input_file,readeia608 -show_entries frame=pkt_pts_time:frame_tags=lavfi.readeia608.0.line,lavfi.readeia608.0.cc,lavfi.readeia608.1.line,lavfi.readeia608.1.cc -of csv > input_file.csv
# Make a mandelbrot test pattern video
ffmpeg -f lavfi -i mandelbrot=size=1280x720:rate=25 -c:v libx264 -t 10 output_file
# Make a SMPTE bars test pattern video
ffmpeg -f lavfi -i smptebars=size=720x576:rate=25 -c:v prores -t 10 output_file
# Make a test pattern video
ffmpeg -f lavfi -i testsrc=size=720x576:rate=25 -c:v v210 -t 10 output_file
# Play HD SMPTE bars
ffplay -f lavfi -i smptehdbars=size=1920x1080
# Play VGA SMPTE bars
ffplay -f lavfi -i smptebars=size=640x480
# Generate a sine wave test audio file
ffmpeg -f lavfi -i "sine=frequency=1000:sample_rate=48000:duration=5" -c:a pcm_s16le output_file.wav
# SMPTE bars + Sine wave audio
ffmpeg -f lavfi -i "smptebars=size=720x576:rate=25" -f lavfi -i "sine=frequency=1000:sample_rate=48000" -c:a pcm_s16le -t 10 -c:v ffv1 output_file
# Make a broken file
ffmpeg -i input_file -bsf noise=1 -c copy output_file
# Conway's Game of Life
ffplay -f lavfi life=s=300x200:mold=10:r=60:ratio=0.1:death_color=#C83232:life_color=#00ff00,scale=1200:800
# Play video with OCR
ffplay input_file -vf "ocr,drawtext=fontfile=/Library/Fonts/Andale Mono.ttf:text=%{metadata\\\:lavfi.ocr.text}:fontcolor=white"
# Export OCR from video to screen
ffprobe -show_entries frame_tags=lavfi.ocr.text -f lavfi -i "movie=input_file,ocr"
# Compare Video Fingerprints
ffmpeg -i input_one -i input_two -filter_complex signature=detectmode=full:nb_inputs=2 -f null -
# Generate Video Fingerprint
ffmpeg -i input -vf signature=format=xml:filename="output.xml" -an -f null -
# Play an image sequence
ffplay -framerate 5 input_file_%06d.ext
# Split audio and video tracks
ffmpeg -i input_file -map 0:v:0 video_output_file -map 0:a:0 audio_output_file
# Merge audio and video tracks
ffmpeg -i video_file -i audio_file -map 0:v -map 1:a -c copy output_file
# Create ISO files for DVD access
ffmpeg -i input_file -aspect 4:3 -target ntsc-dvd output_file.mpg
# CSV with timecodes and YDIF
ffprobe -f lavfi -i movie=input_file,signalstats -show_entries frame=pkt_pts_time:frame_tags=lavfi.signalstats.YDIF -of csv
# Cover head switching noise
ffmpeg -i input_file -filter:v drawbox=w=iw:h=7:y=ih-h:t=max output_file
# Record and live-stream simultaneously
ffmpeg -re -i ${INPUTFILE} -map 0 -flags +global_header -vf scale="1280:-1,format=yuv420p" -pix_fmt yuv420p -level 3.1 -vsync passthrough -crf 26 -g 50 -bufsize 3500k -maxrate 1800k -c:v libx264 -c:a aac -b:a 128000 -r:a 44100 -ac 2 -t ${STREAMDURATION} -f tee "[movflags=+faststart]${TARGETFILE}|[f=flv]${STREAMTARGET}"
# View FFmpeg subprogram information
ffmpeg -h type=name
# Rip a CD with CD Paranoia
cdparanoia -L -B -O [Drive Offset] [Starting Track Number]-[Ending Track Number] output_file.wav
# Rip a CD with Cdda2wav
cdda2wav -L0 -t all -cuefile -paranoia paraopts=retries=200,readahead=600,minoverlap=sectors-per-request-1 -verbose-level all output.wav
# Compare two images
compare -metric ae image1.ext image2.ext null:
# Create thumbnails of images
mogrify -resize 80x80 -format jpg -quality 75 -path thumbs *.jpg
# Creates grid of images from text file
montage @list.txt -tile 6x12 -geometry +0+0 output_grid.jpg
# Get file signature data
convert -verbose input_file.ext | grep -i signature
# Removes exif metadata
mogrify -path ./stripped/ -strip *.jpg
# Resizes image to specific pixel width
convert input_file.ext -resize 750 output_file.ext
# Transcoding to/from FLAC
flac --best --keep-foreign-metadata --preserve-modtime --verify input.wav
flac --decode --keep-foreign-metadata --preserve-modtime --verify input.flac

1
scripts/get_recipe_list Normal file
View File

@@ -0,0 +1 @@
curl https://amiaopensource.github.io/ffmprovisr/ -s | grep -E '<h3>.*</h3>|<p><code>.*</code></p>' | sed 's/.*<code>\(.*\)<\/code>/\1/' | sed 's/.*<h3>\(.*\)<\/h3>/# \1/' | grep -v '\*\*\*' | sed -e 's/<[^>]*>//g'