Comments on style

* If we do not code CR and/or LF into the <p> tag, then is works fine more universally (e.g. on my Braille terminal).
* -vf is an alias for -filter:v. If we use it here, then we should at least mention this alias also in the other recipes.
* Here we use the alias -acodec, otherwise the abbreviation -c:a of -codec:a. This could be confusing for newcomers. At least a remark is needed.
This commit is contained in:
Reto Kromer 2016-05-07 06:49:10 +02:00
parent 96940eb917
commit 2e08fd0742

View File

@ -953,12 +953,7 @@
<div class="well">
<h3>Create a video from an image and audio file.</h3>
<p><code>ffmpeg -r 1 -loop 1 -i <i>image_file</i> -i <i>audio_file</i> -acodec copy -shortest -vf scale=1280:720 <i>output_file</i></code></p>
<p>This command will take an image file (e.g. image.jpg) and an
audio file (e.g. audio.mp3) and combine them into a video file that
contains the audio track with the image used as the video. It can be
useful in a situation where you might want to upload an audio file to
a platform like YouTube. You may want to adjust the scaling with -vf
to suit your needs.</p>
<p>This command will take an image file (e.g. image.jpg) and an audio file (e.g. audio.mp3) and combine them into a video file that contains the audio track with the image used as the video. It can be useful in a situation where you might want to upload an audio file to a platform like YouTube. You may want to adjust the scaling with -vf to suit your needs.</p>
<dl>
<dt>ffmpeg</dt>
<dd>starts the command</dd>
@ -971,11 +966,11 @@
<dt>-i <i>audio_file</i></dt>
<dd>path, name and extension of the audio file</dd>
<dt>-acodec <i>copy</i></dt>
<dd>copy the audio</dd>
<dd>copy the audio. -acodec is an alias for -c:a</dd>
<dt>-shortest</dt>
<dd>finish encoding when the shortest input stream ends</dd>
<dt>-vf <i>scale=1280:720</i></dt>
<dd>filter the video to scale it to 1280x720 for YouTube</dd>
<dd>filter the video to scale it to 1280x720 for YouTube. -vf is an alias for -filter:v</dd>
<dt><i>video_output_file</i></dt>
<dd>path, name and extension of the video output file</dd>
</dl>