Changes between Version 21 and Version 22 of Encode/YouTube


Ignore:
Timestamp:
Jun 13, 2018, 9:31:29 PM (4 months ago)
Author:
llogan
Comment:

Clarify faststart claim, titles, ToC

Legend:

Unmodified
Added
Removed
Modified
  • Encode/YouTube

    v21 v22  
    1 = How to Encode Videos for !YouTube and other Video Sharing Sites = 
     1{{{ 
     2#!html 
     3<h1 style="font-size: 22px;"> 
     4How to Encode Videos for YouTube, Facebook, Vimeo, twitch, and other Video Sharing Sites 
     5</h1> 
     6}}} 
    27 
    3 Since !YouTube, Vimeo, and other similar sites will re-encode anything you give it the best practice is to provide the highest quality video that is practical for you to upload. Uploading the original content is the first recommendation, but this is not always a choice due to file size or bandwidth limitations, so re-encoding may be required. This guide will show you how to create a high quality video using `ffmpeg`. 
     8[[PageOutline(1, Contents)]] 
     9 
     10Because !YouTube, Vimeo, and other similar sites will re-encode anything you give it the best practice is to provide the highest quality video that is practical for you to upload. Uploading the original content is the first recommendation, but this is not always a choice due to the file size or format, so re-encoding may be required. This guide will show you how to create a high quality video using `ffmpeg`. 
    411 
    512First read the [[H.264]] guide; specifically the section on CRF. The examples below use the same method as shown in the encoding guide but optimized for !YouTube. 
    613 
    7 == Basic Examples == 
     14= Basic Examples = 
    815 
    916Re-encode the video and [https://ffmpeg.org/ffmpeg.html#Stream-copy stream copy] the audio. The output should be a similar quality as the input and will hopefully be a more manageable size. 
     
    2229}}} 
    2330 
    24 == Processing During Upload == 
     31= Live Streaming = 
    2532 
    26 To satisfy their suggestion of: "Your videos will process faster if you encode into a streamable file format." 
     33See [[EncodingForStreamingSites|Encoding for Streaming Sites]]. 
     34 
     35= `faststart` for MP4/M4V/MOV files = 
     36 
     37If uploading MP4/M4V/MOV files [https://support.google.com/youtube/answer/1722171?hl=en YouTube recommends that the moov atom should be at the beginning of the file]. You can do this with the following option: 
    2738 
    2839{{{ 
     
    3041}}} 
    3142 
    32 == Live Streaming == 
     43If you already have a MP4/M4V/MOV file and want to "faststart" it then you can do so without needing to re-encode by using [https://ffmpeg.org/ffmpeg.html#Stream-copy stream copy] mode: 
    3344 
    34 See [[EncodingForStreamingSites|Encoding for Streaming Sites]]. 
     45{{{ 
     46ffmpeg -i input.mp4 -c copy -movflags +faststart output.mp4 
     47}}} 
    3548 
    36 == Utilizing the included album cover/art == 
     49{{{ 
     50#!div style="border: 1px solid #e5e5c7; margin: 1em; background-color: #ffd;" 
     51'''Note:''' For other formats, such as Matroska (MKV), `-movflags +faststart` is not necessary and will be ignored. 
     52}}} 
     53 
     54= Utilizing the included album cover/art = 
    3755 
    3856Some music files contain the album cover. 
     
    6482If your music file does not contain album art then see the '''Create a video with a still image''' example above. 
    6583 
    66 == Using filters == 
     84= Using filters = 
    6785 
    6886You can use filters to create effects and to add text. This example will use the [https://ffmpeg.org/ffmpeg-filters.html#avectorscope avectorscope], [https://ffmpeg.org/ffmpeg-filters.html#showspectrum showspectrum], and [https://ffmpeg.org/ffmpeg-filters.html#showwaves showwaves] filters to create effects, the [https://ffmpeg.org/ffmpeg-filters.html#overlay overlay] filter to place each effect, and the [https://ffmpeg.org/ffmpeg-filters.html#drawtext drawtext] filter to add text: 
     
    8098}}} 
    8199 
    82 == FAQ == 
     100= FAQ = 
    83101 
    84 === Encoding is too slow. What should I do? === 
     102== Encoding is too slow. What should I do? == 
    85103Use a faster `-preset` value, but note that this will increase the file size when using CRF mode. See the [[H.264]] guide for more information. 
    86104 
    87 === My video colors are messed up in my computer's media player or the video sharing site I uploaded my video to. Now what? === 
     105== My video colors are messed up in my computer's media player or the video sharing site I uploaded my video to. Now what? == 
    88106Add `-pix_fmt yuv420p` as an output option. Most (or perhaps all) non-FFmpeg based players do not support proper decoding of YUV 4:2:2 or YUV 4:4:4. !YouTube works however.