Commit graph

2665 commits

Author SHA1 Message Date
Mark Nauwelaerts
c4db8697d7 flacparse: set _OFFSET and _OFFSET_END on outgoing buffers 2010-01-05 17:40:07 +01:00
Mark Nauwelaerts
8c67702b84 audioparsers: move 'flacparse' into it 2010-01-05 17:40:02 +01:00
Mark Nauwelaerts
a3f7b8527e baseparse: provide default conversion using bps if no fps available
Also store estimated duration as such, rather than pretending otherwise
(e.g. set by subclass).
2010-01-05 17:39:59 +01:00
Arnaud Patard
24965dc415 mpegtsdemux: Handle eac3 in PMT
When the stream type is set to private data, gst-mpegtsdemux is trying to find
audio descriptors in PMT and look for AC3 (tag 0x6a) but doesn't look for EAC3
(tag 0x7a). Handle this case too.

Fixes bug #605904.
2010-01-04 10:15:29 +01:00
Alessandro Decina
52f5f42da0 h264parse: fix caps handling in _update_src_caps. 2009-12-30 21:50:32 +01:00
Stefan Kost
80aa8e70ec qtmux: also add .h file changes to unbreak the build 2009-12-28 11:34:35 +02:00
Stefan Kost
48111e3f18 qtmux: use correct names from template for request pads
The pads where names pad0, pad1, ...
2009-12-27 23:51:50 +02:00
Stefan Kost
be0d7470cf qtmux: move errors _new_pad to the end 2009-12-27 23:32:58 +02:00
Thiago Santos
f822f65f34 qtmux: Accept non-paired uint tags
Adds support for unpaired unsigned interger tags
2009-12-21 13:58:30 -03:00
Thiago Santos
80a192b825 qtmux: Adds new tags
Maps more tags that are already posted by qtdemux

Fixes #599759
2009-12-21 12:05:37 -03:00
Mark Nauwelaerts
a61183fe29 baseparse: check for remaining data when draining in push mode 2009-12-18 13:32:07 +01:00
Mark Nauwelaerts
d51d8ca35c baseparse: fix pull mode cache size comparison 2009-12-18 13:32:00 +01:00
Edward Hervey
83c7b38a10 ac3parse: Fix unitialized variable. 2009-12-18 13:01:17 +01:00
Thiago Santos
87bfdef683 fpsdisplaysink: Internal sink improvements
Does some general improvements with the internal sink handling.
1) Do not remove and re-add the ghostpad when changing
internal sink
2) Only instantiate the default sink when changing from NULL
to READY if there is no other available
3) Avoid changing the internal sink if not on NULL state

Fixes #598682
2009-12-17 20:39:24 -03:00
Thiago Santos
a4f30d5f3d fpsdisplaysink: Minor fixes
Downgrade a warning message to debug. Remove an
already fixed FIXME and add a note about (not-)using
fpsdisplaysink in autovideosink. Change the created
ghostpad to use the name "sink" as it is advertised in
the pad template.
2009-12-17 20:26:30 -03:00
Christian Schaller
86c2660d8d Update spec file and fix ac3parser header listing in Makefile.am 2009-12-17 14:46:01 +00:00
Thiago Santos
d2dce72c60 fpsdisplaysink: fix setting sync on child bin
Use GST_IS_BIN instead of G_OBJECT_TYPE to check if the
internal sink is a bin. Using the later won't work when
the sink is not a bin directly (but inherits from one, like
autovideosink).

Fixes #604280
2009-12-16 18:36:15 -03:00
Philippe Normand
9c03149e7b fpsdisplaysink: check the sync property exists on embedded sink(s)
Follow-up on 4111d6321f, the video
sink(s) used by fpsdisplaysink might not have the sync property. So we
check its existence to avoid warning from g_object_set() at runtime.

Fixes #604280
2009-12-16 18:35:58 -03:00
Thiago Santos
1b2e0eae67 qtmux: support more of j2k
Reads the new caps added to qtdemux by commit
c917d65e6d
and adds its corresponding atoms.

