• 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

PHP Array split string and Integers

How to change HTML structure inside WP <head>

Why rand() every time I refresh the page?

SMTP ERROR: MAIL FROM command failed: 530 5.7.0 Must issue a STARTTLS command first when using PHPMailer

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

Symfony 4: how to allow dynamic values for array nodes in bundle configuration?

PHP Get value from JSON [duplicate]

Exception thrown during the rendering of a template("Parameter "id" for route "url" must match "[^/]++" ("" given) to generate a corresponding URL.")

Using array_intersect on a multi-dimensional array

image source not readable

PHP error: "The zip extension and unzip command are both missing, skipping."

PHP Imap , php 7.4.3 on mac osx catalina

How to load Codeigniter 4 lang file into an array variable

WAMP/Wordpress - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

Why i get wrong output for html markdown?

About Contact Privacy policy Terms and conditions