Skip to content

Commit

Permalink
default config has values commented out
Browse files Browse the repository at this point in the history
  • Loading branch information
ltn-chriskennedy committed Dec 14, 2023
1 parent 3defd46 commit f037594
Showing 1 changed file with 28 additions and 22 deletions.
50 changes: 28 additions & 22 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
## rsCap Configuration
#
# Default values, uncomment to override, use command line to override this file
#

## Debugging
RUST_LOG="info" # debug, info, error
DEBUG=false # Hexdump each packet
SILENT=false # No output when running
SEND_JSON_HEADER=false # Send a json header with each ZMQ data packet
#DEBUG=false # Hexdump each packet
#SILENT=false # No output when running
#SEND_JSON_HEADER=false # Send a json header with each ZMQ data packet

## ATTENTION: Wireless fails to capture reliably in most cases
USE_WIRELESS=false # Allow wireless interface usage
#USE_WIRELESS=false # Allow wireless interface usage

## Server writes to this ZMQ Host/Port
## Client reads from this ZMQ Host/Port
# ZeroMQ output host and port to TCP Publish
TARGET_IP="127.0.0.1"
TARGET_PORT=5556
## ZeroMQ output host and port to TCP Publish
#TARGET_IP="127.0.0.1"
#TARGET_PORT=5556

## ATTENTION: Linux requires setting device name
# Pcap device to listen to, empty for autodetection
SOURCE_DEVICE=""
## Pcap device to listen to, empty for autodetection
#SOURCE_DEVICE=""

## Listen to MpegTS Multicast UDP
## ATTENTION: FIXME RTP SMPTE2110 support is minimal capture w/out stats
# Pcap filter for MpegTS multicast host and port
SOURCE_IP="224.0.0.200"
SOURCE_PORT=10000
## Pcap filter for MpegTS multicast host and port
#SOURCE_IP="224.0.0.200"
#SOURCE_PORT=10000

## Client writes this file if it is defined
## TODO: need to allow application to handle this on cmdline input
Expand All @@ -32,16 +35,19 @@ SOURCE_PORT=10000
## TODO: header parsing for SCTE35/SCTE104, Captions, SEI...
## TODO: audio analysis
## TODO: create client fan-out processing of different tasks distributed w/ZMQ
# Output file name for client capture from ZeroMQ output
OUTPUT_FILE=capture.ts
## Output file name for client capture from ZeroMQ output
#OUTPUT_FILE=capture.ts

## IO Read/Write values to use
# Packet Size of batch packets and general divisibility of buffers captured
PACKET_SIZE=188 # SMPTE 2110 isn't specifically packetizing, uses BATCH_SIZE * PACKET_SIZE + PAYLOAD_OFFSET
# Ethernet (14 bytes) + IP (20 bytes) + UDP (8 bytes)
PAYLOAD_OFFSET=42 # pcap capture buffer offset for ethernet/ip headers
# number of packets to batch before sending to ZMQ
BATCH_SIZE=7 # 7 188 byte packets == 1316 + 42 == 1358 is default
# Pcap Read Timeout in MS
READ_TIME_OUT=60000
## Packet Size of batch packets and general divisibility of buffers captured
#PACKET_SIZE=188 # SMPTE 2110 isn't specifically packetizing, uses BATCH_SIZE * PACKET_SIZE + PAYLOAD_OFFSET

## Ethernet (14 bytes) + IP (20 bytes) + UDP (8 bytes)
#PAYLOAD_OFFSET=42 # pcap capture buffer offset for ethernet/ip headers

## number of packets to batch before sending to ZMQ
#BATCH_SIZE=7 # 7 188 byte packets == 1316 + 42 == 1358 is default

## Pcap Read Timeout in MS
#READ_TIME_OUT=60000

0 comments on commit f037594

Please sign in to comment.