Also adds support for image/x-jpc as it is the same
as image/x-jp2, except that the buffers need to be
boxed inside a jp2c isom box before muxing. To solve
this the QTPads now have a function that (if
not NULL) is called when a buffer is collected. This
function returns a replacement to the current collected
buffer.

Fixes #598916
2009-12-14 20:20:11 -03:00
Thiago Santos
c996ac4c53 qtmux: Maps 'classification' tag for 3gpp files
Adds the mapping of 'classification' tags to writing of
'clsf' atoms for gppmux.

Based on a patch by: Lasse Laukkanen <ext-lasse.2.laukkanen@nokia.com>
2009-12-14 08:41:48 -03:00
Philippe Normand
4111d6321f fpsdisplaysink: expose video sink using a property
Exposes the internally used sink as video-sink property and
makes the default one to be autovideosink instead of
the hardcoded xvimagesink

Fixes #604280
2009-12-12 16:50:33 -03:00
Peter van Hardenberg
4aded03c5e adpcmenc: add new adpcm encoder element. 2009-12-11 16:32:48 -08:00
Michael Smith
2dec1de420 audioparse: fix a format string as reported on irc. 2009-12-11 10:25:16 -08:00
Michael Smith
4232bbb4e1 adpcmdec: make power of 2 more accurate. 2009-12-10 10:12:24 -08:00
Mark Nauwelaerts
ed058d7542 h264parse: fix caps parameters setting
Also consider PPS when selecting SPS to pick parameters from.
Only update caps when settings actually changed, and when these are valid.
2009-12-10 12:58:03 +01:00
Sebastian Dröge
05e8934311 shapewipe: Don't do pointer dereferences in the processing loop
Lowers the time taken there in my testcase from 6.91% to 6.20%
as measured by callgrind.
2009-12-10 10:41:23 +01:00
unknown
397da35350 rtpmux: update the current_ssrc from the caps
Fixes #604101
2009-12-09 15:00:53 +01:00
Håvard Graff
97ef05cbac rtpmux: release pads when disposing
Because of an allocated priv (GstRTPMuxPadPrivate), the element will
leak memory if not gst_rtp_mux_release_pad() is called. This would
previously only happen if release_request_pad() was called explicitly,
somthing that should not be neccesary.

