![]() c:v h264 -tune stillimage -crf 18: these are example settings of a basic h264 encoding, with an optional tuning for a still image source. ![]() r 25: is the option needed for creating an output video that runs at 25 FPS. In this case the first input ( 0:v) will be selected as the main video source, while the second input ( 1:a) will be used as the main audio source. map 0:v -map 1:a: Mapping option will specify how the various inputs are mapped for the final output. ![]() i your_audio_track.wav: is an example audio input in WAV format i your_still_picture.jpg: is an example input of a 1080×1080 pixel image, in JPG format Reference: Video and Audio File Format Conversion framerate 1/60: this will produce a video of 60 seconds and it’s to be used when the source input is a still picture, such in this example of one single JPG. Thus, a working example will be: ffmpeg -framerate 1/60 -i your_still_picture.jpg -i your_audio_track.wav -map 0:v -map 1:a -r 25 -c:v h264 -tune stillimage -crf 18 -c:a aac -b:a 128k -ac 2 -ar 44100 -pix_fmt yuv420p -max_muxing_queue_size 1024 -shortest your_final_instagram_video.mp4 You will need to specify also a frame-rate (whether 25 or 30 FPS, or else) and adjust the audio parameters accordingly. Specifically you will need to have a 1080×1080 output for an Instagram post, with AAC audio, in stereo at 128 Kbps. Unfortunately this is the wrong way to do it.Īlthough you will end up with a Mp4 video, without any errors on the FFMPEG side, you will end up with upload issues or errors once you will try to upload it to Instagram (i.e.: “ Instagram video must be 0 seconds or more” or a blank file, or an unseekable video, or similar issues).įirst of all, you want to check that your final composition (still picture + audio) are ready for the Instagram’s tech specs. ![]() You might think that the easiest and quickest way will be something like this: ffmpeg -i your_picture.jpg -i your_audio.wav -map 0:v -map 1:a your_instagram_post.mp4 While this can be one of the easiest tasks to accomplish with FFMPEG, you might overlook some important aspects of the process. Sometimes you may want to publish a very simple Instagram post (or a Story, or a Reel) which is composed by a simple still picture, plus an audio file, in a similar way of a YouTube Art Track. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |