FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
mxfenc.c File Reference
#include <inttypes.h>
#include <math.h>
#include <time.h>
#include "libavutil/opt.h"
#include "libavutil/random_seed.h"
#include "libavutil/timecode.h"
#include "libavutil/avassert.h"
#include "libavutil/pixdesc.h"
#include "libavutil/time_internal.h"
#include "libavcodec/bytestream.h"
#include "libavcodec/dnxhddata.h"
#include "libavcodec/dv_profile.h"
#include "libavcodec/h264.h"
#include "libavcodec/internal.h"
#include "audiointerleave.h"
#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"
#include "mxf.h"
#include "config.h"

Go to the source code of this file.

Data Structures

struct  MXFLocalTagPair
 
struct  MXFIndexEntry
 
struct  MXFStreamContext
 
struct  MXFContainerEssenceEntry
 
struct  MXFContext
 

Macros

#define EDIT_UNITS_PER_BODY   250
 
#define KAG_SIZE   512
 
#define DESCRIPTOR_COUNT(essence_container_count)   (essence_container_count > 1 ? essence_container_count + 1 : essence_container_count)
 
#define MXF_COMMON_OPTIONS
 

Enumerations

enum  ULIndex {
  INDEX_MPEG2 = 0, INDEX_AES3, INDEX_WAV, INDEX_D10_625_50_50_VIDEO,
  INDEX_D10_625_50_50_AUDIO, INDEX_D10_525_60_50_VIDEO, INDEX_D10_525_60_50_AUDIO, INDEX_D10_625_50_40_VIDEO,
  INDEX_D10_625_50_40_AUDIO, INDEX_D10_525_60_40_VIDEO, INDEX_D10_525_60_40_AUDIO, INDEX_D10_625_50_30_VIDEO,
  INDEX_D10_625_50_30_AUDIO, INDEX_D10_525_60_30_VIDEO, INDEX_D10_525_60_30_AUDIO, INDEX_DV,
  INDEX_DV25_525_60, INDEX_DV25_625_50, INDEX_DV25_525_60_IEC, INDEX_DV25_625_50_IEC,
  INDEX_DV50_525_60, INDEX_DV50_625_50, INDEX_DV100_1080_60, INDEX_DV100_1080_50,
  INDEX_DV100_720_60, INDEX_DV100_720_50, INDEX_DNXHD_1080p_10bit_HIGH, INDEX_DNXHD_1080p_8bit_MEDIUM,
  INDEX_DNXHD_1080p_8bit_HIGH, INDEX_DNXHD_1080i_10bit_HIGH, INDEX_DNXHD_1080i_8bit_MEDIUM, INDEX_DNXHD_1080i_8bit_HIGH,
  INDEX_DNXHD_720p_10bit, INDEX_DNXHD_720p_8bit_HIGH, INDEX_DNXHD_720p_8bit_MEDIUM, INDEX_DNXHD_720p_8bit_LOW,
  INDEX_JPEG2000, INDEX_H264
}
 

Functions

static void mxf_write_wav_desc (AVFormatContext *s, AVStream *st)
 
static void mxf_write_aes3_desc (AVFormatContext *s, AVStream *st)
 
static void mxf_write_mpegvideo_desc (AVFormatContext *s, AVStream *st)
 
static void mxf_write_cdci_desc (AVFormatContext *s, AVStream *st)
 
static void mxf_write_generic_sound_desc (AVFormatContext *s, AVStream *st)
 
static void mxf_write_uuid (AVIOContext *pb, enum MXFMetadataSetType type, int value)
 
static void mxf_write_umid (AVFormatContext *s, int type)
 
static void mxf_write_refs_count (AVIOContext *pb, int ref_count)
 
static int klv_ber_length (uint64_t len)
 
static int klv_encode_ber_length (AVIOContext *pb, uint64_t len)
 
static void klv_encode_ber4_length (AVIOContext *pb, int len)
 
static void klv_encode_ber9_length (AVIOContext *pb, uint64_t len)
 
static int mxf_get_essence_container_ul_index (enum AVCodecID id)
 
static void mxf_write_primer_pack (AVFormatContext *s)
 
static void mxf_write_local_tag (AVIOContext *pb, int size, int tag)
 
static void mxf_write_metadata_key (AVIOContext *pb, unsigned int value)
 
static void mxf_free (AVFormatContext *s)
 
static const MXFCodecULmxf_get_data_definition_ul (int type)
 
static void mxf_write_essence_container_refs (AVFormatContext *s)
 
static void mxf_write_preface (AVFormatContext *s)
 
static uint64_t mxf_utf16len (const char *utf8_str)
 
static int mxf_utf16_local_tag_length (const char *utf8_str)
 
static void mxf_write_local_tag_utf16 (AVIOContext *pb, int tag, const char *value)
 
static void mxf_write_identification (AVFormatContext *s)
 
static void mxf_write_content_storage (AVFormatContext *s)
 
static void mxf_write_track (AVFormatContext *s, AVStream *st, enum MXFMetadataSetType type)
 
static void mxf_write_common_fields (AVFormatContext *s, AVStream *st)
 
static void mxf_write_sequence (AVFormatContext *s, AVStream *st, enum MXFMetadataSetType type)
 
static void mxf_write_timecode_component (AVFormatContext *s, AVStream *st, enum MXFMetadataSetType type)
 
static void mxf_write_structural_component (AVFormatContext *s, AVStream *st, enum MXFMetadataSetType type)
 
static void mxf_write_multi_descriptor (AVFormatContext *s)
 
static void mxf_write_generic_desc (AVFormatContext *s, AVStream *st, const UID key, unsigned size)
 
static void mxf_write_cdci_common (AVFormatContext *s, AVStream *st, const UID key, unsigned size)
 
static void mxf_write_generic_sound_common (AVFormatContext *s, AVStream *st, const UID key, unsigned size)
 
static void mxf_write_wav_common (AVFormatContext *s, AVStream *st, const UID key, unsigned size)
 
static int mxf_write_tagged_value (AVFormatContext *s, const char *name, const char *value)
 
static int mxf_write_user_comments (AVFormatContext *s, const AVDictionary *m)
 
static void mxf_write_package (AVFormatContext *s, enum MXFMetadataSetType type, const char *package_name)
 
static int mxf_write_essence_container_data (AVFormatContext *s)
 
static int mxf_write_header_metadata_sets (AVFormatContext *s)
 
static unsigned klv_fill_size (uint64_t size)
 
static void mxf_write_index_table_segment (AVFormatContext *s)
 
static void mxf_write_klv_fill (AVFormatContext *s)
 
static int mxf_write_partition (AVFormatContext *s, int bodysid, int indexsid, const uint8_t *key, int write_metadata)
 
static int mxf_parse_dnxhd_frame (AVFormatContext *s, AVStream *st, AVPacket *pkt)
 
static int mxf_parse_dv_frame (AVFormatContext *s, AVStream *st, AVPacket *pkt)
 
static int mxf_parse_h264_frame (AVFormatContext *s, AVStream *st, AVPacket *pkt, MXFIndexEntry *e)
 
static const UIDmxf_get_mpeg2_codec_ul (AVCodecParameters *par)
 
static int mxf_parse_mpeg2_frame (AVFormatContext *s, AVStream *st, AVPacket *pkt, MXFIndexEntry *e)
 
static uint64_t mxf_parse_timestamp (time_t timestamp)
 
static void mxf_gen_umid (AVFormatContext *s)
 
static int mxf_init_timecode (AVFormatContext *s, AVStream *st, AVRational rate)
 
static int mxf_write_header (AVFormatContext *s)
 
static void mxf_write_system_item (AVFormatContext *s)
 
static void mxf_write_d10_video_packet (AVFormatContext *s, AVStream *st, AVPacket *pkt)
 
static void mxf_write_d10_audio_packet (AVFormatContext *s, AVStream *st, AVPacket *pkt)
 
static int mxf_write_opatom_body_partition (AVFormatContext *s)
 
static int mxf_write_opatom_packet (AVFormatContext *s, AVPacket *pkt, MXFIndexEntry *ie)
 
static int mxf_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static void mxf_write_random_index_pack (AVFormatContext *s)
 
static int mxf_write_footer (AVFormatContext *s)
 
static int mxf_interleave_get_packet (AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush)
 
static int mxf_compare_timestamps (AVFormatContext *s, AVPacket *next, AVPacket *pkt)
 
static int mxf_interleave (AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush)
 

Variables

AVOutputFormat ff_mxf_d10_muxer
 
AVOutputFormat ff_mxf_opatom_muxer
 
struct {
   enum AVCodecID   id
 
   enum ULIndex   index
 
mxf_essence_mappings []
 
static const
MXFContainerEssenceEntry 
mxf_essence_container_uls []
 
static const uint8_t uuid_base [] = { 0xAD,0xAB,0x44,0x24,0x2f,0x25,0x4d,0xc7,0x92,0xff,0x29,0xbd }
 
static const uint8_t umid_ul [] = { 0x06,0x0A,0x2B,0x34,0x01,0x01,0x01,0x05,0x01,0x01,0x0D,0x00,0x13 }
 
static const uint8_t op1a_ul [] = { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x01,0x09,0x00 }
 complete key for operation pattern, partitions, and primer pack More...
 
static const uint8_t opatom_ul [] = { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x02,0x0D,0x01,0x02,0x01,0x10,0x03,0x00,0x00 }
 
static const uint8_t footer_partition_key [] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x04,0x04,0x00 }
 
static const uint8_t primer_pack_key [] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x05,0x01,0x00 }
 
static const uint8_t index_table_segment_key [] = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0d,0x01,0x02,0x01,0x01,0x10,0x01,0x00 }
 
static const uint8_t random_index_pack_key [] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x11,0x01,0x00 }
 
static const uint8_t header_open_partition_key [] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x02,0x01,0x00 }
 
static const uint8_t header_closed_partition_key [] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x02,0x04,0x00 }
 
static const uint8_t klv_fill_key [] = { 0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x02,0x03,0x01,0x02,0x10,0x01,0x00,0x00,0x00 }
 
static const uint8_t body_partition_key [] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x03,0x04,0x00 }
 
static const uint8_t header_metadata_key [] = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0D,0x01,0x01,0x01,0x01 }
 partial key for header metadata More...
 
static const uint8_t multiple_desc_ul [] = { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x0D,0x01,0x03,0x01,0x02,0x7F,0x01,0x00 }
 
static const MXFLocalTagPair mxf_local_tag_batch []
 SMPTE RP210 http://www.smpte-ra.org/mdd/index.html https://smpte-ra.org/sites/default/files/Labels.xml. More...
 
static const MXFLocalTagPair mxf_user_comments_local_tag []
 
static const uint8_t smpte_12m_timecode_track_data_ul [] = { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x01,0x03,0x02,0x01,0x01,0x00,0x00,0x00 }
 
static const UID mxf_mpegvideo_descriptor_key = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0d,0x01,0x01,0x01,0x01,0x01,0x51,0x00 }
 
static const UID mxf_wav_descriptor_key = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0d,0x01,0x01,0x01,0x01,0x01,0x48,0x00 }
 
static const UID mxf_aes3_descriptor_key = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0d,0x01,0x01,0x01,0x01,0x01,0x47,0x00 }
 
