Sebastian Dröge
6a59cc4b76
rtph263ppay: Generate buffer lists and attach the payload directly instead of copying it
2015-07-02 12:26:03 +02:00
Sebastian Dröge
9ceb15bcf8
rtph263pdepay: Simplify code a bit and do less direct memcpy and let GstBuffer do that for us
2015-07-02 09:49:44 +02:00
Sebastian Dröge
8b0d11a0ee
rtph263pay: Stop using an adapter and directly use the buffer
...
We always pushed one buffer into the adapter, then handled exactly that one
buffer and flushed it from the adapter. Now also don't memcpy() the actual
payload but just attach the input buffer's data to the output buffer.
This code still needs some serious refactoring/rewriting.
2015-07-02 09:26:27 +02:00
Sebastian Dröge
51cd22c912
rtpgsmpay: Remove non-existing includes for now
...
git add -p mistake.
2015-07-01 21:57:28 +02:00
Sebastian Dröge
ef5e14989b
rtpgstpay: Use the return value of gst_buffer_append()
2015-07-01 21:39:25 +02:00
Sebastian Dröge
137672ff18
rtpgsmpay: Attach payload to the output buffer instead of copying it
2015-07-01 21:39:25 +02:00
Sebastian Dröge
cb0232ba4e
rtpg729pay: Attach payload directly to output buffers instead of copying
2015-07-01 21:39:25 +02:00
Sebastian Dröge
0a71dbc80c
rtpg723pay: Attach payload buffer to the output instead of copying
2015-07-01 21:39:25 +02:00
Sebastian Dröge
8aca30799a
rtpdvdepay: Map the output buffer once instead of once every 80 bytes
2015-07-01 21:39:25 +02:00
Sebastian Dröge
3af36ed8fe
rtpac3pay: Attach the payload to the output buffer instead of copying it
...
Might also want to produce buffer lists here if needed.
2015-07-01 15:46:07 +02:00
Sebastian Dröge
adf2d8459f
rtp: Fix indention
2015-07-01 15:46:06 +02:00
Sebastian Dröge
978903cd87
rtph264pay: Use GST_WARNING_OBJECT() instead of GST_WARNING()
2015-07-01 11:58:26 +02:00
Sebastian Dröge
ceaf90f027
vp8depay: Don't lock/map every non-keyframe buffer twice
...
Just copy the complete header instead of first looking at the first byte
and then at the remaining 10 bytes.
2015-06-30 14:07:28 +02:00
Sebastian Dröge
dc059efa60
rtp: Use GST_BUFFER_PTS() instead of GST_BUFFER_TIMESTAMP()
...
The mix between all these in the RTP code is confusing, let's try to be
consistent.
2015-06-10 14:34:47 +02:00
Chris Clayton
e29f231e5d
rtpvp8depay: potential access beyond end of array
...
Compiling (with gcc-4.9-20150603) produces an error because of an access beyond
the end of an array. This patch fixes the error by initializing the loop
control/array index variable (i) to 1 and returning i - 1 when a match is found.
Also, because the values stored in the array increase in value as the index
increases, the >= test unnecessary, so it is removed.
2015-06-08 20:16:20 +01:00
Nicolas Dufresne
3ab70e4677
asteriskh263: Un-rank clashing depayloader
...
This depayloader clash with the standard one for H263p. It produces an
H263p stream with a modified header. It uses encoding-name that is the
same as H263p (H263-1998) though the resulting ES is not decodable or
parsable in GStreamer, making it unsuable in dynamic pipeline. This
patch unrank this specialized depayloader since it can only be used in
custom pipeline.
https://bugzilla.gnome.org/show_bug.cgi?id=739935
2015-06-03 08:57:57 -04:00
Tim-Philipp Müller
80998dadba
rtpvrawdepay: don't shadow existing outbuf variable
...
And fix unref of the wrong one which will contain NULL
in an error code path.
2015-05-25 16:16:47 +01:00
Tim-Philipp Müller
2aafb3951d
rtpvrawdepay: map/unmap output frame only once, not for every input packet
...
Map output buffer after creating it and keep it mapped
until we're done with it instead of mapping/unmapping
it for every single input buffer.
2015-05-25 16:16:42 +01:00
Nicola Murino
5e226d63f9
rtpg726pay: fix caps leak
...
https://bugzilla.gnome.org/show_bug.cgi?id=749544
2015-05-18 17:40:55 +01:00
Nicola Murino
335afc982b
rtpg726depay: don't leak input buffer
...
https://bugzilla.gnome.org/show_bug.cgi?id=749543
2015-05-18 17:40:39 +01:00
Nicola Murino
fefeda5e6c
rtpg726depay: add block_align to output caps
...
It is needed to correctly negotiate caps with matroskamux
and most other muxers.
https://bugzilla.gnome.org/show_bug.cgi?id=749129
2015-05-13 12:39:07 +01:00
Tim-Philipp Müller
2e412a447a
docs: update example pipelines in element docs
...
Mostly gst-launch -> gst-launch-1.0
Use autovideosink/autoaudiosink more often.
Sprinkle some converters here and there.
2015-05-10 11:05:00 +01:00
Luis de Bethencourt
9391622579
Rename property enums from ARG_ to PROP_
...
Property enum items should be named PROP_ for consistency and readability.
2015-04-27 11:22:11 +01:00
Tim-Philipp Müller
d753a3eeb1
Remove obsolete Android build cruft
...
This is not needed any longer.
2015-04-26 17:55:07 +01:00
Luis de Bethencourt
671b4d25cd
remove unused enum items PROP_LAST
...
This were probably added to the enums due to cargo cult programming and are
unused. Removing them.
2015-04-24 17:01:12 +01:00
Olivier Crête
1394a66e62
rtpvp8depay: When dropping intra packet, request keyframe
...
https://bugzilla.gnome.org/show_bug.cgi?id=747208
2015-04-13 18:13:35 -06:00
Edward Hervey
5e0329235e
rtph263depay: Fix framesize parsing
...
The string passed to the parsing function only contains a framesize, and
not <pt> + <framesize>
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726416
2015-04-08 11:17:31 +02:00
Sebastian Rasmussen
cf54d4cc67
rtph263pay/-depay: add framesize SDP attribute
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726416
2015-04-02 19:38:21 -04:00
Sebastian Rasmussen
896fc20806
rtpjpegpay/-depay: Remove incorrectly introduced framesize SDP attribute
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726415
2015-04-02 17:52:41 -04:00
Olivier Crête
d410acf649
rtpvp8depay: Parse width/height/profile from keyframes
...
This makes it possible to mux the result into a container
such as matroska.
https://bugzilla.gnome.org/show_bug.cgi?id=747208
2015-04-01 19:31:18 -04:00
Luis de Bethencourt
823194284c
rtph264depay: remove unused value
...
CID #1226474
2015-03-09 16:22:33 +00:00
Luis de Bethencourt
5cd293fe76
rtph263pay: fix leak
...
CID 1212156
2015-03-09 16:17:45 +00:00
Luis de Bethencourt
e87113781a
rtph263pay: remove uneeded variable
...
We just need to save the ebit information in case there is an error decoding.
2015-03-09 16:17:45 +00:00
Sebastian Rasmussen
d331d931db
rtpvorbispay: fix payloader description and author e-mail
...
https://bugzilla.gnome.org/show_bug.cgi?id=745226
2015-02-26 15:57:08 +00:00
Vincent Penquerc'h
dc73d153cb
rtpvp8pay: default encoding name to VP8
...
https://bugzilla.gnome.org/show_bug.cgi?id=737810
2015-02-19 14:29:02 +00:00
Vincent Penquerc'h
b88ea286d2
rtpvp8pay: make caps writable before truncating them
...
https://bugzilla.gnome.org/show_bug.cgi?id=737810
2015-02-19 14:06:51 +00:00
Vincent Penquerc'h
b866c989f5
rtpvp8pay: negotiate encoding name
...
Chrome uses a different one than gstreamer.
https://bugzilla.gnome.org/show_bug.cgi?id=737810
2015-02-19 13:52:29 +00:00
Wim Taymans
009a62fddb
rtph263depay: fix compilation with gcc 5.0
2015-02-10 18:54:24 +01:00
Thiago Santos
a6d73797d0
rtph264depay: prevent trying to get 0 bytes from adapter
...
This causes an assertion and would lead to getting a NULL instead
of a buffer. Without proper checking this would easily lead to
a segfault
https://bugzilla.gnome.org/show_bug.cgi?id=737199
2015-02-04 21:37:50 -03:00
Patrick Radizi
0a359cdbdc
rtph264pay: fix potential crash when shutting down
...
A race condition in the state change function may cause buffers
to be unreffed while they are still used by the streaming thread
in gst_rtp_h264_pay_send_sps_pps() resulting in a crash. Chain
up to the parent class first in the state change function to
make sure streaming has stopped and only then free those buffers.
https://bugzilla.gnome.org/show_bug.cgi?id=741381
2014-12-11 14:00:19 +00:00
Patrick Radizi
fef1a8d88a
rtph264pay: Fixes buffer leak when using SPS/PPS
...
Fixes a buffer leak that would occurr if the pipeline was shutdown
while a SPS/PPS header was being created.
https://bugzilla.gnome.org/show_bug.cgi?id=741271
2014-12-09 09:47:23 +01:00
Olivier Crête
e3b0fb2a5d
rtpmpadepay: Relax caps to allow any clock-rate
...
Some Wowza setups seem to send an invalid non-90000 clock-rate.
2014-12-02 15:33:25 -05:00
Wim Taymans
3d7b0f30d7
rtpgstpay: put 0-byte at the end of events
...
Put a 0-byte at the end of the event string. Does not break ABI because
old depayloaders will skip the 0 byte (which is included in the length).
Expect a 0-byte at the end of the event string or a ; for old
payloaders.
See https://bugzilla.gnome.org/show_bug.cgi?id=737591
2014-11-20 13:14:14 +01:00
Wim Taymans
9d2902d978
rtpgstdepay: avoid buffer overread.
...
Check that a caps event string is 0 terminated and the event string is
terminated with a ; to avoid buffer overreads.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=737591
2014-11-20 12:44:26 +01:00
Nicolas Dufresne
0f4f948f5f
rtpvp8: Use VP8 encoding name
...
Both Firefox and Chrome uses VP8 as the encoding in their SDP.
Adding this now defacto standard name removes the need for special
case in SDP parsing code.
https://bugzilla.gnome.org/show_bug.cgi?id=737810
2014-11-01 11:26:26 -04:00
Tim-Philipp Müller
92c1d289b8
rtpmp2tpay: fix up template caps so we can output the default pt 33
...
Add fixed payload type for mp2t to template caps as well, so
our output caps match the advertised default pt. Fixes a
regression from 1.2.
There's still something wrong with caps negotiation though,
rtpmp2tpay payload=96 ! fakesink will not output caps with
payload=96.
2014-11-01 12:40:07 +00:00
Tim-Philipp Müller
f3fec86bc9
Revert "rtp: add h265 RTP payloader + depayloader"
...
This reverts commit d06ba9051f
.
This breaks the build, as it depends on parser API in -bad.
2014-10-15 17:48:46 +01:00
Jurgen Slowack
d06ba9051f
rtp: add h265 RTP payloader + depayloader
2014-10-15 17:34:50 +02:00
Sebastian Dröge
4bc10e755a
rtpvrawdepay: Declare some more required caps fields in the sink template caps
...
Now only missing are width and height, which are expressed as strings
for RTP... so we can't put them into the template caps.
2014-09-16 22:47:13 +03:00
Sebastian Rasmussen
276269d956
rtph263ppay: Unref pad template caps after use
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734435
2014-08-08 16:02:24 -03:00