Gstreamer:将YUV(4:2:2)原始视频转换为mp4(带h264编码)

Gstreamer:将YUV(4:2:2)原始视频转换为mp4(带h264编码),gstreamer,mp4,h.264,yuv,Gstreamer,Mp4,H.264,Yuv,这就是我正在运行的,但是,它不起作用。这个命令怎么了 gst-launch-1.0 filesrc location=file.yuv!视频/x-raw,格式=YUY2!德克宾\ 视频转换!天哪!队列filesink location=output.mp4 错误:管道不想暂停 错误:无法初始化支持库此处有多处错误。这一个至少会让你更靠近 gst-launch-1.0 filesrc location=file.yuv ! rawvideoparse format=yuy2, width=xxx

这就是我正在运行的,但是,它不起作用。这个命令怎么了

gst-launch-1.0 filesrc location=file.yuv!视频/x-raw,格式=YUY2!德克宾\
视频转换!天哪!队列filesink location=output.mp4
错误:管道不想暂停
错误:无法初始化支持库

此处有多处错误。这一个至少会让你更靠近

gst-launch-1.0 filesrc location=file.yuv ! rawvideoparse format=yuy2, width=xxx, height=xxx ! \
videoconvert ! omxh264enc ! queue ! mp4mux ! filesink location=output.mp4