Coder Social home page Coder Social logo

Comments (1)

xia-chu avatar xia-chu commented on June 19, 2024

目前ZLMediaKit有rtsp、rtmp流互相转换的机制;
在转换途中会提取出相应的帧,包括H264/H265;
你可以对提取出的H264、H265的关键帧进行截屏快照。

但是这样有他的局限性,虽然ZLMediaKit可以接受任意编码格式的推流,
但是只能转换H265/H264的视频,所以并不是所有的编码格式都能提取出关键帧。

假如你的视频流都是H264编码,你可以通过截取关键帧的方式来保存截图,
但是如果是很多种类型的编码,那么建议还是采用外挂FFmpeg方式来截屏。

外挂FFmpeg方式虽然性能不怎么好,截屏速度也慢,但是好处是灵活,
跟你的程序解耦,并且就是FFmpeg崩溃了也不影响你流媒体服务器的稳定性。

综合考虑,还是建议你采用目前这种方案。

from zlmediakit.

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.