[FFmpeg-user] YUV to h264 stream

Vittalprasad vittalprasad.br at gmail.com
Tue Mar 6 06:02:11 EET 2018

Hi All,

i have 1080p YUV420p file and i want to encode this file to 540p h264
stream. i tried below command it was throwing error.

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!

please share me command to convert yuv to resized h264 stream.

Thanks & Regards
Vittal Prasad B R

More information about the ffmpeg-user mailing list