Imported Upstream version 0.6.3
[fdkaac.git] / man / fdkaac.1
... / ...
CommitLineData
1.\" Automatically generated by Pandoc 1.17.1
2.\"
3.TH "FDKAAC" "1" "November, 2013" "" ""
4.hy
5.SH NAME
6.PP
7fdkaac \- command line frontend for libfdk\-aac encoder
8.SH SYNOPSIS
9.PP
10\f[B]fdkaac\f[] [OPTIONS] [FILE]
11.SH DESCRIPTION
12.PP
13\f[B]fdkaac\f[] reads linear PCM audio in either WAV, raw PCM, or CAF
14format, and encodes it into either M4A / AAC file.
15.PP
16If the input file is "\-", data is read from stdin.
17Likewise, if the output file is "\-", data is written to stdout if one
18of streamable AAC transport formats are selected by \f[B]\-f\f[].
19.PP
20When CAF input and M4A output is used, tags in CAF file are copied into
21the resulting M4A.
22.SH OPTIONS
23.TP
24.B \-h, \-\-help
25Show command help
26.RS
27.RE
28.TP
29.B \-o <FILE>
30Output filename.
31.RS
32.RE
33.TP
34.B \-p, \-\-profile <n>
35Target profile (MPEG4 audio object type, AOT)
36.RS
37.TP
38.B 2
39MPEG\-4 AAC LC (default)
40.RS
41.RE
42.TP
43.B 5
44MPEG\-4 HE\-AAC (SBR)
45.RS
46.RE
47.TP
48.B 29
49MPEG\-4 HE\-AAC v2 (SBR+PS)
50.RS
51.RE
52.TP
53.B 23
54MPEG\-4 AAC LD
55.RS
56.RE
57.TP
58.B 39
59MPEG\-4 AAC ELD
60.RS
61.RE
62.RE
63.TP
64.B \-b, \-\-bitrate <n>
65Target bitrate (for CBR)
66.RS
67.RE
68.TP
69.B \-m, \-\-bitrate\-mode <n>
70Bitrate configuration mode.
71Available VBR quality value depends on other parameters such as profile,
72sample rate, or number of channels.
73.RS
74.TP
75.B 0
76CBR (default)
77.RS
78.RE
79.TP
80.B 1\-5
81VBR (higher value \-> higher bitrate)
82.RS
83.RE
84.RE
85.TP
86.B \-w, \-\-bandwidth <n>
87Frequency bandwidth (lowpass cut\-off frequency) in Hz.
88Available on AAC LC only.
89.RS
90.RE
91.TP
92.B \-a, \-\-afterburner <n>
93Configure afterburner mode.
94When enabled, quality is increased at the expense of additional
95computational workload.
96.RS
97.TP
98.B 0
99Off
100.RS
101.RE
102.TP
103.B 1
104On (default)
105.RS
106.RE
107.RE
108.TP
109.B \-L, \-\-lowdelay\-sbr <n>
110Configure SBR activity on AAC ELD.
111.RS
112.TP
113.B \-1
114Use ELD SBR auto configuration
115.RS
116.RE
117.TP
118.B 0
119Disable SBR on ELD (default)
120.RS
121.RE
122.TP
123.B 1
124Enable SBR on ELD
125.RS
126.RE
127.RE
128.TP
129.B \-s, \-\-sbr\-ratio <n>
130Controls activation of downsampled SBR.
131.RS
132.TP
133.B 0
134Use lib default (default)
135.RS
136.RE
137.TP
138.B 1
139Use downsampled SBR (default for ELD+SBR)
140.RS
141.RE
142.TP
143.B 2
144Use dual\-rate SBR (default for HE\-AAC)
145.RS
146.RE
147.PP
148Dual\-rate SBR is what is normally used for HE\-AAC, where AAC is
149encoded at half the sample rate of SBR, hence "dual rate".
150On the other hand, downsampled SBR uses same sample rate for both of AAC
151and SBR (single rate), therefore downsampled SBR typically consumes more
152bitrate.
153.PP
154Downsampled SBR is newly introduced feature in FDK encoder library
155version 3.4.12.
156When libfdk\-aac in the system doesn\[aq]t support this, dual\-rate SBR
157will be used.
158When available, dual\-rate SBR is the default for HE\-AAC and
159downsampled SBR is the default for ELD+SBR.
160.PP
161Note that downsampled HE\-AAC is not so common as dual\-rate one.
162When downsampled HE\-AAC is selected, \f[B]fdkaac\f[] is forced to
163choose explicit hierarchical SBR signaling, which (at least) iTunes
164doesn\[aq]t accept.
165.RE
166.TP
167.B \-f, \-\-transport\-format <n>
168Transport format.
169Tagging and gapless playback is only available on M4A.
170Streaming to stdout is only available on others.
171.RS
172.TP
173.B 0
174M4A (default)
175.RS
176.RE
177.TP
178.B 1
179ADIF
180.RS
181.RE
182.TP
183.B 2
184ADTS
185.RS
186.RE
187.TP
188.B 6
189LATM MCP=1
190.RS
191.RE
192.TP
193.B 7
194LATM MCP=0
195.RS
196.RE
197.TP
198.B 10
199LOAS/LATM (LATM within LOAS)
200.RS
201.RE
202.RE
203.TP
204.B \-C, \-\-adts\-crc\-check
205Add CRC protection on ADTS header.
206.RS
207.RE
208.TP
209.B \-h, \-\-header\-period <n>
210StreamMuxConfig/PCE repetition period in the transport layer.
211.RS
212.RE
213.TP
214.B \-G, \-\-gapless\-mode <n>
215Method to declare amount of encoder delay (and padding) in M4A
216container.
217These values are mandatory for proper gapless playback on player side.
218.RS
219.TP
220.B 0
221iTunSMPB (default)
222.RS
223.RE
224.TP
225.B 1
226ISO standard (edts and sgpd)
227.RS
228.RE
229.TP
230.B 2
231Both
232.RS
233.RE
234.RE
235.TP
236.B \-\-include\-sbr\-delay
237When specified, count SBR decoder delay in encoder delay.
238.RS
239.PP
240This is not iTunes compatible and will lead to gapless playback issue on
241LC only decoder, but this is the default behavior of FDK library.
242.PP
243Whether counting SBR decoder delay in encoder delay or not result in
244incompatibility in gapless playback.
245You should pick which one will work for your favorite player.
246.PP
247However, it\[aq]s better not to choose SBR at all if you want gapless
248playback.
249LC doesn\[aq]t have such issues.
250.RE
251.TP
252.B \-I, \-\-ignorelength
253Ignore length field of data chunk in input WAV file.
254.RS
255.RE
256.TP
257.B \-S, \-\-silent
258Don\[aq]t print progress messages.
259.RS
260.RE
261.TP
262.B \-\-moov\-before\-mdat
263Place moov box before mdat box in M4A container.
264This option might be important for some hardware players, that are known
265to refuse moov box placed after mdat box.
266.RS
267.RE
268.TP
269.B \-R, \-\-raw
270Regard input as raw PCM.
271.RS
272.RE
273.TP
274.B \-\-raw\-channels <n>
275Specify number of channels of raw input (default: 2)
276.RS
277.RE
278.TP
279.B \-\-raw\-rate <n>
280Specify sample rate of raw input (default: 44100)
281.RS
282.RE
283.TP
284.B \-\-raw\-format <spec>
285Specify sample format of raw input (default: "S16L").
286\f[B]Spec\f[] is as the following (case insensitive):
287.RS
288.TP
289.B 1st char \-\- type of sample
290\f[B]S\f[] (igned) | \f[B]U\f[] (nsigned) | \f[B]F\f[] (loat)
291.RS
292.RE
293.TP
294.B 2nd part (in digits)
295bits per channel
296.RS
297.RE
298.TP
299.B Last char \-\- endianness (can be omitted)
300\f[B]L\f[] (ittle, default) | \f[B]B\f[] (ig)
301.RS
302.RE
303.RE
304.TP
305.B \-\-title <string>
306Set title tag.
307.RS
308.RE
309.TP
310.B \-\-artist <string>
311Set artist tag.
312.RS
313.RE
314.TP
315.B \-\-album <string>
316Set album tag.
317.RS
318.RE
319.TP
320.B \-\-genre <string>
321Set genre tag.
322.RS
323.RE
324.TP
325.B \-\-date <string>
326Set date tag.
327.RS
328.RE
329.TP
330.B \-\-composer <string>
331Set composer tag.
332.RS
333.RE
334.TP
335.B \-\-grouping <string>
336Set grouping tag.
337.RS
338.RE
339.TP
340.B \-\-comment <string>
341Set comment tag.
342.RS
343.RE
344.TP
345.B \-\-album\-artist <string>
346Set album artist tag.
347.RS
348.RE
349.TP
350.B \-\-track <number[/total]>
351Set track tag, with or without number of total tracks.
352.RS
353.RE
354.TP
355.B \-\-disk <number[/total]>
356Set disk tag, with or without number of total discs.
357.RS
358.RE
359.TP
360.B \-\-tempo <n>
361Set tempo (BPM) tag.
362.RS
363.RE
364.TP
365.B \-\-tag <fcc>:<value>
366Set iTunes predefined tag with explicit fourcc key and value.
367See <https://code.google.com/p/mp4v2/wiki/iTunesMetadata> for known
368predefined keys.
369You can omit first char of \f[B]fcc\f[] when it is the copyright sign.
370.RS
371.RE
372.TP
373.B \-\-tag\-from\-file <fcc>:<filename>
374Same as \-\-tag, but set content of file as tag value.
375.RS
376.RE
377.TP
378.B \-\-long\-tag <name>:<value>
379Set arbitrary tag as iTunes custom metadata.
380Stored in com.apple.iTunes field.
381.RS
382.RE
383.TP
384.B \-\-tag\-from\-json <filename[?dot_notation]>
385Read tags from JSON.
386By default, tags are assumed to be direct children of the root object in
387JSON.
388Optionally you can specify arbitrary dot notation to locate the object
389containing tags.
390.RS
391.RE
392.SH EXAMPLES
393.PP
394Encode WAV file into a M4A file.
395MPEG4 AAC LC, VBR quality 3:
396.IP
397.nf
398\f[C]
399fdkaac\ \-m3\ foo.wav
400\f[]
401.fi
402.PP
403Encode WAV file into a M4A file.
404MPEG4 HE\-AAC, bitrate 64kbps:
405.IP
406.nf
407\f[C]
408fdkaac\ \-p5\ \-b64\ foo.wav
409\f[]
410.fi
411.PP
412Piping from \f[B]ffmpeg\f[] (you need version supporting CAF output):
413.IP
414.nf
415\f[C]
416ffmpeg\ \-i\ foo.flac\ \-f\ caf\ \-\ |\ fdkaac\ \-b128\ \-\ \-o\ foo.m4a
417\f[]
418.fi
419.PP
420Import tags via json:
421.IP
422.nf
423\f[C]
424ffprobe\ \-v\ 0\ \-of\ json\ \-show_format\ foo.flac\ >foo.json
425
426flac\ \-dc\ foo.flac\ |\ \\
427fdkaac\ \-\ \-ox.m4a\ \-m2\ \-\-import\-tag\-from\-json=foo.json?format.tags
428\f[]
429.fi
430.SH NOTES
431.PP
432Upto 32bit integer or 64bit floating point format is supported as input.
433However, FDK library is implemented based on fixed point math and only
434supports 16bit integer PCM.
435Therefore, be wary of clipping.
436You might want to dither/noise shape beforehand when your input has
437higher resolution.
438.PP
439Following channel layouts are supported by the encoder.
440.TP
441.B 1ch
442C
443.RS
444.RE
445.TP
446.B 2ch
447L R
448.RS
449.RE
450.TP
451.B 3ch
452C L R
453.RS
454.RE
455.TP
456.B 4ch
457C L R Cs
458.RS
459.RE
460.TP
461.B 5ch
462C L R Ls Rs
463.RS
464.RE
465.TP
466.B 5.1ch
467C L R Ls Rs LFE
468.RS
469.RE
470.TP
471.B 7.1ch (front)
472C Lc Rc L R Ls Rs LFE
473.RS
474.RE
475.TP
476.B 7.1ch (rear)
477C L R Ls Rs Rls Rrs LFE
478.RS
479.RE
480.SH AUTHORS
481nu774 <honeycomb77@gmail.com>.
This page took 0.010738 seconds and 4 git commands to generate.