static const UID mxf_cdci_descriptor_key = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0D,0x01,0x01,0x01,0x01,0x01,0x28,0x00 }
 
static const UID mxf_generic_sound_descriptor_key = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0D,0x01,0x01,0x01,0x01,0x01,0x42,0x00 }
 
static const uint8_t mxf_indirect_value_utf16le [] = { 0x4c,0x00,0x02,0x10,0x01,0x00,0x00,0x00,0x00,0x06,0x0e,0x2b,0x34,0x01,0x04,0x01,0x01 }
 
struct {
   UID   uid
 
   int   frame_size
 
   int   profile
 
   uint8_t   interlaced
 
mxf_h264_codec_uls []
 
static const UID mxf_mpeg2_codec_uls []
 
static const uint8_t system_metadata_pack_key [] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x03,0x01,0x04,0x01,0x01,0x00 }
 
static const uint8_t system_metadata_package_set_key [] = { 0x06,0x0E,0x2B,0x34,0x02,0x43,0x01,0x01,0x0D,0x01,0x03,0x01,0x04,0x01,0x02,0x01 }
 
static const AVOption mxf_options []
 
static const AVClass mxf_muxer_class
 
static const AVOption d10_options []
 
static const AVClass mxf_d10_muxer_class
 
static const AVOption opatom_options []
 
static const AVClass mxf_opatom_muxer_class
 
AVOutputFormat ff_mxf_muxer
 

Macro Definition Documentation

#define EDIT_UNITS_PER_BODY   250

Definition at line 64 of file mxfenc.c.

Referenced by mxf_write_packet().

#define KAG_SIZE   512
#define DESCRIPTOR_COUNT (   essence_container_count)    (essence_container_count > 1 ? essence_container_count + 1 : essence_container_count)
#define MXF_COMMON_OPTIONS
Value:
{ "signal_standard", "Force/set Sigal Standard",\
offsetof(MXFContext, signal_standard), AV_OPT_TYPE_INT, {.i64 = -1}, -1, 7, AV_OPT_FLAG_ENCODING_PARAM, "signal_standard"},\
{ "bt601", "ITU-R BT.601 and BT.656, also SMPTE 125M (525 and 625 line interlaced)",\
0, AV_OPT_TYPE_CONST, {.i64 = 1}, -1, 7, AV_OPT_FLAG_ENCODING_PARAM, "signal_standard"},\
{ "bt1358", "ITU-R BT.1358 and ITU-R BT.799-3, also SMPTE 293M (525 and 625 line progressive)",\
0, AV_OPT_TYPE_CONST, {.i64 = 2}, -1, 7, AV_OPT_FLAG_ENCODING_PARAM, "signal_standard"},\
{ "smpte347m", "SMPTE 347M (540 Mbps mappings)",\
0, AV_OPT_TYPE_CONST, {.i64 = 3}, -1, 7, AV_OPT_FLAG_ENCODING_PARAM, "signal_standard"},\
{ "smpte274m", "SMPTE 274M (1125 line)",\
0, AV_OPT_TYPE_CONST, {.i64 = 4}, -1, 7, AV_OPT_FLAG_ENCODING_PARAM, "signal_standard"},\
{ "smpte296m", "SMPTE 296M (750 line progressive)",\
0, AV_OPT_TYPE_CONST, {.i64 = 5}, -1, 7, AV_OPT_FLAG_ENCODING_PARAM, "signal_standard"},\
{ "smpte349m", "SMPTE 349M (1485 Mbps mappings)",\
0, AV_OPT_TYPE_CONST, {.i64 = 6}, -1, 7, AV_OPT_FLAG_ENCODING_PARAM, "signal_standard"},\
{ "smpte428", "SMPTE 428-1 DCDM",\
0, AV_OPT_TYPE_CONST, {.i64 = 7}, -1, 7, AV_OPT_FLAG_ENCODING_PARAM, "signal_standard"},
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
Definition: opt.h:276

Definition at line 2735 of file mxfenc.c.

Enumeration Type Documentation

enum ULIndex
Enumerator
INDEX_MPEG2 
INDEX_AES3 
INDEX_WAV 
INDEX_D10_625_50_50_VIDEO 
INDEX_D10_625_50_50_AUDIO 
INDEX_D10_525_60_50_VIDEO 
INDEX_D10_525_60_50_AUDIO 
INDEX_D10_625_50_40_VIDEO 
INDEX_D10_625_50_40_AUDIO 
INDEX_D10_525_60_40_VIDEO 
INDEX_D10_525_60_40_AUDIO 
INDEX_D10_625_50_30_VIDEO 
INDEX_D10_625_50_30_AUDIO 
INDEX_D10_525_60_30_VIDEO 
INDEX_D10_525_60_30_AUDIO 
INDEX_DV 
INDEX_DV25_525_60 
INDEX_DV25_625_50 
INDEX_DV25_525_60_IEC 
INDEX_DV25_625_50_IEC 
INDEX_DV50_525_60 
INDEX_DV50_625_50 
INDEX_DV100_1080_60 
INDEX_DV100_1080_50 
INDEX_DV100_720_60 
INDEX_DV100_720_50 
INDEX_DNXHD_1080p_10bit_HIGH 
INDEX_DNXHD_1080p_8bit_MEDIUM 
INDEX_DNXHD_1080p_8bit_HIGH 
INDEX_DNXHD_1080i_10bit_HIGH 
INDEX_DNXHD_1080i_8bit_MEDIUM 
INDEX_DNXHD_1080i_8bit_HIGH 
INDEX_DNXHD_720p_10bit 
INDEX_DNXHD_720p_8bit_HIGH 
INDEX_DNXHD_720p_8bit_MEDIUM 
INDEX_DNXHD_720p_8bit_LOW 
INDEX_JPEG2000 
INDEX_H264 

