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 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * pidref header file
  3. * Copyright (C) 2010-2011 Unix Solutions Ltd.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2
  7. * as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  17. */
  18. #ifndef PIDREF_H
  19. #define PIDREF_H
  20. #include <netdb.h>
  21. typedef struct {
  22. uint16_t org_pid;
  23. uint16_t new_pid;
  24. } PIDREF_ENTRY;
  25. typedef struct {
  26. uint16_t base_pid; // From this pid on there will be rewrites
  27. int num;
  28. PIDREF_ENTRY *entries;
  29. } PIDREF;
  30. PIDREF * pidref_init (int num, uint16_t base_pid);
  31. void pidref_free (PIDREF **ref);
  32. int pidref_add (PIDREF *ref, uint16_t org_pid, uint16_t new_pid);
  33. int pidref_del (PIDREF *ref, uint16_t org_pid);
  34. uint16_t pidref_get_new_pid (PIDREF *ref, uint16_t org_pid);
  35. int pidref_change_packet_pid (uint8_t *ts_packet, uint16_t packet_pid, PIDREF *ref);
  36. void pidref_dump (PIDREF *ref);
  37. #endif