Arun Raghavan
cfc3f5e43b
mpegaudioparse: Post CBR bitrate as nominal bitrate
...
Even if VBR headers are missing, we can't guarantee that a stream is in
fact a CBR stream, so it's safer to let baseparse calculate the average
bitrate rather than assume a CBR stream. However, in order to make
/some/ metadata available before the requisite number of frames have
been parsed, this posts the bitrate from the non-VBR headers as the
nominal bitrate.
https://bugzilla.gnome.org/show_bug.cgi?id=641858
2011-02-09 18:30:48 +01:00
Mark Nauwelaerts
c85e8e8015
amrparse: a valid amr-wb frame should not have reserved frame type index
...
See #639715 .
2011-02-07 19:59:21 +01:00
Mark Nauwelaerts
8e4b8b813d
ac3parse: improve handling of dependent substream frames
...
In particular, timestamps of these should track main-stream timestamps.
2011-01-28 12:16:59 +01:00
Mark Nauwelaerts
7f805f17b2
baseparse: tune default duration estimate update interval
...
Rather than a fixed default frame count, estimate frame count to aim for
an interval duration depending on fps if available, otherwise use old
fixed default.
2011-01-28 12:16:59 +01:00
Mark Nauwelaerts
479865c1b3
baseparse: reverse playback; mind keyframes for fragment boundary
2011-01-28 12:16:58 +01:00
Mark Nauwelaerts
57babfca39
amrparse: properly check for sufficient available data prior to access
2011-01-28 12:16:58 +01:00
Mark Nauwelaerts
3ba3339993
baseparse: ensure non-empty candidate frames
2011-01-28 12:16:58 +01:00
Mark Nauwelaerts
ac8080f003
baseparse: clarify some debug statements
2011-01-28 12:16:58 +01:00
Mark Nauwelaerts
16342223ee
baseparse: properly track upstream timestamps
...
... rather than with a delay.
2011-01-28 12:16:58 +01:00
Mark Nauwelaerts
b97e560f1a
baseparse: need proper frame duration to obtain sensible frame bitrate
2011-01-28 12:16:58 +01:00
Mark Nauwelaerts
559b3ead93
baseparse: proper initial values for index tracking variables
2011-01-28 12:16:58 +01:00
Mark Nauwelaerts
f3da619dd2
baseparse: arrange for consistent event handling
2011-01-28 12:16:58 +01:00
Mark Nauwelaerts
18b347296c
baseparse: header style cleaning
2011-01-28 12:16:58 +01:00
Mark Nauwelaerts
2c872ad913
baseparse: provide some more initial frame metadata in parse_frame
...
... and document accordingly.
2011-01-28 12:16:57 +01:00
Mark Nauwelaerts
6a45c4f65e
baseparse: refactor passthrough into format flags
...
Also add a format flag to signal baseparse that subclass/format can provide
(parsed) timestamp rather than an estimated one. In particular, such "strong"
timestamp then allows to e.g. determine duration.
2011-01-28 12:16:57 +01:00
Mark Nauwelaerts
1c89488c50
baseparse: introduce a baseparse frame to serve as context
...
... and adjust subclass parsers accordingly
2011-01-28 12:16:57 +01:00
Mark Nauwelaerts
400198b2cd
baseparse: restrict duration scanning to pull mode and avoid extra set_caps call
2011-01-28 12:16:57 +01:00
Mark Nauwelaerts
3e9d5c4bf8
baseparse: update some documentation
...
Also add some more debug.
2011-01-28 12:16:57 +01:00
Mark Nauwelaerts
829507b650
baseparse: allow increasing min_size for current frame parsing only
...
Also check that subclass actually either directs to skip bytes or
increases expected frame size to avoid going nowhere in bogus
indefinite looping.
2011-01-28 12:16:57 +01:00
Mark Nauwelaerts
18b69e9320
baesparse: fix refactor regression in loop based parsing
2011-01-28 12:16:57 +01:00
Mark Nauwelaerts
f4f7306e37
baseparse: pass all available data to subclass rather than minimum
...
Also reduce some adapter calls and add a few debug statements.
2011-01-28 12:16:57 +01:00
Mark Nauwelaerts
e54e2a9616
baseparse: fix reverse playback handling
2011-01-28 12:16:56 +01:00
Mark Nauwelaerts
695c9599f4
baseparse: minor typo and debug statement cleanup
2011-01-28 12:16:56 +01:00
Mark Nauwelaerts
fcd0f5cb7a
baseparse: reduce locking
...
... which is either already mute and/or implicitly handled by STREAM_LOCK.
2011-01-28 12:16:56 +01:00
Mark Nauwelaerts
3da135ce02
baseparse: avoid loop in frame locating interpolation
2011-01-26 17:16:49 +01:00
Mark Nauwelaerts
289cd65abd
flacparse: mind gst_buffer_unref not liking NULL
...
Fixes #639950 .
2011-01-19 18:41:59 +01:00
Thiago Santos
a6a982e8be
audioparsers: baseparse: Be careful to not lose the event ref
...
Don't unref the event if it hasn't been handled, because the caller
assumes it is still valid and might reuse it.
I ran into this problem when transcoding an AVI (with mp3 inside)
to gpp.
https://bugzilla.gnome.org/show_bug.cgi?id=639555
2011-01-15 13:48:26 -03:00
Tim-Philipp Müller
aba0899b19
dcaparse: fix sync word for 14-bit little endian coding
...
Fix copy'n'paste bug that made us look for the raw little endian
sync word twice instead of looking for the 14-bit LE sync word
as well. Fixes parsing of such streams (see #636234 for sample file).
2011-01-13 17:10:13 +00:00
Tim-Philipp Müller
095eaa1752
docs: minor baseparse docs/comment fixes
...
Remove copy'n'paste leftovers.
2011-01-13 16:28:24 +00:00
Edward Hervey
063be2f972
flacparse: Fix unitialized variable on macosx
2011-01-06 12:49:43 +01:00
Mark Nauwelaerts
01e9b677a8
ac3parse: relax bsid checking
...
... to the widest possible spec interpretation.
Fixes #637062 .
2010-12-13 15:29:33 +01:00
Mark Nauwelaerts
f64f03264f
audioparsers: update some documentation
2010-12-03 18:23:20 +01:00
Mark Nauwelaerts
8f0e2346c7
mpegaudioparse: add to documentation
2010-12-03 18:23:17 +01:00
Mark Nauwelaerts
fa0dea3fdc
dcaparse: add to documentation
2010-12-03 18:23:14 +01:00
Mark Nauwelaerts
26feb26fc1
baseparse: increase keyframe awareness
...
... which is not particular relevant for audio parsing, but more so
in video cases. In particular, auto-determine if dealing with video (caps).
2010-12-03 18:23:06 +01:00
Mark Nauwelaerts
ce6d8b6d93
ac3parse: use proper EAC-3 caps
2010-12-01 15:29:55 +01:00
Mark Nauwelaerts
aa93b5b458
baseparse: avoid unexpected stray metadata
2010-11-30 16:23:26 +01:00
Mark Nauwelaerts
145e041af5
baseparse: use proper _NONE output value when applicable
2010-11-30 16:23:24 +01:00
Edward Hervey
15cd318ada
audioparsers: Remove dead assignments
2010-11-25 18:56:42 +01:00
Andoni Morales Alastruey
bc3917bb04
audioparse: fix possible division-by-zero
...
https://bugzilla.gnome.org/show_bug.cgi?id=635786
2010-11-25 17:28:16 +01:00
Mark Nauwelaerts
68dca2e704
baseparse: use correct offset when adding index entry
...
... bearing in mind that BUFFER_OFFSET is media specific and may not
reflect the basic offset after having been parsed.
2010-11-17 16:24:13 +01:00
Mark Nauwelaerts
9b6439a36c
baseparse: enhancements for timestamp marked framed formats
...
That is, as such formats allow subclass to extract position from frame,
it is possible to extract duration (if not otherwise provided)
from (near) last frame, and a seek can fairly accurately target the required
position.
Fixes #631389 .
2010-11-17 15:36:41 +01:00
Mark Nauwelaerts
08cab00b8b
baseparse: refactor frame scanning peformed by _loop
2010-11-17 15:36:38 +01:00
Mark Nauwelaerts
587106f1cf
baseparse: slightly optimize sending of pending newsegment events
2010-11-17 15:36:36 +01:00
Mark Nauwelaerts
f82f330537
baseparse: minor fixes and enhancements
...
Arrange for upstream as well as downstream flushing when seeking.
Also determine upstream size as well as seekability. Adjust some comments
to reality and employ debug statement in proper order.
2010-11-17 15:36:23 +01:00
Mark Nauwelaerts
b65da8e775
aacparse: minor cleanups
2010-11-17 15:36:20 +01:00
Mark Nauwelaerts
0fdc68cd46
aacparse: fix regression in ADIF src caps setting
2010-11-17 15:36:18 +01:00
Mark Nauwelaerts
36cbbd94c6
flacparse: parse seektable
...
Fixes #631389 (partially).
2010-11-17 15:36:02 +01:00
Mark Nauwelaerts
551f9707fa
flacparse: minor refactor and enable default baseparse segment clipping
2010-11-17 15:35:59 +01:00
Mark Nauwelaerts
896c4b71af
mpegaudioparse: fix silly leak in _reset
2010-11-09 20:52:10 +01:00