Definition at line 104 of file mxfenc.c.

Function Documentation

static void mxf_write_wav_desc ( AVFormatContext s,
AVStream st 
)
static

Definition at line 1260 of file mxfenc.c.

static void mxf_write_aes3_desc ( AVFormatContext s,
AVStream st 
)
static

Definition at line 1265 of file mxfenc.c.

static void mxf_write_mpegvideo_desc ( AVFormatContext s,
AVStream st 
)
static

Definition at line 1178 of file mxfenc.c.

static void mxf_write_cdci_desc ( AVFormatContext s,
AVStream st 
)
static

Definition at line 1173 of file mxfenc.c.

static void mxf_write_generic_sound_desc ( AVFormatContext s,
AVStream st 
)
static

Definition at line 1270 of file mxfenc.c.

static void mxf_write_uuid ( AVIOContext pb,
enum MXFMetadataSetType  type,
int  value 
)
static
static void mxf_write_umid ( AVFormatContext s,
int  type 
)
static
static void mxf_write_refs_count ( AVIOContext pb,
int  ref_count 
)
static
static int klv_ber_length ( uint64_t  len)
static

Definition at line 533 of file mxfenc.c.

Referenced by mxf_write_partition().

static int klv_encode_ber_length ( AVIOContext pb,
uint64_t  len 
)
static
static void klv_encode_ber4_length ( AVIOContext pb,
int  len 
)
static
static void klv_encode_ber9_length ( AVIOContext pb,
uint64_t  len 
)
static

Definition at line 568 of file mxfenc.c.

Referenced by mxf_write_opatom_body_partition().

static int mxf_get_essence_container_ul_index ( enum AVCodecID  id)
static

Definition at line 577 of file mxfenc.c.

Referenced by mxf_write_header().

static void mxf_write_primer_pack ( AVFormatContext s)
static

Definition at line 586 of file mxfenc.c.

Referenced by mxf_write_partition().

static void mxf_write_local_tag ( AVIOContext pb,
int  size,
int  tag 
)
static
static void mxf_write_metadata_key ( AVIOContext pb,
unsigned int  value 
)
static
static void mxf_free ( AVFormatContext s)
static

Definition at line 624 of file mxfenc.c.

Referenced by mxf_write_footer().

static const MXFCodecUL* mxf_get_data_definition_ul ( int  type)
static

Definition at line 634 of file mxfenc.c.

Referenced by mxf_write_common_fields().

static void mxf_write_essence_container_refs ( AVFormatContext s)
static

Definition at line 649 of file mxfenc.c.

Referenced by mxf_write_partition(), and mxf_write_preface().

static void mxf_write_preface ( AVFormatContext s)
static

Definition at line 666 of file mxfenc.c.

Referenced by mxf_write_header_metadata_sets().

static uint64_t mxf_utf16len ( const char *  utf8_str)
static

Definition at line 717 of file mxfenc.c.

Referenced by mxf_utf16_local_tag_length(), and mxf_write_local_tag_utf16().

static int mxf_utf16_local_tag_length ( const char *  utf8_str)
static

Definition at line 739 of file mxfenc.c.

Referenced by mxf_write_identification(), mxf_write_package(), and mxf_write_tagged_value().

static void mxf_write_local_tag_utf16 ( AVIOContext pb,
int  tag,
const char *  value 
)
static

Definition at line 758 of file mxfenc.c.

Referenced by mxf_write_identification(), mxf_write_package(), and mxf_write_tagged_value().

static void mxf_write_identification ( AVFormatContext s)
static

Definition at line 771 of file mxfenc.c.

Referenced by mxf_write_header_metadata_sets().

static void mxf_write_content_storage ( AVFormatContext s)
static

Definition at line 811 of file mxfenc.c.

Referenced by mxf_write_header_metadata_sets().

static void mxf_write_track ( AVFormatContext s,
AVStream st,
enum MXFMetadataSetType  type 
)
static

Definition at line 836 of file mxfenc.c.

Referenced by mxf_write_package().

static void mxf_write_common_fields ( AVFormatContext s,
AVStream st 
)
static
static void mxf_write_sequence ( AVFormatContext s,
AVStream st,
enum MXFMetadataSetType  type 
)
static

Definition at line 908 of file mxfenc.c.

Referenced by mxf_write_package().

static void mxf_write_timecode_component ( AVFormatContext s,
AVStream st,
enum MXFMetadataSetType  type 
)
static

Definition at line 936 of file mxfenc.c.

Referenced by mxf_write_package().

static void mxf_write_structural_component ( AVFormatContext s,
AVStream st,
enum MXFMetadataSetType  type 
)
static

Definition at line 964 of file mxfenc.c.

Referenced by mxf_write_package().

static void mxf_write_multi_descriptor ( AVFormatContext s)
static

Definition at line 1000 of file mxfenc.c.

Referenced by mxf_write_package().

static void mxf_write_generic_desc ( AVFormatContext s,
AVStream st,
const UID  key,
unsigned  size 
)
static

Definition at line 1037 of file mxfenc.c.

Referenced by mxf_write_cdci_common(), and mxf_write_generic_sound_common().

static void mxf_write_cdci_common ( AVFormatContext s,
AVStream st,
const UID  key,
unsigned  size 
)
static

Definition at line 1077 of file mxfenc.c.

Referenced by mxf_write_cdci_desc(), and mxf_write_mpegvideo_desc().

static void mxf_write_generic_sound_common ( AVFormatContext s,
AVStream st,
const UID  key,
unsigned  size 
)
static

Definition at line 1201 of file mxfenc.c.

Referenced by mxf_write_generic_sound_desc(), and mxf_write_wav_common().

