Skip to content

OpenCV and RTMP #8

Open
Open

Description

@TimTreurniet

Hi,
ffmpeg for cpp is quite challenging so thanks. I was wondering if this could be used as well using openCV Mat as input, and RTMP output

Activity

  1. Raveler commented on Jul 4, 2019

    @Raveler
    Owner

    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?

  2. juniorxsound commented on Jul 27, 2019

    @juniorxsound

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

  3. TimTreurniet commented on Jul 29, 2019

    @TimTreurniet
    Author

    @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...

  4. Raveler commented on Aug 8, 2019

    @Raveler
    Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions