YUV to h264 stream

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

YUV to h264 stream

Vittalprasad
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.

*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!

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


Thanks & Regards
Vittal Prasad B R
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: YUV to h264 stream

Moritz Barsnick
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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".