Giter Club home page Giter Club logo

Comments (28)

begeekmyfriend avatar begeekmyfriend commented on May 10, 2024

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.

satyamub avatar satyamub commented on May 10, 2024

@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.

begeekmyfriend avatar begeekmyfriend commented on May 10, 2024

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.

satyamub avatar satyamub commented on May 10, 2024

how do get this new version to check?

from yasea.

begeekmyfriend avatar begeekmyfriend commented on May 10, 2024

Just download the ZIP file

from yasea.

begeekmyfriend avatar begeekmyfriend commented on May 10, 2024

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.

begeekmyfriend avatar begeekmyfriend commented on May 10, 2024

Fixed on both nginx and wowza. 0307650

from yasea.

satyamub avatar satyamub commented on May 10, 2024

@begeekmyfriend how can I download the new code!!!

from yasea.

begeekmyfriend avatar begeekmyfriend commented on May 10, 2024

https://github.com/begeekmyfriend/yasea/archive/master.zip

from yasea.

satyamub avatar satyamub commented on May 10, 2024

@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.

satyamub avatar satyamub commented on May 10, 2024

What type of server you are using? if you don't mind sharing the info though!!

from yasea.

satyamub avatar satyamub commented on May 10, 2024

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.

begeekmyfriend avatar begeekmyfriend commented on May 10, 2024

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.

satyamub avatar satyamub commented on May 10, 2024

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.

begeekmyfriend avatar begeekmyfriend commented on May 10, 2024

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.

satyamub avatar satyamub commented on May 10, 2024

@begeekmyfriend can you please let me know some configuration which needs to be changed like you must have FMS configurations

from yasea.

begeekmyfriend avatar begeekmyfriend commented on May 10, 2024

Send your /opt/adobe/fms/conf to my email.

from yasea.

satyamub avatar satyamub commented on May 10, 2024

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.

begeekmyfriend avatar begeekmyfriend commented on May 10, 2024

You mean preview YUV data or h.264/AAC data? Data just from the surface or after preprocessing before publishing?

from yasea.

satyamub avatar satyamub commented on May 10, 2024

"data just from the surface" to show the user that broadcast will be started if you click on "Publish".

from yasea.

satyamub avatar satyamub commented on May 10, 2024

@begeekmyfriend Just camera preview and then when the user click on publish, the ramp push should start!!

from yasea.

begeekmyfriend avatar begeekmyfriend commented on May 10, 2024

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.

satyamub avatar satyamub commented on May 10, 2024

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.

begeekmyfriend avatar begeekmyfriend commented on May 10, 2024

Then just comment out this and that

from yasea.

satyamub avatar satyamub commented on May 10, 2024

no my friend still no luck.. Still I am not getting the preview... in fact onpreviewFrame is not getting called

from yasea.

begeekmyfriend avatar begeekmyfriend commented on May 10, 2024

Do nothing but just comment out these two lines and you will get the byte array

from yasea.

satyamub avatar satyamub commented on May 10, 2024

@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.

satyamub avatar satyamub commented on May 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.