關於樹莓派上使用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萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章