2017-01-27 8 views
1

.YUV를 h264로 변환하기 위해 다른 명령을 사용하고 있습니다. 내가 노력하고 또한G Streamer를 사용하여 보드에서 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

을 참조 할 수 있습니다

sudo apt-get install libx264-dev 
를 사용 x264enc

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 

설치