Coder Social home page Coder Social logo

OpenCV and RTMP about ffmpeg-cpp HOT 4 OPEN

TimTreurniet avatar TimTreurniet commented on August 24, 2024
OpenCV and RTMP

from ffmpeg-cpp.

Comments (4)

Raveler avatar Raveler commented on August 24, 2024

You're going to have to create your own video source class to convert the OpenCV mat to a format that ffmpeg understands (see https://github.com/Raveler/ffmpeg-cpp/blob/master/source/ffmpeg-cpp/ffmpeg-cpp/Sources/RawVideoDataSource.cpp for an example). I don't know about RTMP - does ffmpeg support this?

from ffmpeg-cpp.

juniorxsound avatar juniorxsound commented on August 24, 2024

@TimTreurniet I think this repo does exactly what you are looking for

from ffmpeg-cpp.

TimTreurniet avatar TimTreurniet commented on August 24, 2024

@juniorxsound This is what I have been using so far. However I do not believe it supports audio streams, which is something I need since my project requires youtube streaming. Somehow adding an empty audio stream would be fine which I'm currently doing using a ffmpeg session in command line. This adds an unnecessary step with encoding and decoding. I find ffmpeg in cpp a difficult subject to get into...

from ffmpeg-cpp.

Raveler avatar Raveler commented on August 24, 2024

I have added support for audio streams in the latest version of ffmpeg-cpp.

from ffmpeg-cpp.

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.