static void mxf_write_wav_common ( AVFormatContext s,
AVStream st,
const UID  key,
unsigned  size 
)
static

Definition at line 1246 of file mxfenc.c.

Referenced by mxf_write_aes3_desc(), and mxf_write_wav_desc().

static int mxf_write_tagged_value ( AVFormatContext s,
const char *  name,
const char *  value 
)
static

Definition at line 1277 of file mxfenc.c.

Referenced by mxf_write_user_comments().

static int mxf_write_user_comments ( AVFormatContext s,
const AVDictionary m 
)
static

Definition at line 1306 of file mxfenc.c.

Referenced by mxf_write_package().

static void mxf_write_package ( AVFormatContext s,
enum MXFMetadataSetType  type,
const char *  package_name 
)
static

Definition at line 1324 of file mxfenc.c.

Referenced by mxf_write_header_metadata_sets().

static int mxf_write_essence_container_data ( AVFormatContext s)
static

Definition at line 1411 of file mxfenc.c.

Referenced by mxf_write_header_metadata_sets().

static int mxf_write_header_metadata_sets ( AVFormatContext s)
static

Definition at line 1433 of file mxfenc.c.

Referenced by mxf_write_partition().

static unsigned klv_fill_size ( uint64_t  size)
static
static void mxf_write_index_table_segment ( AVFormatContext s)
static

Definition at line 1475 of file mxfenc.c.

Referenced by mxf_write_footer(), and mxf_write_packet().

static void mxf_write_klv_fill ( AVFormatContext s)
static
static int mxf_write_partition ( AVFormatContext s,
int  bodysid,
int  indexsid,
const uint8_t key,
int  write_metadata 
)
static
static int mxf_parse_dnxhd_frame ( AVFormatContext s,
AVStream st,
AVPacket pkt 
)
static

Definition at line 1725 of file mxfenc.c.

Referenced by mxf_write_packet().

static int mxf_parse_dv_frame ( AVFormatContext s,
AVStream st,
AVPacket pkt 
)
static

Definition at line 1810 of file mxfenc.c.

Referenced by mxf_write_packet().

static int mxf_parse_h264_frame ( AVFormatContext s,
AVStream st,
AVPacket pkt,
MXFIndexEntry e 
)
static

Definition at line 1917 of file mxfenc.c.

Referenced by mxf_write_packet().

static const UID* mxf_get_mpeg2_codec_ul ( AVCodecParameters par)
static

Definition at line 1997 of file mxfenc.c.

Referenced by mxf_parse_mpeg2_frame().

static int mxf_parse_mpeg2_frame ( AVFormatContext s,
AVStream st,
AVPacket pkt,
MXFIndexEntry e 
)
static

Definition at line 2017 of file mxfenc.c.

Referenced by mxf_write_packet().

static uint64_t mxf_parse_timestamp ( time_t  timestamp)
static

Definition at line 2075 of file mxfenc.c.

Referenced by mxf_write_header().

static void mxf_gen_umid ( AVFormatContext s)
static

Definition at line 2089 of file mxfenc.c.

Referenced by mxf_write_header().

static int mxf_init_timecode ( AVFormatContext s,
AVStream st,
AVRational  rate 
)
static

Definition at line 2101 of file mxfenc.c.

Referenced by mxf_write_header().

static int mxf_write_header ( AVFormatContext s)
static

Definition at line 2114 of file mxfenc.c.

static void mxf_write_system_item ( AVFormatContext s)
static

Definition at line 2318 of file mxfenc.c.

Referenced by mxf_write_packet().

static void mxf_write_d10_video_packet ( AVFormatContext s,
AVStream st,
AVPacket pkt 
)
static

Definition at line 2359 of file mxfenc.c.

Referenced by mxf_write_packet().

static void mxf_write_d10_audio_packet ( AVFormatContext s,
AVStream st,
AVPacket pkt 
)
static

Definition at line 2388 of file mxfenc.c.

Referenced by mxf_write_packet().

static int mxf_write_opatom_body_partition ( AVFormatContext s)
static

Definition at line 2420 of file mxfenc.c.

Referenced by mxf_write_footer(), and mxf_write_opatom_packet().

static int mxf_write_opatom_packet ( AVFormatContext s,
AVPacket pkt,
MXFIndexEntry ie 
)
static

Definition at line 2441 of file mxfenc.c.

Referenced by mxf_write_packet().

static int mxf_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 2471 of file mxfenc.c.

static void mxf_write_random_index_pack ( AVFormatContext s)
static

Definition at line 2575 of file mxfenc.c.

Referenced by mxf_write_footer().

static int mxf_write_footer ( AVFormatContext s)
static

Definition at line 2602 of file mxfenc.c.

static int mxf_interleave_get_packet ( AVFormatContext s,
AVPacket out,
AVPacket pkt,
int  flush 
)
static

Definition at line 2665 of file mxfenc.c.

Referenced by mxf_interleave().

static int mxf_compare_timestamps ( AVFormatContext s,
AVPacket next,
AVPacket pkt 
)
static

Definition at line 2720 of file mxfenc.c.

Referenced by mxf_interleave().

static int mxf_interleave ( AVFormatContext s,
AVPacket out,
AVPacket pkt,
int  flush 
)
static

Definition at line 2729 of file mxfenc.c.

Variable Documentation

