Linux Gstreamer 视频处理命令

tech2022-09-30  66

1.mp4转yuv

gst-launch-1.0 filesrc location=/home/source.mp4 ! qtdemux ! h264parse ! omxh264dec ! filesink location=/home/result.yuv

2.yuv转mp4

gst-launch-1.0 filesrc location=/home/source.yuv ! videoparse format=nv12 width=2592 height=2048 framerate=30/1 ! videoconvert ! omxh264enc ! h264parse ! mp4mux ! filesink location=/home/root/result.mp4

3.图像缩放   

gst-launch-1.0 filesrc location=/home/source.yuv ! videoparse format=nv12 width=2592 height=2048 framerate=30/1 ! videoscale ! video/x-raw, width=1280, height=720, format=NV12 ! filesink location=/home/result.yuv

4.队列

! queue

5.rtp推流视频

gst-launch-1.0 filesrc location=/home/source.mp4 ! rtph264pay ! udpsink host=192.168.1.1 port=5000 

6.获取视频信息

gst-discoverer-1.0 xxx.mp4

7.查看gst命令说明

gst-inspect-1.0 xxx

 

最新回复(0)