summaryrefslogtreecommitdiff
path: root/ext
AgeCommit message (Collapse)AuthorFilesLines
2006-03-22ext/ffmpeg/gstffmpegdec.c: make _open and _close as functions that should be ↵Wim Taymans1-8/+7
called with the object lock instead of t... Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_close), (gst_ffmpegdec_setcaps), (gst_ffmpegdec_change_state): make _open and _close as functions that should be called with the object lock instead of them taking a lock themselves. This fixes a deadlock when _open fails.
2006-03-14ext/ffmpeg/gstffmpegdec.c: Don't use gst_pad_alloc_buffer() for frames with ↵Tim-Philipp Müller1-6/+15
palette, as we'll artificially shorten th... Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_frame): Don't use gst_pad_alloc_buffer() for frames with palette, as we'll artificially shorten the size of buffers in that case and GstBaseTransform will complain about unit size issues if we use _alloc_buffer() with the full size.
2006-03-01ext/ffmpeg/: Port of ffvideoscale to 0.10.Edward Hervey3-330/+282
Original commit message from CVS: Reviewed by : Edward Hervey <edward@fluendo.com> * ext/ffmpeg/Makefile.am: * ext/ffmpeg/gstffmpeg.c: (plugin_init): * ext/ffmpeg/gstffmpegscale.c: (gst_ffmpegscale_base_init), (gst_ffmpegscale_class_init), (gst_ffmpegscale_init), (gst_ffmpegscale_finalize), (gst_ffmpegscale_transform_caps), (gst_ffmpegscale_fixate_caps), (gst_ffmpegscale_get_unit_size), (gst_ffmpegscale_set_caps), (gst_ffmpegscale_transform), (gst_ffmpegscale_handle_src_event), (gst_ffmpegscale_register): Port of ffvideoscale to 0.10. Closes #332557
2006-03-01ext/ffmpeg/gstffmpegenc.c: Fix segmentation fault and memleak.Edward Hervey1-5/+3
Original commit message from CVS: Reviewed by : Edward Hervey <edward@fluendo.com> * ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_chain_audio): Fix segmentation fault and memleak. Fixes #332995 and #333001
2006-02-24ext/ffmpeg/gstffmpegdec.c: ... can't adjust buffer size of NULL buffers ↵Tim-Philipp Müller1-1/+1
though (as happens when seeking in video from... Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_frame): ... can't adjust buffer size of NULL buffers though (as happens when seeking in video from #327075).
2006-02-24ext/ffmpeg/gstffmpegcodecmap.c: Use AVPALETTE_SIZE macro instead of magic ↵Fabrizio2-3/+7
value for clarity. Original commit message from CVS: * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_get_palette), (gst_ffmpeg_set_palette): Use AVPALETTE_SIZE macro instead of magic value for clarity. * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_frame): In GStreamer, the size of the palette is not part of GST_BUFFER_SIZE, so adjust buffer size of outgoing buffers accordingly if there's a palette (fixes #327028, based on patch by: Fabrizio Gennari).
2006-02-21ext/ffmpeg/gstffmpegcodecmap.c: Added proper formatid to caps conversion for ↵Edward Hervey1-2/+15
ogg, gif, yuv4mpeg and quicktime formats. Original commit message from CVS: * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps), (gst_ffmpeg_formatid_to_caps): Added proper formatid to caps conversion for ogg, gif, yuv4mpeg and quicktime formats.
2006-02-19ext/ffmpeg/gstffmpegcodecmap.c: Add extra detail to the Real format caps. ↵Jan Schmidt1-1/+16
With this info, filesrc ! ffdemux_rm ! ffde... Original commit message from CVS: * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps), (gst_ffmpeg_caps_with_codecid): Add extra detail to the Real format caps. With this info, filesrc ! ffdemux_rm ! ffdec_cook ! ... works, but using rmdemux doesn't. The order of the data the demuxers output appears to be different.
2006-02-19ext/ffmpeg/: Add new codec ids and fix up some of the codec->mime type mappingsJan Schmidt2-1/+44
Original commit message from CVS: * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps), (gst_ffmpeg_formatid_to_caps), (gst_ffmpeg_get_codecid_longname): * ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_register): Add new codec ids and fix up some of the codec->mime type mappings
2006-02-19ext/ffmpeg/gstffmpegcodecmap.c: Add codec mapping for RealAudio G2 (Cook) codec.Jan Schmidt1-1/+19
Original commit message from CVS: * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps), (gst_ffmpeg_caps_to_codecid), (gst_ffmpeg_get_codecid_longname): Add codec mapping for RealAudio G2 (Cook) codec.
2006-02-18HACKING: Mention ffmpeg snapshot updateJan Schmidt1-0/+27
Original commit message from CVS: * HACKING: Mention ffmpeg snapshot update * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps), (gst_ffmpeg_caps_to_codecid), (gst_ffmpeg_get_codecid_longname): Add new codec types from FFMpeg snapshot update to 2006-02-17 4:00 GMT
2006-02-17ext/ffmpeg/gstffmpegdemux.c: Post nice error message when we cannot activate ↵Wim Taymans1-0/+4
in pull mode. Original commit message from CVS: * ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_sink_activate): Post nice error message when we cannot activate in pull mode.
2006-02-14ext/ffmpeg/gstffmpegdemux.c: If the duration returned by ffmpeg is 0, it ↵Edward Hervey1-1/+4
doesn't mean the file has no duration, but t... Original commit message from CVS: * ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_open): If the duration returned by ffmpeg is 0, it doesn't mean the file has no duration, but that it doesn't know the end. Fixed accordingly for segment_stop.
2006-02-13ext/ffmpeg/gstffmpegdec.c: More fixes for keyframe detection in ffmpeg ↵Edward Hervey1-3/+5
decoders... Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_release_buffer), (gst_ffmpegdec_frame): More fixes for keyframe detection in ffmpeg decoders...
2006-02-12that'll teach me to copypasteThomas Vander Stichele1-3/+2
Original commit message from CVS: that'll teach me to copypaste
2006-02-12ext/ffmpeg/: respect pixel-aspect-ratio when encoding.Thomas Vander Stichele2-5/+22
Original commit message from CVS: * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_caps_to_pixfmt): * ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_getcaps): respect pixel-aspect-ratio when encoding.
2006-02-12ext/ffmpeg/gstffmpegdemux.c: Add Tag support and keyframe seeking (for those ↵Edward Hervey2-54/+210
formats where ffmpeg actually fills in t... Original commit message from CVS: * ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_init), (gst_ffmpegdemux_close), (gst_ffmpegdemux_handle_seek), (gst_ffmpegdemux_add), (my_safe_copy), (gst_ffmpegdemux_read_tags), (gst_ffmpegdemux_open), (gst_ffmpegdemux_loop): Add Tag support and keyframe seeking (for those formats where ffmpeg actually fills in the index). * ext/ffmpeg/gstffmpegprotocol.c: (gst_ffmpegdata_peek), (gst_ffmpegdata_read), (gst_ffmpegdata_seek): Add support for size querying.
2006-02-11ext/ffmpeg/gstffmpeg.c: set correct version on the plug-in - the GStreamerThomas Vander Stichele1-1/+1
Original commit message from CVS: * ext/ffmpeg/gstffmpeg.c: set correct version on the plug-in - the GStreamer FFMpeg version. I could swear I had already done this before.
2006-02-11ext/ffmpeg/gstffmpegenc.c: debug and magic number fixesThomas Vander Stichele1-8/+14
Original commit message from CVS: * ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_class_init), (gst_ffmpegenc_init), (gst_ffmpegenc_setcaps): debug and magic number fixes
2006-02-10ext/ffmpeg/: Welcome the demuxers to 0.10 :)Edward Hervey4-418/+450
Original commit message from CVS: * ext/ffmpeg/Makefile.am: * ext/ffmpeg/gstffmpeg.c: (plugin_init): * ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_base_init), (gst_ffmpegdemux_init), (gst_ffmpegdemux_stream_from_pad), (gst_ffmpegdemux_handle_seek), (gst_ffmpegdemux_src_event), (gst_ffmpegdemux_src_query_list), (gst_ffmpegdemux_src_query), (gst_ffmpegdemux_add), (gst_ffmpegdemux_open), (gst_ffmpegdemux_loop), (gst_ffmpegdemux_sink_activate), (gst_ffmpegdemux_sink_activate_pull), (gst_ffmpegdemux_change_state), (gst_ffmpegdemux_register): * ext/ffmpeg/gstffmpegprotocol.c: (gst_ffmpegdata_open), (gst_ffmpegdata_peek), (gst_ffmpegdata_read), (gst_ffmpegdata_write), (gst_ffmpegdata_seek), (gst_ffmpegdata_close): Welcome the demuxers to 0.10 :) For the time being the demuxers work only pull-based. Seeking, querying works.
2006-02-10ext/ffmpeg/gstffmpegcodecmap.c: added CODEC_ID_FLV1 <==> ↵Edward Hervey1-1/+2
'video/x-flash-video,flvversion=1' conversion. Original commit message from CVS: * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps): added CODEC_ID_FLV1 <==> 'video/x-flash-video,flvversion=1' conversion.
2006-02-06ext/ffmpeg/: debug recurring events at LOG level do some timestamp setting ↵Thomas Vander Stichele2-19/+57
heuristics on the pcache, with the net res... Original commit message from CVS: * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps), (gst_ffmpeg_smpfmt_to_caps): * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_setcaps), (gst_ffmpegdec_negotiate), (gst_ffmpegdec_frame), (gst_ffmpegdec_chain): debug recurring events at LOG level do some timestamp setting heuristics on the pcache, with the net result of having more buffers have approximately correct timestamps. This allows playback of h263/3gp files taking fps from the demuxer, which before always set GST_CLOCK_TIME_NONE as timestamp.
2006-02-04ext/ffmpeg/gstffmpegcodecmap.c: Buffers aren't boxed types any longer.Tim-Philipp Müller1-1/+1
Original commit message from CVS: * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_get_palette): Buffers aren't boxed types any longer.
2006-02-03Just make it compile with --disable-gst-debug.Edgard Lima1-0/+4
Original commit message from CVS: Just make it compile with --disable-gst-debug.
2006-02-02ext/ffmpeg/gstffmpegdec.c (gst_ffmpegdec_register): Reorder case statements ↵Andy Wingo1-3/+1
to make control flow more clear. Original commit message from CVS: 2006-02-02 Andy Wingo <wingo@pobox.com> * ext/ffmpeg/gstffmpegdec.c (gst_ffmpegdec_register): Reorder case statements to make control flow more clear.
2006-02-02set rank None for mp3 and mpeg2 element, fixes 162833Christian Schaller1-1/+8
Original commit message from CVS: set rank None for mp3 and mpeg2 element, fixes 162833
2006-01-26ext/ffmpeg/gstffmpegcodecmap.c: Pad codec data buffer to a size that is a ↵Tim-Philipp Müller1-1/+1
multiple of 16, which ffmpeg apparently nee... Original commit message from CVS: * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_caps_with_codecid): Pad codec data buffer to a size that is a multiple of 16, which ffmpeg apparently needs for optimized/unchecked access to the data. Fixes crashes with HD h264 video.
2006-01-23ext/ffmpeg/gstffmpegcodecmap.c: Added CODEC_ID_SMC <==> video/x-smc capsEdward Hervey2-2/+6
Original commit message from CVS: * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps): Added CODEC_ID_SMC <==> video/x-smc caps * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_frame): I hate ffmpeg... no keyframe information at all for VP3, so we have to assume they're all keyframes :(
2006-01-20ext/ffmpeg/: ffdeinterlace port to 0.10.Edward Hervey3-264/+95
Original commit message from CVS: reviewed by: Edward Hervey <edward@fluendo.com> * ext/ffmpeg/Makefile.am: * ext/ffmpeg/gstffmpeg.c: (plugin_init): * ext/ffmpeg/gstffmpegdeinterlace.c: (gst_ffmpegdeinterlace_base_init), (gst_ffmpegdeinterlace_class_init), (gst_ffmpegdeinterlace_sink_setcaps), (gst_ffmpegdeinterlace_init), (gst_ffmpegdeinterlace_chain), (gst_ffmpegdeinterlace_register): ffdeinterlace port to 0.10. Could be made a subclass of GstBaseTransform later on...
2006-01-20ext/ffmpeg/gstffmpegenc.c: Caps weren't set on outgoing audio buffers.Edward Hervey1-0/+1
Original commit message from CVS: Reviewed by : Edward Hervey <edward@fluendo.com> * ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_chain_audio): Caps weren't set on outgoing audio buffers. Closes #327861
2006-01-17ext/ffmpeg/gstffmpegdec.c: Memleak fix.Edward Hervey1-2/+3
Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_chain): Memleak fix. Closes #326704
2006-01-11ext/ffmpeg/gstffmpegdec.c: Add exception for Indeo3 keyframe detection until ↵Edward Hervey1-0/+1
upstream ffmpeg behaves properly. Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_frame): Add exception for Indeo3 keyframe detection until upstream ffmpeg behaves properly.
2005-12-19ext/ffmpeg/gstffmpegcodecmap.c: Update ffmpeg_codec_id <=> mimetype conversionsEdward Hervey2-15/+58
Original commit message from CVS: * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps): Update ffmpeg_codec_id <=> mimetype conversions * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_frame): Finer grained keyframe detection
2005-12-16ext/ffmpeg/: Do proper locking around avcodec_open() and avcodec_close()Sebastien Cote4-13/+41
Original commit message from CVS: * ext/ffmpeg/gstffmpeg.c: (gst_ffmpeg_avcodec_open), (gst_ffmpeg_avcodec_close): * ext/ffmpeg/gstffmpeg.h: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_close), (gst_ffmpegdec_open): * ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_dispose), (gst_ffmpegenc_getcaps), (gst_ffmpegenc_setcaps), (gst_ffmpegenc_change_state): Do proper locking around avcodec_open() and avcodec_close() (fixes #322254, patch by: Sebastien Cote and Luca Ognibene).
2005-12-07ext/ffmpeg/gstffmpegdec.c: So, stupid ffmpeg.... Not all [en|de]coders set ↵Edward Hervey1-19/+21
AVFrame->type. Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_frame): So, stupid ffmpeg.... Not all [en|de]coders set AVFrame->type. This should handle the case where AVFrame->reference is set to 1 (which is the equivalent of a keyframe). Also fixes #323286. I tried a truckload of other files with this modification and it didn't seem to break playback.
2005-12-06expand tabsThomas Vander Stichele8-215/+215
Original commit message from CVS: expand tabs
2005-12-05ext/ffmpeg/: Update for alloc_buffer changes.Andy Wingo3-4/+4
Original commit message from CVS: 2005-12-05 Andy Wingo <wingo@pobox.com> * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_get_buffer), (gst_ffmpegdec_frame): * ext/ffmpeg/gstffmpegdeinterlace.c: (gst_ffmpegdeinterlace_chain): * ext/ffmpeg/gstffmpegscale.c: (gst_ffmpegscale_chain): Update for alloc_buffer changes.
2005-11-28ext/ffmpeg/gstffmpegenc.c: Add rtp-payload-size property.Julien Moutte1-3/+25
Original commit message from CVS: 2005-11-28 Julien MOUTTE <julien@moutte.net> * ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_class_init), (gst_ffmpegenc_init), (gst_ffmpegenc_getcaps), (gst_ffmpegenc_setcaps), (gst_ffmpegenc_set_property), (gst_ffmpegenc_get_property): Add rtp-payload-size property.
2005-11-28ext/ffmpeg/gstffmpegdec.c: Improve pixel aspect ratio handling when both the ↵Tim-Philipp Müller1-31/+100
demuxer and the decoder provide a pixel ... Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_close), (gst_ffmpegdec_setcaps), (gst_ffmpegdec_add_pixel_aspect_ratio), (gst_ffmpegdec_negotiate): Improve pixel aspect ratio handling when both the demuxer and the decoder provide a pixel aspect ratio: if one of the two ratios is 1:1, use the other one; if both are non-1:1, use the one provided by the decoder (fixes matroska starwars test files); also add some locking here and there.
2005-11-23ext/ffmpeg/gstffmpegdec.c: Updated APIJan Schmidt1-1/+1
Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_frame): Updated API
2005-11-22ext/ffmpeg/gstffmpegcodecmap.c: Whoops - handle input video caps that don't ↵Jan Schmidt1-5/+8
have a framerate Original commit message from CVS: * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_caps_to_pixfmt): Whoops - handle input video caps that don't have a framerate
2005-11-22Remove mentions of ffmpegcolorspace now that it's in gst-plugins-baseJan Schmidt4-508/+45
Original commit message from CVS: * HACKING: * ext/ffmpeg/gstffmpegcolorspace.c: Remove mentions of ffmpegcolorspace now that it's in gst-plugins-base * ext/ffmpeg/Makefile.am: Link to gstreamer libraries * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_caps_to_pixfmt): * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_init), (gst_ffmpegdec_close), (gst_ffmpegdec_setcaps), (gst_ffmpegdec_negotiate), (gst_ffmpegdec_frame): Convert to fractional framerate
2005-11-22ext/ffmpeg/gstffmpegdec.c (gst_ffmpegdec_sink_event): Run update-funcnames.Andy Wingo1-2/+2
Original commit message from CVS: 2005-11-22 Andy Wingo <wingo@pobox.com> * ext/ffmpeg/gstffmpegdec.c (gst_ffmpegdec_sink_event): Run update-funcnames.
2005-11-21ext/ffmpeg/gstffmpegdec.c: Remove GST_STREAM_LOCK here, it is not needed any ↵Tim-Philipp Müller1-25/+7
longer. Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_sink_event): Remove GST_STREAM_LOCK here, it is not needed any longer.
2005-11-16ext/ffmpeg/gstffmpegdec.c: My previous commit was not completly correct.. ↵Luca Ognibene1-1/+1
I've disabled our _get_buffer function unti... Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_get_buffer): My previous commit was not completly correct.. I've disabled our _get_buffer function until we make it work 100%. I've opened a bug (#321662) for this issue.
2005-11-16ext/ffmpeg/gstffmpegdec.c: Fix some segfaults while seeking. When i have ↵Luca Ognibene1-6/+13
unreffed the buffer in _release_buffer i sho... Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_release_buffer), (gst_ffmpegdec_frame): Fix some segfaults while seeking. When i have unreffed the buffer in _release_buffer i should also set picture->opaque to NULL otherwise sometimes it can be unreffed another time in _frame causing an invalid read/write.
2005-11-14ext/ffmpeg/gstffmpegdec.c: Don't crash in debug message by dereferencing the ↵Tim-Philipp Müller1-181/+209
NULL buffer gst_ffmpegdec_frame() gets p... Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_frame), (gst_ffmpegdec_sink_event): Don't crash in debug message by dereferencing the NULL buffer gst_ffmpegdec_frame() gets passed on EOS. Take STREAM_LOCK for EOS, TAG, NEWSEGMENT and FLUSH_STOP events.
2005-11-11ext/ffmpeg/gstffmpegdec.c: Properly unref a buffer if we drop it.Edward Hervey1-7/+20
Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_get_buffer), (gst_ffmpegdec_release_buffer), (gst_ffmpegdec_frame), (gst_ffmpegdec_sink_event): Properly unref a buffer if we drop it. Esthetic fixes.
2005-11-11ext/ffmpeg/gstffmpegdec.c: Properly unref a buffer if we drop it.Edward Hervey1-5/+11
Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_get_buffer), (gst_ffmpegdec_release_buffer), (gst_ffmpegdec_frame), (gst_ffmpegdec_sink_event): Properly unref a buffer if we drop it. Esthetic fixes.
2005-10-26ext/ffmpeg/gstffmpegdec.c: Backported some fixes from 0.8. Most importantly, ↵Tim-Philipp Müller1-34/+56
use demuxer's timestamping information i... Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_init), (gst_ffmpegdec_close), (gst_ffmpegdec_open), (gst_ffmpegdec_setcaps), (gst_ffmpegdec_negotiate), (gst_ffmpegdec_frame), (gst_ffmpegdec_sink_event), (gst_ffmpegdec_chain): Backported some fixes from 0.8. Most importantly, use demuxer's timestamping information if we use its framerate value. Makes divx play properly again among other things (#319616, #313970, #317596). Did not backport memory leak fix.