šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

github.com/AgustinSRG/webrtc-video-filter

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/AgustinSRG/webrtc-video-filter

v0.0.0-20241222170543-d6ed8d06c854
Source
Go
Version published
Created
Source

WebRTC Video Filter

Utility for webrtc-cdn to apply a video filter with FFMpeg.

It uses FFMpeg for the video filtering, and the pion/webrtc for WebRTC connectivity.

Compilation

In order to install dependencies, type:

go get github.com/AgustinSRG/webrtc-video-filter

To compile the code type:

go build

The build command will create a binary in the currenct directory, called webrtc-video-filter, or webrtc-video-filter.exe if you are using Windows.

Usage

You can use the program from the command line:

webrtc-video-filter [OPTIONS] <SOURCE> <DESTINATION>

SOURCE

The source must be a websocket URL of one of the webrtc-cdn nodes. Examples:

  • ws://localhost/stream-id
  • wss://www.example.com/stream-id

DESTINATION

The destination must be a websocket URL of one of the webrtc-cdn nodes. Examples:

  • ws://localhost/stream-id
  • wss://www.example.com/stream-id

OPTIONS

Here is a list of all the options:

OptionDescription
--help, -hShows the command line options
--version, -vShows the version
--port, -p <port>Sets the port to use to forward the RTP packets to FFmpeg. By default, the port 400 is used.
--video-filter, -vf <filter>Sets the video filter for FFmpeg
--debugEnables debug mode (prints more messages)
--ffmpeg-path <path>Sets the FFMpeg path. By default is /usr/bin/ffmpeg. You can also change it with the environment variable FFMPEG_PATH
--auth-source, -as <auth-token>Sets auth token for the source.
--auth-destination, -ad <auth-token>Sets auth token for the destination.
--secret, -s <secret>Provides secret to generate authentication tokens.

WebRTC options

You can configure WebRTC configuration options with environment variables:

Variable NameDescription
STUN_SERVERSTUN server URL. Example: stun:stun.l.google.com:19302
TURN_SERVERTURN server URL. Set if the server is behind NAT. Example: turn:turn.example.com:3478
TURN_USERNAMEUsername for the TURN server.
TURN_PASSWORDCredential for the TURN server.

FAQs

Package last updated on 22 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts