I would like to read a yuv video file and create a h264 file.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
You could use the gstreamer for this operation.
You could execute the command shown below for the same. Please make the necessary changes in the below command.
gst-launch-1.0 filesrc location=<path_to_yuv_file> blocksize=width*height*1.5 ! video/x-raw, width=1920, height=1080, framerate=30/1, interlace-mode=progressive, colorimetry=bt601 ! v4l2h264enc ! h264parse ! qtmux ! filesink location= ./sink.mp4
Regards,
Nikhil