• 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

TesseractOCR not working for Laravel

Laravel update hasMany relationship using saveMany

How to create a cookie to store the timestamp of when a page is first loaded with php

possible options to create pdf file using html elements to generate invoice in php and codeigniter

Transfer data between JavaScript and PHP through JSON

Get orders by date and status woocommerce

Sagepay Error The Vendor failed to provide a RedirectionURL

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

Get WooCommerce products from specific category

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

protect my blog content

ldap is missing from system when installing adldap2 in laravel

Laravel post contact form giving me error 419

How to test a php login connected to a mysql db through xampp?

dompdf and img tag, image wont show

About Contact Privacy policy Terms and conditions