send video stream in s3 bucket

suneel tomar

New Member
Hello dear,
I am working on stream record using flashphoner wcs.
We completed installation of wcs server version 5.13 on aws successfully
i have successfully sent video stream in /usr/local/FlashphonerWebCallServer-5.1.3702-30fe00fcf16555d22cc607c88d76b8a3a57c8dfe/records folder
I am troubling to save video stream in s3 bucket
i have sent the test file using S3-AWS4-Upload.sh file as mentioned in your documentation.
But did not sent video stream in s3 bucket
Please find attachment
WCS version 5.13
 

Attachments

Hello

1. Make sure script works properly
on_record_hook.sh
Change this script to test if it is triggered at all.
For example just copy file to another directory.

2. Make sure that script S3-AWS4-Upload.sh works as expected.
Run this script manually from command line and check if it works with your AWS S3 bucket.

If your on_record_hook.sh does not work, please read related docs:
https://docs.flashphoner.com/displa...ing#Streamrecording-Recordfileshandlingscript
 
i run S3-AWS4-Upload.sh file from command line is working properly when i send test file to s3 bucket
I changed on_record_hook.sh to test
STREAM_NAME=$1
SRC_FILE=$2
SRC_DIR="/usr/local/FlashphonerWebCallServer/records/"
REPLACE_STR="/var/www/html/stream_records/$STREAM_NAME-"
DST_FILE="${SRC_FILE/$SRC_DIR/$REPLACE_STR}"
cp $SRC_FILE $DST_FILE
also it is not working
please help me
 
Hello.
1. Make sure that on_record_hook.sh file is in /usr/local/FlashphonerWebCallServer/bin/ folder
2. Try to replace
Code:
cp $SRC_FILE $DST_FILE
to
Code:
sudo cp $SRC_FILE $DST_FILE
Is file copied?
 
Top