FFmpeg
Macros | Enumerations
flv.h File Reference

Go to the source code of this file.

Macros

#define FLV_AUDIO_SAMPLESSIZE_OFFSET   1
 
#define FLV_AUDIO_SAMPLERATE_OFFSET   2
 
#define FLV_AUDIO_CODECID_OFFSET   4
 
#define FLV_VIDEO_FRAMETYPE_OFFSET   4
 
#define FLV_AUDIO_CHANNEL_MASK   0x01
 
#define FLV_AUDIO_SAMPLESIZE_MASK   0x02
 
#define FLV_AUDIO_SAMPLERATE_MASK   0x0c
 
#define FLV_AUDIO_CODECID_MASK   0xf0
 
#define FLV_VIDEO_CODECID_MASK   0x0f
 
#define FLV_VIDEO_FRAMETYPE_MASK   0xf0
 
#define AMF_END_OF_OBJECT   0x09
 
#define KEYFRAMES_TAG   "keyframes"
 
#define KEYFRAMES_TIMESTAMP_TAG   "times"
 
#define KEYFRAMES_BYTEOFFSET_TAG   "filepositions"
 

Enumerations

enum  { FLV_HEADER_FLAG_HASVIDEO = 1, FLV_HEADER_FLAG_HASAUDIO = 4 }
 
enum  FlvTagType { FLV_TAG_TYPE_AUDIO = 0x08, FLV_TAG_TYPE_VIDEO = 0x09, FLV_TAG_TYPE_META = 0x12 }
 
enum  {
  FLV_STREAM_TYPE_VIDEO, FLV_STREAM_TYPE_AUDIO, FLV_STREAM_TYPE_SUBTITLE, FLV_STREAM_TYPE_DATA,
  FLV_STREAM_TYPE_NB
}
 
enum  { FLV_MONO = 0, FLV_STEREO = 1 }
 
enum  { FLV_SAMPLESSIZE_8BIT = 0, FLV_SAMPLESSIZE_16BIT = 1 << FLV_AUDIO_SAMPLESSIZE_OFFSET }
 
enum  { FLV_SAMPLERATE_SPECIAL = 0, FLV_SAMPLERATE_11025HZ = 1 << FLV_AUDIO_SAMPLERATE_OFFSET, FLV_SAMPLERATE_22050HZ = 2 << FLV_AUDIO_SAMPLERATE_OFFSET, FLV_SAMPLERATE_44100HZ = 3 << FLV_AUDIO_SAMPLERATE_OFFSET }
 
enum  {
  FLV_CODECID_PCM = 0, FLV_CODECID_ADPCM = 1 << FLV_AUDIO_CODECID_OFFSET, FLV_CODECID_MP3 = 2 << FLV_AUDIO_CODECID_OFFSET, FLV_CODECID_PCM_LE = 3 << FLV_AUDIO_CODECID_OFFSET,
  FLV_CODECID_NELLYMOSER_16KHZ_MONO = 4 << FLV_AUDIO_CODECID_OFFSET, FLV_CODECID_NELLYMOSER_8KHZ_MONO = 5 << FLV_AUDIO_CODECID_OFFSET, FLV_CODECID_NELLYMOSER = 6 << FLV_AUDIO_CODECID_OFFSET, FLV_CODECID_PCM_ALAW = 7 << FLV_AUDIO_CODECID_OFFSET,
  FLV_CODECID_PCM_MULAW = 8 << FLV_AUDIO_CODECID_OFFSET, FLV_CODECID_AAC = 10<< FLV_AUDIO_CODECID_OFFSET, FLV_CODECID_SPEEX = 11<< FLV_AUDIO_CODECID_OFFSET
}
 
enum  {
  FLV_CODECID_H263 = 2, FLV_CODECID_SCREEN = 3, FLV_CODECID_VP6 = 4, FLV_CODECID_VP6A = 5,
  FLV_CODECID_SCREEN2 = 6, FLV_CODECID_H264 = 7, FLV_CODECID_REALH263 = 8, FLV_CODECID_MPEG4 = 9
}
 
