-
Notifications
You must be signed in to change notification settings - Fork 0
User defined Scripts
Selim Emre Toy edited this page Dec 29, 2019
·
10 revisions
This feature running automatically defined script after MP4 Muxing process is finished in Ant Media Server. Let’s have a look at that step by step.
Add script setting in [AMS-DIR]
/ webapps
/ applications(LiveApp or etc.)
/ WEB-INF
/ red5-web.properties
Usage:
settings.muxerFinishScript
Example Usage:
settings.muxerFinishScript=/Script-DIR/scriptFile.sh
Save the file and restart the server
sudo service antmedia restart
The script should be able to executable permission
Mark the file as executable with below code:
chmod +x scriptFile.sh
Setting References: settings.muxerFinishScript Setting
After the muxing process is finished, the AMS runs the following code snippets.
scriptFilePath fullPathOfMP4File
Example:
~/test_script.sh /usr/local/antmedia/webapps/LiveApp/streams/test_stream.mp4
When script finished successfully, AMS writes in INFO log as a below:
running muxer finish script: ~/test_script.sh /usr/local/antmedia/webapps/LiveApp/streams/test_stream.mp4
- Quick Start
- Introduction
- Installation
- Publishing Live Streams
- Playing Live Streams
- Conference Call
- -Peer to Peer Call
- Adaptive Bitrate(Multi-Bitrate) Streaming
- Video on Demand Streaming
- Simulcasting to Social Media Channels
- Clustering & Scaling
- WebRTC SDKs
- RTMP SDKs
- Android SDK
- iOS SDK
- Security
- Integration with your Project
- REST Guide
- Web Hooks
- AWS S3
- Azure Blob
- User-defined Scripts
- Advanced
- Load Testing
- REST API Reference
- WebRTC - WebSocket Messaging Reference
- Streaming Protocols
- Pixelating issue?
- How to Publish with Wirecast
- Nginx Load Balancer