Coder Social home page Coder Social logo

Comments (20)

alle1974 avatar alle1974 commented on August 19, 2024

Are you able to record only with the libstreaming ?

from libstreaming.

nuttee15 avatar nuttee15 commented on August 19, 2024

Did anyone find the solution of this problem yet? I am also experiencing this issue.
Thanks in advance.

from libstreaming.

sbaar avatar sbaar commented on August 19, 2024

[http://developer.android.com/reference/android/media/MediaMuxer.html](Media Muxer)
[http://bigflake.com/mediacodec/EncodeAndMuxTest.java.txt](example code)

It should be possible with this class and code, taking the mediacodec's output and giving it to the muxer before it's sent along the network in MediaCodecInputStream.java, but when I tried the video was very temperamental. It would only play in some video players, only seek to the nearest 30 seconds, and recording locked up some devices. I took it from kickflip's apache sdk, so it's safe to use. I wouldn't use it in production yet, but it's a good place to start.
@nuttee15
@alle1974
https://gist.github.com/sbaar/d473583e4cab2b53c41a

from libstreaming.

ririsrismawati avatar ririsrismawati commented on August 19, 2024

What's solution for this issue? The link from @sbaar has broken, 404 :( Can anyone help to solve this issue? Some link/gist might help.

Thanks for any help.

from libstreaming.

sbaar avatar sbaar commented on August 19, 2024

@ririsrismawati The link is working if you copy and paste it into the url bar, I don't know why clicking it gives 404 :/

from libstreaming.

yxnyxnyxnyxn avatar yxnyxnyxnyxn commented on August 19, 2024

I also met this problem, I want to record the stream on server and keep the stream preview on client at the same time, anyone has solved this problem?

Thanks,
John

from libstreaming.

ririsrismawati avatar ririsrismawati commented on August 19, 2024

Hi @sbaar thank you, the url working if I copy and paste it into the url bar.
I have seen your gist and make a start with AACStream.java but I still confuse about mMuxer. I want to make sure mMuxer is MediaMuxer isn't it? Can you explain more about mMuxer on AACStream.java?

Thank you before.

from libstreaming.

sbaar avatar sbaar commented on August 19, 2024

@ririsrismawati mmUxer in the AAC and VideoStream classes is the Muxer class in the gist, which encapsulates a regular MediaMuxer. It relies on video and audio being added with addTrack in MediaCodecInputStream to start recording. Basically, the muxer is intercepting the audio/video to save before the packets are sent out to the network. You want to set the muxer on both AV streams before they start recording like in BroadcastActivity.java so that the muxer recieve the start signals properly from the MediaCodec.

from libstreaming.

yxnyxnyxnyxn avatar yxnyxnyxnyxn commented on August 19, 2024

@sbaar I have added muxer to libstreaming, but I found the record resolution is too small(default:176x144). I want to record higher resolution, and there is no higher resolution need for client preview. But if I modified the videoquality to higher resolution, client preview resolution has also been modified. Could I improve record resolution without modifying client preview resolution?

Thanks you before.

from libstreaming.

sbaar avatar sbaar commented on August 19, 2024

I doubt it's possible using this library. You can try setting up a second media codec pair, but that would probably be a lot of work and it may not even be supported to have two encoders going at the same time on a lot of hardware. 320x240 is well supported on all hardware and 640x480 is on nearly all, so if bandwidth is not a limiting factor you can try those.

from libstreaming.

yxnyxnyxnyxn avatar yxnyxnyxnyxn commented on August 19, 2024

@sbaar thanks a lot

from libstreaming.

JayasenaMS avatar JayasenaMS commented on August 19, 2024

@yxnyxnyxnyxn I'm struggling to add muxer to libstreaming. Can you please explain me how to do this.
I follow to @sbaar but I haven't right idea how to add BroadcastActivity.java class and using 'mMuxer' in other classes.

from libstreaming.

ZaitPaulo avatar ZaitPaulo commented on August 19, 2024

Buenas noches, estoy intentando trabajar con este código pero no entiendo donde inicializar el mMuxer alguien puede ayudarme?

from libstreaming.

sbaar avatar sbaar commented on August 19, 2024

@ZaitPaulo Hola, create the muxer and give it to the video and audio tracks just before mClient.startStream(), to use the name given in example 3.

from libstreaming.

ZaitPaulo avatar ZaitPaulo commented on August 19, 2024

What is Example 3?

from libstreaming.

ZaitPaulo avatar ZaitPaulo commented on August 19, 2024

image

Making all the modifications that you indicate in the readme, finally I get the following code where it indicates to me that the setMuxer method is not found in the inputStream

from libstreaming.

ZaitPaulo avatar ZaitPaulo commented on August 19, 2024

image

Esto me sale en el logcat

from libstreaming.

ashishBendale777 avatar ashishBendale777 commented on August 19, 2024

@sbaar i m done all the implementation but, i can not understand how to set mMuxer in MediaCodecInputStream.java.
my movie.mp4 file is created but its size is 0 B,

from libstreaming.

ioKun avatar ioKun commented on August 19, 2024

@ashishBendale777 I'm have similar problem with MediaMuxer, trying to stream remote video and save it to file at the same time. For me problem is - "video stream have no keyframes". Also trying to find the way how to add them.

from libstreaming.

ashishBendale777 avatar ashishBendale777 commented on August 19, 2024

@ioKun how you set mMuxer in MediaCodecInputStream.java....?

from libstreaming.

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.