Questions tagged [stream]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
32 votes
3 answers
85k views

unknown directive "stream" in /etc/nginx/nginx.conf:86

I have nginx/1.12.0 and as per document it contains stream module. I have installed nginx with the following commands. sudo add-apt-repository ppa:nginx/stable sudo apt-get update sudo apt-get ...
user3332404's user avatar
12 votes
3 answers
36k views

How to proxy multiple tcp streams on one port with nginx

With nginx http directive, you can have multiple servers on the same port with different names: server { listen 80; server_name server1.example.com; location / { proxy_pass ...
joels's user avatar
  • 261
7 votes
1 answer
193 views

Is there a tool that can top-ify an input stream?

I come across quite a few use cases where it would be very useful to take input from a (usually newline-delimited) stream and summarise it in a top-like fashion (see top, iotop, etc). A kind of on-...
tudor -Reinstate Monica-'s user avatar
5 votes
1 answer
9k views

How do I set up a basic IPv6 video stream using VLC

I'm teaching a class IPv6 and would like to create a lab for them to see the true benefit of ipv6 multicasting in action. I created a multicast address for myself ff15::1 (where ff is multicast, 1 ...
sparkyspider's user avatar
4 votes
2 answers
9k views

nginx reverse stream proxy with multiple ports to the same server

I'm trying to use nginx as a reverse proxy to two different servers. The servers require the use of client-side certificates for authentication, which means nginx is configured as a stream proxy ...
Andrew's user avatar
  • 2,162
4 votes
3 answers
33k views

OpenSSL connection Error called stream_socket_enable_crypto()

in my php coding i have following line which uses by SWIFT MAILER Class if(!stream_socket_enable_crypto($this->smtp_conn, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)) { return false; } however ...
mahen3d's user avatar
  • 4,382
3 votes
1 answer
9k views

USB Webcam to IP Webcam on UBUNTU Server 11.04

I am wanting to install some security and surveillence in the room my ubuntu server occupies. I have already sorted out the security but was thinking about installing a camera of some sort. I don't ...
MichaelH's user avatar
  • 179
2 votes
1 answer
3k views

How can I use scp without providing a password

I have asked a question before in here. My question was that I tried to give my password to scp via piping echo mypassword | scp [email protected]:project/* ~/project/ However it still asks me ...
Tim's user avatar
  • 1,497
2 votes
1 answer
391 views

mirror STDOUT and STDERR to file by default

How I can accomplish STDOUT to be to logged in a file (appending), but preserving the flow (leave STDOUT to STDOUT) ? STDOUT should work transparently, but should be logged also into a file, without ...
astropanic's user avatar
2 votes
0 answers
2k views

nginx differences between stream module and http module

I'm try to understand nginx http and stream module, so far I learn that http module is for L7 operations and stream module is for L4 operations? Is that all or is much more here? With Regards Boris
Boris 's user avatar
  • 31
2 votes
2 answers
9k views

How to forward non-http requests on port 80 to another port?

There is an nginx web server listening to both 80 and 443 ports. I would like to process all the http requests as usual and forward all the non-http requests to another port (say, 1234). My question ...
semyonfilippov's user avatar
1 vote
1 answer
3k views

How to send a continuous stream through ssh

Given a named pipe, how can I send a continuous stream of this pipe through ssh? The netcat equivalent of what I am looking for is from client dd if=myfifo | nc -l 12345 from server nc <...
user123456's user avatar
1 vote
1 answer
2k views

Interacting with a program running as part of a systemd service

I've got a systemd service set up with the following configuration (in /etc/systemd/system/my-service.service): [Unit] Description=My service [Service] WorkingDirectory=/path/to/my/service User=some-...
Sean's user avatar
  • 185
1 vote
2 answers
4k views

Check if a RTMP-Stream is running and start ffmpeg to transcode the stream

I'm using ffmpeg to transcode a rtmp-stream and re-stream it with ffmpeg. I have 2 problems: how can I check if the remote rtmp-stream is running and then start ffmpeg sometimes ffmpeg breaks up ...
funkdoobiest's user avatar
1 vote
0 answers
261 views

Stream from Icecast interputed after few seconds

I have a stream based on Icecast server. It works on most of devices and browsers, but there is an issue for example on android mobile chrome - I can run stream, but it lasts 2 few seconds and it ...
kspacja's user avatar
  • 111
1 vote
0 answers
480 views

Dump a tcp stream (tcpdump/tpick?) and save to file only if RST happen

I'm looking for a way to capture a whole tcp stream, but save it into the file only if 1) error happens (like RST) 2) not sure if possible - analyze the http response, store if HTTP 500 happen is a ...
sirkubax's user avatar
  • 121
1 vote
0 answers
4k views

nginx proxy cache mp4 streaming

Sorry for my question, the schema like this: there are upstream which is a IIS server where locates video files. my nginx is an proxy caching server, I need to cache mp4 file when client starts ...
David Ambarsumov's user avatar
1 vote
1 answer
687 views

Got Permission denied with JAX-WS client on tomcat6 server

I have a strange behaviour with a java client that uses webservice stubs generated by wsimport. The client says sth about Got Permission denied: connect while opening stream from http://dev:8080/...
Christian Thies's user avatar
1 vote
1 answer
465 views

Route requests to IPs depending on the (sub)domain the server was accessed from

Example: 1) The server is running Ubuntu and is on a LAN (192.168.9.*) 2) The server is running several services on local IPs (Eg: 192.168.9.5 VPS (OpenVZ)) 3) A client connecting from vps1.mydomain....
Justin's user avatar
  • 222
0 votes
2 answers
566 views

command line tool to extract a token out of stdin stream?

I've been using this perl script to get a token out of stream on command line 1 #!/usr/bin/perl 2 3 $i = $ARGV[0]; 4 5 while (<STDIN>) { 6 @tokens = split /\s+/; 7 print $...
Min's user avatar
  • 31
0 votes
1 answer
3k views

Red5 install on CentOS build.xml does not exist?

http://nocreativity.com/blog/how-to-install-red5-on-centos-5-the-complete-guide I have followed this tutorial for installing Red5 line by line however I have just got to compiling the Red5 code I get ...
Alex's user avatar
  • 1
0 votes
6 answers
2k views

How to run command on parts of input file

I have ~ 40GB file, and a filter command that for some reason breaks when I try to run it on the file (even when passed via pipe). But. It doesn't fail when I split input file into many small files, ...
user avatar
0 votes
0 answers
45 views

Nginx: could not build map_hash, you should increase map_hash_bucket_size: 64 even when its set under http (stream module used)

since I can only ask questions here but its more of a solution for other people that have this issues I hope its still fine to be posting here, I didnt know a better place since I don't own a website ...
Felix941's user avatar
0 votes
0 answers
83 views

listen and redirect TCP stream to file with multi client support in the background

is there any tool I can listen on some port and accept any client and redirect the stream to a file. I know it can be done using netcat but it seems netcat cannot keep running in the background. I did ...
user3840019's user avatar
0 votes
1 answer
3k views

Why can push mp4 into a rtmp stream instead of rtsp stream?

I build stream server with nginx, and can push the MP4 into a rtmp stream with : ffmpeg -re -i /mnt/hls/m7.mp4 -vcodec libx264 -vprofile baseline -g 30 -acodec aac -strict -2 -f flv rtmp://127.0.0.1/...
showkey's user avatar
  • 115
0 votes
1 answer
2k views

nginx Reverse-Proxy: using stream module for passthrough and reverse proxy

I use the stream module in order to passthrough tls traffic where I cannot reverse proxy, e.g. because I dont have the certificate (local 3CX install) or it breaks stuff (ssl vpn with client cert). I ...
Questi's user avatar
  • 13
0 votes
0 answers
612 views

Stream an m3u8 URL to LAN

I have a stream from the web in the form of an m3u8 file. Since everybody in the office watches the same stream, it is not effective in terms of network traffic. How can I spread the stream among the ...
Bert's user avatar
  • 1,048
0 votes
1 answer
1k views

error 404 in curl/file_get_contents/get_headers: “failed to open stream”

After isolating my problem, I am testing my API with the following code: $url = 'http://example.com/api/myendpoint; print_r(get_headers($url));die(); Sometimes it does works, but sometimes ...
Matheus Oliveira's user avatar
0 votes
1 answer
97 views

How to dump a stream for a defined amount of time on a schedule basis

I have a video stream from a video4linux device /dev/dsp/adapter0/dvr0 I want to programmatically dump this stream for a predefined amount of time. I think to schedule the jobs I might use cron and ...
fabrizioM's user avatar
  • 101
-1 votes
1 answer
64 views

NGINX stream ssl_preread and vhost

I try to configure a vhost for my vdi (citrix) configuration. The conf makes me crazy! I must use ssl_preread to get working. Actually, my configuration of NGINX is made over CWP. I have a subdmain ...
Benjamin Simon-Le Goff's user avatar
-4 votes
1 answer
32 views

How can I securely watch videos on my VPS downloaded from untrusted websites? [closed]

I have a linux VPS containing videos downloaded from untrusted websites, which may contain viruses. I want to watch these videos safely. I tried RDP, but it's lagging. Is there a secure way?
fartoot's user avatar