enum  {
  FLV_FRAME_KEY = 1 << FLV_VIDEO_FRAMETYPE_OFFSET, FLV_FRAME_INTER = 2 << FLV_VIDEO_FRAMETYPE_OFFSET, FLV_FRAME_DISP_INTER = 3 << FLV_VIDEO_FRAMETYPE_OFFSET, FLV_FRAME_GENERATED_KEY = 4 << FLV_VIDEO_FRAMETYPE_OFFSET,
  FLV_FRAME_VIDEO_INFO_CMD = 5 << FLV_VIDEO_FRAMETYPE_OFFSET
}
 
enum  AMFDataType {
  AMF_DATA_TYPE_NUMBER = 0x00, AMF_DATA_TYPE_BOOL = 0x01, AMF_DATA_TYPE_STRING = 0x02, AMF_DATA_TYPE_OBJECT = 0x03,
  AMF_DATA_TYPE_NULL = 0x05, AMF_DATA_TYPE_UNDEFINED = 0x06, AMF_DATA_TYPE_REFERENCE = 0x07, AMF_DATA_TYPE_MIXEDARRAY = 0x08,
  AMF_DATA_TYPE_OBJECT_END = 0x09, AMF_DATA_TYPE_ARRAY = 0x0a, AMF_DATA_TYPE_DATE = 0x0b, AMF_DATA_TYPE_LONG_STRING = 0x0c,
  AMF_DATA_TYPE_UNSUPPORTED = 0x0d
}
 

Detailed Description

FLV common header

Definition in file flv.h.

Macro Definition Documentation

◆ FLV_AUDIO_SAMPLESSIZE_OFFSET

#define FLV_AUDIO_SAMPLESSIZE_OFFSET   1

Definition at line 32 of file flv.h.

◆ FLV_AUDIO_SAMPLERATE_OFFSET

#define FLV_AUDIO_SAMPLERATE_OFFSET   2

Definition at line 33 of file flv.h.

◆ FLV_AUDIO_CODECID_OFFSET

#define FLV_AUDIO_CODECID_OFFSET   4

Definition at line 34 of file flv.h.

◆ FLV_VIDEO_FRAMETYPE_OFFSET

#define FLV_VIDEO_FRAMETYPE_OFFSET   4

Definition at line 36 of file flv.h.

◆ FLV_AUDIO_CHANNEL_MASK

#define FLV_AUDIO_CHANNEL_MASK   0x01

Definition at line 39 of file flv.h.

◆ FLV_AUDIO_SAMPLESIZE_MASK

#define FLV_AUDIO_SAMPLESIZE_MASK   0x02

Definition at line 40 of file flv.h.

◆ FLV_AUDIO_SAMPLERATE_MASK

#define FLV_AUDIO_SAMPLERATE_MASK   0x0c

Definition at line 41 of file flv.h.

◆ FLV_AUDIO_CODECID_MASK

#define FLV_AUDIO_CODECID_MASK   0xf0

Definition at line 42 of file flv.h.

◆ FLV_VIDEO_CODECID_MASK

#define FLV_VIDEO_CODECID_MASK   0x0f

Definition at line 44 of file flv.h.

◆ FLV_VIDEO_FRAMETYPE_MASK

#define FLV_VIDEO_FRAMETYPE_MASK   0xf0

Definition at line 45 of file flv.h.

◆ AMF_END_OF_OBJECT

#define AMF_END_OF_OBJECT   0x09

Definition at line 47 of file flv.h.

◆ KEYFRAMES_TAG

#define KEYFRAMES_TAG   "keyframes"

Definition at line 49 of file flv.h.

◆ KEYFRAMES_TIMESTAMP_TAG

#define KEYFRAMES_TIMESTAMP_TAG   "times"

Definition at line 50 of file flv.h.

