mirror of
https://github.com/amiaopensource/ffmprovisr.git
synced 2024-11-14 01:12:47 +01:00
Add deinterlace recipe
This commit is contained in:
parent
7e30039d63
commit
96bb20cf52
32
index.html
32
index.html
@ -445,6 +445,38 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- ends Transcode to H.265 -->
|
<!-- ends Transcode to H.265 -->
|
||||||
|
|
||||||
|
<!-- Deinterlace video -->
|
||||||
|
<span data-toggle="modal" data-target="#deinterlace"><button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="Deinterlace video">Deinterlace video</button></span>
|
||||||
|
<div id="deinterlace" class="modal fade" tabindex="-1" role="dialog">
|
||||||
|
<div class="modal-dialog modal-lg">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="well">
|
||||||
|
<h3>Deinterlace a video</h3>
|
||||||
|
<p> <code>ffmpeg -i <i>input_file</i> -c:v libx264 -vf "yadif,format=pix_fmts=yuv420p" <i>output_file</i></code> </p>
|
||||||
|
<p>This command takes an interlaced input file and outputs a deinterlaced H.264 MP4.</p>
|
||||||
|
<dl>
|
||||||
|
<dt>ffmpeg</dt><dd>starts the command</dd>
|
||||||
|
<dt>-i <i>input file</i></dt><dd>path, name and extension of the input file</dd>
|
||||||
|
<dt>-c:v libx264</dt><dd>tells ffmpeg to encode the video stream as H.264</dd>
|
||||||
|
<dt>-vf</dt><dd>video filtering will be used<dd>
|
||||||
|
<dt><i>"</i></dt><dd>start of filtergraph (see below)</dd>
|
||||||
|
<dt><i>yadif</i></dt><dd>deinterlacing filter (‘yet another deinterlacing filter’)</dd>
|
||||||
|
<dt><i>,</i></dt><dd>separates filters</dd>
|
||||||
|
<dt><i>format=pix_fmts=yuv420p</i></dt><dd>chroma subsampling set to 4:2:0 <br>
|
||||||
|
By default, <code>libx264</code> will use a chroma subsampling scheme that is the closest match to that of the input. This can result in Y′CbCr 4:2:0, 4:2:2, or 4:4:4 chroma subsampling. QuickTime and most other non-FFmpeg based players can’t decode H.264 files that are not 4:2:0, therefore it's advisable to specify 4:2:0 chroma subsampling.</dd>
|
||||||
|
<dt><i>"</i></dt><dd>end of filtergraph</dd>
|
||||||
|
<dt><i>output file</i></dt><dd>path, name and extension of the output file</dd>
|
||||||
|
</dl>
|
||||||
|
<p>For more H.264 encoding options, see the latter section of the <a href="https://amiaopensource.github.io/ffmprovisr/#transcode_h264">encode H.264 command</a>.</p>
|
||||||
|
<p><code>"yadif,format=pix_fmts=yuv420p"</code> is an ffmpeg <a href="https://trac.ffmpeg.org/wiki/FilteringGuide#FiltergraphChainFilterrelationship">filtergraph</a>. Here the filtergraph is made up of one filter chain, which is itself made up of the two filters (separated by the comma). <br>
|
||||||
|
The enclosing quote marks are necessary when you use spaces within the filtergraph, e.g. <code>-vf "yadif, format=pix_fmts=yuv420p"</code>, and are included above as an example of good practice.</p>
|
||||||
|
<p class="link"></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- ends Deinterlace video -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="well">
|
<div class="well">
|
||||||
<h4>Filters</h4>
|
<h4>Filters</h4>
|
||||||
|
Loading…
Reference in New Issue
Block a user