* payload: (int) [0, 255]
For audio and video, these will normally be a media payload type as
defined in the RTP Audio/Video Profile. For dynamicaly allocated
- payload types, this value will be >= 96 and the encoding_name must be
+ payload types, this value will be >= 96 and the encoding-name must be
set.
- * clock_rate: (int) [0 - MAXINT]
+ * clock-rate: (int) [0 - MAXINT]
the RTP clock rate
ssrc: (uint) [0 - MAXINT]
The ssrc value currently in use.
- clock_base: (uint) [0 - MAXINT]
+ clock-base: (uint) [0 - MAXINT]
The RTP time representing time 0
- seqnum_base:
+ seqnum-base:
The RTP sequence number representing the first rtp packet
- encoding_name: (String) ANY
+ encoding-name: (String) ANY
typically second part of the mime type. ex. MP4V-ES. only required if
payload type >= 96
- encoding_params: (String) ANY
+ encoding-params: (String) ANY
extra encoding parameters (as in the SDP a=rtpmap: field). only required
- if different from the default of the encoding_name.
+ if different from the default of the encoding-name.
Optional parameters as key/value pairs, media type specific.
"application/x-rtp",
"media", G_TYPE_STRING, "audio", -]
"payload", G_TYPE_INT, 96, ] - required
- "clock_rate", G_TYPE_INT, 8000, -]
- "encoding_name", G_TYPE_STRING, "AMR", -] - required since payload >= 96
- "encoding_params", G_TYPE_STRING, "1", -] - optional param for AMR
+ "clock-rate", G_TYPE_INT, 8000, -]
+ "encoding-name", G_TYPE_STRING, "AMR", -] - required since payload >= 96
+ "encoding-params", G_TYPE_STRING, "1", -] - optional param for AMR
"octet-align", G_TYPE_BOOLEAN, TRUE, -]
"crc", G_TYPE_BOOLEAN, FALSE, ]
"robust-sorting", G_TYPE_BOOLEAN, FALSE, ] AMR specific params.
Mapping of caps to and from SDP fields:
m=<media> <udp port> RTP/AVP <payload> -] media and payload from caps
- a=rtpmap:<payload> <encoding_name>/<clock_rate>[/<encoding_params>]
+ a=rtpmap:<payload> <encoding-name>/<clock-rate>[/<encoding-params>]
-> when <payload> >= 96
a=fmtp:<payload> <param>=<value>;...
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"audio\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) 8000, "
- "encoding_name = (string) \"AMR\", "
- "encoding_params = (string) \"1\", "
+ "clock-rate = (int) 8000, "
+ "encoding-name = (string) \"AMR\", "
+ "encoding-params = (string) \"1\", "
"octet-align = (boolean) TRUE, "
"crc = (boolean) FALSE, "
"robust-sorting = (boolean) FALSE, " "interleaving = (boolean) FALSE"
- /* following options are not needed for a decoder
+ /* following options are not needed for a decoder
*
"mode-set = (int) [ 0, 7 ], "
"mode-change-period = (int) [ 1, MAX ], "
rtpamrdec->octet_align = TRUE;
}
- if (!(params = gst_structure_get_string (structure, "encoding_params")))
+ if (!(params = gst_structure_get_string (structure, "encoding-params")))
rtpamrdec->channels = 1;
else {
rtpamrdec->channels = atoi (params);
}
- if (!gst_structure_get_int (structure, "clock_rate", &rtpamrdec->rate))
+ if (!gst_structure_get_int (structure, "clock-rate", &rtpamrdec->rate))
rtpamrdec->rate = 8000;
- /* we require 1 channel, 8000 Hz, octet aligned, no CRC,
+ /* we require 1 channel, 8000 Hz, octet aligned, no CRC,
* no robust sorting, no interleaving for now */
if (rtpamrdec->channels != 1)
return FALSE;
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"audio\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) 8000, "
- "encoding_name = (string) \"AMR\", "
- "encoding_params = (string) \"1\", "
+ "clock-rate = (int) 8000, "
+ "encoding-name = (string) \"AMR\", "
+ "encoding-params = (string) \"1\", "
"octet-align = (boolean) TRUE, "
"crc = (boolean) FALSE, "
"robust-sorting = (boolean) FALSE, " "interleaving = (boolean) FALSE"
- /* following options are not needed for a decoder
+ /* following options are not needed for a decoder
*
"mode-set = (int) [ 0, 7 ], "
"mode-change-period = (int) [ 1, MAX ], "
rtpamrdec->octet_align = TRUE;
}
- if (!(params = gst_structure_get_string (structure, "encoding_params")))
+ if (!(params = gst_structure_get_string (structure, "encoding-params")))
rtpamrdec->channels = 1;
else {
rtpamrdec->channels = atoi (params);
}
- if (!gst_structure_get_int (structure, "clock_rate", &rtpamrdec->rate))
+ if (!gst_structure_get_int (structure, "clock-rate", &rtpamrdec->rate))
rtpamrdec->rate = 8000;
- /* we require 1 channel, 8000 Hz, octet aligned, no CRC,
+ /* we require 1 channel, 8000 Hz, octet aligned, no CRC,
* no robust sorting, no interleaving for now */
if (rtpamrdec->channels != 1)
return FALSE;
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"audio\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) 8000, "
- "encoding_name = (string) \"AMR\", "
- "encoding_params = (string) \"1\", "
+ "clock-rate = (int) 8000, "
+ "encoding-name = (string) \"AMR\", "
+ "encoding-params = (string) \"1\", "
"octet-align = (boolean) TRUE, "
"crc = (boolean) FALSE, "
"robust-sorting = (boolean) FALSE, "
gst_basertppayload_set_options (basepayload, "audio", TRUE, "AMR", 8000);
gst_basertppayload_set_outcaps (basepayload,
- "encoding_params", G_TYPE_STRING, "1",
+ "encoding-params", G_TYPE_STRING, "1",
"octet-align", G_TYPE_BOOLEAN, TRUE,
"crc", G_TYPE_BOOLEAN, FALSE,
"robust-sorting", G_TYPE_BOOLEAN, FALSE,
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"audio\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) 8000, "
- "encoding_name = (string) \"AMR\", "
- "encoding_params = (string) \"1\", "
+ "clock-rate = (int) 8000, "
+ "encoding-name = (string) \"AMR\", "
+ "encoding-params = (string) \"1\", "
"octet-align = (boolean) TRUE, "
"crc = (boolean) FALSE, "
"robust-sorting = (boolean) FALSE, "
gst_basertppayload_set_options (basepayload, "audio", TRUE, "AMR", 8000);
gst_basertppayload_set_outcaps (basepayload,
- "encoding_params", G_TYPE_STRING, "1",
+ "encoding-params", G_TYPE_STRING, "1",
"octet-align", G_TYPE_BOOLEAN, TRUE,
"crc", G_TYPE_BOOLEAN, FALSE,
"robust-sorting", G_TYPE_BOOLEAN, FALSE,
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"audio\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) 8000, " "encoding_name = (string) \"GSM\"")
+ "clock-rate = (int) 8000, " "encoding-name = (string) \"GSM\"")
);
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"audio\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) 8000, " "encoding_name = (string) \"GSM\"")
+ "clock-rate = (int) 8000, " "encoding-name = (string) \"GSM\"")
);
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"video\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) 90000, " "encoding_name = (string) \"H263-1998\"")
+ "clock-rate = (int) 90000, " "encoding-name = (string) \"H263-1998\"")
);
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"video\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) 90000, " "encoding_name = (string) \"H263-1998\"")
+ "clock-rate = (int) 90000, " "encoding-name = (string) \"H263-1998\"")
);
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"video\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) 90000, " "encoding_name = (string) \"H263-1998\"")
+ "clock-rate = (int) 90000, " "encoding-name = (string) \"H263-1998\"")
);
static void gst_rtph263penc_class_init (GstRtpH263PEncClass * klass);
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"video\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) 90000, " "encoding_name = (string) \"H263-1998\"")
+ "clock-rate = (int) 90000, " "encoding-name = (string) \"H263-1998\"")
);
static void gst_rtph263penc_class_init (GstRtpH263PEncClass * klass);
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"video\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) [1, MAX ], " "encoding_name = (string) \"MP4V-ES\""
+ "clock-rate = (int) [1, MAX ], " "encoding-name = (string) \"MP4V-ES\""
/* All optional parameters
*
* "profile-level-id=[1,MAX]"
structure = gst_caps_get_structure (caps, 0);
- if (!gst_structure_get_int (structure, "clock_rate", &rtpmp4vdec->rate))
+ if (!gst_structure_get_int (structure, "clock-rate", &rtpmp4vdec->rate))
rtpmp4vdec->rate = 90000;
srccaps = gst_caps_new_simple ("video/mpeg",
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"video\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) [1, MAX ], " "encoding_name = (string) \"MP4V-ES\""
+ "clock-rate = (int) [1, MAX ], " "encoding-name = (string) \"MP4V-ES\""
/* All optional parameters
*
* "profile-level-id=[1,MAX]"
structure = gst_caps_get_structure (caps, 0);
- if (!gst_structure_get_int (structure, "clock_rate", &rtpmp4vdec->rate))
+ if (!gst_structure_get_int (structure, "clock-rate", &rtpmp4vdec->rate))
rtpmp4vdec->rate = 90000;
srccaps = gst_caps_new_simple ("video/mpeg",
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"video\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) [1, MAX ], "
- "encoding_name = (string) \"MP4V-ES\", " "profile-level-id=[1,MAX]"
+ "clock-rate = (int) [1, MAX ], "
+ "encoding-name = (string) \"MP4V-ES\", " "profile-level-id=[1,MAX]"
/* All optional parameters
*
* "config="
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"video\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) [1, MAX ], "
- "encoding_name = (string) \"MP4V-ES\", " "profile-level-id=[1,MAX]"
+ "clock-rate = (int) [1, MAX ], "
+ "encoding-name = (string) \"MP4V-ES\", " "profile-level-id=[1,MAX]"
/* All optional parameters
*
* "config="
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"audio\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) 90000, " "encoding_name = (string) \"MPA\"")
+ "clock-rate = (int) 90000, " "encoding-name = (string) \"MPA\"")
);
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"audio\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) 90000, " "encoding_name = (string) \"MPA\"")
+ "clock-rate = (int) 90000, " "encoding-name = (string) \"MPA\"")
);
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"audio\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) 90000, " "encoding_name = (string) \"MPA\"")
+ "clock-rate = (int) 90000, " "encoding-name = (string) \"MPA\"")
);
static void gst_rtpmpaenc_class_init (GstRtpMPAEncClass * klass);
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"audio\", "
"payload = (int) [ 96, 255 ], "
- "clock_rate = (int) 90000, " "encoding_name = (string) \"MPA\"")
+ "clock-rate = (int) 90000, " "encoding-name = (string) \"MPA\"")
);
static void gst_rtpmpaenc_class_init (GstRtpMPAEncClass * klass);