◆ KEYFRAMES_BYTEOFFSET_TAG

#define KEYFRAMES_BYTEOFFSET_TAG   "filepositions"

Definition at line 51 of file flv.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FLV_HEADER_FLAG_HASVIDEO 
FLV_HEADER_FLAG_HASAUDIO 

Definition at line 54 of file flv.h.

◆ FlvTagType

enum FlvTagType
Enumerator
FLV_TAG_TYPE_AUDIO 
FLV_TAG_TYPE_VIDEO 
FLV_TAG_TYPE_META 

Definition at line 59 of file flv.h.

◆ anonymous enum

anonymous enum
Enumerator
FLV_STREAM_TYPE_VIDEO 
FLV_STREAM_TYPE_AUDIO 
FLV_STREAM_TYPE_SUBTITLE 
FLV_STREAM_TYPE_DATA 
FLV_STREAM_TYPE_NB 

Definition at line 65 of file flv.h.

◆ anonymous enum

anonymous enum
Enumerator
FLV_MONO 
FLV_STEREO 

Definition at line 73 of file flv.h.

◆ anonymous enum

anonymous enum
Enumerator
FLV_SAMPLESSIZE_8BIT 
FLV_SAMPLESSIZE_16BIT 

Definition at line 78 of file flv.h.

◆ anonymous enum

anonymous enum
Enumerator
FLV_SAMPLERATE_SPECIAL 

signifies 5512Hz and 8000Hz in the case of NELLYMOSER

FLV_SAMPLERATE_11025HZ 
FLV_SAMPLERATE_22050HZ 
FLV_SAMPLERATE_44100HZ 

Definition at line 83 of file flv.h.

◆ anonymous enum

anonymous enum
Enumerator
FLV_CODECID_PCM 
FLV_CODECID_ADPCM 
FLV_CODECID_MP3 
FLV_CODECID_PCM_LE 
FLV_CODECID_NELLYMOSER_16KHZ_MONO 
FLV_CODECID_NELLYMOSER_8KHZ_MONO 
FLV_CODECID_NELLYMOSER 
FLV_CODECID_PCM_ALAW 
FLV_CODECID_PCM_MULAW 
FLV_CODECID_AAC 
FLV_CODECID_SPEEX 

Definition at line 90 of file flv.h.

◆ anonymous enum

anonymous enum
Enumerator
FLV_CODECID_H263 
FLV_CODECID_SCREEN 
FLV_CODECID_VP6 
FLV_CODECID_VP6A 
FLV_CODECID_SCREEN2 
FLV_CODECID_H264 
FLV_CODECID_REALH263 
FLV_CODECID_MPEG4 

Definition at line 104 of file flv.h.

◆ anonymous enum

anonymous enum
Enumerator
FLV_FRAME_KEY 

key frame (for AVC, a seekable frame)

FLV_FRAME_INTER 

inter frame (for AVC, a non-seekable frame)

FLV_FRAME_DISP_INTER 

disposable inter frame (H.263 only)

FLV_FRAME_GENERATED_KEY 

generated key frame (reserved for server use only)

FLV_FRAME_VIDEO_INFO_CMD 

video info/command frame

Definition at line 115 of file flv.h.

◆ AMFDataType

Enumerator
AMF_DATA_TYPE_NUMBER 
AMF_DATA_TYPE_BOOL 
AMF_DATA_TYPE_STRING 
AMF_DATA_TYPE_OBJECT 
AMF_DATA_TYPE_NULL 
AMF_DATA_TYPE_UNDEFINED 
AMF_DATA_TYPE_REFERENCE 
AMF_DATA_TYPE_MIXEDARRAY 
AMF_DATA_TYPE_OBJECT_END 
AMF_DATA_TYPE_ARRAY 
AMF_DATA_TYPE_DATE 
AMF_DATA_TYPE_LONG_STRING 
AMF_DATA_TYPE_UNSUPPORTED 

Definition at line 123 of file flv.h.