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.

pidref.h 651B

1234567891011121314151617181920212223242526272829
  1. #ifndef PIDREF_H
  2. #define PIDREF_H
  3. #include <netdb.h>
  4. typedef struct {
  5. uint16_t org_pid;
  6. uint16_t new_pid;
  7. } PIDREF_ENTRY;
  8. typedef struct {
  9. uint16_t base_pid; // From this pid on there will be rewrites
  10. int num;
  11. PIDREF_ENTRY *entries;
  12. } PIDREF;
  13. PIDREF * pidref_init (int num, uint16_t base_pid);
  14. void pidref_free (PIDREF **ref);
  15. int pidref_add (PIDREF *ref, uint16_t org_pid, uint16_t new_pid);
  16. int pidref_del (PIDREF *ref, uint16_t org_pid);
  17. uint16_t pidref_get_new_pid (PIDREF *ref, uint16_t org_pid);
  18. int pidref_change_packet_pid (uint8_t *ts_packet, uint16_t packet_pid, PIDREF *ref);
  19. void pidref_dump (PIDREF *ref);
  20. #endif