Commit graph

2160 commits

Author SHA1 Message Date
Nirbheek Chauhan
77e26de12e meson: Don't set c_std to gnu99
Use the default for each compiler on every platform instead. This
improves our compatibility with compilers that don't have gnu99 as
a c_std.
2016-10-15 22:20:40 +05:30
Sebastian Dröge
108b08ccda libav: Update to ffmpeg n3.1.4 2016-10-06 14:25:39 +03:00
Thibault Saunier
eff2c8be16 meson: Setup pre-commit hooks when configuring 2016-09-30 11:38:37 -03:00
Sebastian Dröge
4a9a7d61e5 Release 1.9.90 2016-09-30 13:03:42 +03:00
Sebastian Dröge
e3558d4d07 avviddec: Use enum instead of magic numbers for the chroma siting values 2016-09-29 12:01:59 +03:00
Sebastian Dröge
036da8b33c configure: Depend on gstreamer 1.9.2.1 2016-09-14 11:31:07 +02:00
Sebastian Dröge
8443af343e av: Cast AVContext::bit_rate to a guint before passing to varargs functions
We expect it to be a int or uint, however it changed the type to a
int64_t in later versions of ffmpeg. As such it would be passed as a 64
bit value to varargs functions, while the consumer of the arguments
assumes only 32 bits. This causes crashes.

https://bugzilla.gnome.org/show_bug.cgi?id=771092
2016-09-14 11:20:48 +02:00
Jan Schmidt
77f4d2f06b Automatic update of common submodule
From b18d820 to f980fd9
2016-09-10 20:52:01 +10:00
Jan Schmidt
916ac9c882 Automatic update of common submodule
From f49c55e to b18d820
2016-09-10 09:58:11 +10:00
Thibault Saunier
f6c31d1cb6 build: Do not link plugin against lzma and bz2 if using system install
And bump version to 1.9.2
2016-09-05 12:44:37 -03:00
Iain Lane
f5f32986b6 Only use AV_CODEC_ID_WRAPPED_AVFRAME on new enough libavcodecs
https://bugzilla.gnome.org/show_bug.cgi?id=770753
2016-09-03 14:20:26 +03:00
Sebastian Dröge
b6c5ea582a Back to development 2016-09-01 12:31:21 +03:00
Sebastian Dröge
fca6c1bdb0 Release 1.9.2 2016-09-01 12:31:10 +03:00
Sebastian Dröge
df3e278b4c libav: Update to ffmpeg n3.1.3 2016-08-29 17:03:18 +03:00
Thibault Saunier
e4b51a81cb Add support for Meson as alternative/parallel build system
https://github.com/mesonbuild/meson

We only support building with ffmpeg installed system wide and not as
subproject yet.
2016-08-29 09:56:18 -03:00
Thibault Saunier
80924aab15 Use the new API to post flow ERROR messages on the bus
https://bugzilla.gnome.org/show_bug.cgi?id=770158
2016-08-26 19:23:32 -03:00
Josep Torra
410b0e3842 build: silence error about pthread for 'make check' in osx
Fixes "clang: error: argument unused during compilation: '-pthread'"
2016-08-26 21:47:04 +02:00
Tim-Philipp Müller
e5ceb287d3 libav: fix confusing 'insane framerate' debug log message
Usually means no framerate / variable framerate. Also the
fraction arguments were swapped.
2016-08-20 10:54:07 +01:00
Sebastian Dröge
490e98913d configure: Explicitly disable CrystalHD decoder
Otherwise it will pick it up when the system has the relevant headers,
and then linking produces an unusable plugin later as we don't ensure
that the plugin also links against the crystalhd library.

https://bugzilla.gnome.org/show_bug.cgi?id=769809
2016-08-16 21:11:35 +03:00
Sebastian Dröge
0a7c82bac4 libav: Update to ffmpeg n3.1.2 2016-08-16 10:43:18 +03:00
Edward Hervey
8b374b3f82 avvidec: Ensure skipping strategy gets properly reset
When switching playback modes, like from TRICKMODE or TRICKMODE_KEY_UNITS
back to regular playback, we need to make sure we set the skip mode
back to the default setting.

