Code Monkey home page Code Monkey logo

ffplayout-messenger's Introduction

messenger

ffmpeg can include the libzmq library, this makes it possible to mapiulate filters in real time.

This library we use to communicate with the drawtext filter in ffplayout. This give us the option to send text to the stream in any format which are supported from the drawtext filter.

messenger

The messenger needs the ffplayout-api to send the commands to the engine. It is highly recommended to run this application only behind a proxy with ssl - for example nginx.

Expression:

drawtext can be controlled with different expressions for fading, or moving, the client will have some examples, for more take a look in the filter settings and in the expression parameters.

Please don't ask in the issues about help for different kind of expressions. This is only a GUI for the ffmpeg settings. A better place for this kind of help is stackoverflow.

If you have some nice and useful expressions you are welcome to share them with us. I'm happy to integrate them in the GUI as a preset or example.

Testing/Preview

When you add new expressions to the client, you should always test them, before you send them to ffplayout. A wrong command can crash the playout.

Configuration

To configure edit: messenger.ini

Requirements

  • ffmpeg must be compiled with libzmq
  • python 3.6+
  • pyside2 python module on the client side
  • ffplay with libzmq for the client

ffplayout-messenger's People

Contributors

jb-alvarado avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ffplayout-messenger's Issues

curl usage for api-server

Hi, i cant figure out how to use the client and the api server, at first i thought you have to use both the api server and the client.
but i figured the client can directly communicate with the zmq server.

but when testing with curl -H "Content-Type: application/json" -u user:password -d @scrolling-text.json http://stream-mgmt.example.com:8888 -v

i always get:
`
TCP_NODELAY set

  • Expire in 200 ms for 4 (transfer 0x5625322cef50)
  • Connected to stream-mgmt.example.com (ip.ip.ip.ip) port 8888 (#0)
  • Server auth using Basic with user 'user'

POST / HTTP/1.1
Host: stream-mgmt.example.com:8888
Authorization: Basic
User-Agent: curl/7.64.0
Accept: /
Content-Type: application/json
Content-Length: 329

  • upload completely sent off: 329 out of 329 bytes
    < HTTP/1.1 200 OK
    < Content-Type: application/json
    < Server:
    < Date: Fri, 28 Aug 2020 10:12:59 GMT
    < Allow: DELETE, GET, HEAD, POST, PUT
    < Access-Control-Allow-Origin: *
    < Access-Control-Allow-Methods: POST
    < Access-Control-Allow-Headers: Cache-Control,X-Proxy-Authorization,X-Requested-With,Content-Type
    < Content-Length: 22
    < Set-Cookie: session_id=2f947742ccace573c8b610b94d8340c2fd0a16d0; expires=Fri, 28 Aug 2020 11:12:59 GMT; Max-Age=3600; Path=/
    <
  • Connection #0 to host stream-mgmt.example.com left intact
    "{"Success": false}"
    `
    could you please explain how to use the api-server.py

installation

can you help me create installation documentation thank you

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.