[FFmpeg-user] YUV to h264 stream

Moritz Barsnick barsnick at gmx.net
Tue Mar 6 18:39:35 EET 2018


On Tue, Mar 06, 2018 at 09:32:11 +0530, Vittalprasad wrote:
> *command:*
> ffmpeg -c:v rawvideo -pix_fmt yuv420p  -s:v 1920x1080 -r 30 -i bb.yuv -vf
> scale=960:540 -c:v h264 out.h264
> 
> *Error:*Cannot load libcuda.so.1
> Error initializing output stream 0:0 -- Error while opening encoder for
> output stream #0:0 - maybe incorrect parameters such as bit_rate, rate,
> width or height
> Conversion failed!

Could you please show us the complete, uncut console output of your
command?

I assume your ffmpeg only supports cuda for encoding to H.264, and your
system does not have the cuda libraries installed.

Moritz


More information about the ffmpeg-user mailing list