User Tools

Site Tools


tutorial:create_video_from_still_image_and_from_audio_file

This is an old revision of the document!


Create video from still image and from audio file

This page tries to explain how to create video file from still image(s) and from audio file.

There are two methods with AVIdemux to make these kind of videos, first is AVIdemux only and second is AVIsynth+AVIdemux.

AVIdemux only method is faster and easier if you only use one image.

AVIsynth+AVIdemux is little harder, but makes adding multiple images easier.

AVIdemux only

Basic plan is quite easy, open single image file, copy+paste it few times, add audio and save the result (encode audio+video if needed). Unfortunately certain AVIdemux versions have issues with frame duplication that might crash AVIdemux sometimes. Other issues is related to MP3 audio files, which AVIdemux might ignore.

  1. Open image file via File → Open…
  2. Use Edit → Copy, then use Edit → Paste (use Ctrl+v / ⌘v) to replicate the still image
  3. Add audio via Audio → Main Track…
  4. Set video and audio encoder (if needed), select output format then use File → Save → Save video…

Part 1. Open image

This is the easiest step. Just use File → Open… and select the .png or .jpg file you want to use. AVIdemux should show the image in the editor now (unfortunately AVIdemux doesn't open all image files nor show them correctly, if this happens, then use some image editor and change format of image and try again).

You can resize/crop the image later, but it is easier to resize/crop the image in image editor tool before you add it to AVIdemux.

Part 2. Copy+paste

Now part that requires some math. Don't worry, calculations are quite easy. You have to use Copy+paste+paste+paste… until you have enough frames. Enough frames in this case means length of audio in seconds multiplied by FPS. Default FPS is 25, you can change FPS value from Video → Frame Rate…

So if your audio track is 3 minutes and 24 seconds, and the FPS is 25, then you need (3*60+24)*25 = 204*25 = 5100 frames. You don't need exactly that many frames, but some video players will only play video for the duration of video track, so if you want the whole audio to be played, then have at least that many frames.

Instead of Copy+paste+paste, you can use Copy+Paste, then set A selection to 0 and B selection to last frame, then Copy+Paste and repeat.

IF YOU GET CRASH AT THIS STEP, then try AVIsynth method, or just save small working parts to video (like 40 frames), and join them together with File → Append…

Part 3. Import audio file

You can import AC3, MP3 and WAV audio tracks to your video. You can add the audio via Audio → Main Track…, then from Audio source select External AC3/MP3/WAV according to the audio track, and select the audio file via External file.

tutorial/create_video_from_still_image_and_from_audio_file.1320524052.txt.gz · Last modified: 2012/11/11 08:51 (external edit)