Results 1 to 1 of 1

Thread: How to prepare images to upload to Youtube

  1. #1
    Join Date
    Jul 2009
    Location
    CyberspacEastEngland
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    How to prepare images to upload to Youtube

    to get full ffmpeg functionality install from here

    ◄►◄►◄►◄►◄►◄►◄►◄►


    ONE IMAGE + ONE SOUND FILE

    If you have a song or speech file and want to upload

    Code:
    time ffmpeg  -loop 1 -r 2 -i INPUT.png -i INPUT.mp3 -c:a copy -c:v libx264 -g 7 -crf 0 -vf scale=-1:720  -preset veryfast -shortest OUTPUT.mkv

    scale can be 1:1080 if you wish for even higher res
    Thanx to FakeOutDoorsman and Temüjin for code


    IMAGES TO VIDEO [NO SOUND]


    Say set of photos from your camera


    Code:
    time ffmpeg  -r 1/15 -pattern_type glob -i '*.JPG' -s 1640x1230 -c:v libx264  OUTPUT.mkv
    if png needs one extra command

    Code:
    time ffmpeg  -r 1/15 -pattern_type glob -i '*.png' -s 1640x1230 -c:v libx264  -pix_fmt yuv420p OUTPUT.mkv

    will display new image every 15 seconds ; change ratio to suit you [1/5 , 1/22 etc...] ; can also change -s to the size you wish for
    extra info


    ps All your pictures need be the same size and format to work if they are not run this first


    for f in *.png; do convert "$f" -resize 2700x2500 -background black -compose Copy -gravity center -extent 2700x2500 "${f%.png}.png"; done
    Last edited by shantiq; September 17th, 2013 at 09:54 AM.
    Linux is Latin for off-the-beaten-track [◄►] ● Is there Voodoo in the machine?
    ShanArt Xmms

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •