Compare commits

...

13 Commits

Author SHA1 Message Date
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

View File

@@ -40,7 +40,6 @@
<a href="#similar-tools"><div class="contents-list">Similar tools: tips &amp; tricks</div></a>
<a href="#imagemagick"><div class="contents-list">ImageMagick</div></a>
<a href="#flac-tool"><div class="contents-list">flac tool</div></a>
</nav>
<div class="content">
@@ -79,7 +78,7 @@
<p>A very basic FFmpeg command looks like this:</p>
<dl>
<dt>ffmpeg</dt><dd>starts the command</dd>
<dt>-i <em>input_file.ext</em></dt><dd>path and name of the input file<br></dd>
<dt>-i <em>input_file.ext</em></dt><dd>path and name of the input file</dd>
<dt><em>-flag some_action</em></dt><dd>tell FFmpeg to do something, by supplying a valid flag and action</dd>
<dt><em>output_file.ext</em></dt><dd>path and name of the output file.<br>
Because this is the last part of the command, the filename you type here does not have a flag designating it as the output file.</dd>
@@ -197,7 +196,7 @@
<p><strong>Note:</strong> rewrapping is also known as remuxing, short for re-multiplexing.</p>
<dl>
<dt>ffmpeg</dt><dd>starts the command</dd>
<dt>-i <em>input_file.ext</em></dt><dd>path and name of the input file<br></dd>
<dt>-i <em>input_file.ext</em></dt><dd>path and name of the input file</dd>
<dt>-c copy</dt><dd>copy the streams directly, without re-encoding.</dd>
<dt>-map 0</dt><dd>map all streams of the input to the output.<br>
By default, FFmpeg will only map one stream of each type (video, audio, subtitles) to the output file. However, files may have multiple streams of a given type - for example, a video may have several audio tracks for different languages. Therefore, if you want to preserve all the streams in the original, it's necessary to use this option.</dd>
@@ -293,7 +292,7 @@
<div class="hiding">
<h3>Transcode to H.264</h3>
<p><code>ffmpeg -i <em>input_file</em> -c:v libx264 -pix_fmt yuv420p -c:a aac <em>output_file</em></code></p>
<p>This command takes an input file and transcodes it to H.264 with an .mp4 wrapper, keeping the audio the same codec as the original. The libx264 codec defaults to a “medium” preset for compression quality and a CRF of 23. CRF stands for constant rate factor and determines the quality and file size of the resulting H.264 video. A low CRF means high quality and large file size; a high CRF means the opposite.</p>
<p>This command takes an input file and transcodes it to H.264 with an .mp4 wrapper, audio is transcoded to AAC. The libx264 codec defaults to a “medium” preset for compression quality and a CRF of 23. CRF stands for constant rate factor and determines the quality and file size of the resulting H.264 video. A low CRF means high quality and large file size; a high CRF means the opposite.</p>
<dl>
<dt>ffmpeg</dt><dd>starts the command</dd>
<dt>-i <em>input_file</em></dt><dd>path, name and extension of the input file</dd>
@@ -303,6 +302,11 @@
AAC is the codec most often used for audio streams within an .mp4 container.</dd>
<dt><em>output_file</em></dt><dd>path, name and extension of the output file</dd>
</dl>
<p>In order to optimize the file for streaming, you can add this preset:</p>
<p><code>ffmpeg -i <em>input_file</em> -c:v libx264 -pix_fmt yuv420p -c:a aac -movflags +faststart <em>output_file</em></code></p>
<dl>
<dt>-movflags +faststart</dt><dd>This tells FFmpeg to move some of the essential metadata to the start of the file, which permits starting viewing before the file finishes downloading (an ideal characteristic for streaming).</dd>
</dl>
<p>In order to use the same basic command to make a higher quality file, you can add some of these presets:</p>
<p><code>ffmpeg -i <em>input_file</em> -c:v libx264 -pix_fmt yuv420p -preset veryslow -crf 18 -c:a aac <em>output_file</em></code></p>
<dl>
@@ -728,7 +732,7 @@
<dl>
<dt>ffmpeg</dt><dd>starts the command</dd>
<dt>-i <em>input_file</em></dt><dd>path, name and extension of the input file</dd>
<dt>-c copy</dt><dd>Usings stream copy for all streams</dd>
<dt>-c copy</dt><dd>Using stream copy for all streams</dd>
<dt>-map 0</dt><dd>tells FFmpeg to map all streams of the input to the output.</dd>
<dt>-aspect DAR_NUM:DAR_DEN</dt><dd>Replace DAR_NUM with the display aspect ratio numerator and DAR_DEN with the display aspect ratio denominator, such as <em>-aspect 4:3</em> or <em>-aspect 16:9</em>.</dd>
<dt><em>output_file</em></dt><dd>path, name and extension of the output file</dd>
@@ -2396,6 +2400,31 @@
</div>
</div>
<div class="well">
<h2 id="cdda">CDDA (Audio CD) Ripping Tools</h2>
<!-- Rip with CDDA2WAV -->
<label class="recipe" for="cdda2wav">Rip a CD with Cdda2wav</label>
<input type="checkbox" id="cdda2wav">
<div class="hiding">
<h3>Rip a CD with Cdda2wav</h3>
<p><code>cdda2wav -L0 -t all -cuefile -paranoia paraopts=retries=200,readahead=600,minoverlap=sectors-per-request-1 -verbose-level all <em>output.wav</em></code></p>
<p>Cdda2wav is a tool that uses the <a href="https://www.xiph.org/paranoia/">Paranoia library</a> to facilitate accurate ripping of audio CDs (CDDA). It can be installed via Homebrew with the command <code> brew install cdrtools</code>. This command will accurately rip an audio CD into a single wave file, while querying the CDDB database for track information and creating a cue sheet. This cue sheet can then be used either for playback of the WAV file or to split it into individual access files. Any <a href="https://en.wikipedia.org/wiki/CD-Text">cdtext</a> information that is discovered will be stored as a sidecar. For more information about cue sheets see <a href="https://en.wikipedia.org/wiki/Cue_sheet_(computing)">this wikipedia article.</a></p>
<dl>
<dt>cdda2wav</dt><dd>begins the Cdda2wav command</dd>
<dt>-L0</dt><dd>tells Cdda2wav to query the CDDB database for track name information. L0 is 'interactive mode' meaning Cdda2wav will ask you to confirm choices in the event of multiple matches. Change this to <code>-L1</code> to automatically select the first database match.</dd>
<dt>-t all</dt><dd>tells Cdda2wav to rip the entire CD to one file</dd>
<dt>-cuefile</dt><dd>tells Cdda2wav to create a cue file of CD contents</dd>
<dt>-paranoia</dt><dd>enables the Paranoia library for ripping</dd>
<dt>paraopts=retries=200,readahead=600,minoverlap=sectors-per-request-1</dt><dd>configures ripping to a generically conservative setting for retries and caching. These values were taken from the Cdda2wav man file and can be changed depending on needs, such as for more/less retry attempts. For more information see the Cdda2wav man file (also available online <a href="https://linux.die.net/man/1/cdda2wav">here)</a>.</dd>
<dt>-verbose-level all</dt><dd>sets terminal information to the most verbose view</dd>
<dt><em>output.wav</em></dt><dd>the desired name for your output file (for example the CD name).</dd>
</dl>
<p class="link"></p>
</div>
<!-- ends Rip with CDDA2WAV -->
</div>
<!-- ends CDDA Tools -->
<div class="well">
<h2 id="imagemagick">ImageMagick</h2>
@@ -2443,7 +2472,7 @@
<dt>-quality 75</dt><dd>sets quality to 75 (out of 100), adding light compression to smaller files</dd>
<dt>-path thumbs</dt><dd>specifies where to save the thumbnails -- this goes to a folder within the active folder called "thumbs".<br>
Note: You will have to make this folder if it doesn't already exist.</dd>
<dt><em>*.jpg</em></dt><dd>The astericks acts as a "wildcard" to be applied to every file in the directory.</dd>
<dt><em>*.jpg</em></dt><dd>The asterisk acts as a "wildcard" to be applied to every file in the directory.</dd>
</dl>
<p class="link"></p>
</div>
@@ -2541,9 +2570,10 @@
<h3>Transcode from FLAC</h3>
<p>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 <code>--decode</code> for <code>best</code> and changing the input to a <code>.flac</code> file.</p>
<p><code>flac --decode --keep-foreign-metadata --preserve-modtime --verify <em>input.flac</em></code></p>
<p class="link"></p>
<p class="link"></p>
</div>
<!-- End About flac -->
</div>
<!-- End About flac -->
</div><!-- ends "content" -->
<!-- sample example -->