• 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

RuntimeException: Unable to create the cache directory (/var/www/sonata/app/cache/dev)

Refresh specific HTML content that retrieves data from MySQL

I want a way to give path to my files which are outside of public folder in laravel

advanced custom fields wordpress custom class

How do I upload a laravel project on cPanel shared hosting?

Two buttons one form

Passing PHP JSON to Javascript: echo json_encode vs echo json declaration

Sync Records With Default Values in Pivot Tables, Call to undefined method syncWithPivotDefaults()

Explode not working properly with dash

Install mysql client in docker image

Laravel csrf token mismatch for ajax POST Request

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

MySQL - Connection failed: No route to host

Laravel 4 Redirect::back() not going to previous page (refreshing current page)

Get sum of arrays inside array

About Contact Privacy policy Terms and conditions