Can I use this ffmpeg command on Mac for still image music videos? ffmpeg -loop 1 -framerate 2 -i input.png -i audio.m4a -c:v libx264 -preset medium -tune stillimage -crf 18 -c:a copy -shortest -pix_fmt yuv420p output.mkv
Is the bitrate different for sw encoding different from videos to videos? I have a lot of .ts videos that I want to convey to .mp4 format, I've already setup batch conversion in a for loop, but looks like if I want to use hw encoding to run through all the videos faster, then I'd need to check their corresponding bitrate one by one to have comparable file size, so batching the process wouldn't work
Very nice explained. 1 questions, I have a amazon ec2 Ubuntu 18.0. I have installed ffmpeg and when I ran the command using hardware encoder. I got the error, no codec like this. How to find hardware encoder in the system. Thanks
I'm guessing Amazon is not supporting Intel QuickSync with a typical EC2 instance. You might want to try one of their "metal" instances. When you choose hardware, look for something like "i3.metal". That should be running on bare hardware and give you access to the hardware encoding. I haven't tried this myself but I'm thinking it might work.
nice guide. but i have one question. if i want to use ffmpeg on mac to encoding a .m2ts which from Blu-ray, and it has multiple audio stream and mulitple subtitles, how can it select the audio and subtitle by command line? thanks
2024 and somehow h264_videotoolbox ignores if I try to set a low bitrate on my Apple M2 mac. I tried the same 3rd command ,but just changing -b:v to 1500k and it keeps encoding around 3000k. I ended up using libx264, but with the opencl option enabled to be able to achieve it. It is slightly slower than h264_videotoolbox. ffmpeg -i INPUT.MP4 -vf scale=1920:1080 -acodec copy -vcodec libx264 -x264opts opencl -b:v 1500k output.mp4
I'm guessing hardware encoding only supports a certain range of bitrates. If I were more skilled, I'd look through the source code to see what is going on.
Visit my website for more FFmpeg content! www.rickmakes.com/ffmpeg-notes/
Thanks. Very nice explained.
You are welcome!
Can I use this ffmpeg command on Mac for still image music videos?
ffmpeg -loop 1 -framerate 2 -i input.png -i audio.m4a -c:v libx264 -preset medium -tune stillimage -crf 18 -c:a copy -shortest -pix_fmt yuv420p output.mkv
Is the bitrate different for sw encoding different from videos to videos? I have a lot of .ts videos that I want to convey to .mp4 format, I've already setup batch conversion in a for loop, but looks like if I want to use hw encoding to run through all the videos faster, then I'd need to check their corresponding bitrate one by one to have comparable file size, so batching the process wouldn't work
Very nice explained.
1 questions, I have a amazon ec2 Ubuntu 18.0.
I have installed ffmpeg and when I ran the command using hardware encoder. I got the error, no codec like this.
How to find hardware encoder in the system.
Thanks
I'm guessing Amazon is not supporting Intel QuickSync with a typical EC2 instance. You might want to try one of their "metal" instances. When you choose hardware, look for something like "i3.metal". That should be running on bare hardware and give you access to the hardware encoding. I haven't tried this myself but I'm thinking it might work.
@@Rickmakes ok thanks for your reply.
I'll check as you suggested
nice guide.
but i have one question. if i want to use ffmpeg on mac to encoding a .m2ts which from Blu-ray, and it has multiple audio stream and mulitple subtitles, how can it select the audio and subtitle by command line?
thanks
2024 and somehow h264_videotoolbox ignores if I try to set a low bitrate on my Apple M2 mac.
I tried the same 3rd command ,but just changing -b:v to 1500k and it keeps encoding around 3000k. I ended up using libx264, but with the opencl option enabled to be able to achieve it. It is slightly slower than h264_videotoolbox.
ffmpeg -i INPUT.MP4 -vf scale=1920:1080 -acodec copy -vcodec libx264 -x264opts opencl -b:v 1500k output.mp4
I'm guessing hardware encoding only supports a certain range of bitrates. If I were more skilled, I'd look through the source code to see what is going on.