Create Slide Exhibit From Pictures - Role 1

After you lot upload your pictures from your digital photographic telly camera to your Linux computer, you lot desire to stance them without having to manually opened upward each one. This post service explains how to practise a slide demo from a laid upward of motion-picture demo files using next post turns to Imagination, a GUI-based tool, to plough over the same goal.

To practise a video from yet images,

$ ffmpeg -r 1/3 -i image-%03d.png -vcodec re-create out.mp4

Notes:

  • Order matters

    In general, options are applied to the adjacent specified file on the ascendence line. For instance, the -r (aka, frame rate) pick applies to the PNG files, non the MP4 file. The guild of specifying options is of import for ffmpeg.

  • -r

    This is the frame charge per unit of measurement specified inward frames per second. The default is 25 which is likewise fast for human consumption. For a quick stance of a large number of pictures, I prefer three seconds per frame, or 1/3 frame per second, so -r 1/3.

  • -i

    The input motion-picture demo files must hold upward sequentially numbered, starting amongst the number 1. The image-%03d.png designing matches files image-001.png, image-002.png, etc.

    The input files must part the same size (e.g., 1280 x 720 pixels) in addition to format (e.g., PNG).

  • -vcodec copy

    The video input current volition hold upward copied equally is to the output file. Without this parameter, I institute that the final motion-picture demo file is omitted from the output video.

H5N1 slide demo tin hold upward quite bland without background music. You tin elevate the slide demo past times adding an well current from a well file using the next command:

$ ffmpeg -r 1/3 -i image-%03d.png -i music.mp3 -vcodec re-create -strict experimental out.mp4

Notes:

  • -i

    The video file (PNG) in addition to the well file (MP3) are specified.

  • -strict experimental

    This pick is required because the default AAC well encoder is experimental inward ffmpeg.

Ideally, the duration of both the video in addition to well input files is the same. Otherwise, you lot may hold upward staring at the video amongst no background music, or listening to the music piece the video is stuck at the final frame. The simplest solution is to add together the -shortest option.

The -shortest pick guarantees that the length of the output video does non run past times that of the shortest input stream, well or video. Therefore, when the video stops, in addition to then does the audio, in addition to vice versa.

$ ffmpeg -r 1/3 -i image-%03d.png -i music.mp3 -vcodec re-create -strict experimental -shortest out.mp4

If your well is longer than the video, you lot tin enable video looping past times specifying -loop 1. The cyberspace number is that the video volition restart at the kickoff if it finishes before the well does.

$ ffmpeg -loop 1 -r 1/3 -i image-%03d.png -i music.mp3 -vcodec re-create -shortest -strict experimental out.mp4

Note that -loop applies to video looping only. The well rail is non looped if it finishes before the video.

Using ffmpeg, you lot tin practise a basic, no-thrill slide demo from your yet pictures. If you lot desire to add together animation number piece transitioning from 1 slide to the next, delight run across my next post on the Imagination GUI tool.

If you lot are interested inward what else you lot tin practise amongst ffmpeg, delight read my before post service on Capturing video snapshots.

Berlangganan update artikel terbaru via email:

0 Response to "Create Slide Exhibit From Pictures - Role 1"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel