关于树莓派上使用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的原因



你可能感兴趣的:(关于树莓派上使用gstreamer的问题)