Comments (28)
First please confirm what you are testing is under the latest version of this repository and without any modified. By the way, the latest commit is 7281158
Second please confirm that you have tested at the public domain srs.net and the on-line player works well.
If the above steps get verified and your case is still not in the right way, please attach with Android Studio to see the debug logging. For instance, if there is any log showing as
WriteThread: wrote video packet data, size 1234
then it connected on the server and is publishing, what you need to do is to check if the server and the player works well.
In addition, if it hangs and there is no tip shown on the activity, you may comment out these code to see what kind of exception has been thrown.
from yasea.
@begeekmyfriend .. I have my own encoder in iOS and the server works well there. I am working on a application for Android for the same purpose.
Your first two points works like, I have downloaded the latest one today and testing it. If I try to test using your server address, it works more lessly .
I am using the wowza test player to test.
I am doing the later part of the suggestion and will get back to you.
from yasea.
Hello, how are things going? I remember you have said that the player shows nothing on wawza. Just now I commented a patch in issue#9. It seemed the same thing happened on Nginx-RTMP. I think it is worth a try on wawza too. Just sync the latest version.
from yasea.
how do get this new version to check?
from yasea.
Just download the ZIP file
from yasea.
FMS has been verified to be all right.
Case of Wowza is here: #14 (comment)
You can try it on branch Wowza: https://github.com/begeekmyfriend/yasea/tree/wowza
from yasea.
Fixed on both nginx and wowza. 0307650
from yasea.
@begeekmyfriend how can I download the new code!!!
from yasea.
https://github.com/begeekmyfriend/yasea/archive/master.zip
from yasea.
@begeekmyfriend Yeah I tried this now when I start publishing in your rump path.. its started off and I can see the video playing in Wowza. The main issue is I got a FMS server configured. I want this library to publish the RTMP packet to that server which its not doing... Its showing the below Logcat means its trying to write however when I try to open that link. Its not showing anything...
WriteThread: wrote packet: RTMP Audio, size:194
from yasea.
What type of server you are using? if you don't mind sharing the info though!!
from yasea.
Please check the log below
05-10 12:06:07.435 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: waiting...
05-10 12:06:07.445 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: wrote packet: RTMP Audio, size: 93
05-10 12:06:07.445 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: waiting...
05-10 12:06:07.465 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: wrote packet: RTMP Audio, size: 99
05-10 12:06:07.465 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: waiting...
05-10 12:06:07.505 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: wrote packet: RTMP Audio, size: 98
05-10 12:06:07.505 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: waiting...
05-10 12:06:07.525 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: wrote packet: RTMP Audio, size: 92
05-10 12:06:07.525 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: waiting...
05-10 12:06:07.545 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: wrote packet: RTMP Audio, size: 94
05-10 12:06:07.545 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: waiting...
05-10 12:06:07.565 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: wrote packet: RTMP Audio, size: 94
05-10 12:06:07.565 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: waiting...
05-10 12:06:07.595 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: wrote packet: RTMP Video, size: 1497
05-10 12:06:07.595 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: waiting...
05-10 12:06:07.605 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: wrote packet: RTMP Audio, size: 95
05-10 12:06:07.605 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: waiting...
05-10 12:06:07.625 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: wrote packet: RTMP Audio, size: 94
05-10 12:06:07.625 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: waiting...
05-10 12:06:07.645 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: wrote packet: RTMP Audio, size: 93
05-10 12:06:07.645 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: waiting...
05-10 12:06:07.645 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: wrote packet: RTMP Audio, size: 96
05-10 12:06:07.645 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: waiting...
05-10 12:06:07.685 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: wrote packet: RTMP Audio, size: 92
05-10 12:06:07.685 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: waiting...
05-10 12:06:07.695 960-1469/net.ossrs.sea D/WriteThread﹕ WriteThread: wrote packet: RTMP Video, size: 2456
from yasea.
The log is normal. yasea is uploading both AV streams to the server.
If you are looking for business version, I recommend
Bravo Media Server maintained by chnvideo where the author of SRS takes office.
Nimble Streamer maintained by a Russian company.
from yasea.
If yasea is uploading then why its not showing the frames anywhere. I am sure the server is working correctly because its working good with iOS version encoder. Can you help me tracking the issue. Any help would be appreciated.
from yasea.
You mean FMS? It is good for my environment. I have no idea about its configuration though. I advice you to consult the server staff. So far yasea has been tested on FMS, Wowza, Ngnix-RTMP, SRS, Red5 and Nimble Streamer.
from yasea.
@begeekmyfriend can you please let me know some configuration which needs to be changed like you must have FMS configurations
from yasea.
Send your /opt/adobe/fms/conf
to my email.
from yasea.
okay one more thing is that I want to show the user the preview screen upfront before publish. I have tried to do that however I am not able to show that preview before. I even tried to call setonclicklistener programatically to start the publish process from oncreate still its not opening the preview screen. Please help.
from yasea.
You mean preview YUV data or h.264/AAC data? Data just from the surface or after preprocessing before publishing?
from yasea.
"data just from the surface" to show the user that broadcast will be started if you click on "Publish".
from yasea.
@begeekmyfriend Just camera preview and then when the user click on publish, the ramp push should start!!
from yasea.
You may control this chunk just to preview and not to publish at the beginning. Note that do NOT enable mEncoder at preview callback. You had better do it yourself since other guys might not hold the same idea, good luck.
from yasea.
I put this below code in concrete however this does not make the preview
startCamera();
aworker = new Thread(new Runnable() {
@Override
public void run() {
android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_AUDIO);
startAudio();
}
});
aloop = true;
aworker.start();
from yasea.
Then just comment out this and that
from yasea.
no my friend still no luck.. Still I am not getting the preview... in fact onpreviewFrame is not getting called
from yasea.
Do nothing but just comment out these two lines and you will get the byte array
from yasea.
@begeekmyfriend I got the preview and I will send the con file very shortly to your email.
Please do something for YUVtransformation or tell me the way to stop the preview rotation.
from yasea.
Hi @begeekmyfriend ... as FMS is converted into AMS so yeah.. which file you want to see inside "conf" let me know.
from yasea.
Related Issues (20)
- How to introduce it in Android Studio? HOT 1
- Can we use .acv file in filter? HOT 1
- Add APK to releases HOT 1
- 请问如何获取camera的流(帧)呢? HOT 1
- 请问如何无预览推流呢?
- 推屏幕 HOT 1
- 测试低带宽出现Network weak HOT 2
- 如何支持RTMPS HOT 4
- 小屏幕推流导致拉流清晰度低 HOT 6
- 推流成功几分钟后就闪退
- 空指针异常 HOT 3
- Error in decoding the stream when using Hardware Encoder HOT 2
- 华为meat40 pro中切换摄像头报错
- 安卓11和12框架使用问题
- Heavy pixelated video
- 推流界面处于onpause状态时怎么让摄像头继续采集数据 HOT 1
- Is Streaming possible over 5G? HOT 1
- Video streaming paused when screen locked HOT 1
- 收音问题 HOT 7
- 推流的视频很糊 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yasea.