While this field would be properly reset when we *have* feedback from
downstream (i.e. diff != G_MAXINT64), it would not be reset during
the initial phase (i.e. when the decoder hasn't pushed a buffer yet,
and therefore the sink hasn't sent back QoS information).

This avoids dropping plenty of frames when going back to regular playback
2016-08-04 10:45:14 +02:00
Sebastian Dröge
2d79bc3a58 libav: Update to n3.1.1 2016-07-26 10:27:22 +03:00
Sebastian Dröge
3e93ad1bcd libav: Ignore more quasi-codecs 2016-07-22 14:54:21 +03:00
Sebastian Dröge
5f4bd291c1 libav: Ignore VAAPI decoders and VAAPI/nvenc encoders
These can show up when having a build against a system version of ffmpeg.
2016-07-22 14:42:59 +03:00
Stefan Sauer
9bc5380f5a Automatic update of common submodule
From f363b32 to f49c55e
2016-07-11 21:15:39 +02:00
Sebastian Dröge
c098043a40 Back to development 2016-07-06 13:51:12 +03:00
Sebastian Dröge
351f65cc35 Release 1.9.1 2016-07-06 13:26:10 +03:00
Sebastian Dröge
0bdceaad8a avaudenc: Use gst_caps_fixate() instead of gst_caps_truncate()
Just truncating might not be enough.
2016-07-05 20:16:45 +03:00
Sebastian Dröge
832b42301d avaudenc: Create caps from the codec context after it is opened
We won't get codec_data and various other information otherwise.
2016-07-05 20:16:09 +03:00
Sebastian Dröge
a5ac55c4a0 avvidenc: Create caps from the codec context after it is opened
We won't get codec_data and various other information otherwise.
2016-07-05 20:15:28 +03:00
Sebastian Dröge
ee5e2bcd6b libav: Disable various other hardware related codecs 2016-07-01 09:29:03 +02:00
Edward Hervey
840de21f05 configure: Disable VAAPI support
We have native plugins (gst-vaapi) for that
2016-07-01 09:25:14 +02:00
Edward Hervey
c8a6a30d43 configure: Disable {audio|video}toolbox support (osx/ios)
We already have native plugins for those
2016-07-01 09:16:41 +02:00
Sebastian Dröge
3e193047a3 libav: Update to ffmpeg n3.1 2016-06-30 23:22:17 +02:00
Nicolas Dufresne
dc6361bdc6 Automatic update of common submodule
From ac2f647 to f363b32
2016-06-21 11:48:33 -04:00
Tim-Philipp Müller
1a4c54a6aa tests: use AM_TESTS_ENVIRONMENT
Needed by new automake test runner.
2016-05-31 20:29:32 +01:00
Sebastian Dröge
aa47e16eec docs: Update for git master 2016-05-15 13:34:11 +03:00
Edward Hervey
e36fa30c15 avvidec: Don't set bogus latency
We might have cases where the framerate is not known (0/1).
2016-05-14 12:09:06 +02:00
Edward Hervey
878d32ad38 avvidec: Report the latency once we're fully configured
Several decoders will only be able to report a real latency (has_b_frames)
once they're actually initialized (i.e. when they return their first frame).

Doing it earlier (in set_format) doesn't guarantee that the AVCodecContext
has_b_frames has been properly initialized.

https://bugzilla.gnome.org/show_bug.cgi?id=766362
2016-05-13 09:52:29 +02:00
Sebastian Dröge
445a301844 avcodecmap: Add mapping for G729 caps
https://bugzilla.gnome.org/show_bug.cgi?id=766333
2016-05-13 10:27:38 +03:00
Sebastian Dröge
438d6b3760 libav: Update to ffmpeg n3.0.2 2016-05-03 19:04:06 +03:00
Sebastian Dröge
3fb49b6053 avauddec: Finish frames if they are header buffers only and don't produce any output
Otherwise we will consider them as one frame of raw audio that is still
pending, and shift all timestamps by the amount of time spent with header
buffers.

https://bugzilla.gnome.org/show_bug.cgi?id=765797
2016-04-29 13:06:07 +03:00
Sebastian Dröge
00ebf95e08 avauddec: If decoding a frame failed, skip it
Otherwise the next successfully decoded frame will get its timestamp and we
will slowly let a/v sync drift apart.

https://bugzilla.gnome.org/show_bug.cgi?id=765797
2016-04-29 12:55:19 +03:00
Sebastian Dröge
151cd32a10 avaudenc: Set all required fields in the AVFrame
Various functions in libavcodec need them, like the format, sample rate, etc.
and just having them in the context is not enough.

This fixes draining for codecs like MP2 that require a fixed frame size and
require libav to pad the last frame if required.
2016-04-28 18:43:37 +03:00
Sebastian Dröge
2027188c34 avcfg: Use av_strdup() instead of g_strdup() for strings owned by ffmpeg
It has its own allocator that depending on the configuration is incompatible
with GLib's and just causes a segmentation fault. Like on Windows.

https://bugzilla.gnome.org/show_bug.cgi?id=760266
2016-04-25 18:39:54 +03:00
Sebastian Dröge
ae3a80eec7 avdeinterlace: Register all filters and only disable all except for yadif during compilation
Otherwise avdeinterlace won't find any filters, and we only use yadif in
there.

https://bugzilla.gnome.org/show_bug.cgi?id=765319
2016-04-20 15:27:45 +03:00
Sebastian Dröge
9800b1135e libav: Update to n3.0.1 2016-04-15 12:51:21 +03:00
Julien Isorce
8632be0697 Automatic update of common submodule
From 6f2d209 to ac2f647
2016-04-14 10:04:23 +01:00
Víctor Manuel Jáquez Leal
1af733a636 avvid{dec,enc}: remove dead gobject macros
The GObject macros either for GstFFMpegVidDec and GstFFMpegVidEnc can
break the compilation because they are not GTypes, since each av video
elements are registered in runtime.

https://bugzilla.gnome.org/show_bug.cgi?id=764162
2016-03-24 18:36:22 +01:00
Vineeth TM
8603ff7596 libav: use new gst_element_class_add_static_pad_template()
https://bugzilla.gnome.org/show_bug.cgi?id=763084
2016-03-24 14:53:51 +02:00