fyhertz / libstreaming

A solution for streaming H.264, H.263, AMR, AAC using RTP on Android
Apache License 2.0
3.48k stars 1.07k forks source link

Streaming with Wowza gives bad video quality. Any suggestion? #144

Open quanhua92 opened 8 years ago

quanhua92 commented 8 years ago

Hi, I am trying to use libstreaming to stream video to wowza. Currently, I have trouble when using the example3 of libstreaming. The video quality is very bad. Especially while the phone is moving. The phone that I used is Asus Zenfone 5 and Nexus 5. Both gives bad quality. (640x480, 30fps, 600kpbs) Do you know any way to achieve a better quality? I have tried the Gocoder application of Wowza and the quality is more better. Thank you very much.

01 02

ghost commented 8 years ago

Try with: mClient.setTransportMode(RtspClient.TRANSPORT_TCP);

ppamorim commented 8 years ago

+1 Same here.

im21 commented 8 years ago

Hello, Having same issue. Tested with Samsung galaxy s6 Android 5.1 (1280 * 720, 30fps, 2000kbps) Anyone with a solution to resolve it? Thanks

ppamorim commented 8 years ago

@quanhua92 Don`t use TCP for video streaming, very laggy and have a lot of problems if you use with any service like Wowza. Please use UDP instead.

ririsrismawati commented 8 years ago

Hi. I just tried to work with high resolution streaming. For me, I just change parameters.setPreviewSize(mQuality.resX, mQuality.resY); on VideoStream.java to parameters.setPreviewSize(1920, 1080); I don't know if this best way or not, but I have tested it on nexus 5 and other device too and works better.

Hope this help someone :)