AVOutputFormat ff_mxf_d10_muxer
Initial value:
= {
.name = "mxf_d10",
.long_name = NULL_IF_CONFIG_SMALL("MXF (Material eXchange Format) D-10 Mapping"),
.mime_type = "application/mxf",
.priv_data_size = sizeof(MXFContext),
.audio_codec = AV_CODEC_ID_PCM_S16LE,
.video_codec = AV_CODEC_ID_MPEG2VIDEO,
.priv_class = &mxf_d10_muxer_class,
}
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
Definition: ffmpeg.c:671
static int mxf_write_header(AVFormatContext *s)
Definition: mxfenc.c:2114
static int mxf_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: mxfenc.c:2471
static int flags
Definition: log.c:57
static int interleave_packet(AVFormatContext *s, AVPacket *out, AVPacket *in, int flush)
Interleave an AVPacket correctly so it can be muxed.
Definition: mux.c:1228
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:94
preferred ID for MPEG-1/2 video decoding
Definition: avcodec.h:219
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:486
static const AVClass mxf_d10_muxer_class
Definition: mxfenc.c:2778
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:337
static int mxf_interleave(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush)
Definition: mxfenc.c:2729
static int mxf_write_footer(AVFormatContext *s)
Definition: mxfenc.c:2602

Definition at line 2815 of file mxfenc.c.

AVOutputFormat ff_mxf_opatom_muxer
Initial value:
= {
.name = "mxf_opatom",
.long_name = NULL_IF_CONFIG_SMALL("MXF (Material eXchange Format) Operational Pattern Atom"),
.mime_type = "application/mxf",
.extensions = "mxf",
.priv_data_size = sizeof(MXFContext),
.audio_codec = AV_CODEC_ID_PCM_S16LE,
.video_codec = AV_CODEC_ID_DNXHD,
.priv_class = &mxf_opatom_muxer_class,
}
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
Definition: ffmpeg.c:671
static int mxf_write_header(AVFormatContext *s)
Definition: mxfenc.c:2114
static int mxf_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: mxfenc.c:2471
static int flags
Definition: log.c:57
static int interleave_packet(AVFormatContext *s, AVPacket *out, AVPacket *in, int flush)
Interleave an AVPacket correctly so it can be muxed.
Definition: mux.c:1228
static const AVClass mxf_opatom_muxer_class
Definition: mxfenc.c:2792
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:94
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:486
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:337
static int mxf_interleave(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush)
Definition: mxfenc.c:2729
static int mxf_write_footer(AVFormatContext *s)
Definition: mxfenc.c:2602

Definition at line 2830 of file mxfenc.c.

enum AVCodecID id

Definition at line 146 of file mxfenc.c.

enum ULIndex index

Definition at line 147 of file mxfenc.c.

const { ... } mxf_essence_mappings[]
const MXFContainerEssenceEntry mxf_essence_container_uls[]
static

Definition at line 165 of file mxfenc.c.

const uint8_t uuid_base[] = { 0xAD,0xAB,0x44,0x24,0x2f,0x25,0x4d,0xc7,0x92,0xff,0x29,0xbd }
static

Definition at line 385 of file mxfenc.c.

Referenced by mxf_write_uuid().

const uint8_t umid_ul[] = { 0x06,0x0A,0x2B,0x34,0x01,0x01,0x01,0x05,0x01,0x01,0x0D,0x00,0x13 }
static

Definition at line 386 of file mxfenc.c.

Referenced by mxf_write_umid().

const uint8_t op1a_ul[] = { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x01,0x09,0x00 }
static

complete key for operation pattern, partitions, and primer pack

Definition at line 391 of file mxfenc.c.

Referenced by mxf_write_partition(), and mxf_write_preface().

const uint8_t opatom_ul[] = { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x02,0x0D,0x01,0x02,0x01,0x10,0x03,0x00,0x00 }
static

Definition at line 392 of file mxfenc.c.

Referenced by mxf_write_partition(), and mxf_write_preface().

const uint8_t footer_partition_key[] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x04,0x04,0x00 }
static

Definition at line 393 of file mxfenc.c.

Referenced by mxf_write_footer(), and mxf_write_partition().

const uint8_t primer_pack_key[] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x05,0x01,0x00 }
static

Definition at line 394 of file mxfenc.c.

Referenced by mxf_write_primer_pack().

const uint8_t index_table_segment_key[] = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0d,0x01,0x02,0x01,0x01,0x10,0x01,0x00 }
static

Definition at line 395 of file mxfenc.c.

Referenced by mxf_write_index_table_segment().

const uint8_t random_index_pack_key[] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x11,0x01,0x00 }
static

Definition at line 396 of file mxfenc.c.

Referenced by mxf_write_random_index_pack().

const uint8_t header_open_partition_key[] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x02,0x01,0x00 }
static

Definition at line 397 of file mxfenc.c.

Referenced by mxf_write_opatom_packet(), and mxf_write_packet().

const uint8_t header_closed_partition_key[] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x02,0x04,0x00 }
static

Definition at line 398 of file mxfenc.c.

Referenced by mxf_write_footer().

const uint8_t klv_fill_key[] = { 0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x02,0x03,0x01,0x02,0x10,0x01,0x00,0x00,0x00 }
static

Definition at line 399 of file mxfenc.c.

Referenced by mxf_write_d10_video_packet(), and mxf_write_klv_fill().

const uint8_t body_partition_key[] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x03,0x04,0x00 }
static
const uint8_t header_metadata_key[] = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0D,0x01,0x01,0x01,0x01 }
static

partial key for header metadata

Definition at line 405 of file mxfenc.c.

Referenced by mxf_write_metadata_key().

const uint8_t multiple_desc_ul[] = { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x0D,0x01,0x03,0x01,0x02,0x7F,0x01,0x00 }
static
const MXFLocalTagPair mxf_local_tag_batch[]
static
const MXFLocalTagPair mxf_user_comments_local_tag[]
static
Initial value:
= {
{ 0x4406, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x02,0x03,0x02,0x01,0x02,0x0C,0x00,0x00,0x00}},
{ 0x5001, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x02,0x03,0x02,0x01,0x02,0x09,0x01,0x00,0x00}},
{ 0x5003, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x02,0x03,0x02,0x01,0x02,0x0A,0x01,0x00,0x00}},
}

