• 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

Wordpress add responsive srcset header image to theme

How to install LDAP in Docker php-fpm alpine

Reading input in php from terminal

Can't remotely connect to MySQL error (13) with PHP script, connecting through CLI works

How to get an Array value inside an object in an array Php [duplicate]

get attribute from class not working php 7

PHP Startup: Unable to load dynamic library 'openssl' in Ubuntu

Laravel Route issues with Route order in web.php

Using PHP to connect to a remote MSSQL database

Laravel Displaying image from database

best way to store error messages in Laravel (session or variable)

Add New Parameter to Existing URL using htaccess

Remove product downloads section in woocommerce email notifications

Shortcode or PHP inside a shortcode in Wordpress

Reducing authentication calls on external API (Laravel 5.6)

About Contact Privacy policy Terms and conditions