TakuSemba / RtmpPublisher

Rtmp client on Android. Live Video Streaming.
Apache License 2.0
628 stars 149 forks source link

Is it possible to stream a raw h264 (come frome virtual display) to server? #30

Open chienpm304 opened 5 years ago

namespace7 commented 5 years ago

Yes it is possible

chienpm304 commented 5 years ago

Yes it is possible

Is there any sample about this problem? I tried some library but nothing worked.

namespace7 commented 5 years ago

https://github.com/TakuSemba/RtmpPublisher/tree/master/app this might help ! Coded in kotlin.

chienpm304 commented 5 years ago

Is your lib still working? I have try your sample on some rtmp server like Restream.io, mixer.com and youtube but nothing worked. I observer the Restream's dashboard that show your app just connect to server about 10s (nothing video/audio appear) and then it offline while your app still running. Please help!

namespace7 commented 5 years ago

I had the same issue,seems there is some issue with the library. Still no reply from the library owner :(

chienpm304 commented 5 years ago

I explored this library, it is based on https://github.com/ant-media/LibRtmp-Client-for-Android (RTMPMuxer) which call writeVideo(byte[] data ...). In this case ant-media wrote that video data is "h264 nal units", but I have not had any experience about this scope? Any help?