Merge pull request #165 from amiaopensource/ab/extend-broken-dv

expands dv fuzzing example to work for any file
This commit is contained in:
Ashley 2017-03-29 17:43:40 -04:00 committed by GitHub
commit 10765da46a

View File

@ -1408,28 +1408,28 @@ foreach ($file in $inputfiles) {
</div> </div>
<!-- ends Play VGA SMPTE bars --> <!-- ends Play VGA SMPTE bars -->
<!-- Broken DV --> <!-- Broken File -->
<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> <span data-toggle="modal" data-target="#broken_file"><button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="Make a broken file out of a perfectly good one">Broken file</button></span>
<div id="broken_dv" class="modal fade" tabindex="-1" role="dialog"> <div id="broken_file" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg"> <div class="modal-dialog modal-lg">
<div class="modal-content"> <div class="modal-content">
<div class="well"> <div class="well">
<h3>Makes a broken DV test file</h3> <h3>Makes a broken test file</h3>
<p>Modifies an existing, functioning DV file and intentionally breaks it for testing purposes.</p> <p>Modifies an existing, functioning 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> <p><code>ffmpeg -i <i>input_file</i> -bsf noise=1 -c copy <i>output_file</i></code></p>
<dl> <dl>
<dt>ffmpeg</dt><dd>starts the command</dd> <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>-i <i>input_file</i></dt><dd>takes in a normal 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>-bsf noise=1</dt><dd>sets bitstream filters for all to 'noise'. Filters can be set on specific filters using syntax such as <code>-bsf:v</code> for video, <code>-bsf:a</code> for audio, etc. The <a target="_blank" href="https://www.ffmpeg.org/ffmpeg-bitstream-filters.html#noise">noise filter</a> intentionally damages the contents of packets without damaging the container. This sets the noise level to 1 but it could be left blank or any number above 0.</dd>
<dt>-c copy</dt><dd>use stream copy mode to re-mux instead of re-encode</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> <dt><i>output_file</i></dt><dd>path, name and extension of the output file</dd>
</dl> </dl>
<p class="link"></p> <p class="link"></p>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- ends Broken DV --> <!-- ends Broken File -->
<!-- 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>