• 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

Do I need to install `fxp/composer-asset-plugin` if I'm not doing front-end development

loop through an anchor id

Star and Half Star Rating in Laravel

Woocommerce product attributes with hierarchy like categories

How to validate tin and cst using PHP?

PHP Deprecated issue when running artisan command

laravel 5.6 bulk inserting json data

How do I Post to .txt document before form submits

How to separate letters and digits from a string in php

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

Laravel 5.5 change unauthenticated login redirect url

Google API Heatmap Layer exception, why?

AJAX call fails with SyntaxError: Unexpected end of JSON input

Doctrine 2 mapping referencing unique key

Timber: Single post pagination does not work (wp_link_pages)

About Contact Privacy policy Terms and conditions