• 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

how to redirect the user back to desired URL after login page in PHP?

WHM Enabling mod_rewrite

GuzzleHttp Hangs When Using Localhost

OAuth2 Token PHP

how to insert data into select2 search input after scan using qrcode

PHP: How to solve ob_start() in combination imagepng() issue?

Adding Multiple Custom Post Types in Wordpress

Cannot retrieve error message using Symfony HttpClient if the response is not "ok"

Distribute array row data to make multiple new rows

PHP usort() order in case of equality

protect images from being copied

woocommerce get_order_report_data to show order_item_id

WooCommerce - unset "<product> removed notice…" on cart page

Can I write PHP code across multiple lines per statement?

Batch request Google Calendar php API

About Contact Privacy policy Terms and conditions