1080p motion backgrounds7/1/2023 ![]() Lower bitrates will produce smaller files and will stream better, but will have a lower quality.Try different bitrate settings in the conversion commands above. Add the -b:v (target bit rate) option to the above commands ffmpeg -i input.mp4 -c:v libvpx-vp9 -an -b:v 1000k -s hd720 output-1000k.webmįfmpeg -i input.mp4 -c:v libx264 -an -b:v 1000k -s hd720 output-1000k.mp4 In order to ensure efficient streaming and playback, you'll need to optimize the bit rate. The hd720 value is a size preset which yields a frame size of 1280x720 (standard HD). If the source video was exported at Full HD or 4k, then you’ll need to add the -s (size) option to the above commands to set the output video size: ffmpeg -i input.mp4 -c:v libvpx-vp9 -an -s hd720 output.webmįfmpeg -i input.mp4 -c:v libx264 -an -s hd720 output.mp4 Standard HD size (1280x720) is sufficient and will have enough quality to be used as a background. The -an option removes the audio track, just in case it wasn’t already done in the source video.The -c:v option specifies the codec to use, libvpx-vp9 for WebM, and libx264 for H.264/MPEG-4.The -i option specifies the input video.Commands look something like this: ffmpeg -i input.mp4 -c:v libvpx-vp9 -an output.webmįfmpeg -i input.mp4 -c:v libx264 -an output.mp4 If you have homebrew it’s easy to install with brew install ffmpeg. To do this, I highly recommend using ffmpeg via the command line. In order for the video to be cross browser compatible, you'll need to convert it to multiple formats, currently, WebM and MP4. Video Conversion Guidelines Provide multiple formats Remove the audio channelĪudio can be distracting in this context, plus, background videos will not autoplay on mobile if they contain sound, so be sure to remove the audio channel completely. Conversion and optimization for use on the web will be done later (details below). When exporting the final video from your video editing application, be sure to export it with high quality settings. It is also important to keep in mind that excessive motion can also be disorienting for those with vestibular disorders (motion sensitivity). If there’s too much going on in the video, then it’s likely going to detract from the more important foreground. The background video is meant to visually support and reinforce the foreground information. Also, keep in mind that the term “background” video implies that there is more important information in the foreground. Some movement is okay, but excessive movement can be distracting and unwelcome. That should be an adequate amount of time to convey an intended idea or emotion. Keep the video around 10-15 seconds in length. ![]() Longer videos will have a greater file size, will consume more of the user’s bandwidth, and may take longer to start streaming. General Production Guidelines Keep the video relatively short
0 Comments
Leave a Reply. |