Changes between Version 9 and Version 10 of Encode/YouTube


Ignore:
Timestamp:
Mar 13, 2014, 1:28:56 AM (6 years ago)
Author:
llogan
Comment:

add album art

Legend:

Unmodified
Added
Removed
Modified
  • Encode/YouTube

    v9 v10  
    77== Basic Examples ==
    88
    9 Re-encode the video and [http://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.
     9Re-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.
    1010{{{
    1111ffmpeg -i input.avi -c:v libx264 -preset slow -crf 18 -c:a copy -pix_fmt yuv420p output.mkv
     
    2222}}}
    2323
     24== Utilizing the included album cover/art ==
     25
     26Some music files contain the album cover.
     27
     28[[Image(album.jpg)]]
     29
     30You can see if your music file contains the album cover with `ffmpeg`. Look for a video stream:
     31
     32{{{
     33$ ffmpeg -i input.mp3
     34...
     35  Duration: 00:04:09.70, start: 0.025056, bitrate: 243 kb/s
     36    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 235 kb/s
     37    Stream #0:1: Video: mjpeg, yuvj420p(pc), 600x600 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
     38}}}
     39
     40Or simply play it with `ffplay` and it will show the album cover and play the music:
     41
     42{{{
     43ffplay -i input.mp3
     44}}}
     45
     46Then you can use it as the video for your music that you want to upload to !YouTube:
     47
     48{{{
     49ffmpeg -i input.mp3 -c copy output.mkv
     50}}}
     51
     52If your music file does not contain album art then see the '''Create a video with a still image''' example above.
    2453
    2554== Using filters ==