GithubHelp home page GithubHelp logo

录制的视频速度较快,而且音频调用writePacket时报错av_interleaved_write_frame failed, ret: -22 about nanarecorder HOT 7 CLOSED

CaffreySun avatar CaffreySun commented on May 20, 2024
录制的视频速度较快,而且音频调用writePacket时报错av_interleaved_write_frame failed, ret: -22

from nanarecorder.

Comments (7)

onlyet avatar onlyet commented on May 20, 2024

-22是参数不对,可能音频某个参数设置错了。

from nanarecorder.

CaffreySun avatar CaffreySun commented on May 20, 2024

网上说时pts有问题,音视频知识薄弱,没看懂pts这么计算的

from nanarecorder.

onlyet avatar onlyet commented on May 20, 2024

理论上是采集的时候记录音频/视频帧的时间戳,pts是采集时间戳-起始时间,然后AVPacket在写进文件前需要转换为AVStream的时基。

from nanarecorder.

onlyet avatar onlyet commented on May 20, 2024

方便的话留个QQ交流

from nanarecorder.

CaffreySun avatar CaffreySun commented on May 20, 2024

Q779612573

from nanarecorder.

onlyet avatar onlyet commented on May 20, 2024

最新代码支持录制麦克风,可以选择录制扬声器或者麦克风。

from nanarecorder.

CaffreySun avatar CaffreySun commented on May 20, 2024

666

from nanarecorder.

Related Issues (5)

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.