Alessandro Decina
d48fc18065
Fix compiler warnings
2012-02-27 06:26:02 +01:00
Edward Hervey
0a16f7edf6
codecmap: Add mapping for Indeo 4 video codec
2012-02-22 12:14:21 +01:00
Wim Taymans
e4d6638c22
update for new memory api
2012-02-22 02:08:06 +01:00
Wim Taymans
05a44b7ac6
ffdec: disable multithreading
...
It causes refcounting problems.
2012-02-21 18:02:56 +01:00
Matej Knopp
a079886388
only reopen decoder when new caps are different
2012-02-20 16:23:57 +01:00
Wim Taymans
b5609f651e
GST_FLOW_WRONG_STATE -> GST_FLOW_FLUSHING
2012-02-08 16:41:19 +01:00
Tim-Philipp Müller
ab88f15674
Fix for gst_type_find_register() API change
2012-02-02 01:36:16 +00:00
Wim Taymans
cf3d3fe00d
ffmpeg: port to new memory API
2012-01-25 11:59:04 +01:00
Wim Taymans
a3a68c1f72
port to new gthread API
2012-01-19 11:34:59 +01:00
Sebastian Dröge
3393095cd0
Merge branch 'master' into 0.11
2012-01-18 10:21:36 +01:00
Sebastian Dröge
99d4792014
ffdec: Only set get_buffer() function for video
...
Fixes bug #666435 .
2012-01-18 10:11:49 +01:00
Tim-Philipp Müller
c84802ffef
ffmpegdemux: demote swf demuxer to GST_RANK_NONE
...
SWF doesn't really make sense in our context, don't pretend
to support it. People should use a dedicated swf player for that.
2012-01-12 18:03:10 +00:00
Vincent Penquerc'h
49e3bc6e35
ffmpegdemux: fix caps leak
2012-01-12 14:57:48 +00:00
Mark Nauwelaerts
0edb9f22f0
ffmpeg: fix and extend LIBS in Makefile.am
...
... to account for -base video helper functions.
2012-01-10 13:41:55 +01:00
Sebastian Dröge
27b5013c9c
ffmux: gst_element_class_add_pad_template() takes ownership of the pad template
2012-01-10 11:49:57 +01:00
Sebastian Dröge
44a1dc0138
ffmpeg: Fix merge mistakes
2012-01-10 11:39:27 +01:00
Sebastian Dröge
bde3117e72
Merge branch 'master' into 0.11
...
Conflicts:
configure.ac
ext/ffmpeg/gstffmpegcodecmap.c
ext/ffmpeg/gstffmpegdec.c
ext/ffmpeg/gstffmpegdeinterlace.c
ext/ffmpeg/gstffmpegmux.c
ext/libswscale/gstffmpegscale.c
2012-01-10 11:35:55 +01:00
Sebastian Dröge
b9ff7da938
ffmpeg: Channel layouts are now set for DTS and (E)AC3 by libav
2012-01-10 11:30:00 +01:00
Sebastian Dröge
3d43013d4f
ffdec: Give the (E)AC3/DTS decoders a rank of marginal
...
Even if they don't downmix to stereo, they're still working
correctly. The only advantage of dtsdec/a52dec is that they
downmix to stereo (using the special downmixing matrices) if
downstream prefers stereo but in every other case they should
be equivalent.
2012-01-10 11:06:53 +01:00
Sebastian Dröge
ad53e32665
ffdec: Revert accidentially committed rank change of the (E)AC3/DTS decoders
2012-01-10 10:59:57 +01:00
Sebastian Dröge
6931afe0ba
ffmpegdec: Reorder audio channels after clipping the audio buffer
2012-01-10 10:45:42 +01:00
Sebastian Dröge
3d6c803917
ffmpegdec: Correctly reorder audio channels to the GStreamer order if necessary
2012-01-10 10:37:50 +01:00
Sebastian Dröge
09efbe103f
ffmpeg: Channel layouts are now set for DTS and (E)AC3 by libav
2012-01-10 10:08:05 +01:00
Sebastian Dröge
42bc8f5ad7
ffmpeg: Use stack-allocated channel positions array
2012-01-10 10:01:26 +01:00
Sebastian Dröge
d2702a091e
ffmpeg: Put the new layout field in raw audio caps
2012-01-09 13:40:05 +01:00
Sebastian Dröge
2a4fcf842e
ffdec: Add mappings for the top channel positions
2012-01-09 13:24:55 +01:00
Sebastian Dröge
a861ea34dd
ffdec: Correctly set the channel-mask and also set it for stereo
2012-01-09 13:23:29 +01:00
Wim Taymans
fc0d9bd243
ffmpeg: port to new channel mapping
2012-01-05 14:06:33 +01:00
Wim Taymans
00d22402a2
GST_FLOW_UNEXPECTED -> GST_FLOW_EOS
2012-01-03 15:27:54 +01:00
Wim Taymans
290d3120fb
ffdec: fill in the stride alignment
...
Copy the stride alignment we got from ffmpeg to the alignment structure.
2011-12-21 18:06:32 +01:00
Wim Taymans
9ea5b22de6
ffmpegdec: update for new interlace fields
2011-12-19 18:14:27 +01:00
Vincent Penquerc'h
f66834c11f
ffmpeg: port to GstCollectPads2
2011-12-15 14:28:00 +00:00
Edward Hervey
15ae52392e
ffmpegdec: Report latency if B-frames are present
...
... and cleanup the query handler while we're at it
https://bugzilla.gnome.org/show_bug.cgi?id=663616
2011-12-01 19:29:24 +01:00
Vincent Penquerc'h
dcd387b313
ffmpeg: fix pad template ref leaks
...
https://bugzilla.gnome.org/show_bug.cgi?id=662664
2011-11-28 13:23:42 +00:00
Matej Knopp
28142d9549
Fix cpu cores detection on OS X
...
https://bugzilla.gnome.org/show_bug.cgi?id=664687
2011-11-23 23:57:01 +00:00
Matej Knopp
7dd07ed7fb
Fix cpu cores detection on OS X
...
https://bugzilla.gnome.org/show_bug.cgi?id=664687
2011-11-23 23:54:54 +00:00
Wim Taymans
1e147bf88e
update for activation changes
2011-11-21 13:36:34 +01:00
Wim Taymans
944a76904d
update for new scheduling query
2011-11-18 18:00:59 +01:00
Wim Taymans
c1b511f5db
add parent to activate functions
2011-11-18 13:59:59 +01:00
Wim Taymans
152e090891
add parent to pad functions
2011-11-17 12:49:33 +01:00
Stefan Sauer
319de2e96a
collectpads: port API changes
2011-11-17 09:00:47 +01:00
Wim Taymans
63a890a746
add parent to query function
2011-11-16 17:29:22 +01:00
Wim Taymans
f65f9938d0
_query_peer_*() -> _peer_query_*()
2011-11-15 17:55:29 +01:00
Wim Taymans
71540b5fc1
_peer_get_caps() -> _peer_query_caps()
2011-11-15 17:23:21 +01:00
Wim Taymans
175a092331
ffmpeg: change getcaps to query
2011-11-15 16:35:17 +01:00
Wim Taymans
54fdd9faf7
update for adapter api change
2011-11-10 18:25:21 +01:00
Wim Taymans
9d1a924013
remove query types
2011-11-09 11:58:15 +01:00
Wim Taymans
cbb41c36ff
ffdec: get the pixfmt correctly
...
Use the pixfmt from the passed context, which can be different from our other
context and which might not have the pixfmt set correctly.
2011-11-04 16:23:32 +01:00
Wim Taymans
a70ce56cf8
ffmpeg: fix template to %u
2011-11-04 12:43:17 +01:00
Wim Taymans
fa576d7384
tags: update for tag API removal
2011-11-02 12:10:25 +01:00
Wim Taymans
e8910763b4
demux: update for new task api
2011-11-02 09:10:03 +01:00
Wim Taymans
431bbdcbf5
structure: fix for api upate
2011-11-02 09:10:03 +01:00
Tim-Philipp Müller
02250601cf
Merge remote-tracking branch 'origin/master' into 0.11
2011-10-31 14:53:01 +00:00
Martin Storsjo
77fa4072ee
Allow building a LGPL only gst-ffmpeg plugin
...
This removes --enable-gpl and --enable-postproc from the
ffmpeg configure line, and disables building the postproc
gstreamer plugin.
https://bugzilla.gnome.org/show_bug.cgi?id=654037
2011-10-31 10:59:27 +01:00
Tim-Philipp Müller
6501cdbf92
ffmpegdemux: update for taglist API changes
2011-10-30 12:03:36 +00:00
Wim Taymans
dcc9703273
fix compilation with new caps api
2011-10-28 16:35:54 +02:00
Wim Taymans
7cbfd34e13
ffenc: fix compilation
2011-10-27 16:47:18 +02:00
Wim Taymans
1fffbe9876
Merge branch 'master' into 0.11
...
Conflicts:
ext/ffmpeg/gstffmpegcodecmap.c
2011-10-27 16:31:30 +02:00
Sjoerd Simons
eb2e9f48e3
ffmpegenc: Pass the size of the output buffer to avcodec_encode_audio
...
avcodec_encode_audio is documented as taking the size of the output
buffer not the size of the input buffer. This fixes the use of the G722
encoder and makes the code more consistent with avconv from the libav
source tree.
2011-10-19 13:18:35 +01:00
Sjoerd Simons
b05352beee
ffmpegcodecmap: Further specify allowed rates for G722 and G726
2011-10-19 13:18:35 +01:00
Sjoerd Simons
93b333cfea
ffmpegcodecmap: Always restrict audio codec in the unfixed cases
...
If the context isn't fixed yet or if it doesn't exist then always
restrict the caps.
Also restrict the maximum channels for G726 and G722 to 1 channel
2011-10-19 13:18:35 +01:00
Edward Hervey
5264fd3c97
Merge remote-tracking branch 'origin/master' into 0.11
2011-10-17 16:29:10 +02:00
Edward Hervey
99e61c5f3b
gstffmpegdec: Re-enable MT-decoding by default
2011-10-17 16:27:36 +02:00
Edward Hervey
fc0a8893d8
gstffmpegutils: Fix include
2011-10-17 16:26:52 +02:00
Edward Hervey
b4ca4b5cfd
gstffmpegcodecmap: Avoid string operations on NULL
2011-10-11 14:02:53 +02:00
Wim Taymans
3b230ce9b6
dec: remove interlaced update code
2011-10-03 11:34:34 +02:00
Wim Taymans
d4b2751c39
Merge branch 'master' into 0.11
2011-10-03 11:32:24 +02:00
Vincent Penquerc'h
d4d5e350d0
ffdec: ensure buffers have correct interlacedness in caps
...
Whether a frame is interlaced or not is unknown at the time of
buffer allocation, so caps on the buffer in opaque will have
a previous frame's interlaced flag set. So if interlacedness
changes, we update the buffer (if any) caps with the correct
interlaced flag once we know.
https://bugzilla.gnome.org/show_bug.cgi?id=656155
2011-10-03 11:18:06 +02:00
Wim Taymans
afb740b897
Merge branch 'master' into 0.11
...
Conflicts:
configure.ac
ext/ffmpeg/gstffmpegcodecmap.c
ext/ffmpeg/gstffmpegdeinterlace.c
2011-09-28 13:29:08 +02:00
Vincent Penquerc'h
8bf3d5a2b7
ffmpegdec: post QoS messages when dropping a frame
...
There seems to be a little bit of non obvious logic where
the QoS logic can decide to not drop decoding a frame and
pass it to ffmpeg, telling it to drop.
In this case, the QoS logic does not drop the frame itself,
but since the frame will end up being dropped, we still
mark it as dropped and post a QoS message.
https://bugzilla.gnome.org/show_bug.cgi?id=657950
2011-09-26 20:13:58 +01:00
Tim-Philipp Müller
8a34abff64
ffmpegdec: disable parser for already-parsed FLAC input
...
Not needed to make anything work, just seems to make sense.
https://bugzilla.gnome.org/show_bug.cgi?id=589361
2011-09-26 19:55:54 +01:00
Tim-Philipp Müller
902ee8a905
ffmpegcodecmap: don't create dummy codec data for FLAC decoder
...
Since then it just errors out because it's too small, as it
wants the flac headers as codec data if there is codec data.
https://bugzilla.gnome.org/show_bug.cgi?id=589361
2011-09-26 19:54:52 +01:00
Tvrtko Ursulin
42cb5bd386
ffdeinterlace: add "mode" property including automatic mode
...
Just like deinterlace.
https://bugzilla.gnome.org/show_bug.cgi?id=656328
2011-09-26 19:17:41 +01:00
Wim Taymans
09a66b0923
ffmpeg: fix for audio caps change
2011-09-06 15:29:26 +02:00
Nicolas Dufresne
eacf516f7f
ffdec: Blacklist non-working subtitle decoders
...
This include decoder for ASS, SRT, PGS, DVD and DVB. Those are generated
with bad capabilities and are not usable in GStreamer. Other elements exist
to handle those subtitle formats.
https://bugzilla.gnome.org/show_bug.cgi?id=658019
2011-09-03 12:32:55 +01:00
Wim Taymans
85fa801d42
ffdec: port to new flags
2011-08-25 16:41:36 +02:00
Wim Taymans
4361442827
ffmpeg: convert to new caps
2011-08-22 13:33:31 +02:00
Wim Taymans
dd56c2c7ea
ffmpeg: port to new audio caps
2011-08-19 18:33:11 +02:00
Wim Taymans
7ae8b453ca
ffmpegdec: react to the reconfigure event
...
Also renegotiate the caps and bufferpool when we have a rereconfigure event
pending.
2011-08-05 12:04:13 +02:00
Wim Taymans
dc12f1c9c9
ffdec: ensure bufferpool size
...
Make sure the bufferpool size is at least what we expect.
Add some more debug.
2011-08-04 11:10:26 +02:00
Wim Taymans
5151ec83e2
ffdec: enable direct rendering for all formats
...
Since we now support padding, we can enable direct rendering for all formats.
2011-08-01 18:10:53 +02:00
Wim Taymans
2e02fbba58
ffdec: add alignment support
...
Always diable EMU_EDGE. Use the bufferpool options to enable extra padding on
allocated frames. If the downstream bufferpool does not support the padding,
disable direct rendering and do the final copy/cropping into the non-padded
output frame.
2011-08-01 17:57:38 +02:00
Wim Taymans
1dc718b195
ffdec: refactor picture fill code
...
Make a method to hold the code to convert a GstVideoFrame to an AVFrame so that
we can reuse it in the non-direct rendering case.
2011-07-29 13:40:30 +02:00
Wim Taymans
3a8445fc80
ffdec: cleanups
...
Make things a little more readable.
2011-07-29 13:08:53 +02:00
Wim Taymans
3efd2bcbf7
ffdec: use video frame helpers
...
Use the video frame helper functions to map and set up the strides in the
picture for ffmpeg.
2011-07-29 12:36:12 +02:00
Wim Taymans
afb69cf1d2
ffmpegdec: fix for query API change
2011-07-29 12:34:04 +02:00
Wim Taymans
8a3014f2fa
ffmpeg: fix for query API changes
2011-07-29 12:32:45 +02:00
Wim Taymans
b507d2e013
ffdec: remove unused variable
2011-07-29 10:57:20 +02:00
Wim Taymans
1565260765
ffmpeg: First set of cleanups
...
Store incomming info from the caps, current context and output formats into
separate variables so that we can more easily handle them.
Refactor the negotiation code.
Rework the bufferpool setup code. Take into account that we might want to
negotiate extra borders around the image in direct rendering.
Remove some of the cropping code for now.
2011-07-29 10:31:03 +02:00
Wim Taymans
62bb960f3a
ffmpeg: add GstVideoFormat helper function
...
Add a function to convert an ffmpeg pixfmt to a GStreamer GstVideoFormat.
2011-07-29 10:25:03 +02:00
Wim Taymans
408b54f5e4
ffdec: cleanups
...
Remove useless switch
Remove old EXTRA_REF define
Move errors out of the main code path
2011-07-28 12:08:34 +02:00
Wim Taymans
3dd45343d3
ffdec: small cleanups
...
USe gst_pad_peer_query() to forward the query to the peer.
2011-07-28 12:08:30 +02:00
Wim Taymans
05a5c7f513
Merge branch 'master' into 0.11
...
Conflicts:
configure.ac
ext/ffmpeg/gstffmpegcodecmap.c
2011-07-22 17:54:32 +02:00
Raimo Järvi
95fe6ca01e
codecmap: Don't create dummy extradata for AAC LATM
...
If extradata is created for LATM, libav will use it for initialising AAC
decoder and decoding will fail.
Fixes bug #652812 .
2011-07-18 12:04:29 +02:00
Edward Hervey
b41422f1f3
Merge branch 'master' into 0.11
2011-07-15 12:34:19 +02:00
Edward Hervey
2f63830924
ffmpegdec: Set default number of threads to 1
...
Too many suspicious errors/warnings pop up when more than 1 thread
is used.
Fixes #653649
2011-07-11 10:47:26 +02:00
Wim Taymans
fc6b32330a
Merge branch 'master' into 0.11
...
Conflicts:
configure.ac
ext/ffmpeg/gstffmpegdec.c
2011-07-07 13:50:18 +02:00
Edward Hervey
37f5d70332
ffmpegdec: Setting AC3/EAC3/DTS decoders to rank NONE for release
...
This still causes issues with bad (missing?) downmixing.
They can be handled by existing a52dec/dtsdec
See Bug #608892
2011-06-30 21:38:57 +02:00
Mark Nauwelaerts
6d517b3b76
ffmpegcodecmap: really include all supported sample formats in audio caps
...
Fixes #653717 .
2011-06-30 11:50:21 +02:00
Mark Nauwelaerts
856dbe6f21
ffmpegdec: avoid allocating and leaking local avpacket helpers
...
... by _init'ing them as locals rather than _new'ing them.
Fixes #653648 .
2011-06-30 11:49:39 +02:00