diff --git a/index.html b/index.html index b108dd5..72ed7c0 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - +
Part 1: Create 3 second clip from an existing source file (no audio necessary)
+Part 1: Create 3 second clip from an existing source file (no audio necessary)
- ffmpeg -ss HH:MM:SS -i input.mov -c:v copy -c:a copy -t 3 output.mov
+ ffmpeg -ss HH:MM:SS -i input -c:v copy -c:a copy -t 3 output
Part 2: Make the gif
- ffmpeg -i input.mov -vf scale=500:-1 -t 10 -r 30 output.gif
+ ffmpeg -i input -vf scale=500:-1 -t 10 -r 30 output.gif
ffmpeg -sample_fmts
)
- ffmpeg -i input.mov -vcodec prores -profile:v 1 -acodec pcm_s16le -vf yadif output.mov
+ ffmpeg -i input.mov -c:v prores -profile:v 1 -c:a pcm_s16le -vf yadif output.mov
This command transcodes an input file (input.mov) into a deinterlaced Apple ProRes LT .mov file with 16-bit linear PCM encoded audio. The file is deinterlaced using the yadif (Yet Another De-Interlacing Filter) command.
@@ -220,15 +223,15 @@ Change the above data-target field, the button text, and the below div class (thThis command captures a certain portion of a video file, starting from a designated point in the file and taking an excerpt as long as the amount of time (in seconds) specified in the script. This can be used to create a preview or clip out a desired segment. To be more specific, use timecode, such as 00:00:05.
ffmpeg -i [input file] -vcodec libx264 -acodec copy [output file.mp4]
ffmpeg -i [input file] -c:v libx264 -c:a copy [output file.mp4]
This command takes an input file and transcodes it to h.264 with an .mp4 wrapper, keeping the audio the same codec as the original. The libx264 codec defaults to a “medium” preset for compression quality and a CRF of 23. CRF stands for constant rate factor and determines the quality and file size of the resulting h.264 video. A low CRF means high quality and large file size; a high CRF means the opposite.
@@ -524,21 +527,25 @@ Change the above data-target field, the button text, and the below div class (thIn order to use the same basic command to make a higher quality file, you can add some of these presets:
ffmpeg -i [input file] -vcodec libx264 -acodec copy -preset veryslow -crf 18 [output file.mp4]
libx264 also defaults to 4:2:2 chroma subsampling. Some versions of Quicktime can't read x264 files in 4:2:2. In order to allow the video to play in all Quicktime players, you can specify 4:2:0 chroma subsampling instead:
-ffmpeg -i [input file] -vcodec libx264 -pix_fmt yuv420p -acodec copy -preset veryslow -crf 18 [output file.mp4]
libx264 also defaults to 4:2:2 chroma subsampling. Some versions of Quicktime can't read x264 files in 4:2:2. In order to allow the video to play in all Quicktime players, you can specify 4:2:0 chroma subsampling instead:
+ffmpeg -i [input file] -c:v libx264 -pix_fmt yuv420p -c:a copy -preset veryslow -crf 18 [output file.mp4]