Definition at line 505 of file mxfenc.c.

const uint8_t smpte_12m_timecode_track_data_ul[] = { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x01,0x03,0x02,0x01,0x01,0x00,0x00,0x00 }
static

Definition at line 882 of file mxfenc.c.

Referenced by mxf_write_common_fields().

const UID mxf_mpegvideo_descriptor_key = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0d,0x01,0x01,0x01,0x01,0x01,0x51,0x00 }
static

Definition at line 1071 of file mxfenc.c.

Referenced by mxf_write_mpegvideo_desc().

const UID mxf_wav_descriptor_key = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0d,0x01,0x01,0x01,0x01,0x01,0x48,0x00 }
static

Definition at line 1072 of file mxfenc.c.

Referenced by mxf_write_wav_desc().

const UID mxf_aes3_descriptor_key = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0d,0x01,0x01,0x01,0x01,0x01,0x47,0x00 }
static

Definition at line 1073 of file mxfenc.c.

Referenced by mxf_write_aes3_desc().

const UID mxf_cdci_descriptor_key = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0D,0x01,0x01,0x01,0x01,0x01,0x28,0x00 }
static

Definition at line 1074 of file mxfenc.c.

Referenced by mxf_write_cdci_desc().

const UID mxf_generic_sound_descriptor_key = { 0x06,0x0E,0x2B,0x34,0x02,0x53,0x01,0x01,0x0D,0x01,0x01,0x01,0x01,0x01,0x42,0x00 }
static

Definition at line 1075 of file mxfenc.c.

Referenced by mxf_write_generic_sound_desc().

const uint8_t mxf_indirect_value_utf16le[] = { 0x4c,0x00,0x02,0x10,0x01,0x00,0x00,0x00,0x00,0x06,0x0e,0x2b,0x34,0x01,0x04,0x01,0x01 }
static

Definition at line 1275 of file mxfenc.c.

Referenced by mxf_write_tagged_value().

UID uid
int frame_size
Examples:
transcode_aac.c.

Definition at line 1896 of file mxfenc.c.

Referenced by aic_decode_header(), alac_entropy_coder(), alac_linear_predictor(), amr_handle_packet(), apply_filter(), av_buffersink_set_frame_size(), avpriv_mpegaudio_decode_header(), bitpacked_decode_yuv422p10(), build_frame_code(), caf_write_header(), celt_gauge_psy_weight(), check_codec_match(), dca_parse_params(), dcadec_decode_frame(), decode_frame(), decode_packet(), dfa_read_packet(), do_video_out(), dv_frame_offset(), dvvideo_decode_frame(), encode_frame(), escape124_decode_frame(), ff_celt_decode_frame(), ff_opus_psy_postencode_update(), ff_psy_preprocess(), ff_put_wav_header(), ff_rtp_send_h261(), ff_rtp_send_vc2hq(), ff_sipr_decode_frame_16k(), ff_vbv_update(), ffm2_read_header(), ffm_read_header(), find_expected_header(), flic_decode_frame_15_16BPP(), flic_decode_frame_24BPP(), flic_decode_frame_8BPP(), g723_1_decode_frame(), generate_raw_frame(), get_audio_frame_duration(), init_output_frame(), libopus_encode_init(), lmlm4_read_packet(), load_encode_and_write(), main(), move_audio(), mp3_header_decompress(), mp3_read_header(), mp3lame_encode_frame(), mpegaudio_parse(), mpegts_init(), mxf_parse_dnxhd_frame(), mxf_parse_dv_frame(), mxf_parse_h264_frame(), mxf_write_d10_audio_packet(), new_subtitle_stream(), new_video_stream(), on2avc_decode_frame(), opus_duration(), opus_encode_frame(), pack_bitstream(), prores_encode_frame(), pulse_read_packet(), qdm2_decode(), raw_decode(), read_packet(), return_stored_frame(), rm_write_header(), rpl_read_packet(), rtp_send_ilbc(), s302m_decode_frame(), s302m_parse_frame_header(), smacker_read_packet(), store_packet(), str_probe(), str_read_packet(), swf_write_video(), vc1t_read_packet(), vorbis_encode_frame(), vp9_superframe_split_filter(), wavpack_decode_frame(), xan_wc3_copy_pixel_run(), xan_wc3_output_pixel_run(), and xmv_fetch_video_packet().

int profile

Definition at line 1897 of file mxfenc.c.

Referenced by mxf_parse_dv_frame().

uint8_t interlaced
const { ... } mxf_h264_codec_uls[]
Initial value:
= {
{{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x04,0x01,0x02,0x02,0x01,0x31,0x11,0x01 }, 0, 66, 0 },
{{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x04,0x01,0x02,0x02,0x01,0x32,0x20,0x01 }, 0, 110, 0 },
{{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x04,0x01,0x02,0x02,0x01,0x32,0x21,0x01 }, 232960, 0, 1 },
{{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x04,0x01,0x02,0x02,0x01,0x32,0x21,0x02 }, 281088, 0, 1 },
{{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x04,0x01,0x02,0x02,0x01,0x32,0x21,0x03 }, 232960, 0, 0 },
{{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x04,0x01,0x02,0x02,0x01,0x32,0x21,0x04 }, 281088, 0, 0 },
{{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x04,0x01,0x02,0x02,0x01,0x32,0x21,0x08 }, 116736, 0, 0 },
{{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x04,0x01,0x02,0x02,0x01,0x32,0x21,0x09 }, 140800, 0, 0 },
{{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x04,0x01,0x02,0x02,0x01,0x32,0x30,0x01 }, 0, 122, 0 },
{{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x04,0x01,0x02,0x02,0x01,0x32,0x31,0x01 }, 472576, 0, 1 },
{{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x04,0x01,0x02,0x02,0x01,0x32,0x31,0x02 }, 568832, 0, 1 },
{{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x04,0x01,0x02,0x02,0x01,0x32,0x31,0x03 }, 472576, 0, 0 },
{{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x04,0x01,0x02,0x02,0x01,0x32,0x31,0x04 }, 568832, 0, 0 },
{{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x04,0x01,0x02,0x02,0x01,0x32,0x31,0x08 }, 236544, 0, 0 },
{{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x04,0x01,0x02,0x02,0x01,0x32,0x31,0x09 }, 284672, 0, 0 },
}

