Slideshows & Video Cards

How to Create a Picture Slideshow With Music in 12 Steps

How to Create a Picture Slideshow With Music in 12 Steps
Photo: Aesthos AR. Photography / Pexels

To create a picture slideshow with music, drop your photos on a timeline, set each one to roughly 3 to 5 seconds, lay a song under them, trim the song to the picture runtime, fade it out and export an MP4. That is the whole job. A 24-photo slideshow takes about 25 minutes in a free editor once the photos and the track are chosen, and about 5 minutes of rendering if you use the script at the end of this guide.

Every editor repeats the same pattern. Kevin Stratvert, a technology educator and YouTube creator, shows it in his Clipchamp walkthrough for a picture-and-music video. He says he can press the green plus icon on a picture and that it will add the picture to his timeline, then he does the same with the music file. Clipchamp’s menus may have moved since he recorded it, but the order of work has not. Photos first, music second, trim, fade, export.

This guide gives you 12 numbered steps that work in any editor, then walks through CapCut, Canva, Adobe Express and the free Windows and Apple apps. If you plan to post the result, read the music rights step before you pick a song, because which tracks you can post decides whether the video stays up.

What you need before you start

The prerequisites are short. You need the photos, one music file, an editor and a place to save the export. For the script route you also need FFmpeg and ImageMagick. Neither has a version floor that matters here, so install the latest stable build of each from your package manager or the project’s own download page, then confirm the install in a terminal with ffmpeg -version. The app routes need nothing but a browser, a desktop app or a phone.

  • Photos: 10 to 60 JPG or PNG files, ideally 1920 pixels or wider on the long edge. Phone photos are fine. HEIC files from an iPhone need converting to JPG first in most free editors, and the script route wants JPG too.
  • Music: one MP3, WAV or AAC file you have the right to post. CapCut’s own guidance lists MP3, WAV and AAC as supported audio formats, and most other editors accept the same three.
  • An editor: CapCut (web, desktop or mobile), Canva, Adobe Express, Clipchamp on Windows, iMovie or Apple Photos on a Mac or iPhone, or the command line for the script route.
  • Disk space: about 1 GB free for a 24-photo project at 1080p, mostly for intermediate clips in the script route. A finished 90-second MP4 at 1080p usually lands under 150 MB.
  • Optional for the script route: a terminal with Bash (macOS, Linux, or WSL on Windows), FFmpeg with the libx264 encoder, and ImageMagick for orientation fixes.
  • Headphones: cheap, and the fastest way to hear a bad fade or a clipped chorus before anyone else does.

Make one folder called slideshow and keep everything inside it: an originals folder for untouched photos, a photos folder for the cleaned set, and the music file next to them. Keeping originals untouched saves you when a crop goes wrong at step 6 and you want to start over. Most slideshow disasters trace back to photos scattered across Downloads, Camera Roll and a messaging app.

One more prerequisite is a number: how long should the finished video run? Decide now, because it drives every later choice. A birthday clip for a group chat can sit at 45 seconds. A tribute or a travel recap usually wants the full length of one song. If you do not know, pick 90 seconds. That fits 20 or so photos at a comfortable pace and is short enough that nobody leaves halfway.

Finally, decide where the video will be watched first. A slideshow for a living-room TV and a slideshow for a phone feed want different canvases, different pacing and even different photo choices. Pick one primary target now. You can always render a second version later, and the script route makes that a one-line change.

Three ways to make a picture slideshow with music

You can make pictures and a music slideshow three ways: a template app that does the pacing for you, a timeline editor where you control everything, or a script that renders the same result every time. The right one depends on how many photos you have and whether you will ever make a second slideshow. The table below sorts the options by what each is best at, using the plan names the vendors list on their own pages today.

Illustrative: A black DSLR camera with a lens and neck strap on a wooden desk beside several printed photographs
Photo: George Milton / Pexels
RoutePlansBest forWatch out for
CapCut (web, desktop, mobile)Free plan plus paid plansVertical slideshows, beat-synced cuts, captionsPrices, credits and limits vary by region and plan, so check the pricing panel in your account
CanvaCanva Free and Canva ProTemplate-led slideshows in landscape, vertical or squareCheck the export dialog for what your plan allows before you design 60 pages
Adobe ExpressFree and Premium for individualsQuick beat-timed reels from photos and a trackIts AI Assistant is still labelled beta
Clipchamp (Windows)Free tier plus paid plansPlain timeline editing on a PCConfirm the export resolution on your plan before planning 4K
iMovie or Apple PhotosIncluded with Apple devicesFast family slideshows on Mac, iPhone and iPadLess control over exact seconds per photo
FFmpeg scriptFree, open sourceRepeatable results, big photo sets, no watermark everNo preview window, and you type commands

