ffmprovisr/index.html

137 lines
6.2 KiB
HTML
Raw Normal View History

2015-03-21 01:32:55 +01:00
<!DOCTYPE html>
<html>
<head>
<title>ffmprovisr</title>
<meta charset="utf-8">
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
2015-03-21 03:33:41 +01:00
<link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Sanchez' rel='stylesheet' type='text/css'>
2015-03-21 01:32:55 +01:00
<link rel="stylesheet" href="css/bootstrap.min.css">
2015-03-21 02:05:44 +01:00
<link rel="stylesheet" href="css/css.css">
2015-03-21 01:32:55 +01:00
<link href="css/jquery.steps.css" rel="stylesheet" >
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="js/forms.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
<div class="container">
<div class="text-center">
<h1>➺ ffmprovisr ❥</h1>
<br/>
</div>
2015-03-21 01:53:24 +01:00
<!-- BUTTONS! -->
2015-03-21 01:32:55 +01:00
<div class="row">
2015-03-21 05:15:06 +01:00
<div class="well col-md-3 col-md-offset-0">
2015-03-21 02:14:04 +01:00
<br>
2015-03-21 05:15:06 +01:00
<h5>Making FFmpeg easier</h5>
2015-03-21 03:33:41 +01:00
<p>FFmpeg is a powerful framework for manipulating audiovisual files. Unfortunately, it also has a steep learning curve, especially for users unfamiliar with the command line. This app helps users through the bash command generation process so that more people can reap the benefits of the FFmpeg library. </p>
<p>This project is very much a work in progress. Each button displays a form to help fulfill a popular user request. To use, click on the button and fill out the form. After clicking the Generate button, a command line will appear in the box below. That line can be copied and pasted into a Terminal, with the assumption that the video file is located in the same directory that the user currently is in.</p>
<p>For FFmpeg basics, check out their <a href="https://www.ffmpeg.org/">official website.</a></p>
<p>For bash and command line basics, try the <a href="http://cli.learncodethehardway.org/book/">Command Line Crash Course</a></p>
</div>
2015-03-21 05:15:06 +01:00
<div class="well col-md-6 col-md-offset-2">
2015-03-21 03:33:41 +01:00
<h3>What do you want to do?</h3>
<h5>Select from the following.</h5>
2015-03-21 01:32:55 +01:00
2015-11-18 19:39:56 +01:00
<!-- sample example -->
2015-11-18 21:00:17 +01:00
<button type="button" class="btn btn-default" data-toggle="modal" data-target=".example">Sample example</button>
2015-11-18 22:53:51 +01:00
<!-- Change the above data-target field, the button text, and the below div class (the word after modal fade) -->
2015-11-18 21:00:17 +01:00
<div class="modal fade example" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<!-- where the text goes -->
2015-03-21 01:32:55 +01:00
<div class="well">
2015-11-18 19:39:56 +01:00
<h2>ffmpeg -i [sample file path]</h2>
2015-03-22 19:54:44 +01:00
</div>
<div class="well">
2015-11-18 19:39:56 +01:00
<ul>
2015-11-18 19:52:01 +01:00
<li>ffmpeg : starts the command</li>
<li>-i : i for info dudes!</li>
<li>[sample file path] : path to sample file</li>
2015-11-18 19:39:56 +01:00
</ul>
2015-03-22 19:54:44 +01:00
</div>
<div class="well">
2015-11-18 19:39:56 +01:00
<p>This is all about info! This is all about info! This is all about info! This is all about info! This is all about info! This is all about info! This is all about info! This is all about info! This is all about info! This is all about info! This is all about info! This is all about info! This is all about info! This is all about info! </p>
2015-03-22 19:54:44 +01:00
</div>
</div>
2015-11-18 21:00:17 +01:00
</div>
</div>
2015-11-18 20:30:34 +01:00
<!-- ends sample example -->
2015-03-22 19:54:44 +01:00
2015-11-18 21:00:17 +01:00
<!-- One thumbnail -->
<button type="button" class="btn btn-default" data-toggle="modal" data-target=".one_thumbnail">One thumbnail</button>
2015-03-21 01:32:55 +01:00
2015-11-18 21:00:17 +01:00
<div class="modal fade one_thumbnail" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<!-- where the text goes -->
<div class="well">
<h2>ffmpeg -i [file path] -ss 00:00:20 -f image2 -vframes 1 thumb.png</h2>
</div>
<div class="well">
<p>This first command will grab a thumbnail 20 seconds into the video.</p>
</div>
<div class="well">
<ul>
<li>ffmpeg: calls the program</li>
<li>-i for input</li>
<li>-ss 00:00:20: seeks video file to 20 seconds into the video </li>
<li>-f image2: Forces the file format. image2 is an image file demuxer.</li>
<li>-vframes 1: sets the number of frames (in this example, one frame)</li>
<li>thumb.png: output name and format</li>
</ul>
</div>
</div>
2015-11-18 21:00:17 +01:00
</div>
</div>
<!-- ends One thumbnail -->
2015-11-18 20:30:34 +01:00
2015-11-18 22:46:46 +01:00
<!-- Multi thumbnail -->
2015-11-18 22:47:23 +01:00
<button type="button" class="btn btn-default" data-toggle="modal" data-target=".multi_thumbnail">Many thumbnails</button>
2015-11-18 22:46:46 +01:00
<div class="modal fade multi_thumbnail" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<!-- where the text goes -->
<div class="well">
<h2>ffmpeg -i {path/inputfile.extension} -f image2 -vf fps=fps=1/60 out%d.png</h2>
</div>
<div class="well">
<p>This will grab a thumbnail every minute and output sequential png files.</p>
</div>
<div class="well">
<ul>
<li>ffmpeg: calls the program</li>
<li>-i for input</li>
<li>-ss 00:00:20: seeks video file to 20 seconds into the video</li>
<li>-f image2: Forces the file format. image2 is an image file demuxer</li>
<li>-vf fps=fps=1/60: -vf is an alias for -filter:v, which creates a filtergraph to use for the streams. The rest of the command identifies filtering by frames per second, and sets the frames per second at 1/60 (which is one per minute).</li>
<li>out%d.png: Names the output file. The %d is a regular expression that adds a number (d is for digit) and increments with each frame (out1.png, out2.png, out3.png…)</li>
</ul>
</div>
</div>
</div>
</div>
<!-- ends Multi thumbnail -->
2015-11-18 20:30:34 +01:00
2015-11-18 21:00:17 +01:00
</div> <!-- end this well (and this ends well) -->
</div> <!-- row -->
2015-11-18 20:30:34 +01:00
2015-03-21 01:32:55 +01:00
2015-03-21 05:15:06 +01:00
<div class="footer text-center">
2015-11-18 19:52:01 +01:00
<p>Made with ♥ at <a href="http://wiki.curatecamp.org/index.php/Association_of_Moving_Image_Archivists_%26_Digital_Library_Federation_Hack_Day_2015">AMIA #AVhack15</a></p>
2015-03-21 01:32:55 +01:00
</div>
</body>
</html>