Referenced by mxf_parse_h264_frame().

const UID mxf_mpeg2_codec_uls[]
static
Initial value:
= {
{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x01,0x10,0x00 },
{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x01,0x11,0x00 },
{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x02,0x02,0x00 },
{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x02,0x03,0x00 },
{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x03,0x02,0x00 },
{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x03,0x03,0x00 },
{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x04,0x02,0x00 },
{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x04,0x03,0x00 },
{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x05,0x02,0x00 },
{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x05,0x03,0x00 },
}

Definition at line 1984 of file mxfenc.c.

Referenced by mxf_get_mpeg2_codec_ul().

const uint8_t system_metadata_pack_key[] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x03,0x01,0x04,0x01,0x01,0x00 }
static

Definition at line 2315 of file mxfenc.c.

Referenced by mxf_write_system_item().

const uint8_t system_metadata_package_set_key[] = { 0x06,0x0E,0x2B,0x34,0x02,0x43,0x01,0x01,0x0D,0x01,0x03,0x01,0x04,0x01,0x02,0x01 }
static

Definition at line 2316 of file mxfenc.c.

Referenced by mxf_write_system_item().

const AVOption mxf_options[]
static
Initial value:
= {
{ "store_user_comments", "",
0x42, AV_OPT_TYPE_BOOL, {.i64 = 1}, 0, 1, AV_OPT_FLAG_ENCODING_PARAM},
{ NULL },
}
#define NULL
Definition: coverity.c:32
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
Definition: opt.h:276
#define MXF_COMMON_OPTIONS
Definition: mxfenc.c:2735

Definition at line 2755 of file mxfenc.c.

const AVClass mxf_muxer_class
static
Initial value:
= {
.class_name = "MXF muxer",
.item_name = av_default_item_name,
.option = mxf_options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:86
av_default_item_name
static const AVOption mxf_options[]
Definition: mxfenc.c:2755

Definition at line 2762 of file mxfenc.c.

const AVOption d10_options[]
static
Initial value:
= {
{ "d10_channelcount", "Force/set channelcount in generic sound essence descriptor",
0x42, AV_OPT_TYPE_INT, {.i64 = -1}, -1, 8, AV_OPT_FLAG_ENCODING_PARAM},
{ "store_user_comments", "",
0x42, AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, AV_OPT_FLAG_ENCODING_PARAM},
{ NULL },
}
#define NULL
Definition: coverity.c:32
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
Definition: opt.h:276
#define MXF_COMMON_OPTIONS
Definition: mxfenc.c:2735

Definition at line 2769 of file mxfenc.c.

const AVClass mxf_d10_muxer_class
static
Initial value:
= {
.class_name = "MXF-D10 muxer",
.item_name = av_default_item_name,
.option = d10_options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:86
av_default_item_name
static const AVOption d10_options[]
Definition: mxfenc.c:2769

Definition at line 2778 of file mxfenc.c.

const AVOption opatom_options[]
static
Initial value:
= {
{ "mxf_audio_edit_rate", "Audio edit rate for timecode",
0x42, AV_OPT_TYPE_RATIONAL, {.dbl=25}, 0, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM },
{ NULL },
}
#define NULL
Definition: coverity.c:32
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
Definition: opt.h:276
#define MXF_COMMON_OPTIONS
Definition: mxfenc.c:2735

Definition at line 2785 of file mxfenc.c.

const AVClass mxf_opatom_muxer_class
static
Initial value:
= {
.class_name = "MXF-OPAtom muxer",
.item_name = av_default_item_name,
.option = opatom_options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:86
av_default_item_name
static const AVOption opatom_options[]
Definition: mxfenc.c:2785

Definition at line 2792 of file mxfenc.c.

AVOutputFormat ff_mxf_muxer
Initial value:
= {
.name = "mxf",
.long_name = NULL_IF_CONFIG_SMALL("MXF (Material eXchange Format)"),
.mime_type = "application/mxf",
.extensions = "mxf",
.priv_data_size = sizeof(MXFContext),
.audio_codec = AV_CODEC_ID_PCM_S16LE,
.video_codec = AV_CODEC_ID_MPEG2VIDEO,
.priv_class = &mxf_muxer_class,
}
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
Definition: ffmpeg.c:671
static int mxf_write_header(AVFormatContext *s)
Definition: mxfenc.c:2114
static int mxf_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: mxfenc.c:2471
static int flags
Definition: log.c:57
static int interleave_packet(AVFormatContext *s, AVPacket *out, AVPacket *in, int flush)
Interleave an AVPacket correctly so it can be muxed.
Definition: mux.c:1228
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:94
static const AVClass mxf_muxer_class
Definition: mxfenc.c:2762
preferred ID for MPEG-1/2 video decoding
Definition: avcodec.h:219
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:486
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:337
static int mxf_interleave(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush)
Definition: mxfenc.c:2729
static int mxf_write_footer(AVFormatContext *s)
Definition: mxfenc.c:2602

Definition at line 2799 of file mxfenc.c.