From 1bf462820ecdd47bf7939d74038ec7f47af81858 Mon Sep 17 00:00:00 2001 From: Andrew Weaver Date: Wed, 29 Aug 2018 12:40:34 -0700 Subject: [PATCH 1/4] codec defaults section --- index.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/index.html b/index.html index c66ee06..50e75dc 100644 --- a/index.html +++ b/index.html @@ -104,6 +104,24 @@

Learn about more advanced FFmpeg concepts

+ + + +
+

Codec Defaults

+

Unless specified, FFmpeg will automatically set codec choices and codec parameters based off of internal defaults. These defaults are applied based on the file type used in the output (for example .mov or .wav).

+

When creating or transcoding files with FFmpeg, it is important to consider codec settings for both audio and video, as the default options may not be desirable in your particular context. The following is a brief list of codec defaults for some common file types: +

    +
  • .avi: Audio Codec: mp3, Video Codec: mpeg4
  • +
  • .mkv: Audio Codec: ac3, Video Codec: h.264
  • +
  • .mov: Audio Codec: aac, Video Codec: h.264
  • +
  • .mp4: Audio Codec: aac, Video Codec: h.264
  • +
  • .mpg: Audio Codec: mp2, Video Codec: mpeg1video
  • +
  • .wav: Audio Codec: pcm_s16le (16 bit PCM)
  • +
+
+ + From 963e0591e55c94d867f982d1a010421c2cae442f Mon Sep 17 00:00:00 2001 From: Andrew Weaver Date: Wed, 29 Aug 2018 15:25:28 -0700 Subject: [PATCH 2/4] add flac tool --- index.html | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 50e75dc..51a8869 100644 --- a/index.html +++ b/index.html @@ -2516,8 +2516,32 @@
- +
+

flac

+ + + + +
+

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.

+

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

+
+
flac
starts the command
+
-i input_file.ext
path and name of the input file
+
--best
sets the file for the most efficient compression (resulting in a smaller file at the expense of a slower process).
+
--keep-foreign-metadata
tells the flac tool to maintain original metadata within the FLAC file.
+
--preserve-modtime
preserves the file timestamps of the input file.
+
--verify
verifies the validity of the output file.
+
+

Transcode from FLAC

+

Use this command to transcode from FLAC to reconstruct original BWF file. Command is the same as the prior command with the exception of substituting --decode for best and changing the input to a .flac file.

+

flac --decode --keep-foreign-metadata --preserve-modtime --verify input.flac

+
+
From ac22e3e361f2bdc914a529e2f2a3618ac59f6cd4 Mon Sep 17 00:00:00 2001 From: Andrew Weaver Date: Wed, 29 Aug 2018 17:25:30 -0700 Subject: [PATCH 3/4] fix tag/add link --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 51a8869..0f05a83 100644 --- a/index.html +++ b/index.html @@ -110,7 +110,7 @@

Codec Defaults

Unless specified, FFmpeg will automatically set codec choices and codec parameters based off of internal defaults. These defaults are applied based on the file type used in the output (for example .mov or .wav).

-

When creating or transcoding files with FFmpeg, it is important to consider codec settings for both audio and video, as the default options may not be desirable in your particular context. The following is a brief list of codec defaults for some common file types: +

When creating or transcoding files with FFmpeg, it is important to consider codec settings for both audio and video, as the default options may not be desirable in your particular context. The following is a brief list of codec defaults for some common file types:

  • .avi: Audio Codec: mp3, Video Codec: mpeg4
  • .mkv: Audio Codec: ac3, Video Codec: h.264
  • @@ -2517,9 +2517,8 @@
-
+

flac

- @@ -2540,6 +2539,7 @@

Transcode from FLAC

Use this command to transcode from FLAC to reconstruct original BWF file. Command is the same as the prior command with the exception of substituting --decode for best and changing the input to a .flac file.

flac --decode --keep-foreign-metadata --preserve-modtime --verify input.flac

+
From c3ff180189521c7226b90dff4a9e51222e35d8ae Mon Sep 17 00:00:00 2001 From: Andrew Weaver Date: Wed, 29 Aug 2018 17:35:06 -0700 Subject: [PATCH 4/4] add to ToC --- index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.html b/index.html index 0f05a83..ad8ca40 100644 --- a/index.html +++ b/index.html @@ -39,6 +39,8 @@
Something else
Similar tools: tips & tricks
ImageMagick
+
flac tool
+