pedroSG94 / AndroidReStreamer

Demo app to re stream from VLC
12 stars 13 forks source link

Update to latest version rtplibrary #4

Open moster67 opened 3 years ago

moster67 commented 3 years ago

Hello Pedro,

I am testing out this project of yours since it is very useful for certain situations, especially when you need to pull a rtsp-stream and then re-send it to another rtsp-server. I don't think this is possible with ffmpeg...

I have tested it with Wowza and it works but there are problems with video-scaling and video and audio which come and go. Maybe it will work better with the latest release of your rtplibrary? I haven't tried yet but do you foresee any problems in using your latest rtblibrary as a dependency?

Once again, thanks for your incredible work!

pedroSG94 commented 3 years ago

Hello,

Audio should not be supported in this project because you can't extract audio from VLC. Audio could be recorded from microphone that sometimes could capture speekers audio or from internal audio using implementation of display mode: https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/rtplibrary/src/main/java/com/pedro/rtplibrary/base/DisplayBase.java#L218 About video scaling if you means preview. I did few changes since that version and it should fix somes scale errors.

moster67 commented 3 years ago

OK, thanks for your input. Eventually, I tried with ffmpeg running on my Android phone and I was able to pull the RTSP-stream and re-broadcast to another RTSP-server. Now I only need to implement it as a service.... But if I could get your project working fine, then there would be no need for ffmpeg and which I prefer. I will try to modify your sources to work with your latest rtplibrary...

pedroSG94 commented 3 years ago

The problem with re stream project is that I don't know an android player that can get video and audio data in a good format to re stream it in my library. Maybe modify VLC to get audio buffers is possible but this seems too hard and I don't know so much of C++ to do it. For that reason I'm not updating this project because this is only video re streaming and use microphone for audio