Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

streaming video shows jaggy and blocky patches while moving the camera #56

Open
khurramengr opened this issue Aug 7, 2014 · 13 comments

Comments

@khurramengr
Copy link

hy everyone
i am using libstreaming for streaming from Android device to Wowza server, but the issue is whenever i move my camera while streaming the video it shows blocky and jaggy patches in the stream, any suggestions???

@nocturnalprelude
Copy link

on which device are you doing testing ? what quality parameters did you try ?

@khurramengr
Copy link
Author

@nocturnalprelude, @fyhertz i've tried on Galaxy S3 and Galaxy Nexus with following parameters
1: VideoQuality(640,480,30,500000)
2: VideoQuality(320,240,20,500000)
but in both the cases it happens most of the times that recorded video is Greenish, blocky and jaggy...
is there any Video Quality parameter that is sure to be smooth across all the devices???

@nocturnalprelude
Copy link

I've tried "320x240, 30 fps, 1000 Kbps" on Samsung Galaxy S3 and it works well... not perfect.
On Nexus devices, video is greenish, blocky and jaggy :-(

@khurramengr
Copy link
Author

@nocturnalprelude do you think 1000 kbps bit rate is enough???
because even the samples for Libstreaming are using more than 100,000 kbps.........

@nocturnalprelude
Copy link

@khurramengr in libstreaming examples I see that bigger value is: "640x480, 30 fps, 600 Kbps"
less than 1000 so...

@khurramengr
Copy link
Author

@nocturnalprelude i've tried with your parameters but still the recorded stream contains blocky patches.
Is there anything else i need to change in code other than VideoQuality in order to get rid of blocky, and greenish patches????
Can you please share your code????

@nocturnalprelude
Copy link

@khurramengr did you force the streaming with MediaRecorder ?

@khurramengr
Copy link
Author

@nocturnalprelude no i didn't............

@themagge
Copy link

im using http://www.dr-lex.be/info-stuff/videocalc.html to calc the bitrate
works wonders

@nocturnalprelude
Copy link

@khurramengr:

// Use this to force streaming with the MediaRecorder API
mSession.getVideoTrack().setStreamingMethod(MediaStream.MODE_MEDIARECORDER_API);

@khurramengr
Copy link
Author

@nocturnalprelude I've tried forcing streaming with MediaRecorder but still the issue persists.......

@nocturnalprelude
Copy link

@khurramengr try this change:

#61

@yxnyxnyxnyxn
Copy link

@nocturnalprelude which place should I add this:
// Use this to force streaming with the MediaRecorder API
mSession.getVideoTrack().setStreamingMethod(MediaStream.MODE_MEDIARECORDER_API);

I have add following code in UriPaser.java, it seem does not work
if (videoApi>0 && session.getVideoTrack() != null) {
session.getVideoTrack().setStreamingMethod(MediaStream.MODE_MEDIARECORDER_API);
}
Thanks before
John

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants