mirror of
https://github.com/amiaopensource/ffmprovisr.git
synced 2024-11-06 05:27:24 +01:00
add trim video option
This commit is contained in:
parent
6b829f2d3c
commit
806be98b72
25
index.html
25
index.html
@ -1000,6 +1000,31 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- ends set field order -->
|
||||
|
||||
<!-- Trim video -->
|
||||
<span data-toggle="modal" data-target=".trim_video"><button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="Trim a video">Trim video</button></span>
|
||||
<div class="modal fade trim_video" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="well">
|
||||
<h3>Trim a video with re-encoding</h3>
|
||||
<p><code>ffmpeg -i <i>input_file</i> -ss 00:02:00 to 00:55:00 -c copy <i>output_file</i></code></p>
|
||||
<p>This command trims the beginning and end of a video file.</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>-ss 00:02:00</dt><dd>sets in point at 00:02:00</dd>
|
||||
<dt>to 00:55:00</dt><dd>sets out point at 00:55:00</dd>
|
||||
<dt>-c copy</dt><dd>use stream copy mode (no re-encoding)</dd>
|
||||
<dt><i>output file</i></dt><dd>path, name and extension of the output file</dd>
|
||||
Note: watch out when using <code>-ss</code> with <code>-c copy</code> when the source is an interframe codec (e.g., H.264). Since ffmpeg must split on i-frames, it will seek to the nearest i-frame to begin the stream copy.
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ends Trim Video -->
|
||||
|
||||
</div><!-- closes the well -->
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user