Git Product home page Git Product logo

Comments (15)

saudet avatar saudet commented on June 11, 2024

Could you also provide the messages you get in the log?

from sample-projects.

bibounet avatar bibounet commented on June 11, 2024

Thank you for your help!
The complete log (from logcat) is in the attached file : motoG5-log.txt
my device is a motoG5 with android 7.0

from sample-projects.

saudet avatar saudet commented on June 11, 2024

That doesn't include the log of FFmpeg. Please call FFmpegLogCallback.set() somewhere before that line.

from sample-projects.

bibounet avatar bibounet commented on June 11, 2024

Sorry to reply late, new log : motoG5-log.txt

from sample-projects.

bibounet avatar bibounet commented on June 11, 2024

in fact writing (stream.mp4) on external storage do not work on any devices, that was the error (npe).
moving the destination of the output (stream.mp4) on internal storage solve the crash.

But now my stream.mp4 is unreadable... and has always a size of ~250B ..
even if I set my codecs to : recorder.setVideoCodec(avcodec.AV_CODEC_ID_H264);
motoG5-log.txt

As it's not the frst subject of this issue would you like me to open a stackoverflow thread? or another issue? in any case thank you for your help

from sample-projects.

saudet avatar saudet commented on June 11, 2024

You'll need to call recorder.stop() somewhere if you want to get a valid file.

from sample-projects.

saudet avatar saudet commented on June 11, 2024

And please use the latest version of JavaCV 1.3.2. You're using an old version.

from sample-projects.

bibounet avatar bibounet commented on June 11, 2024

Hi, I updated from 1.3.1 to 1.3.2, and I'm calling recorder.stop() (as it's implemented in the android sample project) but I still have an empty video ~250B ...

from sample-projects.

saudet avatar saudet commented on June 11, 2024

Could you show an updated version of the log as well?

from sample-projects.

bibounet avatar bibounet commented on June 11, 2024

thank you for your help... here is the new log motoG5-log.txt

from sample-projects.

saudet avatar saudet commented on June 11, 2024

It's recording only for less than 1 second. It probably doesn't have any time to record anything. Try to record for a longer period of time.

from sample-projects.

bibounet avatar bibounet commented on June 11, 2024

Same mp4 file size with 15 secondes or more...
motoG5-log.txt

from sample-projects.

saudet avatar saudet commented on June 11, 2024

We could try to increase the verbosity of the log...

from sample-projects.

bibounet avatar bibounet commented on June 11, 2024

How can I change the log level with FFmpegLogCallback?

from sample-projects.

saudet avatar saudet commented on June 11, 2024

from sample-projects.

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.