Fixes #604099
2009-12-09 14:47:00 +01:00
Wim Taymans
b678101611 dtmfmux: method name cleanups 2009-12-09 14:47:00 +01:00
Michael Smith
830187fc0d qtmux: remove c++ comments and add some more comments. 2009-12-08 17:59:04 -08:00
Michael Smith
dd8d704bb9 qtmux: add ima adpcm support 2009-12-08 17:56:24 -08:00
Mark Nauwelaerts
c5847abf30 ac3parse: ensure sufficient data available for parsing 2009-12-08 16:06:31 +01:00
Mark Nauwelaerts
f3dbcb668a ac3parse: extract and use some more details for Enhanced Ac-3 streams 2009-12-08 16:06:31 +01:00
Mark Nauwelaerts
8f8f97dd2d baseparse: custom bufferflag indicates not to count frame in stats 2009-12-08 16:06:31 +01:00
Mark Nauwelaerts
9eae24835e ac3parse: perform additional frame checks when resyncing 2009-12-08 16:06:31 +01:00
Mark Nauwelaerts
bb8085a348 ac3parse: inform base parser of frame duration 2009-12-08 16:06:30 +01:00
Mark Nauwelaerts
8e91b3b3c5 ac3parse: improve src caps settings 2009-12-08 16:06:30 +01:00
Mark Nauwelaerts
eccffea369 ac3parse: initial version
MARGINAL rank for now; might take some time for some (useful)
framed=true/false to appear here and there.
2009-12-08 16:06:30 +01:00
Mark Nauwelaerts
15f1b7e97f amrparse: use (default) time handling of baseparser class 2009-12-08 16:06:30 +01:00
Mark Nauwelaerts
502011501b audioparsers: move 'amrparse' into it 2009-12-08 16:06:27 +01:00
Mark Nauwelaerts
186344c397 audioparsers: reference GstBaseParse now lives here 2009-12-08 16:05:26 +01:00
Mark Nauwelaerts
3441a41f83 audioparsers: rename 'aacparse' plugin to generic 'audioparsers' plugin 2009-12-08 16:05:26 +01:00
Mark Nauwelaerts
e3e4ba4f9e aacparse: separate plugin registration and rename plugin 2009-12-08 16:05:26 +01:00
Mark Nauwelaerts
d80b3e2f3b aacparse: ensure sufficient data available before accessing 2009-12-08 16:05:26 +01:00
Mark Nauwelaerts
64d6d5554e aacparse: use (default) time handling of baseparser class 2009-12-08 16:05:26 +01:00
Mark Nauwelaerts
d4c89e2492 aacparse: fixup comments to C-style 2009-12-08 16:05:26 +01:00
Mark Nauwelaerts
48f7d4e0c9 baseparse: reset passthrough mode to default (disabled) on activation 2009-12-08 16:05:25 +01:00
Mark Nauwelaerts
ea0dd8151b baseparse: ensure buffer metadata is writable 2009-12-08 16:05:25 +01:00
Mark Nauwelaerts
4b040d9a37 baseparse: fix/enhance DISCONT marking
In particular, consider DISCONT == !sync, and allow subclass to query
sync state, as it may want to perform additional checks depending
on whether sync was achieved earlier on.
Also arrange for subclass to query whether leftover data is being drained.
2009-12-08 16:05:25 +01:00
Mark Nauwelaerts
59614d02e7 baseparse: add timestamp handling, and default conversion
In particular, (optionally) provide baseparse with a notion of frames per second
(and therefore also frame duration) and have it track frame and byte counts.
This way, subclass can provide baseparse with fps and have it provide default
buffer time metadata and conversions, though subclass can still install
callbacks to handle such itself.
2009-12-08 16:05:25 +01:00
Mark Nauwelaerts
252cc9b36f baseparse: documentation fixes 2009-12-08 16:05:25 +01:00
Mark Nauwelaerts
9cc33340d7 baseparse: use_fixed_caps for src pad
After all, stream is as-is, and there is little molding to downstream's
taste that can be done.  If subclass can and wants to do so, it can
still override as such.
2009-12-08 16:05:25 +01:00
Teemu Katajisto
62ddc73623 camerabin: photography interface properties. Fixes #573370 (partially)
Added GObject properties to photography interface and implemented
them in camerabin. Changed zooming to check if video-source has
zoom property.
2009-11-27 15:10:57 +02:00
Teemu Katajisto
7dac3659c6 camerabin: add flags property. Fixes #573370 (partially)
Adds flags property to enable runtime configuration of
conversion and scaling elements. Also adds flag for disabling
audio completely.
2009-11-27 11:42:36 +02:00
Teemu Katajisto
7d65643656 camerabin: remove timeoverlay build-time definition 2009-11-27 11:41:59 +02:00
Thiago Santos
b343536de0 qtmux: replace _scale with _scale_round
Use the rounding version for improved sync between streams.
Small variations in the duration when muxing might lead to
cumullative wrong timestamping when demuxing.

Fixes #602936
2009-11-25 21:41:27 -03:00
Thiago Santos
379931cc6e qtmux: use timestamps for muxing
Try to use timestamps even when the stream has out of order
timestamps, only fall back to durations when we detect an
out of order buffer. Improves sync between streams.
2009-11-25 21:37:17 -03:00
Xavier Queralt Mateu
b6b1658e97 Expose lang codes in pmt 2009-11-24 10:14:49 +00:00
Mark Nauwelaerts
b4d9b81b8a h264parse: optional transforming from bytestream to sample format (or vice versa) 2009-11-23 14:44:46 +01:00
Mark Nauwelaerts
7f291456e7 h264parse: refactor a bit into a reset function 2009-11-23 14:44:46 +01:00
Mark Nauwelaerts
f3a153eecb h264parse: provide w/h from stream in src caps if not in sink caps 2009-11-23 14:44:46 +01:00
Mark Nauwelaerts
291f45b383 h264parse: parse SPS some more (e.g. for width/height) 2009-11-23 14:44:46 +01:00
Mark Nauwelaerts
47041f610d h264parse: optionally output AUs rather than NALUs
That is, Access Units (frames/fields) instead of (possibly) parts thereof.
2009-11-23 14:44:45 +01:00
Tim-Philipp Müller
c49cdd59ff Clean up LDFLAGS, LIBS, CFLAGS
Fix order, fix variables that don't exist, like GST_LIBS_LIBS,
use $(LIBM) instead of -lm, and move _LIBS from LDFLAGS to LIBADD.

