FFmpeg
|
#include "libavutil/avassert.h"
#include "libavutil/bswap.h"
#include "libavutil/crc.h"
#include "libavutil/dict.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavcodec/ac3_parser_internal.h"
#include "libavcodec/bytestream.h"
#include "libavcodec/defs.h"
#include "libavcodec/h264.h"
#include "libavcodec/hevc.h"
#include "libavcodec/vvc.h"
#include "libavcodec/startcode.h"
#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"
#include "mpegts.h"
#include "mux.h"
Go to the source code of this file.
Data Structures | |
struct | MpegTSSection |
struct | MpegTSService |
struct | MpegTSWrite |
struct | MpegTSWriteStream |
Macros | |
#define | PCR_TIME_BASE 27000000 |
#define | DVB_PRIVATE_NETWORK_START 0xff01 |
#define | MPEGTS_FLAG_REEMIT_PAT_PMT 0x01 |
#define | MPEGTS_FLAG_AAC_LATM 0x02 |
#define | MPEGTS_FLAG_PAT_PMT_AT_FRAMES 0x04 |
#define | MPEGTS_FLAG_SYSTEM_B 0x08 |
#define | MPEGTS_FLAG_DISCONT 0x10 |
#define | MPEGTS_FLAG_NIT 0x20 |
#define | MPEGTS_FLAG_OMIT_RAI 0x40 |
#define | DEFAULT_PES_HEADER_FREQ 16 |
#define | DEFAULT_PES_PAYLOAD_SIZE ((DEFAULT_PES_HEADER_FREQ - 1) * 184 + 170) |
#define | SECTION_LENGTH 1020 |
#define | DEFAULT_PROVIDER_NAME "FFmpeg" |
#define | DEFAULT_SERVICE_NAME "Service" |
#define | SDT_RETRANS_TIME 500 |
#define | PAT_RETRANS_TIME 100 |
#define | PCR_RETRANS_TIME 20 |
#define | NIT_RETRANS_TIME 500 |
#define | H264_NAL_TYPE(state) (state & 0x1f) |
#define | HEVC_NAL_TYPE(state) ((state & 0x7e) >> 1) |
#define | VVC_NAL_TYPE(state) ((state >> 11) & 0x1f) |
#define | OFFSET(x) offsetof(MpegTSWrite, x) |
#define | ENC AV_OPT_FLAG_ENCODING_PARAM |
Enumerations | |
enum | { MPEGTS_SERVICE_TYPE_DIGITAL_TV = 0x01, MPEGTS_SERVICE_TYPE_DIGITAL_RADIO = 0x02, MPEGTS_SERVICE_TYPE_TELETEXT = 0x03, MPEGTS_SERVICE_TYPE_ADVANCED_CODEC_DIGITAL_RADIO = 0x0A, MPEGTS_SERVICE_TYPE_MPEG2_DIGITAL_HDTV = 0x11, MPEGTS_SERVICE_TYPE_ADVANCED_CODEC_DIGITAL_SDTV = 0x16, MPEGTS_SERVICE_TYPE_ADVANCED_CODEC_DIGITAL_HDTV = 0x19, MPEGTS_SERVICE_TYPE_HEVC_DIGITAL_HDTV = 0x1F } |
Variables | |
static const AVOption | options [] |
static const AVClass | mpegts_muxer_class |
const FFOutputFormat | ff_mpegts_muxer |
#define PCR_TIME_BASE 27000000 |
Definition at line 44 of file mpegtsenc.c.
#define DVB_PRIVATE_NETWORK_START 0xff01 |
Definition at line 48 of file mpegtsenc.c.
#define MPEGTS_FLAG_REEMIT_PAT_PMT 0x01 |
Definition at line 113 of file mpegtsenc.c.
#define MPEGTS_FLAG_AAC_LATM 0x02 |
Definition at line 114 of file mpegtsenc.c.
#define MPEGTS_FLAG_PAT_PMT_AT_FRAMES 0x04 |
Definition at line 115 of file mpegtsenc.c.
#define MPEGTS_FLAG_SYSTEM_B 0x08 |
Definition at line 116 of file mpegtsenc.c.
#define MPEGTS_FLAG_DISCONT 0x10 |
Definition at line 117 of file mpegtsenc.c.
#define MPEGTS_FLAG_NIT 0x20 |
Definition at line 118 of file mpegtsenc.c.
#define MPEGTS_FLAG_OMIT_RAI 0x40 |
Definition at line 119 of file mpegtsenc.c.
#define DEFAULT_PES_HEADER_FREQ 16 |
Definition at line 136 of file mpegtsenc.c.
#define DEFAULT_PES_PAYLOAD_SIZE ((DEFAULT_PES_HEADER_FREQ - 1) * 184 + 170) |
Definition at line 137 of file mpegtsenc.c.
#define SECTION_LENGTH 1020 |
Definition at line 141 of file mpegtsenc.c.
#define DEFAULT_PROVIDER_NAME "FFmpeg" |
Definition at line 237 of file mpegtsenc.c.
#define DEFAULT_SERVICE_NAME "Service" |
Definition at line 238 of file mpegtsenc.c.
#define SDT_RETRANS_TIME 500 |
Definition at line 241 of file mpegtsenc.c.
#define PAT_RETRANS_TIME 100 |
Definition at line 242 of file mpegtsenc.c.
#define PCR_RETRANS_TIME 20 |
Definition at line 243 of file mpegtsenc.c.
#define NIT_RETRANS_TIME 500 |
Definition at line 244 of file mpegtsenc.c.
Definition at line 1856 of file mpegtsenc.c.
Definition at line 1857 of file mpegtsenc.c.
Definition at line 1858 of file mpegtsenc.c.
#define OFFSET | ( | x | ) | offsetof(MpegTSWrite, x) |
Definition at line 2328 of file mpegtsenc.c.
#define ENC AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 2329 of file mpegtsenc.c.
anonymous enum |
Definition at line 71 of file mpegtsenc.c.
|
static |
Definition at line 144 of file mpegtsenc.c.
Referenced by mpegts_write_section1().
|
inlinestatic |
Definition at line 198 of file mpegtsenc.c.
Referenced by mpegts_write_nit(), mpegts_write_pat(), mpegts_write_pmt(), mpegts_write_sdt(), mpegts_write_section1(), and put_arib_caption_descriptor().
|
static |
Definition at line 207 of file mpegtsenc.c.
Referenced by mpegts_write_nit(), mpegts_write_pat(), mpegts_write_pmt(), and mpegts_write_sdt().
|
static |
Definition at line 270 of file mpegtsenc.c.
Referenced by retransmit_si_info().
|
static |
Definition at line 291 of file mpegtsenc.c.
Referenced by mpegts_write_nit(), mpegts_write_pmt(), and mpegts_write_sdt().
|
static |
Definition at line 297 of file mpegtsenc.c.
Referenced by mpegts_write_pmt().
|
static |
Definition at line 341 of file mpegtsenc.c.
Referenced by mpegts_write_pmt().
|
static |
Definition at line 353 of file mpegtsenc.c.
Referenced by mpegts_write_pmt().
|
static |
Definition at line 457 of file mpegtsenc.c.
Referenced by mpegts_write_pmt().
|
static |
Definition at line 508 of file mpegtsenc.c.
Referenced by retransmit_si_info().
|
static |
Definition at line 847 of file mpegtsenc.c.
Referenced by retransmit_si_info().
|
static |
Definition at line 885 of file mpegtsenc.c.
Referenced by retransmit_si_info().
|
static |
Definition at line 930 of file mpegtsenc.c.
Referenced by mpegts_add_service(), and mpegts_init().
|
static |
Definition at line 962 of file mpegtsenc.c.
Referenced by mpegts_insert_pcr_only(), mpegts_write_pes(), and write_packet().
|
static |
Definition at line 968 of file mpegtsenc.c.
Referenced by mpegts_insert_null_packet(), mpegts_insert_pcr_only(), mpegts_write_pes(), and section_write_packet().
|
static |
Definition at line 982 of file mpegtsenc.c.
Referenced by mpegts_add_service(), and mpegts_init().
|
static |
Definition at line 988 of file mpegtsenc.c.
Referenced by mpegts_init().
|
static |
Definition at line 1033 of file mpegtsenc.c.
Referenced by select_pcr_streams().
|
static |
Definition at line 1064 of file mpegtsenc.c.
Referenced by mpegts_init().
|
static |
Definition at line 1093 of file mpegtsenc.c.
|
static |
Definition at line 1308 of file mpegtsenc.c.
Referenced by mpegts_write_pes().
Definition at line 1341 of file mpegtsenc.c.
Referenced by mpegts_insert_pcr_only(), and mpegts_write_pes().
|
static |
Definition at line 1356 of file mpegtsenc.c.
Referenced by mpegts_write_flush(), and mpegts_write_pes().
|
static |
Definition at line 1371 of file mpegtsenc.c.
Referenced by mpegts_write_pes().
Definition at line 1399 of file mpegtsenc.c.
Referenced by mpegts_write_pes().
|
static |
Definition at line 1414 of file mpegtsenc.c.
Referenced by mpegts_write_pes().
|
static |
Definition at line 1430 of file mpegtsenc.c.
Referenced by mpegts_write_pes().
|
static |
Definition at line 1438 of file mpegtsenc.c.
Referenced by mpegts_write_pes().
|
static |
Definition at line 1446 of file mpegtsenc.c.
Referenced by mpegts_write_pes().
|
static |
Definition at line 1481 of file mpegtsenc.c.
Referenced by mpegts_write_flush(), and mpegts_write_packet_internal().
|
static |
Definition at line 1767 of file mpegtsenc.c.
Referenced by ff_check_h264_startcode(), and mpegts_write_packet_internal().
int ff_check_h264_startcode | ( | AVFormatContext * | s, |
const AVStream * | st, | ||
const AVPacket * | pkt | ||
) |
Check presence of H264 startcode.
Definition at line 1784 of file mpegtsenc.c.
Referenced by avi_write_packet(), mpegts_write_packet_internal(), and write_packet().
|
static |
Definition at line 1793 of file mpegtsenc.c.
Referenced by mpegts_write_packet_internal().
|
static |
Definition at line 1841 of file mpegtsenc.c.
Referenced by mpegts_write_packet_internal().
|
static |
Definition at line 1859 of file mpegtsenc.c.
Referenced by mpegts_write_packet().
|
static |
Definition at line 2233 of file mpegtsenc.c.
Referenced by mpegts_write_end(), and mpegts_write_packet().
|
static |
Definition at line 2258 of file mpegtsenc.c.
|
static |
Definition at line 2268 of file mpegtsenc.c.
|
static |
Definition at line 2276 of file mpegtsenc.c.
|
static |
Definition at line 2302 of file mpegtsenc.c.
|
static |
Definition at line 2330 of file mpegtsenc.c.
|
static |
Definition at line 2393 of file mpegtsenc.c.
const FFOutputFormat ff_mpegts_muxer |
Definition at line 2400 of file mpegtsenc.c.