2017-01-27 26 views
1

我使用不同的命令将.YUV转换为h264,请指导我如何使用。如何使用G流媒体将YUV文件格式转换为电路板上的H264?

gst-launch-1.0 filesrc location=test.yuv ! video/x-raw-yuv,format=\(fourcc\)YUY2, width=64, height=32, framerate=\(fraction\)30/1 ! xvimagesink 

另外,我想,

gst-launch-1.0 filesrc location= no__.yuv ! legacyh264parse ! ffdec_h264 ! queue ! ffmpegcolorspace ! autovideosink 

请帮我有关。

回答

0

您可以参考这个http://wiki.oz9aec.net/index.php/Gstreamer_cheat_sheet

对于例如

gst-launch -e filesrc location=test.yuv ! video/x-raw-yuv,format=\(fourcc\)YUY2, width=64, height=32, framerate=\(fraction\)30/1 ! x264enc ! mpegtsmux ! filesink location=test.ts 

安装x264enc使用

sudo apt-get install libx264-dev 
相关问题