Spotted by Havard Graff.
2009-11-22 19:30:58 +00:00
Tim-Philipp Müller
0909982636 librfb: include our own _stdint.h not stdint.h 2009-11-22 19:04:43 +00:00
Julien Moutte
676bd995b0 frei0r: Fix compilation warnings. 2009-11-20 17:33:21 +01:00
Julien Moutte
1f47dee944 amrparse: Fix compilation warnings 2009-11-20 17:32:44 +01:00
Julien Moutte
ae6ad7554c aacparse: Fix compilation warnings 2009-11-20 17:32:13 +01:00
Olivier Crête
3865aadb65 dtmf: Use _stdint.h from configure
https://bugzilla.gnome.org/show_bug.cgi?id=602465
2009-11-20 10:31:47 -05:00
Olivier Crête
33108dec82 dtmf: Update dtmfdetect to make it MSVC friendly
https://bugzilla.gnome.org/show_bug.cgi?id=602465
2009-11-19 20:33:07 -05:00
Thiago Santos
c883c2511c qtmux: fix missing debug argument
Adds a missing debug argument
2009-11-19 18:29:41 -03:00
Stefan Kost
7f1ac755e4 realaudiodec: reindent and make valgrind happy
The state-change tests reported access to uninitialized memory.
2009-11-19 21:11:36 +02:00
Mark Nauwelaerts
469446c7a4 qtmux: fix misinforming debug statement 2009-11-19 11:47:08 +01:00
Mark Nauwelaerts
a0851ebcbf qtmux: ensure writable buffer metadata before setting caps 2009-11-19 11:47:06 +01:00
Thiago Santos
51d5f9d6dd asfmux: improving debug messages
Improves debug messages for asfmux
2009-11-18 20:06:06 -03:00
Thiago Santos
edea30e303 qtmux: support for SVQ3
Adds support for muxing SVQ3 content. Usually this format
has decoder info that must be passed in the 'seqh' field
in the caps. It is also good to add the gama atom to make
quicktime not crash.

Fixes #587922
2009-11-18 17:27:38 -03:00
Edward Hervey
32126979cf aiff: Raise rank of muxer to PRIMARY 2009-11-18 17:58:39 +01:00
Edward Hervey
3e8fa62765 mve: Raise rank of muxer to PRIMARY 2009-11-18 17:57:59 +01:00
Edward Hervey
3d2cc4c82e asfmux: Raise rank to PRIMARY 2009-11-18 17:57:25 +01:00
Jan Schmidt
6b45854967 resindvd, dvdspu: Use new still-frame API from gst-plugins-base
Replace the current custom DVD still-frame events with new event
creation/parsing API from libgstvideo.
2009-11-18 03:10:32 +00:00
Jan Schmidt
2b25e97bef Revert "aiff: Disable aiff muxer for this release."
This reverts commit 7426be70ff.

Re-enable the aiff muxer now that gst-plugins-bad 0.10.17 is out
and we can rely on gst-plugins-base from git.
2009-11-18 03:10:31 +00:00
Thiago Sousa Santos
48a2bbd6ad asfmux: handle streams with different start times
Prevents losing sync when remuxing streams with different
start times. The smallest start time is selected as
the base time and all timestamps are subtracted
from it to get the actual time to be used when
muxing and building indexes

