|
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/internal.h"#include "avformat.h"#include "avio_internal.h"#include "internal.h"#include "mpegts.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 | 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 "Service01" |
| #define | SDT_RETRANS_TIME 500 |
| #define | PAT_RETRANS_TIME 100 |
| #define | PCR_RETRANS_TIME 20 |
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 |
| AVOutputFormat | ff_mpegts_muxer |
| #define PCR_TIME_BASE 27000000 |
Definition at line 37 of file mpegtsenc.c.
Referenced by get_pcr(), and mpegts_init().
| #define DVB_PRIVATE_NETWORK_START 0xff01 |
Definition at line 41 of file mpegtsenc.c.
| #define MPEGTS_FLAG_REEMIT_PAT_PMT 0x01 |
Definition at line 103 of file mpegtsenc.c.
Referenced by mpegts_write_packet_internal().
| #define MPEGTS_FLAG_AAC_LATM 0x02 |
Definition at line 104 of file mpegtsenc.c.
Referenced by mpegts_init(), and mpegts_write_pmt().
| #define MPEGTS_FLAG_PAT_PMT_AT_FRAMES 0x04 |
Definition at line 105 of file mpegtsenc.c.
Referenced by mpegts_write_pes().
| #define MPEGTS_FLAG_SYSTEM_B 0x08 |
Definition at line 106 of file mpegtsenc.c.
Referenced by mpegts_write_pmt().
| #define DEFAULT_PES_HEADER_FREQ 16 |
Definition at line 119 of file mpegtsenc.c.
| #define DEFAULT_PES_PAYLOAD_SIZE ((DEFAULT_PES_HEADER_FREQ - 1) * 184 + 170) |
Definition at line 120 of file mpegtsenc.c.
| #define SECTION_LENGTH 1020 |
Definition at line 124 of file mpegtsenc.c.
Referenced by mpegts_write_pat(), mpegts_write_pmt(), and mpegts_write_sdt().
| #define DEFAULT_PROVIDER_NAME "FFmpeg" |
Definition at line 214 of file mpegtsenc.c.
Referenced by mpegts_init().
| #define DEFAULT_SERVICE_NAME "Service01" |
Definition at line 215 of file mpegtsenc.c.
Referenced by mpegts_init().
| #define SDT_RETRANS_TIME 500 |
Definition at line 218 of file mpegtsenc.c.
Referenced by mpegts_init().
| #define PAT_RETRANS_TIME 100 |
Definition at line 219 of file mpegtsenc.c.
Referenced by mpegts_init().
| #define PCR_RETRANS_TIME 20 |
Definition at line 220 of file mpegtsenc.c.
| anonymous enum |
Definition at line 65 of file mpegtsenc.c.
|
static |
Definition at line 127 of file mpegtsenc.c.
Referenced by mpegts_write_section1().
Definition at line 175 of file mpegtsenc.c.
Referenced by mpegts_write_pat(), mpegts_write_pmt(), mpegts_write_sdt(), and mpegts_write_section1().
|
static |
Definition at line 184 of file mpegtsenc.c.
Referenced by mpegts_write_pat(), mpegts_write_pmt(), and mpegts_write_sdt().
|
static |
Definition at line 241 of file mpegtsenc.c.
Referenced by retransmit_si_info().
|
static |
Definition at line 258 of file mpegtsenc.c.
Referenced by retransmit_si_info().
Definition at line 641 of file mpegtsenc.c.
Referenced by mpegts_write_sdt().
|
static |
Definition at line 657 of file mpegtsenc.c.
Referenced by retransmit_si_info().
|
static |
Definition at line 695 of file mpegtsenc.c.
Referenced by mpegts_init().
|
static |
Definition at line 722 of file mpegtsenc.c.
Referenced by mpegts_insert_pcr_only(), mpegts_prefix_m2ts_header(), and mpegts_write_pes().
|
static |
Definition at line 728 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 740 of file mpegtsenc.c.
Referenced by mpegts_init().
|
static |
Definition at line 747 of file mpegtsenc.c.
|
static |
Definition at line 1008 of file mpegtsenc.c.
Referenced by mpegts_write_pes().
|
static |
Definition at line 1035 of file mpegtsenc.c.
Referenced by mpegts_insert_pcr_only(), and mpegts_write_pes().
|
static |
Definition at line 1050 of file mpegtsenc.c.
Referenced by mpegts_write_pes().
|
static |
Definition at line 1066 of file mpegtsenc.c.
Referenced by mpegts_write_pes().
Definition at line 1091 of file mpegtsenc.c.
Referenced by mpegts_write_pes().
Definition at line 1106 of file mpegtsenc.c.
Referenced by mpegts_write_pes().
Definition at line 1122 of file mpegtsenc.c.
Referenced by mpegts_write_pes().
Definition at line 1130 of file mpegtsenc.c.
Referenced by mpegts_write_pes().
|
static |
Definition at line 1142 of file mpegtsenc.c.
Referenced by mpegts_write_flush(), 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 1399 of file mpegtsenc.c.
Referenced by avi_write_packet(), mpegts_write_packet_internal(), and write_packet().
|
static |
Definition at line 1415 of file mpegtsenc.c.
Referenced by mpegts_write_packet_internal().
|
static |
Definition at line 1433 of file mpegtsenc.c.
Referenced by mpegts_write_packet_internal().
|
static |
Definition at line 1481 of file mpegtsenc.c.
Referenced by mpegts_write_packet().
|
static |
Definition at line 1723 of file mpegtsenc.c.
Referenced by mpegts_write_end(), and mpegts_write_packet().
|
static |
Definition at line 1741 of file mpegtsenc.c.
|
static |
Definition at line 1751 of file mpegtsenc.c.
|
static |
Definition at line 1759 of file mpegtsenc.c.
|
static |
Definition at line 1786 of file mpegtsenc.c.
|
static |
Definition at line 1808 of file mpegtsenc.c.
|
static |
Definition at line 1900 of file mpegtsenc.c.
| AVOutputFormat ff_mpegts_muxer |
Definition at line 1907 of file mpegtsenc.c.
1.8.6