What do you get on a free plan? For CapCut, its slideshow guide describes a free editor, free slideshow templates and royalty-free music, sound effects and voiceovers. For Canva and Adobe Express, the vendors confirm Free plans exist, but export limits change often enough that you should read the export screen itself. The script route has no plan at all, which is its main selling point.

My rule of thumb: under 15 photos and a one-off, use a template app. Between 15 and 60 photos where you care about timing, use a timeline editor. Over 60 photos, or any time you will rebuild the same slideshow weekly (a school, a club, a family newsletter), use the script. If you are still weighing apps by price and limits, the slideshows and video cards category collects the tool comparisons, and this guide stays on the how-to.

There is also a fourth path that many people try first: a presentation app such as PowerPoint or Keynote, with each photo on a slide and the music set to play across slides. It works for a quick room-sized show, but exporting it as a video gives you less control over fades and loudness than any of the tools above, so treat it as a fallback.

Steps 1 and 2: pick the photos and fix them before import

Step 1: cull the set. Aim for one photo per beat of the story, not one photo per memory. Drop near-duplicates, blurry frames and anything where someone’s eyes are closed. Cutting 40 shots to 24 makes the slideshow feel faster and kinder to the viewer. Order the photos in the sequence you want them shown, because editors usually import alphabetically, and so does the script at the end.

Mix wide shots with close-ups so the eye has something to do. Three portraits in a row feel static even with motion added. Put your strongest image first and your second strongest last. People remember openings and endings, and a slideshow that opens on a blurry group shot has lost the viewer by second four.

Step 2: normalize the files. Rename the survivors to 001.jpg, 002.jpg and so on, fix their rotation and shrink anything absurdly large. The command below does all three in one pass. It reads from originals, applies the EXIF orientation flag so portrait shots stand upright, caps the long edge at a maximum size and writes sequentially numbered files into photos. On ImageMagick 7 replace convert with magick. If your originals end in .jpeg, .JPG or .png, change the glob on the second line, since the output is always a lowercase .jpg.