Fixes #586848
2009-11-17 23:04:54 -03:00
Thiago Sousa Santos
d70afdccd1 qtmux: do not leak a string
Frees a string after use. Also does some code organization
2009-11-17 23:04:54 -03:00
Thiago Sousa Santos
b53243fed3 qtmux: do not add size to the pointer variable
Do not wrongly add the result of the function to the
pointer to the buffer size. Instead, check the result
to see if the serialization was ok.

Based on a patch by: "Carsten Kroll <car@ximidi.com>"

Fixes #602106
2009-11-17 23:04:53 -03:00
Thiago Santos
1d155a6357 qtmux: handle 'late' streams
When muxing streams, some can start later than others. qtmux
now handle this by adding an empty edts entry with the
duration of the 'lateness' to the stream's trak.
It tolerates a stream to be up to 0.1s late.

Fixes #586848
2009-11-17 23:04:53 -03:00
Thiago Santos
1f7626f2f5 qtmux: adds the EDTS and ELTS atoms to atoms.c
These atoms will be useful for signaling streams
that start later in the file. As well for adding
edit lists if needed sometime later.
2009-11-17 23:04:53 -03:00
Michael Smith
dde31f09bd adpcmdec: decode adpcm without explicit length, as found in qt. 2009-11-17 18:00:27 -08:00
Jan Schmidt
181786f8bf dvdspu: Forward the still frame event downstream
Forward still-frame events downstream so elements like deinterlace
can use them.
2009-11-18 01:58:34 +00:00
Jan Schmidt
7426be70ff aiff: Disable aiff muxer for this release.
The aiff muxer relies on GstByteWriter API added after 0.10.25. Disable
it for this release.

Revert this commit after gst-plugins-bad 0.10.17
2009-11-09 19:08:49 +00:00
Jan Schmidt
f4201f9e30 asfmux: Uncomment --disable-static flag
For some reason that libtool flags line that prevents building
the static lib was commented out. Reported by Mart Raudsepp on IRC.
2009-11-09 14:11:30 +00:00
Sebastian Dröge
d64c99e138 inputselector: Remove useless variables and fix a uninitialized variable compiler warnings
Merged from gst-plugins-base, dfd51aa82a.
2009-11-09 11:49:47 +01:00
Sebastian Dröge
9a627f1106 inputselector: Make sure that running_time->timestamp calculation never becomes negative
Merged from gst-plugins-base, f365385458.
2009-11-09 11:49:47 +01:00
Sebastian Dröge
729c62263f inputselector: Use the start time (i.e. timestamp) as the last stop
Using the end time makes it impossible to replace buffers, which is
a big problem for subtitles that could have very long durations.

Merged from gst-plugins-base, 27034be461.
2009-11-09 11:49:47 +01:00
Sebastian Dröge
9a62107e94 inputselector: Improve debugging
Merged from gst-plugins-base.
2009-11-09 11:49:47 +01:00
Thiago Santos
fb9d7630e1 qtmux: Adding some ifs for protection
Adding somes ifs to protect against warning conditions
that might happen when upstream element is not sane

Fixes #600895
2009-11-06 00:46:12 -03:00
Thiago Santos
892555955a scaletempo: properly update new segments
Scaletempo was missing an update of 'stop' in
new segment parameters when pushing it downstream,
which caused files to end earlier when rate < 1.

Fixes #599903

Based on patch by: Bastian Hecht <hechtb@gmail.com>
2009-11-05 21:41:01 -03:00
Olivier Crête
d1db40df6e dtmfdetect: Add DTMF tone detector
It looks at raw audio data and emits messages when DTMF is detected.
The dtmf detector is the same Goertzel implementation used in FreeSwitch
and Asterisk. It is in the public domain.
2009-11-05 10:39:37 -05:00
Wim Taymans
5c30f3f954 Revert "inputselector: use get_caps_reffed()"
This reverts commit 49ec4f796a.

We can't use this new function yet.
2009-11-05 13:53:46 +01:00
Wim Taymans
49ec4f796a inputselector: use get_caps_reffed() 2009-11-05 13:29:55 +01:00
Olivier Crête
64eb516283 dtmfsrc: Reject empty caps 2009-11-04 22:44:26 -05:00