Coder Social home page Coder Social logo

Comments (14)

mekya avatar mekya commented on August 20, 2024 1

Hi @iSinch ,

I recommend you to use Android Media Codec
https://developer.android.com/reference/android/media/MediaCodec.html

Probably you may want to look at a sample code. Here is the grafika
https://github.com/google/grafika

Nevertheless, it seems a little complex at first glance.

Sorry for late reply.

from librtmp-client-for-android.

mekya avatar mekya commented on August 20, 2024

:) Thank you.

Updated.

Ok?

from librtmp-client-for-android.

iSinch avatar iSinch commented on August 20, 2024

@mekya thanks' u :)
Could you tell me,please, how can I decode to h264 frames from camera ?

UPD - ENCODE to

from librtmp-client-for-android.

mekya avatar mekya commented on August 20, 2024

Decoding h264 frames is actually a different job. What do you want to do by decoding frames?

You may want to look at some projects about that.
https://github.com/artclarke/humble-video
https://ffmpeg.org/

from librtmp-client-for-android.

iSinch avatar iSinch commented on August 20, 2024

What do you want to do by decoding frames?

It's for write in your library.

Write h264 nal units with this function

from librtmp-client-for-android.

iSinch avatar iSinch commented on August 20, 2024

Ops, my mistake: I mean how to ENCODE frames from camera to h264*

from librtmp-client-for-android.

justinshaohi avatar justinshaohi commented on August 20, 2024

Hello @mekya
is it only support publish h264 ?

from librtmp-client-for-android.

mekya avatar mekya commented on August 20, 2024

Yeah unfourtunately muxer supports only H264. Sorry for that :(

On Tue, Sep 20, 2016 at 12:30 PM, justinshaohi [email protected]
wrote:

Hello @mekya https://github.com/mekya
is it only support publish h264 ?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#13 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADS8-_JnorTS1SSOD1FdVV4WLL79v-i3ks5qr6fKgaJpZM4JtzeO
.

from librtmp-client-for-android.

justinshaohi avatar justinshaohi commented on August 20, 2024

hi @mekya
i want to publish,i call native methon open(rtmpurl,width,height) firstly, it return -3。
that why?
sorry for my poor c++ :(

from librtmp-client-for-android.

mekya avatar mekya commented on August 20, 2024

Hi @justinshaohi

Hmm -3 means there is a problem in connecting to server

https://github.com/ButterflyTV/LibRtmp-Client-for-Android/blob/28d531cd6999960dcb9156d2ff2ff9e433c9c55c/rtmp-client/src/main/jni/flvmuxer/xiecc_rtmp.c#L167

Please make sure your server is configured correctly and accepts your connection.

from librtmp-client-for-android.

iSinch avatar iSinch commented on August 20, 2024

@mekya
Hey )
I have a suggestion - MayBe you modify return new value ? for example, when server respone code 403 ?

from librtmp-client-for-android.

mekya avatar mekya commented on August 20, 2024

Yeah @iSinch you're right. Do you ever think modifying this code and making a pull request?

from librtmp-client-for-android.

iSinch avatar iSinch commented on August 20, 2024

@mekya I will make it soon

from librtmp-client-for-android.

mekya avatar mekya commented on August 20, 2024

Hey @iSinch,
Closing this issue. You can make pull request whenever you are ready.

Cheers
m.

from librtmp-client-for-android.

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.