mptsd reads mpegts streams from udp/multicast or http and combines them into one multiple program stream that is suitable for outputting to DVB-C modulator. Tested with Dektec DTE-3114 Quad QAM Modulator and used in production in small DVB-C networks. https://georgi.unixsol.org/programs/mptsd/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. CC = $(CROSS)$(TARGET)gcc
  2. STRIP = $(CROSS)$(TARGET)strip
  3. BUILD_ID = $(shell date +%F_%R)
  4. VERSION="v1.0"
  5. GIT_VER = $(shell git describe --tags --dirty --always 2>/dev/null)
  6. CFLAGS = -ggdb -Wall -Wextra -Wshadow -Wformat-security -Wno-strict-aliasing -O2 -D_GNU_SOURCE -DBUILD_ID=\"$(BUILD_ID)\"
  7. ifneq "$(GIT_VER)" ""
  8. CFLAGS += -DGIT_VER=\"$(GIT_VER)\"
  9. else
  10. CFLAGS += -DGIT_VER=\"$(VERSION)\"
  11. endif
  12. RM = /bin/rm -f
  13. Q = @
  14. LIBS = -lpthread -lm -lrt
  15. FUNCS_DIR = libfuncs
  16. FUNCS_LIB = $(FUNCS_DIR)/libfuncs.a
  17. TSFUNCS_DIR = libtsfuncs
  18. TSFUNCS_LIB = $(TSFUNCS_DIR)/libtsfuncs.a
  19. mptsd_OBJS = $(FUNCS_LIB) $(TSFUNCS_LIB) \
  20. iniparser.o inidict.o pidref.o data.o config.o \
  21. sleep.o network.o \
  22. input.o \
  23. output_psi.o output_mix.o output_write.o \
  24. web_pages.o web_server.o \
  25. mptsd.o
  26. PROGS = mptsd
  27. CLEAN_OBJS = $(PROGS) $(mptsd_OBJS) *~
  28. all: $(PROGS)
  29. $(FUNCS_LIB):
  30. $(Q)echo " MAKE $(FUNCS_LIB)"
  31. $(Q)$(MAKE) -s -C $(FUNCS_DIR)
  32. $(TSFUNCS_LIB):
  33. $(Q)echo " MAKE $(TSFUNCS_LIB)"
  34. $(Q)$(MAKE) -s -C $(TSFUNCS_DIR)
  35. mptsd: $(mptsd_OBJS)
  36. $(Q)echo " LINK mptsd"
  37. $(Q)$(CC) $(CFLAGS) $(mptsd_OBJS) $(LIBS) -o mptsd
  38. %.o: %.c data.h
  39. $(Q)echo " CC mptsd $<"
  40. $(Q)$(CC) $(CFLAGS) -c $<
  41. strip:
  42. $(Q)echo " STRIP $(PROGS)"
  43. $(Q)$(STRIP) $(PROGS)
  44. clean:
  45. $(Q)echo " RM $(CLEAN_OBJS)"
  46. $(Q)$(RM) $(CLEAN_OBJS)
  47. distclean: clean
  48. $(Q)$(MAKE) -s -C $(TSFUNCS_DIR) clean
  49. $(Q)$(MAKE) -s -C $(FUNCS_DIR) clean