37 lines
1.4 KiB
HTML
37 lines
1.4 KiB
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
|
<link type="text/css" rel="stylesheet" href="./style.css" />
|
|
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
|
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
|
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
|
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
|
<script type="text/javascript">
|
|
SyntaxHighlighter.all();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<h1 id="toc_1">ffmpeg</h1>
|
|
|
|
<h2 id="toc_1.1">1080p to 720p</h2>
|
|
<pre class="brush: bash; toolbar: false;">
|
|
ffmpeg -i "Renaissance.1080p.mkv" -vcodec libx264 -b 5120k -s 1280x720 -acodec libfaac -ab 192kb -ar 48000 -ac 2 -f mp4 -deinterlace -vpre medium -threads 0 -y "Renaissance.720p.mp4"
|
|
</pre>
|
|
<p>
|
|
#ac = audio_channels (2 = Stereo, 6 = 5.1)
|
|
</p>
|
|
|
|
|
|
<h2 id="toc_1.2">2pass encoding</h2>
|
|
<pre class="brush: bash; toolbar: false;">
|
|
ffmpeg -i INPUT.avi -pass 1 -vcodec libx264 -vpre fast -b 5120k -threads 0 -f mp4 -an -y /dev/null && ffmpeg -i INPUT.avi -pass 2 -acodec libfaac -ab 192kb -ac 2 -vcodec libx264 -vpre fast -b 5120k -threads 0 OUTPUT.mp4
|
|
</pre>
|
|
|
|
<p>
|
|
[ <a href="index.html">Go home</a> ]
|
|
</p>
|
|
|
|
</body>
|
|
</html>
|