diff --git a/index.html b/index.html index c66ee06..ad8ca40 100644 --- a/index.html +++ b/index.html @@ -39,6 +39,8 @@
Something else
Similar tools: tips & tricks
ImageMagick
+
flac tool
+
@@ -104,6 +106,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)
  • +
+
+ + @@ -2498,8 +2518,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

+ +
+