Coder Social home page Coder Social logo

How to capture an image about libstreaming HOT 5 OPEN

fyhertz avatar fyhertz commented on July 1, 2024
How to capture an image

from libstreaming.

Comments (5)

fyhertz avatar fyhertz commented on July 1, 2024

Hi,

If you use the mediacodec branch (I will merge it with master when it will be more stable), you could do that with some modifications of the lib: look at onPreviewCallback(...) in VideoStream.java, you have a buffer there that contains the last image (more or less...) from the camera (which is given to a MediaCodec instance).

The image is encoded in the NV21 color format, so you will also need to convert it back to RGB :(

If you are using the master branch, well you can't do that, you need to stop the stream first...

from libstreaming.

kartickPatil avatar kartickPatil commented on July 1, 2024

Hi fyhertz,

try1 :
I wanted to capture image while streaming video for this i have edited example3 and removed library from libs and added libstreaming master project library. I edited the videostream.java and Session.java file to capture image and it works but further when i try to stream the video application hangs(streaming does not takes place).

try2: - using library.jar file

i have used this and streaming works supper fine thank to you. Further if i want to capture image from stream i cant do it as obvious that i wont get acces to camera.

Is there any way that we can work with the master project where we can implement this.

any idea or any way or any sort input you have will be great so that even i can share things if i am able to achive this.

any ways thanks a lot for your wonderful effort.

regards,
karthick patil

from libstreaming.

AmitSari avatar AmitSari commented on July 1, 2024

libstreaming.jar file missing from libstreaming project

from libstreaming.

 avatar commented on July 1, 2024

Represent sample codes for solving the problem, please.

from libstreaming.

jamesvanhallen avatar jamesvanhallen commented on July 1, 2024

Is it possible now?

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.