diff --git a/index.html b/index.html index 91328f7..40c00c0 100644 --- a/index.html +++ b/index.html @@ -244,6 +244,7 @@ + @@ -728,14 +728,14 @@

ffplay -framerate 5 input_file_%06d.ext

ffplay
starts the command
-
-framerate 5
plays image sequence at rate of 5 images per second
- Note: this low framerate will produce a slideshow effect.
+
-framerate 5
plays image sequence at rate of 5 images per second
+ Note: this low framerate will produce a slideshow effect.
-i input_file
path, name and extension of the input file
This must match the naming convention used! The regex %06d matches six-digit-long numbers, possibly with leading zeroes. This allows the full sequence to be read in ascending order, one image after the other.
- The extension for TIFF files is .tif or maybe .tiff; the extension for DPX files is .dpx (or even .cin for old files). Screenshots are often in .png format.
+ The extension for TIFF files is .tif or maybe .tiff; the extension for DPX files is .dpx (or even .cin for old files). Screenshots are often in .png format.
-

Notes:

-

If -framerate is omitted, the playback speed depends on the image’s file size and on the computer's processing power. It may be rather slow for large image files.

+

Notes:

+

If -framerate is omitted, the playback speed depends on the images’ file sizes and on the computer’s processing power. It may be rather slow for large image files.

You can navigate durationally by clicking within the playback window. Clicking towards the left-hand side of the playback window takes you towards the beginning of the playback sequence; clicking towards the right takes you towards the end of the sequence.

@@ -776,22 +776,14 @@

ffmpeg -i input_file -filter_complex "[0:a:0][0:a:1]amerge[out]" -map 0:v -map "[out]" -c:v copy -shortest output_file

This command combines two audio tracks present in a video file into one stream. It can be useful in situations where a downstream process, like YouTube’s automatic captioning, expect one audio track. To ensure that you’re mapping the right audio tracks run ffprobe before writing the script to identify which tracks are desired. More than two audio streams can be combined by extending the pattern present in the -filter_complex option.

-
ffmpeg
-
starts the command
-
-i input_file
-
path, name and extension of the input file
-
-filter_complex [0:a:0][0:a:1]amerge[out]
-
combines the two audio tracks into one
-
-map 0:v
-
map the video
-
-map "[out]"
-
map the combined audio defined by the filter
-
-c:v copy
-
copy the video
-
-shortest
-
limit to the shortest stream
-
video_output_file
-
path, name and extension of the video output file
+
ffmpeg
starts the command
+
-i input_file
path, name and extension of the input file
+
-filter_complex [0:a:0][0:a:1]amerge[out]
combines the two audio tracks into one
+
-map 0:v
map the video
+
-map "[out]"
map the combined audio defined by the filter
+
-c:v copy
copy the video
+
-shortest
limit to the shortest stream
+
video_output_file
path, name and extension of the video output file
@@ -966,24 +958,15 @@

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.

-
ffmpeg
-
starts the command
-
-r 1
-
set the framerate
-
-loop 1
-
loop the first input stream
-
-i image_file
-
path, name and extension of the image file
-
-i audio_file
-
path, name and extension of the audio file
-
-acodec copy
-
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. -vf is an alias for -filter:v
-
video_output_file
-
path, name and extension of the video output file
+
ffmpeg
starts the command
+
-r 1
set the framerate
+
-loop 1
loop the first input stream
+
-i image_file
path, name and extension of the image file
+
-i audio_file
path, name and extension of the audio file
+
-acodec copy
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. -vf is an alias for -filter:v
+
video_output_file
path, name and extension of the video output file