Skip to content

Commit 6d23a89

Browse files
hfruchet-sterwango
authored andcommitted
samples: video: tcpserversink: video compression support
Add video compression support to lowerize network bandwidth. To visualise camera content on host PC, use GStreamer command line: $> gst-launch-1.0 tcpclientsrc host=<board ip address> port=5000 ! decodebin ! autovideosink sync=false Signed-off-by: Hugues Fruchet <[email protected]>
1 parent 14c6cf2 commit 6d23a89

File tree

1 file changed

+3
-0
lines changed
  • samples/drivers/video/tcpserversink/src

1 file changed

+3
-0
lines changed

samples/drivers/video/tcpserversink/src/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ LOG_MODULE_REGISTER(main, CONFIG_LOG_DEFAULT_LEVEL);
1818
#define MY_PORT 5000
1919
#define MAX_CLIENT_QUEUE 1
2020

21+
/* Assuming that video encoder will at least compress to this ratio */
22+
#define ESTIMATED_COMPRESSION_RATIO 10
23+
2124
static ssize_t sendall(int sock, const void *buf, size_t len)
2225
{
2326
while (len) {

0 commit comments

Comments
 (0)