![]() Is it a reasonable size for mp4? Does image size matter a lot? Beign just one still image 1 fps wouldn't be a problem. What you're talking about there it's frames per second (fps) not bitrate. I m wondering if there is a way to reduce the video size eg force bit rate/second = 1 instead of 28 ?Īs it is a still image, no need to change. With only the information you provided this what I can think of.Īs there is only one image added to the video. If your audio input is already AAC then change -c:a aac to -c:a copy to avoid unnecessary re-encoding.Įncoding time will be longer and file size will be bigger than the YouTube commands above. This should play on just about anything except very ancient devices (change -profile:v main to -profile:v baseline if that is the case). c:v libx264 -preset medium -profile:v main -c:a aac -shortest -movflags faststart output.mp4 Widest compatibility for any player ffmpeg -loop 1 -i image.png -i music.mp3 -vf "scale='min(1280,iw)':-2,format=yuv420p" \ In these examples a very low frame rate is used which should process faster than the default of 25 fps. ![]() Your player probably won't like it but YouTube will. YouTube accepts just about anything so these commands use a few tricks to make encoding faster, or make the file size small, and to keep quality high because YouTube will re-encode whatever you give it. ffmpeg -loop 1 -framerate 1 -i image.jpg -i music.mp3 -c copy -shortest output.mkv It's super fast, but if size is important than the method above may produce a smaller file. This method just stream copies (no encoding) the image into the MKV container. c:v libx264 -preset veryslow -crf 0 -c:a copy -shortest output.mkv ![]() ffmpeg -loop 1 -framerate 1 -i image.jpg -i music.mp3 \ It is slower than the stream copy method below, but potentially will output a smaller file size. This method uses libx264 to encode H.264 video. For uploading to YouTube H.264: smallest files ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |