关于树莓派上使用gstreamer的问题

1.播放rtsp

播放成功
gst-launch-1.0 rtspsrc location=rtsp://XXXXXX:554/ISAPI/streaming/channels/101?auth=YWRtaW46MTIzNDU= ! rtph264depay ! h264parse ! omxh264dec ! videoscale ! video/x-raw, format=I420, width=1024, height=460 ! autovideosink

videoscale ! video/x-raw, format=I420, width=1024, height=460 可以删除


2.播放视频

gst-launch-1.0 -v filesrc location=/home/pi/mv/1.mp4 ! qtdemux ! h264parse ! omxh264dec ! autovideosink


3.videomixer 设置位置(非常卡)

gst-launch-1.0 -v videomixer name=mixer sink_1::xpos=512 sink_1::ypos=384 sink_1::zorder=3 !  videoconvert ! eglglessink \
filesrc location=/home/pi/mv/1.mp4 ! qtdemux ! h264parse ! omxh264dec ! videoscale !  video/x-raw, format=I420, width=512, height=384 ! mixer.sink_1 \
rtspsrc location=rtsp://XXXXXXX/Streaming/Channels/1?transportmode=unicast\&profile=Profile_1 ! rtph264depay ! h264parse ! omxh264dec ! mixer.sink_2


应该是videomixer的原因



发布了43 篇原创文章 · 获赞 10 · 访问量 10万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章