• 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

Debugging Stripe Webhook Event

Laravel 5: Is there a non-case sensitive way to sort a collection by an attribute?

Creating command to backup MySql database in Laravel

Autoloading classes in PHPUnit using Composer and autoload.php

Merge key and value of array index [duplicate]

Add New Parameter to Existing URL using htaccess

Laravel Route issues with Route order in web.php

Symfony - EasyAdmin - Add and remove functions are ignored from AssociationField

GuzzleHttp Hangs When Using Localhost

Adding multiple items to WooCommerce cart at once

Laravel Carbon throws error The format separator does not match

how to make my own auto increment in php?

Laravel Delete and Update

How to install LDAP in Docker php-fpm alpine

Hide specific products from unlogged users based in product category in WooCommerce

About Contact Privacy policy Terms and conditions