• 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

Sentry on Symfony: how to exclude `NotFoundHttpException`

GuzzleHttp Hangs When Using Localhost

Is it possible to re-use an array taken from PHP via JSON in a $.ajax function?

How to get transaction details in notify_url page in paypal

How to pass security cloudflare server with php curl

Display Link Title Instead of URL in XSL

Detect emoticons in string

Change user role if checkout custom checkbox is checked in WooCommerce

Why is this PHP array not the same?

Saving Data from form to database using AngularJS and php

find in set in laravel ? example

Why does codeigniter & Linux server throws unserialize() session data error when user tries to login

How to display MySQL table using php and edit it in a web browser

Add Class in html Dynamically in PHP

WordPress Security Standards want me to escape my html, but how to do it correctly?

About Contact Privacy policy Terms and conditions