From d3971b7ec235321d0e56c04629a695b937d254d0 Mon Sep 17 00:00:00 2001 From: kfrn Date: Thu, 4 Jun 2020 18:26:16 +1200 Subject: [PATCH 1/4] =?UTF-8?q?Recipe:=20SD=20=E2=86=92=20HD=20with=20pill?= =?UTF-8?q?arbox=20-=20add=20note=20about=20deinterlacing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Addresses https://github.com/amiaopensource/ffmprovisr/issues/380 --- index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.html b/index.html index a819b1a..7efcf3e 100644 --- a/index.html +++ b/index.html @@ -628,6 +628,9 @@
-c:a copy
re-encodes using the same audio codec
For silent videos you can replace -c:a copy with -an.
output_file
path, name and extension of the output file
+

If your source is interlaced, you will want to deinterlace prior to scaling. In that case, your command would look like this:

+

ffmpeg -i input_file -c:v libx264 -filter:v "yadif, colormatrix=bt601:bt709, scale=1440:1080:flags=lanczos, pad=1920:1080:240:0" -c:a copy output_file

+

See the Interlaced NTSC to MP4 recipe for a fuller explanation of the deinterlacing step.

From 528ba391354afceae05fb6993e6b76516393ccb9 Mon Sep 17 00:00:00 2001 From: kfrn Date: Thu, 4 Jun 2020 18:32:45 +1200 Subject: [PATCH 2/4] Recipe: transcode to H.264 - add note about >1 audio (etc) tracks Addresses https://github.com/amiaopensource/ffmprovisr/issues/383 --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index 7efcf3e..0a37a99 100644 --- a/index.html +++ b/index.html @@ -331,6 +331,7 @@
-crf 18
Specifying a lower CRF will make a larger file with better visual quality. For H.264 files being encoded with a 4:2:0 chroma subsampling scheme (i.e., using -pix_fmt yuv420p), the scale ranges between 0-51 for 8-bit content, with 0 being lossless and 51 the worst possible quality.
If no crf is specified, libx264 will use a default value of 23. 18 is often considered a “visually lossless” compression.
+

By default, this recipe will include one track of each type (e.g. audio, video) in the output file. If you wish to include more tracks, consult the entry on stream mapping.

For more information, see the FFmpeg and H.264 Encoding Guide on the FFmpeg wiki.

From 515c0c3ae2358d0cd911900a44afcbe229750f4b Mon Sep 17 00:00:00 2001 From: kfrn Date: Thu, 4 Jun 2020 18:39:49 +1200 Subject: [PATCH 3/4] Docs: fix typo --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 172427e..a9f804b 100644 --- a/readme.md +++ b/readme.md @@ -75,7 +75,7 @@ To contribute to this project directly (and more quickly), clone this repository * Example: [Rewrap a file](https://amiaopensource.github.io/ffmprovisr/#basic-rewrap) * Recipes involving `-filter_complex` can be some of the most verbose and difficult to understand, so breaking these down as much as possible into their relevant sections is ideal * Example: [Generate two access MP3s from input](https://amiaopensource.github.io/ffmprovisr/#append_mp3) -* Some recipes may refer to a specifc standard or vocabulary, and it's useful to link to these so that the user can scale the recipe to their use case +* Some recipes may refer to a specific standard or vocabulary, and it's useful to link to these so that the user can scale the recipe to their use case * Example: [Generate Broadcast WAV](https://amiaopensource.github.io/ffmprovisr/#bwf) ### Make a request From 885535c33bf1e587f1c67ca6da97bf2be84d7def Mon Sep 17 00:00:00 2001 From: kfrn Date: Thu, 4 Jun 2020 18:42:58 +1200 Subject: [PATCH 4/4] =?UTF-8?q?Code=20style:=20normalise=20H264=20(etc)=20?= =?UTF-8?q?=E2=86=92=20H.264,=20aac=20=E2=86=92=20AAC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Matching the majority spelling --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 0a37a99..782b251 100644 --- a/index.html +++ b/index.html @@ -116,9 +116,9 @@

When creating or transcoding files with FFmpeg, it is important to consider codec settings for both audio and video, as the default options may not be desirable in your particular context. The following is a brief list of codec defaults for some common file types:

  • .avi: Audio Codec: mp3, Video Codec: mpeg4
  • -
  • .mkv: Audio Codec: ac3, Video Codec: h.264
  • -
  • .mov: Audio Codec: aac, Video Codec: h.264
  • -
  • .mp4: Audio Codec: aac, Video Codec: h.264
  • +
  • .mkv: Audio Codec: ac3, Video Codec: H.264
  • +
  • .mov: Audio Codec: AAC, Video Codec: H.264
  • +
  • .mp4: Audio Codec: AAC, Video Codec: H.264
  • .mpg: Audio Codec: mp2, Video Codec: mpeg1video
  • .mxf: Audio Codec: pcm_s16le, Video Codec: mpeg2video
  • .wav: Audio Codec: pcm_s16le (16 bit PCM)
  • @@ -2568,7 +2568,7 @@
    -flags +global_header
    Don't place extra data in every keyframe
    -vf scale="1280:-1"
    Scale to 1280 width, maintain aspect ratio.
    -pix_fmt yuv420p
    convert to 4:2:0 chroma subsampling scheme
    -
    -level 3.1
    H264 Level (defines some thresholds for bitrate)
    +
    -level 3.1
    H.264 Level (defines some thresholds for bitrate)
    -vsync passthrough
    Each frame is passed with its timestamp from the demuxer to the muxer.
    -crf 26
    Constant rate factor - basically the quality
    -g 50
    GOP size.