Merge pull request #389 from amiaopensource/revert-387-issue-383

Revert "Adds mapping all audio to access script"
This commit is contained in:
Ashley 2019-07-19 13:33:24 -04:00 committed by GitHub
commit d28ae29f5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,7 +294,7 @@
<input type="checkbox" id="transcode_h264"> <input type="checkbox" id="transcode_h264">
<div class="hiding"> <div class="hiding">
<h3>Transcode to H.264</h3> <h3>Transcode to H.264</h3>
<p><code>ffmpeg -i <em>input_file</em> -c:v libx264 -pix_fmt yuv420p -c:a aac -map 0:a <em>output_file</em></code></p> <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, 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> <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> <dl>
<dt>ffmpeg</dt><dd>starts the command</dd> <dt>ffmpeg</dt><dd>starts the command</dd>
@ -303,7 +303,6 @@
<dt>-pix_fmt yuv420p</dt><dd>libx264 will use a chroma subsampling scheme that is the closest match to that of the input. This can result in YC<sub>B</sub>C<sub>R</sub> 4:2:0, 4:2:2, or 4:4:4 chroma subsampling. QuickTime and most other non-FFmpeg based players cant decode H.264 files that are not 4:2:0. In order to allow the video to play in all players, you can specify 4:2:0 chroma subsampling.</dd> <dt>-pix_fmt yuv420p</dt><dd>libx264 will use a chroma subsampling scheme that is the closest match to that of the input. This can result in YC<sub>B</sub>C<sub>R</sub> 4:2:0, 4:2:2, or 4:4:4 chroma subsampling. QuickTime and most other non-FFmpeg based players cant decode H.264 files that are not 4:2:0. In order to allow the video to play in all players, you can specify 4:2:0 chroma subsampling.</dd>
<dt>-c:a aac</dt><dd>encode audio as AAC.<br> <dt>-c:a aac</dt><dd>encode audio as AAC.<br>
AAC is the codec most often used for audio streams within an .mp4 container.</dd> AAC is the codec most often used for audio streams within an .mp4 container.</dd>
<dt>-map 0:a</dt><dd>maps all audio tracks (default is first two)</dd>
<dt><em>output_file</em></dt><dd>path, name and extension of the output file</dd> <dt><em>output_file</em></dt><dd>path, name and extension of the output file</dd>
</dl> </dl>
<p>In order to optimize the file for streaming, you can add this preset:</p> <p>In order to optimize the file for streaming, you can add this preset:</p>