Fix buffer sizes
This commit is contained in:
parent
c3a11254bb
commit
786f3f8742
|
@ -3,7 +3,7 @@ A TCP multi-broadcast media streaming server/client. [Check out the past source]
|
|||
|
||||
# Client
|
||||
- `client.py 127.0.0.1:61920 watch fier exampleChannel 123 | ffplay -i - -fflags nobuffer -flags low_delay -infbuf -fast -framedrop` - Watch `fier`'s `exampleChannel` channel at `127.0.0.1:61920`, supplying `123` as a password, and pipe it into ffplay for playback.
|
||||
- `ffmpeg -f dshow -audio_buffer_size 10 -i audio=virtual-audio-capturer -f gdigrab -framerate 30 -i desktop -vf scale=-1:480 -c:v libx264 -pix_fmt yuv420p -preset fast -tune zerolatency -c:a aac -bufsize 2M -maxrate 1M -f mpegts - | client.py 127.0.0.1:61920 broadcast 8092 fier 123 exampleChannel 456` - Broadcast Windows desktop as `fier` to `127.0.0.1:61920`, supplying `123` as the user password. `8092` is the buffer size (in bytes), `exampleChannel` is the channel, `456` is the password. Pipe the output from ffmpeg.
|
||||
- `ffmpeg -f dshow -audio_buffer_size 10 -i audio=virtual-audio-capturer -f gdigrab -framerate 30 -i desktop -vf scale=-1:480 -c:v libx264 -pix_fmt yuv420p -preset fast -tune zerolatency -c:a aac -bufsize 2M -maxrate 1M -f mpegts - | client.py 127.0.0.1:61920 broadcast 8192 fier 123 exampleChannel 456` - Broadcast Windows desktop as `fier` to `127.0.0.1:61920`, supplying `123` as the user password. `8192` is the buffer size (in bytes), `exampleChannel` is the channel, `456` is the password. Pipe the output from ffmpeg.
|
||||
|
||||
# Server Protocol
|
||||
The protocol is currently in an early stage, and is bound to change.
|
||||
|
|
|
@ -25,7 +25,7 @@ import queue
|
|||
|
||||
def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs)
|
||||
|
||||
bufferSize = 8096 # buffer size in bytes
|
||||
bufferSize = 8192 # buffer size in bytes
|
||||
timeout = 15 # timeout in seconds
|
||||
connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ import socket
|
|||
|
||||
def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs)
|
||||
|
||||
bufferSize = 8096 # buffer size in bytes
|
||||
bufferSize = 8192 # buffer size in bytes
|
||||
timeout = 15 # timeout in seconds
|
||||
connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
|
||||
|
|
Loading…
Reference in New Issue