• 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

How to get the ID of the link in another page in php

Insert And Retrieve Data in MySQL with $.post Noob Question

How to redirect to another page after n seconds in wordpress without using javascript?

What will the best solution for this multiple optional filter?

PHP each() function replacement

cakephp save drag and drop list order to database

Laravel phpunit test failing authorization

args[max_input] woocommerce if statement confused

How to solve Duplicate entry '0' for key 'PRIMARY' in Wordpress?

Laravel lang slug in url

Implode columnar values between two arrays into a flat array of concatenated strings

Natural ORDER in Laravel Eloquent ORM

Laravel UUID generation

PHP's array_map including keys

Querying only one row from a one to many relationship laravel

About Contact Privacy policy Terms and conditions