mkdir -p photos
n=1
for f in originals/*.jpg; do
  printf -v name "photos/%03d.jpg" "$n"
  convert "$f" -auto-orient -resize "3840x3840>" -quality 92 "$name"
  n=$((n+1))
done
ls photos | wc -l

The last line prints the photo count. If it says 24, you are ready. The > after the size tells ImageMagick to shrink only images larger than that size and leave smaller ones alone, so it never upscales and softens a small photo. Before moving on, build a contact sheet so you can eyeball the order in one glance.

montage photos/*.jpg -tile 8x -geometry 160x90+2+2 -background black contact.jpg

Open contact.jpg. You should see a grid of thumbnails, 8 across, in your intended order. Look for sideways photos, a run of similar colors and any shot that looks wrong at thumbnail size. If a shot is hard to read at 160 pixels wide, it will also be hard to read on a phone. Swap it out now rather than after you have placed 24 clips.

Phone users can skip the command line. Select the photos in your gallery, use the app’s own sort order, and let the editor handle rotation. Apple Photos and Google Photos both let you build an album first and send that album to the editor, which keeps the order intact. The important part is the same everywhere: cull first, order second, edit third.

Step 3: choose the song and measure it

Pick the song before you pace the photos. A track with a steady beat and a clear ending is easy to cut to. A track with a long ambient intro or a sudden stop fights you. Listen to the first 20 seconds and the last 20 seconds. If the first 20 seconds are a slow build, you can start the slideshow on a title card and let the photos arrive with the first beat.

Next, measure the file. Do not trust the duration your music app shows, because some files carry silent padding at the end. The ffprobe command that ships with FFmpeg reads the real length in seconds.

ffprobe -v error -show_entries format=duration -of default=nw=1:nk=1 music.mp3

It prints a single number such as 192.340000, which is 3 minutes 12 seconds. Now find the beat. Search the song title plus the word BPM, or tap it out against a stopwatch for 15 seconds and multiply by four. At 120 BPM, one beat is half a second and one bar of four beats is 2 seconds. That gives you a clean clock for cutting: an 8-beat photo lasts 4 seconds, a 4-beat photo lasts 2 seconds.

You rarely need the full song. A 3-minute track with 24 photos would make each picture sit for 7 or 8 seconds, which drags. Trim the song to the part that fits, usually a verse and a chorus or the instrumental bridge, and let the fade-out in step 9 hide the cut. Write down two numbers: the start time inside the song (for example 0:35) and your target runtime in seconds.

Two quick tests prevent regret. First, play the section you plan to use with the sound low while you scroll through the contact sheet. If the mood matches, keep it. Second, check where the track gets loud. A big chorus makes a good spot for your best photo or a group shot, so mark that time in your notes. Editors let you drag the music left or right until the chorus lands where you want it.

Lyrics deserve one extra check. A song with words about something unrelated to your photos can undercut a tribute or a wedding montage, and a sad lyric under a birthday clip lands badly. Instrumental tracks avoid the problem, and they also leave room for a voiceover later. If you are not sure, choose the instrumental version of the same song when the library offers one.

Steps 4 and 5: set the canvas and work out seconds per photo

Step 4: choose the canvas. Pick the aspect ratio for where the video will live, not for where the photos came from. Landscape 16:9 fits YouTube, TVs and laptops. Vertical 9:16 fits Reels, TikTok and Shorts. Square and 4:5 fit Instagram feed posts. Photos with a different shape get either cropped or padded, so choose the canvas that crops the fewest of your best shots. The table below holds the render settings I reach for on the common targets.

Illustrative: Person in a white shirt and jeans sorting printed photos spread on a wooden table beside a camera
Photo: George Milton / Pexels
UseCanvasFrame rateHold per photoExport format
YouTube or TV playback1920×1080 (16:9)30 fps4 to 5 sMP4, H.264 video, AAC audio
Reels, TikTok, Shorts1080×1920 (9:16)30 fps2 to 3 sMP4, H.264 video, AAC audio
Instagram feed, portrait1080×1350 (4:5)30 fps3 to 4 sMP4, H.264 video, AAC audio
Instagram feed, square1080×1080 (1:1)30 fps3 to 4 sMP4, H.264 video, AAC audio
Big screen or archive3840×2160 (16:9)30 fps4 to 5 sMP4, H.264 or H.265, AAC audio
Slow memorial or tribute1920×1080 (16:9)30 fps5 to 6 sMP4, H.264 video, AAC audio

Thirty frames per second is the safe default for photos. There is no motion in the source material that needs 60, and 30 keeps files small. Use H.264 with AAC audio at 48 kHz unless you have a reason to do otherwise, because every phone, browser and upload form accepts it. For a 1080p30 slideshow, a video bitrate around 8 Mbps is a sound starting point. The script below uses a constant quality setting (CRF 18) instead, which scales the bitrate to the picture.

Step 5: do the timing math. The formula is short. Photos needed equals target length divided by seconds per photo. With crossfades, each transition overlaps the neighbors, so seconds per photo here means the net slot: hold time minus overlap. The table below lists photo counts for common song lengths at three paces.

Target length3 s per photo4 s per photo5 s per photo
30 seconds10 photos7 photos6 photos
60 seconds20 photos15 photos12 photos
90 seconds30 photos22 photos18 photos
2 minutes40 photos30 photos24 photos
3 minutes60 photos45 photos36 photos
4 minutes80 photos60 photos48 photos

Three seconds is brisk and suits energetic music or a dense gallery. Four seconds is the comfortable default. Five or more suits slow music, tributes and photos that need reading time, like a group shot where the viewer hunts for a face. If your count does not match the table, you have two fixes: trim the music to fit the photos you have, or hold the strongest photos a little longer. Do not stretch every photo to 8 seconds to fill a gap, because the pacing dies.

awk -v song=192 -v hold=4.5 -v fade=0.5 'BEGIN{printf "%d photos\n", (song - fade)/(hold - fade)}'

Step 6: build the timeline in CapCut, Canva or Adobe Express

Step 6 is where the photos meet the timeline. The mechanics differ by app, but you perform four moves in all of them: set the canvas, import the photos in order, set a default photo duration, and add the music track. Do the duration first. Changing 24 clips one by one is a chore that most apps let you avoid with a project-wide setting or a multi-select.

CapCut on web, desktop or phone

CapCut suits vertical slideshows and music-led cuts. According to its pricing page, it lists Free, Pro, Ultra and Teams plans, with Free shown as USD 0. Create a new project, set the ratio (16:9 or 9:16), and import the photos. Drag them onto the main track in your order. Select all photo clips, open the duration field and set 4 seconds. On mobile, tap a clip, choose Edit, then Duration. Add your music from the Audio tab or import your own file, then drag the audio clip so the chorus lands under your best photo.

CapCut’s official materials list a Magic Music Video Editor, and its slideshow guide describes ready-made slideshow templates that place the photos for you. Templates lock your timing to someone else’s beat map, so check the song and the length they ship with before you commit. You can browse the public gallery, such as the November 2026 template page, to see what the format looks like before opening the editor. If your photos need more than a pan and zoom, CapCut’s AI pages name Seedance 2.5 for turning reference images into editable drafts, though that is a different job from a classic slideshow.

Canva and Adobe Express

Canva works page by page. Start from a video or presentation design, set the page size, then upload the photos and place one per page. Set the page duration to 4 seconds, add a page transition, and add music from the Audio tab. Canva announced AI Controls on November 19, 2026 for Canva Free and Canva Pro users at no extra cost, which let you switch generative features off. According to Canva’s help documentation, those features include Canva AI Music and Sound Effects, so if you prefer licensed or self-supplied tracks, you can turn the AI option off and upload your own file. Canva posts its announcements in its newsroom.

Adobe Express has Free and Premium individual plans. For slideshows, its Highlight Reel Maker converts uploaded photos, video and audio into a beat-timed reel, which spares you the manual math from step 5. Adobe’s November 2026 release also added dedicated audio and voiceover controls and improved playback. Upload your set, choose the track, let the tool propose the cuts, then adjust any clip that lands badly. Its AI Assistant is labelled beta, so treat its suggestions as a draft and check every cut by ear.

Windows, Mac and phone apps

On Windows, Clipchamp follows the pattern in Stratvert’s walkthrough: add the photos and the music to the timeline, drag clip edges to set duration, then export. On a Mac or iPhone, Apple Photos can build a Memories movie from a selection with music chosen for you, while iMovie gives you a manual timeline with titles and a soundtrack. Google Photos can assemble a highlight video from selected pictures with templates and music, with options varying by device and region. The automatic ones are fast, though they pick their own pacing, so use the timeline editors when seconds per photo matter.

Whichever app you use, stop at this point and play the rough assembly with the sound on. You are checking order and pace only. Do not add effects yet. A slideshow with a bad order stays bad no matter how many transitions you layer on, and fixing order after effects are placed means moving every effect with it.

Name the project and save it now. Cloud editors save as you go, but desktop apps often wait for you, and a crash at the export stage is the classic way to lose an evening. Back up the folder with your originals, the music file and the project file together.

Steps 7 and 8: add Ken Burns motion, transitions and a title card

Step 7: add slow motion to stills. The Ken Burns effect is a slow zoom or pan across a still image. It stops a slideshow from feeling like a stack of slides, and it costs nothing. Most editors call it Pan and Zoom, Animate, or Motion. Keep it gentle: a small total zoom across the clip is enough. Alternate direction, so one photo pushes in and the next pulls out. If every photo zooms the same way, the rhythm becomes a tic.

Faces need care. Start the zoom wide and end on the face, not the other way, because the eye follows the motion and lands on the subject. For group shots, pan across the row from left to right. For landscapes, drift slowly in the direction of the horizon line. Skip the effect on photos with text, such as a menu, a certificate or a banner, since moving text is hard to read.

Step 8: choose transitions and a title. Use one transition type, the crossfade, and apply it everywhere at 0.5 seconds. That is quick enough to stay out of the way and long enough to look smooth. Spinning cubes, page curls and star wipes date the video faster than any photo in it. The exception is the end: a 1 second fade to black after the last photo gives the music room to finish.

A title card is optional but useful for events and tributes. Add 3 seconds of text over the first photo or a plain color: who, what and when. Keep it short and put it inside the safe area, away from the edges, because phones crop. If you want an animated opener rather than plain text, the intro themes with set resolution, length and frame rate show the sort of short sting you can drop in front of the photos. Match its frame rate and resolution to your project, or the export will resample it.

Captions can help too. If the slideshow carries a story, such as place names on a trip, add them as lower-third text over the bottom fifth of the frame and keep each to two lines at most. Hold each caption for the full length of its photo so nobody has to race to read it. Pick one font and one color for the whole piece, with enough contrast to read on a bright phone screen outdoors.

Steps 9 and 10: mix the music and clear the rights

Step 9: set the audio. Place the music so it starts at the first photo and trim it to the slideshow runtime. Add a 1 second fade-in and a 3 second fade-out. The fade-out is the difference between a finished video and one that stops mid-bar. If the song is shorter than the pictures, loop the best 8 or 16 bars instead of stretching the tempo, and keep the loop point away from a vocal line.

Illustrative: Close-up of black faders and red buttons on a grey audio mixing console with a decibel scale
Photo: Matthias Wunderlich / Pexels

Check levels. Music in a silent slideshow should sit comfortably below the top of the editor’s meter, so it never clips. If you add spoken narration, drop the music to roughly a third of its volume under the voice and bring it back up between sentences. Most editors call this ducking, and some do it automatically.

Step 10: clear the rights. Owning a song or streaming it does not give you permission to put it in a video you upload. For YouTube, use the YouTube Audio Library or a track whose licence names YouTube and monetized use. For Instagram and other Meta apps, use the platform’s own music library inside the app, or a track licensed for social posting and for the countries where you publish. For TikTok, similar rules apply to its own sound library. A private slideshow shown at a funeral or a party is a different case from a public upload, and an uploaded copyrighted track can get the video muted, blocked or claimed.

Licensed catalogs are moving toward the editors themselves. Adobe announced licensed UMG and WMG music for Premiere mobile, with iPhone availability first and Android described as coming soon. That helps people who edit in that app, but it does not carry over to a video you export and post elsewhere unless the terms say so. Read the terms attached to the track, not the marketing line around the library.

Keep a record. Put the track title, artist, source and licence page into a text file next to the project, and paste it into the video description if the licence asks for credit. If a platform flags the upload months later, that file saves you an hour of digging.

Steps 11 and 12: preview, export and check the file

Step 11: preview the whole thing. Watch it once on the target device, not only in the editor window. A phone shows crop problems and tiny text that a monitor hides. Watch for four things: any photo that arrives off-beat, a transition that flashes white, text that touches the edge, and audio that ends abruptly. Fix them in that order. Then watch the last 10 seconds twice, because endings get the least attention and the most blame.

Step 12: export. Choose MP4 with H.264 video and AAC audio, at the canvas size from your render table and 30 fps. Pick the highest quality preset the app offers if the file stays under the upload limit of your destination. If the app asks for a bitrate, 8 Mbps is a fair figure for 1080p30. Before you share, check the export screen for a watermark or end card on your plan, because some free tiers add one and you want to find that out before the family does.

Then verify the file itself. Do not trust the filename. The ffprobe call below prints the resolution, codecs, frame rate and duration of the finished video in one block, and works on exports from any editor.

ffprobe -v error -show_entries stream=codec_name,width,height,r_frame_rate,sample_rate:format=duration -of default=nw=1 slideshow.mp4

Example output for the 24-photo project built in the next section:

codec_name=h264
width=1920
height=1080
r_frame_rate=30/1
codec_name=aac
sample_rate=48000
duration=96.500000

Read it like a checklist. h264 and aac confirm the codecs. The width and height confirm the canvas. 30/1 confirms the frame rate. The duration should match your photo count times the length of each clip, minus the overlap of the crossfades. If your duration is off by more than a second, a clip is the wrong length or the music is shorter than the pictures. Open the file in a player, scrub to the end and make sure the music fades before the last frame.

Complete working project: a 24-photo slideshow script

This is the whole project in one file. It reads every JPG in a folder in alphabetical order, gives each photo a slow zoom (in on even photos, out on odd ones), joins the clips with 0.5-second crossfades, adds your music with a 1 second fade-in and a 3 second fade-out, normalizes the loudness and writes an MP4 with H.264 and AAC. Save it as make_slideshow.sh in your slideshow folder and run chmod +x make_slideshow.sh. It expects at least two lowercase .jpg files, which the step 2 command already produces.

#!/usr/bin/env bash
# usage: ./make_slideshow.sh photos music.mp3 slideshow.mp4
set -euo pipefail

SRC="${1:-photos}"
MUSIC="${2:-music.mp3}"
OUT="${3:-slideshow.mp4}"
W="${W:-1920}"; H="${H:-1080}"; FPS="${FPS:-30}"
HOLD="${HOLD:-4.5}"   # seconds per clip, including the overlap
FADE="${FADE:-0.5}"   # crossfade length in seconds
TAIL="${TAIL:-3}"     # music fade-out in seconds
BUILD="build"

command -v ffmpeg >/dev/null || { echo "ffmpeg not found"; exit 1; }
photos=("$SRC"/*.jpg)
N=${#photos[@]}
[ "$N" -ge 2 ] || { echo "need at least 2 .jpg files in $SRC"; exit 1; }
[ -f "$MUSIC" ] || { echo "music file $MUSIC not found"; exit 1; }

D=$(awk -v h="$HOLD" -v f="$FPS" 'BEGIN{printf "%d", h*f}')
SW=$((W*2)); SH=$((H*2))
TOTAL=$(awk -v n="$N" -v h="$HOLD" -v f="$FADE" 'BEGIN{printf "%.3f", n*h-(n-1)*f}')
AFADE=$(awk -v t="$TOTAL" -v k="$TAIL" 'BEGIN{printf "%.3f", t-k}')

mkdir -p "$BUILD"
rm -f "$BUILD"/clip_*.mp4

ZIN="min(zoom+0.0006,1.12)"
ZOUT="if(lte(on,1),1.12,max(zoom-0.0006,1.0))"

# 1. one zooming clip per photo
i=0
for f in "${photos[@]}"; do
  if (( i % 2 == 0 )); then Z="$ZIN"; else Z="$ZOUT"; fi
  echo "clip $((i+1))/$N: $f"
  ffmpeg -hide_banner -loglevel error -y -i "$f" \
    -vf "scale=${SW}:${SH}:force_original_aspect_ratio=increase,crop=${SW}:${SH},zoompan=z='${Z}':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':d=${D}:s=${W}x${H}:fps=${FPS},setsar=1,format=yuv420p" \
    -c:v libx264 -crf 16 -preset medium -r "$FPS" \
    "$BUILD/$(printf 'clip_%03d' "$i").mp4"
  i=$((i+1))
done

# 2. chain the crossfades
inputs=()
for ((k=0; k<N; k++)); do
  inputs+=(-i "$BUILD/$(printf 'clip_%03d' "$k").mp4")
done

filter=""
prev="[0:v]"
for ((k=1; k<N; k++)); do
  off=$(awk -v k="$k" -v h="$HOLD" -v f="$FADE" 'BEGIN{printf "%.3f", k*(h-f)}')
  filter+="${prev}[${k}:v]xfade=transition=fade:duration=${FADE}:offset=${off}[v${k}];"
  prev="[v${k}]"
done

# 3. add the music and render
echo "rendering $TOTAL seconds to $OUT"
ffmpeg -hide_banner -loglevel warning -y "${inputs[@]}" -i "$MUSIC" \
  -filter_complex "${filter%;}" \
  -map "$prev" -map "${N}:a" \
  -af "loudnorm=I=-16:TP=-1.5:LRA=11,afade=t=in:st=0:d=1,afade=t=out:st=${AFADE}:d=${TAIL}" \
  -t "$TOTAL" -c:v libx264 -crf 18 -preset slow -pix_fmt yuv420p -r "$FPS" \
  -c:a aac -b:a 192k -ar 48000 -movflags +faststart "$OUT"

echo "done: $OUT"

Run it with ./make_slideshow.sh photos music.mp3 slideshow.mp4. For a 24-photo folder you should see progress lines like these, followed by the render message and a short pause while the final encode runs.

clip 1/24: photos/001.jpg
clip 2/24: photos/002.jpg
...
clip 24/24: photos/024.jpg
rendering 96.500 seconds to slideshow.mp4
done: slideshow.mp4

How the script works, in plain terms. Each photo is first scaled up to twice the output size and cropped to fill the frame. Zoompan then moves a window across that larger picture, which keeps the motion smooth, because zooming on an image that is the same size as the output makes the frame shimmer in whole-pixel jumps. The d value is the number of output frames per photo, which is the hold time multiplied by the frame rate. The xfade offsets step by 4 seconds (hold minus fade), so each fade begins the moment the previous photo has shown for its net 4 seconds.

The audio chain runs three filters in order. Loudnorm sets the overall level near minus 16 LUFS, the fade-in softens the first beat and the fade-out starts 3 seconds before the end of the video. The -t option trims the music to the video length, so a 3-minute song does not stretch the file. The music file’s start is whatever second zero of the file is, so cut the song to the section you want first (any editor does this in seconds) or add -ss 35 before the -i "$MUSIC" part to start at 0:35. For vertical output, change two variables and nothing else:

W=1080 H=1920 HOLD=3 ./make_slideshow.sh photos music.mp3 reel.mp4

That renders a 9:16 video at 3 seconds per clip, matching the vertical row in the render table. Photos in landscape get center-cropped to fill the tall frame, so check the contact sheet and move any photo with a subject near the edge to a spot where the crop will not cut it, or crop it by hand first.

Common pitfalls

These seven mistakes account for most of the slideshows that look amateur. Each one is cheap to avoid when you know it exists.

  • Importing in the wrong order. Editors sort by filename, date or selection order, and not always the one you expect. Number the files before import, as in step 2, and check the contact sheet.
  • Mixed aspect ratios with black bars. Portrait and landscape shots in the same project create thick bars or heavy crops. Decide per photo: crop it, or use a blurred copy of the same photo as the background fill.
  • Holding every photo for the same number of seconds. A fixed pace is fine as a default, but a group shot deserves 5 seconds and a close-up of a hand can live with 3. Vary within 2 seconds either side of your default.
  • Letting the song run past the pictures. Either the video ends in silence or the music is cut dead. Trim to the runtime and fade the last 3 seconds.
  • Using a song you cannot post. The video gets muted or claimed after upload. Clear the rights at step 10, before you spend an hour on the edit.
  • Exporting at the wrong frame rate or codec. A project set to 24 fps with a 30 fps clip inside it can stutter. Match the frame rate once, at the start, and export MP4 with H.264 and AAC.
  • Upscaling tiny photos. A 600-pixel image stretched across 1920 pixels looks soft. Use it at a smaller size on a blurred background, or leave it out.

One more habit belongs next to the pitfalls: save a copy of the project before you export. If a fix is needed after the first viewing, you want the editable file, not only the MP4. Number the exports (v1, v2) rather than overwriting, so you can compare versions when someone says the first one was better.

Troubleshooting

When something goes wrong, match the symptom below. The first six cover editors in general, the rest cover the script.

  1. Some photos appear sideways. The files carry an EXIF rotation flag the editor ignored. Run the step 2 command with -auto-orient, or rotate the clip by hand and re-export.
  2. Black bars on a vertical export. Landscape photos on a 9:16 canvas leave bars by default. Set the clip to Fill or Crop, or add a blurred background layer behind a fitted photo.
  3. The music cuts off before the last photo. The track is shorter than the picture runtime. Loop the audio or shorten the photo holds until the numbers match, and confirm with the ffprobe check.
  4. The music is quiet after upload. Platforms normalize loudness. Aim near minus 16 LUFS before export rather than boosting the file afterwards, which only adds distortion. The script’s loudnorm filter does this.
  5. The video is muted or blocked on the platform. The track triggered a rights match. Replace it with a licensed or platform-provided track and upload again. A new upload is faster than an appeal for a short slideshow.
  6. The export looks blurry. Either the source photos are small or the export preset is low. Check the resolution in the export dialog and raise quality. In the script, lower the -crf value (16 is higher quality than 18) and expect a larger file.
  7. The zoom shakes or jitters in the script. The photo was not upscaled before zoompan. Keep the scale and crop steps well above the output size and keep the zoom step very small per frame.
  8. FFmpeg stops with a complaint about mismatched sizes or timebases on xfade. The clips differ in size, pixel aspect ratio or frame rate. The script already adds setsar=1, so make sure every clip was built with the same W, H and FPS. Delete the build folder and run again if you changed settings midway.
  9. The shell says ffmpeg: command not found. The install is missing or not on your path. Install it with your package manager, open a new terminal and run ffmpeg -version to confirm.
  10. The crossfade starts too early or the video runs short. The offsets assume every clip is exactly HOLD seconds. If HOLD times FPS is not a whole number, the frame count gets truncated and each clip loses a fraction of a frame, so the fades slowly drift early. Pick values that multiply to a whole number.
  11. The file will not play on a phone. Check the pixel format. The script forces yuv420p and adds the faststart flag so the file starts playing before it fully downloads. If you used another tool, re-encode with those two settings.
  12. The script says it needs at least 2 files, but you have photos. The glob matches lowercase .jpg only. Rename .JPG or .jpeg files, or run them through the step 2 command, which always writes lowercase .jpg.

If none of these fits, run the export again with the music removed. A silent export that looks right isolates the problem to the audio chain. Then add the music back and compare. That one A/B step resolves more slideshow bugs than any single setting I can name.

Advanced tips

Cut on the bar, not on the clock. Choose the photo length from the music instead of the other way round. At 120 BPM an 8-beat photo is 4 seconds. Because the script’s crossfade eats part of each clip, set HOLD to the bar length plus the fade, so every fade begins exactly on the bar. The snippet works it out for any tempo.

BPM=120; BEATS=8; FADE=0.5
HOLD=$(awk -v b="$BPM" -v n="$BEATS" -v f="$FADE" 'BEGIN{printf "%.3f", n*60/b + f}')
echo "HOLD=$HOLD"
HOLD=$HOLD FADE=$FADE ./make_slideshow.sh photos music.mp3 beat.mp4

It prints HOLD=4.500 for the example values, the same hold the main project uses. Start the music with the first photo, and the cuts will track the song for as long as the tempo stays steady. A tempo that drifts, such as a live recording, needs manual cuts in a timeline editor.

Build the cover and the ending as separate clips. Render the slideshow, then join a title card at the front and a thank-you card at the back using the same codec settings. If the clips share resolution, frame rate and audio sample rate, joining them is quick. An animated logo intro suits a channel or a brand slideshow, and it is the one place where a stock motion-graphics opener earns its seconds.

Use a blurred background for mixed photo shapes. In an editor, duplicate the photo onto a track below, scale it to fill, blur it and put the original on top, fitted. It keeps the whole picture visible and removes the bars. In the script route, ImageMagick can pre-bake the same look into each photo before the clips are built.

Make a vertical and a landscape cut from the same project. The script reads W and H from the environment, so one folder produces both. Keep a separate photos_vertical folder when a few photos need different crops for the tall frame. Reuse the same music, since the timing math carries over once you set HOLD.

Add narration. Record a voice track on a phone, drop it above the music on a timeline editor and use ducking or manual volume points to keep the voice clear. Record in a quiet room with soft surfaces, such as a closet full of clothes, and keep the phone about 20 centimeters from your mouth. Export the voice as WAV so it does not collect compression before the final mix.

Keep a master and a delivery file. Save the project and a high-quality export, then make smaller copies for chat apps and email. A 90-second file at 8 Mbps lands near 90 MB, while a lower-bitrate copy for messaging shrinks it a good deal with little visible loss on a phone screen. H.265 cuts the size further but plays on fewer devices, so keep H.264 as the file you send to relatives.

Questions creators ask

What is the easiest way to create a picture slideshow with music?

Use a free editor you already have, such as Clipchamp on Windows, iMovie or Apple Photos on Apple devices, or CapCut on a phone. Import the photos, set 3 to 5 seconds per photo, add your music file under them, trim and fade the song at the end and export MP4. Expect 20 to 30 minutes for about two dozen photos.

How many photos do I need for a 3-minute song?

Between 36 and 60, depending on pace. At 5 seconds per photo you need about 36, at 4 seconds about 45 and at 3 seconds about 60. If you have fewer photos, use a shorter section of the song instead of stretching each picture past 6 seconds.

How long should each picture stay on screen?

Four seconds is a reliable default. Use 2 to 3 seconds for upbeat music and vertical formats, and 5 to 6 seconds for slow music, tributes and group shots where viewers look for faces. Vary the pace a little so the slideshow does not feel mechanical.

Can I use any song from Spotify or Apple Music?

For a private slideshow you only play at home, usually yes in practice. For a public upload, no. A streaming subscription lets you listen but does not license the song for your video. Use a platform’s own music library, the YouTube Audio Library or a track whose licence covers your platform and use.

What export settings should I use?

MP4 with H.264 video and AAC audio, 30 frames per second, 1920×1080 for landscape or 1080×1920 for vertical. A video bitrate near 8 Mbps works for 1080p30, and audio at 48 kHz stereo is standard. Check the file with ffprobe or a media player before you share it.

How do I make the photos move instead of sitting still?

Apply the Ken Burns effect, a slow, subtle pan and zoom across each clip. Most editors call it Pan and Zoom or Animate. Alternate zoom in and zoom out, and skip it on photos that contain text.

Should I export as H.264 or H.265?

H.264 for anything you share. It plays on virtually every phone, TV and browser. H.265 makes smaller files at similar quality, but older devices and some upload forms refuse it. For a slideshow of stills, the size saving is rarely worth the compatibility risk.

Why does my slideshow look blurry after export?

Usually small source photos, a low export preset or an export size below the canvas size. Use photos at least 1920 pixels wide, export at the project’s full resolution, and raise the quality setting. If a single photo is the culprit, shrink it on a blurred background rather than stretching it.

More from the Vipid blog

Make it with Vipid

Theo Vance

Intros & Templates Editor · Vipid Team

Theo Vance is the Intros & Templates Editor at Vipid, where he covers intro and outro makers, template libraries for CapCut, Canva and the major editors, slideshow and video-card tools, and stream starting screens. He compares makers on what matters before you hit render: watermark, export resolution, length limits, licence and price, and dates every check. He also looks after the Vipid theme archive, the 2011–2016 intros the site was built on.

All articles by Theo Vance ›   How we check tools ›

Keep reading

Photo to Video Maker for Tribute and Birthday Videos
Slideshows & Video Cards

Photo to Video Maker for Tribute and Birthday Videos

Theo Vance·21 Nov 2026
Photo Video Maker With Music [2026]: 5 Tools, $0 Start
Slideshows & Video Cards

Photo Video Maker With Music [2026]: 5 Tools, $0 Start

Theo Vance·6 Nov 2026
Canva Slideshow Maker vs CapCut [2026]: 4 Tools Compared
Slideshows & Video Cards

Canva Slideshow Maker vs CapCut [2026]: 4 Tools Compared

Theo Vance·2 Nov 2026

Blog

Intros & Templates
Titles & Motion
Streaming
Editing & Export
AI Video

Vipid

About Vipid
Themes
News archive 2011–2016
Vipid Team

Editorial

Editorial policy
How we check tools
Corrections

Legal

Privacy policy
Terms of service
Making video intros since 2010.
The Vipid blog covers the tools behind them.