Merge pull request #164 from amiaopensource/ab/sample-broken-dv

adds way to intentionally break a DV file
This commit is contained in:
Reto Kromer 2017-03-27 22:29:48 +02:00 committed by GitHub
commit 9d58f313d4

View File

@ -1408,6 +1408,29 @@ foreach ($file in $inputfiles) {
</div> </div>
<!-- ends Play VGA SMPTE bars --> <!-- ends Play VGA SMPTE bars -->
<!-- Broken DV -->
<span data-toggle="modal" data-target="#broken_dv"><button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="Make a broken DV file from a perfectly good one">Broken DV</button></span>
<div id="broken_dv" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="well">
<h3>Makes a broken DV test file</h3>
<p>Modifies an existing, functioning DV file and intentionally breaks it for testing purposes.</p>
<p><code>ffmpeg -i <i>input_file</i>.dv -bsf noise -c copy <i>output_file</i>.dv</code></p>
<dl>
<dt>ffmpeg</dt><dd>starts the command</dd>
<dt>-i <i>input_file</i>.dv</dt><dd>takes in a normal DV file</dd>
<dt>-bsf noise</dt><dd>sets bitstream filters for all to 'noise'. The <a href="https://www.ffmpeg.org/ffmpeg-bitstream-filters.html#noise">noise filter</a> intentionally damages the contents of packets without damaging the container</dd>
<dt>-c copy</dt><dd>use stream copy mode to re-mux instead of re-encode</dd>
<dt><i>output_file</i>.dv</dt><dd>path, name and extension of the output DV file</dd>
</dl>
<p class="link"></p>
</div>
</div>
</div>
</div>
<!-- ends Broken DV -->
<!-- Sine wave --> <!-- Sine wave -->
<span data-toggle="modal" data-target="#sine_wave"><button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="Generate a test audio file playing a sine wave">Sine wave</button></span> <span data-toggle="modal" data-target="#sine_wave"><button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="Generate a test audio file playing a sine wave">Sine wave</button></span>
<div id="sine_wave" class="modal fade" tabindex="-1" role="dialog"> <div id="sine_wave" class="modal fade" tabindex="-1" role="dialog">