tsdecrypt reads and decrypts CSA encrypted incoming mpeg transport stream over UDP/RTP using code words obtained from OSCAM or similar CAM server. tsdecrypt communicates with CAM server using cs378x (camd35 over tcp) protocol or newcamd protocol. https://georgi.unixsol.org/programs/tsdecrypt/
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.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. CC = $(CROSS)$(TARGET)gcc
  2. STRIP = $(CROSS)$(TARGET)strip
  3. CFLAGS = -ggdb -Wall -Wextra -Wshadow -Wformat-security -Wno-strict-aliasing -O2 -D_GNU_SOURCE
  4. RM = /bin/rm -f
  5. Q = @
  6. FUNCS_DIR = libfuncs
  7. FUNCS_LIB = $(FUNCS_DIR)/libfuncs.a
  8. TS_DIR = libts
  9. TS_LIB = $(TS_DIR)/libts.a
  10. tsdecrypt_OBJS = cbuf.o data.o udp.o util.o camd.o process.o tables.o tsdecrypt.o $(FUNCS_LIB) $(TS_LIB)
  11. tsdecrypt_LIBS = -lcrypto -ldvbcsa -lpthread
  12. CLEAN_OBJS = tsdecrypt $(tsdecrypt_OBJS) *~
  13. PROGS = tsdecrypt
  14. all: $(PROGS)
  15. $(FUNCS_LIB):
  16. $(Q)echo " MAKE $(FUNCS_LIB)"
  17. $(Q)$(MAKE) -s -C $(FUNCS_DIR)
  18. $(TS_LIB):
  19. $(Q)echo " MAKE $(TS_LIB)"
  20. $(Q)$(MAKE) -s -C $(TS_DIR)
  21. tsdecrypt: $(tsdecrypt_OBJS)
  22. $(Q)echo " LINK tsdecrypt"
  23. $(Q)$(CC) $(CFLAGS) $(tsdecrypt_OBJS) $(tsdecrypt_LIBS) -o tsdecrypt
  24. %.o: %.c data.h
  25. $(Q)echo " CC tsdecrypt $<"
  26. $(Q)$(CC) $(CFLAGS) -c $<
  27. strip:
  28. $(Q)echo " STRIP $(PROGS)"
  29. $(Q)$(STRIP) $(PROGS)
  30. clean:
  31. $(Q)echo " RM $(CLEAN_OBJS)"
  32. $(Q)$(RM) $(CLEAN_OBJS)
  33. distclean: clean
  34. $(Q)$(MAKE) -s -C $(TS_DIR) clean
  35. $(Q)$(MAKE) -s -C $(FUNCS_DIR) clean