diff --git a/index.html b/index.html index b95696e..3cf4b3c 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@ Table of Contents About this resource - Show/hide all recipes + Expand/collapse all recipes FFmpeg basics Advanced FFmpeg concepts Change container (rewrap) @@ -728,7 +728,7 @@ - + Synchronize video and audio streams @@ -804,13 +804,13 @@ It's also possible to specify the crop position by adding the x and y coordinates representing the top left of your cropped area to your crop filter, as such: ffmpeg -i input_file -vf "crop=width:height[:x_position:y_position]" output_file Examples - The original frame, a screenshot of the SMPTE colorbars: + The original frame, a screenshot of Maggie Cheung in the film Hero: - Result of the command ffmpeg -i smpte_colorsbars.mov -vf "crop=500:500" output_file: + Result of the command ffmpeg -i maggie.mov -vf "crop=500:500" output_file: - Result of the command ffmpeg -i smpte_colorsbars.mov -vf "crop=500:500:0:0" output_file, appending :0:0 to crop from the top left corner: + Result of the command ffmpeg -i maggie.mov -vf "crop=500:500:0:0" output_file, appending :0:0 to crop from the top left corner: - Result of the command ffmpeg -i smpte_colousbars.mov -vf "crop=500:300:500:30" output_file: + Result of the command ffmpeg -i maggie.mov -vf "crop=500:300:500:30" output_file: @@ -844,7 +844,7 @@ - + Change or view audio properties @@ -2801,7 +2801,7 @@ About flac tool - The flac tool is the tool created by the FLAC project to transcode to/from FLAC and to manipulate metadata in FLAC files. One advantage it has over other tools used to transcode into FLAC is the capability of embedding foreign metadata (such as BWF metadata). This means that it is possible to compress a BWF file into FLAC and maintain the ability to transcode back into an identical BWF, metadata and all. For a more detailed explanation, see Dave Rice's article on the topic, from which the following commands are adapted. + The flac tool is the tool created by the FLAC project to transcode to/from FLAC and to manipulate metadata in FLAC files. One advantage it has over other tools used to transcode into FLAC is the capability of embedding foreign metadata (such as BWF metadata). This means that it is possible to compress a BWF file into FLAC and maintain the ability to transcode back into an identical BWF, metadata and all. For a more detailed explanation, see Dave Rice's article on the topic, from which the following commands are adapted. Transcode to FLAC Use this command to transcode from WAV to FLAC while maintaining BWF metadata flac --best --keep-foreign-metadata --preserve-modtime --verify input.wav diff --git a/js/js.js b/js/js.js index dd386b5..27c3795 100644 --- a/js/js.js +++ b/js/js.js @@ -32,11 +32,21 @@ $(document).ready(function() { } }) - // open all windows if button is clicked - $('#open-all').on("click", function(){ - $('input[type=checkbox]').each(function(){ - this.checked = !this.checked; - }) - }); + // Collapse all recipes when button is clicked + $('#toggle-expand-collapse-all').on("click", function(){ + var checkboxes = $('input[type=checkbox]'); + var anyRecipesOpen = $(checkboxes).is(':checked'); + if (anyRecipesOpen) { + // Collapse all + $('input[type=checkbox]').each(function() { + this.checked = false; + }); + } else new Promise(function(resolve, reject) { + // Expand all + $('input[type=checkbox]').each(function() { + this.checked = true; + }); + }); + }); });
It's also possible to specify the crop position by adding the x and y coordinates representing the top left of your cropped area to your crop filter, as such:
ffmpeg -i input_file -vf "crop=width:height[:x_position:y_position]" output_file
The original frame, a screenshot of the SMPTE colorbars:
The original frame, a screenshot of Maggie Cheung in the film Hero:
Result of the command ffmpeg -i smpte_colorsbars.mov -vf "crop=500:500" output_file:
ffmpeg -i smpte_colorsbars.mov -vf "crop=500:500" output_file
Result of the command ffmpeg -i maggie.mov -vf "crop=500:500" output_file:
ffmpeg -i maggie.mov -vf "crop=500:500" output_file
Result of the command ffmpeg -i smpte_colorsbars.mov -vf "crop=500:500:0:0" output_file, appending :0:0 to crop from the top left corner:
ffmpeg -i smpte_colorsbars.mov -vf "crop=500:500:0:0" output_file
:0:0
Result of the command ffmpeg -i maggie.mov -vf "crop=500:500:0:0" output_file, appending :0:0 to crop from the top left corner:
ffmpeg -i maggie.mov -vf "crop=500:500:0:0" output_file
Result of the command ffmpeg -i smpte_colousbars.mov -vf "crop=500:300:500:30" output_file:
ffmpeg -i smpte_colousbars.mov -vf "crop=500:300:500:30" output_file
Result of the command ffmpeg -i maggie.mov -vf "crop=500:300:500:30" output_file:
ffmpeg -i maggie.mov -vf "crop=500:300:500:30" output_file
The flac tool is the tool created by the FLAC project to transcode to/from FLAC and to manipulate metadata in FLAC files. One advantage it has over other tools used to transcode into FLAC is the capability of embedding foreign metadata (such as BWF metadata). This means that it is possible to compress a BWF file into FLAC and maintain the ability to transcode back into an identical BWF, metadata and all. For a more detailed explanation, see Dave Rice's article on the topic, from which the following commands are adapted.
Use this command to transcode from WAV to FLAC while maintaining BWF metadata
flac --best --keep-foreign-metadata --preserve-modtime --verify input.wav