sszhangpengfei / AndroidShow

通过MediaProjectionManager采集android屏幕视频流,app中搭建简单rtsp server与客户端通信,通过rtp 协议传输视频流,vlc等客户端来观看手机的屏幕实时视频
211 stars 87 forks source link

Problem in Playing with gstreamer #11

Closed EhsanTakalloo closed 4 years ago

EhsanTakalloo commented 4 years ago

Hi, Thanks for sharing your project. I have a problem in playing Android Screen in another linux based device using gstreamer. The gstreamer command works fine with libstreaming library, but it was designed for sending camera picture and not ANdroid Screen...

I'm getting following Messages from gstreamer when I want to play the Received Video:

WARNING: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstRtpH264Depay:rtph264depay0: Could not decode stream. Additional debug info: gstrtph264depay.c(1205): gst_rtp_h264_depay_process (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstRtpH264Depay:rtph264depay0: Undefined packet type

Could you please help me? I think there is something wrong with H264 Encoding...