• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Nginx RTMP not recording

phplinuxnginxrecordrtmp


PHP Snippet 1:

chown -R nobody:nogroup foldername

chmod -R 700 foldername

PHP Snippet 2:

ffmpeg -v error -y -i "$1" -vcodec libx264 -acodec aac -f mp4 -movflags +faststart "/tmp/recordings/$2.mp4"

aws s3 cp "/tmp/recordings/$basname.mp4" "s3://bucketname/"

exec_record_done bash -c "/home/ubuntu/script/record.sh $path $basname";

PHP Snippet 3:

record_path /tmp/rec;

Related Snippets

Laravel websockets AWS EC2 - Connection failed

advanced custom fields wordpress custom class

Create a new line whenever an array value reaches more than 10 characters

Display specific shipping method if woocommerce product has specific acf field value

Laravel views are showing from cache on one server but works fine on other server

Generate random username based on full name php

PHP how to detect if running on arm64 cpu?

PHP to search within txt file and echo the whole line

Laravel Collections. Is there some kind of assertStructure method?

PHP function Not Working As Expected From functions.php Include File

What will the best solution for this multiple optional filter?

Yii2: How to download backup files using spanjeta/yii2-backup?

Python - Include another Python script

Load a .env file with PHP

I'm trying to use curl with php but getting this error:Could not resolve host: Bearer

About Contact Privacy policy Terms and conditions