fenrirthviti / stream-site Goto Github PK
View Code? Open in Web Editor NEWRachni - nginx RTMP streaming front end
License: Other
Rachni - nginx RTMP streaming front end
License: Other
Currently, this site is heavily reliant on a very specific setup in nginx, which I have not documented.
SQL sorgusu:
-- Table: subscribers
-- DROP TABLE subscribers;
CREATE TABLE subscribers(
host_account TEXT NOT NULL ,
subscriber TEXT NOT NULL ,
CONSTRAINT subscribers_pk PRIMARY KEY ( host_account, subscriber ) ,
CONSTRAINT host_account_fk FOREIGN KEY ( host_account ) REFERENCES users( email ) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE
) WITH (
OIDS = FALSE
);
MySQL çıktısı: Belgeler
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(
OIDS=FALSE
)' at line 14
Is it possible to update your code.
We would love to try it.
Or we could pay you as a free-lancer?
When the video.js player is set to fullscreen mode, the scrollbar gets reset back to some default position. This can be annoying if there is a lot of chat happening while the player is fullscreen, as you will no longer be scrolled to the bottom.
No idea what causes this.
Hi
I can not get nginx to bind on port 80 if i stop and start it, nginx stopping and starting fine, and it binds to port 1935 for RTMP just fine.
(i have it on a VM so i got control points so i can just go back when trying)
should be renamed to chat_jp_setting, as all of the references in query are to 'chat_jp_setting'
Hey,
really nice project, and i'm not sure if you are still keeping it only for you, but i could suggest only one thing - upstream services like twitch, mixer, youtube etc. however until to this very day, i can confirm it's working with zero issues ;)
~best
Hi,
I found this project on my search for a solution to mask the streamkey.
https://groups.google.com/forum/#!topic/nginx-rtmp/t4XQIzQI9YA
But I have problems understanding how your solution stops exposing the stream key to the viewers. Would you try to explain it to me? Maybe point me in the right direction. I browsed through your code but cannot find the actual parts that do the magic.
Thanks in regards.
hey again.
since migrating to php-fpm 7.4 i'm getting the following error:
2019/10/20 10:31:07 [error] 32385#32385: *2522 FastCGI sent in stderr: "PHP message: PHP Notice: Trying to access array offset on value of type bool in /opt/www/lib/user.class.php on line 458PHP message: PHP Notice: Trying to access array offset on value of type bool in /opt/www/lib/user.class.php on line 446" while reading response header from upstream, client: 93.123.89.46, server: node.evilbox.io, request: "GET /watch/poster=%22//node.evilbox.io/img/channel/channel_xaxo.png%22 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "node.evilbox.io", referrer: "https://node.evilbox.io/watch/xaxo"
double checked about missing modules, but not that issue. could you be so kind and let me know, what could go wrong
I publish a video with ffmpeg command:
ffmpeg -re -i clip.mp4 -c:v flv -c:a libmp3lame -ar 44100 -ac 1 -f flv rtmp://localhost/live/username?key=123abc
the stream is on but when i click it, there's nothing, just loading. Chrome log with error:
[TransmuxingController] > Non-FLV, Unsupported media type! flv.js:12424
[IOController] > 5457 bytes unconsumed data remain when flush buffer, dropped flv.js:12468
Uncaught (in promise) Error: Uncaught, unspecified "error" event. (MediaError)
at EventEmitter.emit (flv.js:1275)
at EventEmitter.<anonymous> (flv.js:9804)
at EventEmitter.emit (flv.js:1297)
at flv.js:3359
....
I'm pretty new to this. Please help, thank you!
please create installer or docker image to test it
Warning: pg_query_params(): Query failed: ERROR: relation "users" does not exist LINE 1: SELECT * FROM users WHERE email = $1 ^ in /var/www/html/lib/user.class.php on line 203
Fatal error: Uncaught Exception: Error in: class:user | function:emailcheck in /var/www/html/lib/user.class.php:207 Stack trace: #0 /var/www/html/lib/user.class.php(155): user->emailcheck('[email protected]') #1 /var/www/html/login.php(60): user->register('[email protected]', 'abc123', 'abc') #2 {main} thrown in /var/www/html/lib/user.class.php on line 207
Looking at the lines 203 - 207 of user.class.php
$sql = "SELECT * FROM $this->user_table WHERE email = $1";
$result = pg_query_params($this->link, $sql, $params);
if ($result === false) {
$message = 'Error in: class:user | function:emailcheck';
$code = 1;
throw new Exception($message, $code);
Checking in postgres DB imported all SQL files to database and edited to suit configuration but error is still throwing.
This is at login.php on submit registration.
Some additional info from psql
List of relations
Schema | Name | Type | Owner | Table
--------+----------------+-------+----------+-------------
public | pk_id | index | postgres | chat
public | plk_email | index | postgres | users
public | subscribers_pk | index | postgres | subscribers
(3 rows)
postgres=# \d users
Table "public.users"
Column | Type | Collation | Nullable | Default
-----------------+---------------+-----------+----------+-----------------------------------------------
email | text | | not null |
password | text | | |
auth_code | text | | |
verified | integer | | |
channel_name | text | | |
channel_title | text | | |
stream_key | character(10) | | |
display_name | text | | |
profile_img | text | | not null | '/profiles/default/profile_default.png'::text
api_key | text | | |
chat_jp_setting | text | | |
is_admin | boolean | | |
offline_image | text | | not null | '/profiles/default/offline_default.jpg'::text
Indexes:
"plk_email" PRIMARY KEY, btree (email)
Referenced by:
TABLE "subscribers" CONSTRAINT "host_account_fk" FOREIGN KEY (host_account) REFERENCES users(email) ON DELETE CASCADE
I am not used to Pgsl DB use so this might be some issue from setup.
Any advice or help would be great.
Thanks
pg_query_params(): Query failed: ERROR: inconsistent types deduced for parameter $7 LINE 1: ...ffline_image) VALUES ($1, $2, $7, 0, $3, $4, $5, $6, $7, $8) ^ DETAIL: text versus boolean in /var/www/html/lib/user.class.php on line 165
how to fix this ?
Channel/video grid view is currently broken with the hover effects. Need to either correct those to work with a dynamic object, or replace them with something else.
Hello
Is there a possibility to add a button share streaming like this picture http://imgur.com/a/Q90JG (last pic)
Facebook Google Plus Twitter and views ?
Getting 404 when trying to access to /watch/Admin (Admin – my username). I need the page to be always available. Even if the stream is offline. Where can I find something about this page in the code? Your nginx config is a quite messy. I can't figure out about how the user page constructed. Thank you!
Warning: simplexml_load_file(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /var/www/html/lib/rtmp.class.php on line 88
Warning: simplexml_load_file(): Failed to enable crypto in /var/www/html/lib/rtmp.class.php on line 88
Warning: simplexml_load_file(https://192.168.7.13/stat.xml): failed to open stream: operation failed in /var/www/html/lib/rtmp.class.php on line 88
Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://192.168.7.13/stat.xml" in /var/www/html/lib/rtmp.class.php on line 88
can u help me ?
hello
where is chat database.sql ?
how to add chat table ?
Need a tutorial page, or some other way of explaining to users how to set up the stream client.
ffmpeg is not alienable in official Ubuntu repos for 14.04
Need a way to allow users to reset their passwords.
The password reset page is a bit confusing and could use some process simplification and security enhancements.
Hi,
I have recently set up a streaming site by using this "guide". When i try to stream, most of the time the stream does not show up under live channels if it does show up i get an error "The media could not be loaded, either because the server or network failed or because the format is not supported". ATM everything is done on a local network on two machines. I hope you can help
Hi you.
I tried to install it but it seems that there is a missing file in the code. I couldn't find the stat.xml file, so the fetchChannels function didn't work. And I also get the error: Uncaught TypeError: Cannot read properties of null (reading 'currentURL')
at TransmuxingController._reportStatisticsInfo (flv.js:3937:48)
Looking forward to your support.
https://prnt.sc/6Vfgxiw07UgE
Hello,
I have first tried this without SSL/HTTPS and it works good. It seems it should be able to support SSL too, so I am using a self-signed certificate/key files. But now every time I connect with RTMP to publish a stream, I get this in error.log:
[error] 19813#19813: recv() failed (111: Connection refused)
I am not able to connect. I have tried both OBS and ffmpeg to publish. The ffmpeg
publish command that I use is:
ffmpeg -re -i "file.mp4" -c copy -f flv "rtmp://192.168.56.53/live/user1?key=KEY-VALUE"
the ffmpeg response is:
Input/output error
Nginx is listening on port 443 and all SSL settings are present. It is strange that connection is being refused by RTMP (port 1935), while SSL is configured for HTTP (port 443).. Do you know what is wrong? Also, I had to add some extra code to the config.php
file, namely:
$_SERVER['HTTPS'] = 'off';
or 'on'. Otherwise it was undefined.
will be amazing if function such twitch offer offline image at stream
https://github.com/winshining/nginx-http-flv-module is another nginx extension, based on nginx-rtmp-module, with full nginx-rtmp-module function and same api, but supports HTTP-FLV delivering which has low latency as RTMP.
HTTP-FLV could be played with https://github.com/Bilibili/flv.js without Flash Player.
Any screenshots/videos/demos?
Kinda essential stuff, y know
hello again
pls can you write how to stop SSL configuration ?
i want http:// not https://
Add a chat system for stream viewers. Attempts were made to use IRC as the backend, but proved to be well outside my abilities. Features should include:
Currently, there is a placeholder for account profile pictures (they can be manually added by editing the DB). This needs to be updated to be:
Would it be possible to make it so users could also make it so there stream can be pushed to twitch/youtube etc like you can with the rtmp moduel and editing the nginx.conf file.
Thank you,
Liam
Can you add a P2P-Streaming-Option?
Maby a checkbox for the administration, that the player use a P2P-Player.
The video.js supports P2P with Peer5 (https://www.peer5.com/).
With the free Plan, this great Tool can handel the traffic if you host the stream on a private pc.
If you can add a P2P-Player without Peer5 would be great :)
Hello , ı some sql import error.
Is it possible to have an alternative to just Flash, for the live stream? Such as a fallback to FLV, MP4, or other video formats? It will delay the viewers but, Firefox no longer supports Flash.
Need to put together a page for administrative functions.
Implement system for notification that includes:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.