I wanted to encode files in h264, but all the tutorials I found referenced to ffmpeg presets which, for some yet unknown reason, I didn't seem to have:
Code: Select all
[libx264 @ 0x2b463a0] Error setting preset/tune baseline/(null).
...
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[SOLUTION]
If only I had read ffmpeg's output more thoroughly. It already told me about which x264-presets it could offer. Right after the above shown error message were the following lines:
Code: Select all
[libx264 @ 0x2b463a0] Possible presets: ultrafast superfast veryfast faster fast medium slow slower veryslow placebo
[libx264 @ 0x2b463a0] Possible tunes: film animation grain stillimage psnr ssim fastdecode zerolatency
That's it.FFmpeg now accesses the x264 internal presets instead of using text files to emulate them. This is easier to maintain and use.
Just use one of the presets that ffmpeg is offering you and it works
PS: I'm still not quite sure if ffmpeg would actually find its preset-files on my system if I wanted to use file-based presets