From 2e08fd07426b148474296367882db9f27ed7bb18 Mon Sep 17 00:00:00 2001 From: Reto Kromer Date: Sat, 7 May 2016 06:49:10 +0200 Subject: [PATCH] Comments on style * If we do not code CR and/or LF into the

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. --- index.html | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 13bd1a6..09e29d7 100644 --- a/index.html +++ b/index.html @@ -953,12 +953,7 @@

Create a video from an image and audio file.

ffmpeg -r 1 -loop 1 -i image_file -i audio_file -acodec copy -shortest -vf scale=1280:720 output_file

-

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.

+

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.

ffmpeg
starts the command
@@ -971,11 +966,11 @@
-i audio_file
path, name and extension of the audio file
-acodec copy
-
copy the audio
+
copy the audio. -acodec is an alias for -c:a
-shortest
finish encoding when the shortest input stream ends
-vf scale=1280:720
-
filter the video to scale it to 1280x720 for YouTube
+
filter the video to scale it to 1280x720 for YouTube. -vf is an alias for -filter:v
video_output_file
path, name and extension of the video output file