Git Product home page Git Product logo

libav-rtmp-streaming's Introduction

libav RTMP streaming ๐Ÿ“ฝ


A C++ app that streams a video to an RTMP endpoint using libav
Getting Started โ€ข Shoutouts

Getting Started

To run the app you would need Docker and make - Docker installation guide

  1. Clone or download the repo git clone https://github.com/juniorxsound/libav-RTMP-Streaming.git
  2. Place an mp4 file you would like to stream in samples/ folder
  3. Create a build folder inside the root directory
  4. From within the root directory run make build to create the Docker container
  5. Open main.cpp and change the video file name and RTMP server address in line 12
Streamer streamer("samples/your_video_test_file.mp4", "rtmp://your_rtmp_streaming_endpoint");
  1. Run make run and if everything goes smooth, you should be live streaming your video file to the RTMP server โœจ

Shoutouts

Thank you @kodabb for helping me get started with using libav and to @leandromoreira for posting helpful getting started tutorials and a Docker image (used in this repo).

libav-rtmp-streaming's People

Contributors

juniorxsound avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

libav-rtmp-streaming's Issues

Make run failing

  ^

/files/src/streamer.cpp:153:28: warning: 'void av_free_packet(AVPacket*)' is deprecated [-Wdeprecated-declarations]
av_free_packet(&pkt);
^
In file included from /opt/ffmpeg/include/libavformat/avformat.h:319:0,
from /files/src/streamer.h:11,
from /files/src/streamer.cpp:1:
/opt/ffmpeg/include/libavcodec/avcodec.h:4400:6: note: declared here
void av_free_packet(AVPacket *pkt);
^
docker run -w /files --rm -it -v pwd:/files leandromoreira/ffmpeg-devel /files/build/streamer

Welcome to RTMP streamer ๐Ÿ“ฝ
Written by @juniorxsound https://orfleisher.com

Makefile:11: recipe for target 'run' failed
make: *** [run] Error 139

can we livestream my webcam ?

Hi,
I want to Livestream my webcam. is it possible to use this program? what parameters should I pass to stream class?

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.