summaryrefslogtreecommitdiffstats
path: root/gst/rtp
Commit message (Collapse)AuthorAgeFilesLines
...
* gst/rtp/: Add mappings for multichannel support. Does not completely just ↵Wim Taymans2008-10-284-3/+375
| | | | | | | | | | | | | | | | work because the getcaps function does not ... Original commit message from CVS: * gst/rtp/gstrtpL16depay.c: (gst_rtp_L16_depay_setcaps): * gst/rtp/gstrtpL16pay.c: (gst_rtp_L16_pay_setcaps), (gst_rtp_L16_pay_getcaps): * gst/rtp/gstrtpchannels.c: (check_channels), (gst_rtp_channels_get_by_pos), (gst_rtp_channels_get_by_order), (gst_rtp_channels_create_default): * gst/rtp/gstrtpchannels.h: Add mappings for multichannel support. Does not completely just work because the getcaps function does not yet return the allowed channel mappings. See #556641.
* gst/rtp/gstrtpL16pay.c: Implement getcaps in rtpL16pay. Fixes #556484.Olivier Crete2008-10-271-5/+59
| | | | | | | | Original commit message from CVS: Patch by: Olivier Crete <tester at tester dot ca> * gst/rtp/gstrtpL16pay.c: (gst_rtp_L16_pay_class_init), (gst_rtp_L16_pay_setcaps), (gst_rtp_L16_pay_getcaps): Implement getcaps in rtpL16pay. Fixes #556484.
* gst/rtp/gstrtpL16depay.c: Check if clock-rate and channels are valid.Wim Taymans2008-10-2747-456/+370
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: * gst/rtp/gstrtpL16depay.c: (gst_rtp_L16_depay_setcaps), (gst_rtp_L16_depay_process): Check if clock-rate and channels are valid. Don't ignore the return value of setcaps. No need to validate the buffer, the base class does that for us. Use the marker bit to set the DISCONT flag on outgoing buffers. * gst/rtp/gstrtpL16pay.c: (gst_rtp_L16_pay_setcaps): Don't ignore the return value of set_outcaps. * gst/rtp/gstrtpac3depay.c: (gst_rtp_ac3_depay_setcaps), (gst_rtp_ac3_depay_process): Don't ignore the return value of set_caps. No need to validate the buffer, the base class does that for us. * gst/rtp/gstrtpamrdepay.c: (gst_rtp_amr_depay_setcaps), (gst_rtp_amr_depay_process): * gst/rtp/gstrtpamrdepay.h: Don't ignore the return value of setcaps. No need to validate the buffer, the base class does that for us. No need to set output caps on the buffers, the base class does that for us. The subclass will make sure we are negotiated. * gst/rtp/gstrtpdvdepay.c: (gst_rtp_dv_depay_setcaps), (gst_rtp_dv_depay_process), (gst_rtp_dv_depay_reset): * gst/rtp/gstrtpdvdepay.h: Clean up caps negotiation. The subclass will make sure we are negotiated. * gst/rtp/gstrtpg726depay.c: (gst_rtp_g726_depay_setcaps), (gst_rtp_g726_depay_process): Clean up caps negotiation. Use the marker bit to set the DISCONT flag on outgoing buffers. * gst/rtp/gstrtpg729depay.c: (gst_rtp_g729_depay_init), (gst_rtp_g729_depay_setcaps), (gst_rtp_g729_depay_process): * gst/rtp/gstrtpg729depay.h: The subclass will make sure we are negotiated. Use the marker bit to set the DISCONT flag on outgoing buffers. * gst/rtp/gstrtpgsmdepay.c: (gst_rtp_gsm_depay_setcaps), (gst_rtp_gsm_depay_process): Clean up caps negotiation. Use the marker bit to set the DISCONT flag on outgoing buffers. * gst/rtp/gstrtpgsmpay.c: (gst_rtp_gsm_pay_setcaps): Clean up caps negotiation. Don't ignore the return value of set_outcaps. * gst/rtp/gstrtph263depay.c: (gst_rtp_h263_depay_setcaps), (gst_rtp_h263_depay_process): Clean up caps negotiation. No need to validate the buffer, the base class does that for us. * gst/rtp/gstrtph263pay.c: (gst_rtp_h263_pay_setcaps), (gst_rtp_h263_pay_flush), (gst_rtp_h263_pay_handle_buffer): * gst/rtp/gstrtph263pay.h: Don't ignore the return value of set_outcaps. Do some more timestamps. * gst/rtp/gstrtph263pdepay.c: (gst_rtp_h263p_depay_setcaps), (gst_rtp_h263p_depay_process): Clean up caps negotiation. Don't ignore the return value of setcaps. No need to validate the buffer, the base class does that for us. * gst/rtp/gstrtph263ppay.c: (gst_rtp_h263p_pay_class_init), (gst_rtp_h263p_pay_setcaps), (gst_rtp_h263p_pay_flush), (gst_rtp_h263p_pay_handle_buffer): * gst/rtp/gstrtph263ppay.h: Don't ignore the return value of set_outcaps. Do some more timestamps. * gst/rtp/gstrtph264depay.c: (gst_rtp_h264_depay_setcaps), (gst_rtp_h264_depay_process): Clean up caps negotiation. Don't ignore the return value of setcaps. Fix possible caps leak. No need to validate the buffer, the base class does that for us. * gst/rtp/gstrtph264pay.c: (gst_rtp_h264_pay_setcaps): Add some more debug info. * gst/rtp/gstrtpilbcdepay.c: (gst_rtp_ilbc_depay_setcaps), (gst_rtp_ilbc_depay_process): Clean up caps negotiation. Use the marker bit to set the DISCONT flag on outgoing buffers. * gst/rtp/gstrtpilbcpay.c: (gst_rtpilbcpay_sink_setcaps): Clean up caps negotiation. * gst/rtp/gstrtpmp1sdepay.c: (gst_rtp_mp1s_depay_setcaps), (gst_rtp_mp1s_depay_process): Clean up caps negotiation. Don't ignore the return value of setcaps. No need to validate the buffer, the base class does that for us. No need to set caps on buffers, subclass does that for us. * gst/rtp/gstrtpmp2tdepay.c: (gst_rtp_mp2t_depay_setcaps), (gst_rtp_mp2t_depay_process): Clean up caps negotiation. Don't ignore the return value of setcaps. No need to validate the buffer, the base class does that for us. No need to set caps on buffers, subclass does that for us. * gst/rtp/gstrtpmp4adepay.c: (gst_rtp_mp4a_depay_setcaps), (gst_rtp_mp4a_depay_process): Clean up caps negotiation. Don't ignore the return value of setcaps. No need to validate the buffer, the base class does that for us. * gst/rtp/gstrtpmp4apay.c: (gst_rtp_mp4a_pay_new_caps), (gst_rtp_mp4a_pay_setcaps): Don't ignore the return value of set_outcaps. * gst/rtp/gstrtpmp4gdepay.c: (gst_rtp_mp4g_depay_setcaps), (gst_rtp_mp4g_depay_process): Clean up caps negotiation. Don't ignore the return value of setcaps. No need to validate the buffer, the base class does that for us. No need to set caps on buffers, subclass does that for us. * gst/rtp/gstrtpmp4gpay.c: (gst_rtp_mp4g_pay_finalize), (gst_rtp_mp4g_pay_new_caps), (gst_rtp_mp4g_pay_setcaps): Don't ignore the return value of set_outcaps. * gst/rtp/gstrtpmp4vdepay.c: (gst_rtp_mp4v_depay_setcaps), (gst_rtp_mp4v_depay_process): Clean up caps negotiation. Don't ignore the return value of setcaps. No need to validate the buffer, the base class does that for us. No need to set caps on buffers, subclass does that for us. * gst/rtp/gstrtpmp4vpay.c: (gst_rtp_mp4v_pay_new_caps), (gst_rtp_mp4v_pay_setcaps): Don't ignore the return value of set_outcaps. * gst/rtp/gstrtpmpadepay.c: (gst_rtp_mpa_depay_setcaps), (gst_rtp_mpa_depay_process): Clean up caps negotiation. Don't ignore the return value of setcaps. No need to validate the buffer, the base class does that for us. Use the marker bit to set the DISCONT flag on outgoing buffers. * gst/rtp/gstrtpmpapay.c: (gst_rtp_mpa_pay_setcaps): Don't ignore the return value of set_outcaps. * gst/rtp/gstrtpmpvdepay.c: (gst_rtp_mpv_depay_setcaps), (gst_rtp_mpv_depay_process): Clean up caps negotiation. Actually set output caps. No need to validate the buffer, the base class does that for us. * gst/rtp/gstrtpmpvpay.c: (gst_rtp_mpv_pay_setcaps): Don't ignore the return value of set_outcaps. * gst/rtp/gstrtppcmadepay.c: (gst_rtp_pcma_depay_setcaps), (gst_rtp_pcma_depay_process): Clean up caps negotiation. Set output buffer duration because we can. Use the marker bit to set the DISCONT flag on outgoing buffers. * gst/rtp/gstrtppcmapay.c: (gst_rtp_pcma_pay_setcaps): Don't ignore the return value of set_outcaps. * gst/rtp/gstrtppcmudepay.c: (gst_rtp_pcmu_depay_setcaps), (gst_rtp_pcmu_depay_process): Clean up caps negotiation. Use the marker bit to set the DISCONT flag on outgoing buffers. * gst/rtp/gstrtppcmupay.c: (gst_rtp_pcmu_pay_setcaps): Don't ignore the return value of set_outcaps. * gst/rtp/gstrtpspeexdepay.c: (gst_rtp_speex_depay_init), (gst_rtp_speex_depay_setcaps), (gst_rtp_speex_depay_process): Clean up caps negotiation. Set output caps on the pad and header buffers. Set duration on output buffers because we can. * gst/rtp/gstrtpspeexpay.c: (gst_rtp_speex_pay_parse_ident): Don't ignore the return value of set_outcaps. * gst/rtp/gstrtpsv3vdepay.c: (gst_rtp_sv3v_depay_setcaps), (gst_rtp_sv3v_depay_process): Clean up caps negotiation. No need to validate the buffer, the base class does that for us. No need to set caps out output buffers, subclass does that. * gst/rtp/gstrtptheoradepay.c: (gst_rtp_theora_depay_setcaps), (gst_rtp_theora_depay_process): Don't ignore the return value of setcaps. No need to validate the buffer, the base class does that for us. * gst/rtp/gstrtptheorapay.c: (gst_rtp_theora_pay_class_init), (gst_rtp_theora_pay_flush_packet), (encode_base64), (gst_rtp_theora_pay_finish_headers), (gst_rtp_theora_pay_parse_id), (gst_rtp_theora_pay_handle_buffer): Don't ignore the return value of set_outcaps. * gst/rtp/gstrtpvorbisdepay.c: (gst_rtp_vorbis_depay_setcaps), (gst_rtp_vorbis_depay_process): Don't ignore the return value of setcaps. No need to validate the buffer, the base class does that for us. * gst/rtp/gstrtpvorbispay.c: (gst_rtp_vorbis_pay_finish_headers): Don't ignore the return value of set_outcaps. * gst/rtp/gstrtpvrawdepay.c: (gst_rtp_vraw_depay_setcaps): Clean up caps negotiation, don't ignore setcaps return. * gst/rtp/gstrtpvrawpay.c: (gst_rtp_vraw_pay_setcaps): Don't ignore the return value of set_outcaps.
* gst/rtp/gstrtpamrdepay.c: Mark DISCONT on output buffers when the marker bit ↵Wim Taymans2008-09-262-11/+28
| | | | | | | | | | | | | signals a new talk spurt. Original commit message from CVS: * gst/rtp/gstrtpamrdepay.c: (gst_rtp_amr_depay_class_init), (gst_rtp_amr_depay_process): Mark DISCONT on output buffers when the marker bit signals a new talk spurt. * gst/rtp/gstrtpamrpay.c: (gst_rtp_amr_pay_handle_buffer): Set the marker bit for buffers with a DISCONT flag to signal a talk spurt.
* gst/rtp/: Added MP4A-LATM payloader to match the depayloader.Wim Taymans2008-09-264-1/+537
| | | | | | | | | | | | | | Original commit message from CVS: * gst/rtp/Makefile.am: * gst/rtp/gstrtp.c: (plugin_init): * gst/rtp/gstrtpmp4apay.c: (gst_rtp_mp4a_pay_get_type), (gst_rtp_mp4a_pay_base_init), (gst_rtp_mp4a_pay_class_init), (gst_rtp_mp4a_pay_init), (gst_rtp_mp4a_pay_finalize), (gst_rtp_mp4a_pay_parse_audio_config), (gst_rtp_mp4a_pay_new_caps), (gst_rtp_mp4a_pay_setcaps), (gst_rtp_mp4a_pay_handle_buffer), (gst_rtp_mp4a_pay_change_state), (gst_rtp_mp4a_pay_plugin_init): * gst/rtp/gstrtpmp4apay.h: Added MP4A-LATM payloader to match the depayloader.
* gst/rtp/gstrtpmp4gdepay.*: Handle interleaved streams by reordering AU in a ↵Wim Taymans2008-09-152-13/+213
| | | | | | | | | | | | | queue. Original commit message from CVS: * gst/rtp/gstrtpmp4gdepay.c: (gst_rtp_mp4g_depay_init), (gst_rtp_mp4g_depay_finalize), (gst_rtp_mp4g_depay_setcaps), (gst_rtp_mp4g_depay_clear_queue), (gst_rtp_mp4g_depay_flush_queue), (gst_rtp_mp4g_depay_queue), (gst_rtp_mp4g_depay_process), (gst_rtp_mp4g_depay_change_state): * gst/rtp/gstrtpmp4gdepay.h: Handle interleaved streams by reordering AU in a queue.
* gst/rtp/gstrtpmp4gdepay.c: Change some of the ranges in the caps, mostly for ↵Wim Taymans2008-09-151-21/+131
| | | | | | | | | | | | | | the amount of bits we can use. Original commit message from CVS: * gst/rtp/gstrtpmp4gdepay.c: (gst_bs_parse_init), (gst_bs_parse_read), (gst_rtp_mp4g_depay_process): Change some of the ranges in the caps, mostly for the amount of bits we can use. Added a little bitstream parse and use it to parse the AU header fields. Check for malformed and wrongly sized packets better. Implement more header field parsing. Handle the size of fragmented packets correctly.
* gst/rtp/: Update the vorbis RTP pay/depay to RFC 5215.Olivier Crete2008-08-152-53/+13
| | | | | | | | | | Original commit message from CVS: Patch by: Olivier Crete <tester at tester dot ca> * gst/rtp/gstrtpvorbisdepay.c: (gst_rtp_vorbis_depay_setcaps), (gst_rtp_vorbis_depay_process): * gst/rtp/gstrtpvorbispay.c: (gst_rtp_vorbis_pay_finish_headers): Update the vorbis RTP pay/depay to RFC 5215. Fixes #547842.
* gst/rtp/: Add MP1S depayloader.Wim Taymans2008-08-054-0/+310
| | | | | | | | | | | | | | | | | Original commit message from CVS: * gst/rtp/Makefile.am: * gst/rtp/gstrtp.c: (plugin_init): * gst/rtp/gstrtpmp1sdepay.c: (gst_rtp_mp1s_depay_base_init), (gst_rtp_mp1s_depay_class_init), (gst_rtp_mp1s_depay_init), (gst_rtp_mp1s_depay_setcaps), (gst_rtp_mp1s_depay_process), (gst_rtp_mp1s_depay_set_property), (gst_rtp_mp1s_depay_get_property), (gst_rtp_mp1s_depay_change_state), (gst_rtp_mp1s_depay_plugin_init): * gst/rtp/gstrtpmp1sdepay.h: Add MP1S depayloader. * gst/rtsp/URLS: Some more sample rtsp streams.
* gst/rtp/gstrtpspeexdepay.*: Revert last change: Only the jitterbuffer is ↵Sebastian Dröge2008-07-072-10/+1
| | | | | | | | | | | | able to convert RTP to Original commit message from CVS: * gst/rtp/gstrtpspeexdepay.c: (gst_rtp_speex_depay_init), (gst_rtp_speex_depay_process): * gst/rtp/gstrtpspeexdepay.h: Revert last change: Only the jitterbuffer is able to convert RTP to Gstreamer timestamps and normal (de)payloaders should simply copy it. Reopens bug #541787.
* gst/rtp/gstrtpvrawdepay.c: Include stdlib.h for atoi().Stefan Kost2008-07-071-0/+1
| | | | | | | | Original commit message from CVS: * gst/rtp/gstrtpvrawdepay.c: Include stdlib.h for atoi(). * gst/rtsp/gstrtspsrc.c: Use floating point math for latencies < 0 sec in log output.
* gst/rtp/gstrtpspeexdepay.*: Take timestamp from the RTP packet as a first ↵Tomasz Grobelny2008-07-072-1/+10
| | | | | | | | | | | | | step to fix problems with transmission over... Original commit message from CVS: Patch by: Tomasz Grobelny <tomasz at grobelny dot oswiecenia dot net> * gst/rtp/gstrtpspeexdepay.c: (gst_rtp_speex_depay_init), (gst_rtp_speex_depay_process): * gst/rtp/gstrtpspeexdepay.h: Take timestamp from the RTP packet as a first step to fix problems with transmission over RTP when the network is not reliable. Fixes bug #541787.
* gst/rtp/: Add raw video pay and depayloaders, see RFC4175.Wim Taymans2008-07-016-2/+1260
| | | | | | | | | | | | | | | | | | | Original commit message from CVS: * gst/rtp/Makefile.am: * gst/rtp/gstrtp.c: (plugin_init): * gst/rtp/gstrtpvrawdepay.c: (gst_rtp_vraw_depay_base_init), (gst_rtp_vraw_depay_class_init), (gst_rtp_vraw_depay_init), (gst_rtp_vraw_depay_setcaps), (gst_rtp_vraw_depay_process), (gst_rtp_vraw_depay_change_state), (gst_rtp_vraw_depay_plugin_init): * gst/rtp/gstrtpvrawdepay.h: * gst/rtp/gstrtpvrawpay.c: (gst_rtp_vraw_pay_get_type), (gst_rtp_vraw_pay_base_init), (gst_rtp_vraw_pay_class_init), (gst_rtp_vraw_pay_init), (gst_rtp_vraw_pay_finalize), (gst_rtp_vraw_pay_setcaps), (gst_rtp_vraw_pay_handle_buffer), (gst_rtp_vraw_pay_plugin_init): * gst/rtp/gstrtpvrawpay.h: Add raw video pay and depayloaders, see RFC4175.
* gst/: Added debug.Thomas Vander Stichele2008-06-201-1/+3
| | | | | | | Original commit message from CVS: * gst/rtp/gstrtptheorapay.c: * gst/udp/gstmultiudpsink.c: Added debug.
* gst/rtp/gstrtpg726pay.c: Remove unused variable so that we can compile again.Wim Taymans2008-06-191-1/+0
| | | | | | Original commit message from CVS: * gst/rtp/gstrtpg726pay.c: (gst_rtp_g726_pay_setcaps): Remove unused variable so that we can compile again.
* gst/rtp/gstrtpg726pay.c: No need to check for audio/G723 and audio/32KADPCM ↵Peter Kjellerstedt2008-06-191-13/+1
| | | | | | | | | here as they are no longer supported. Original commit message from CVS: * gst/rtp/gstrtpg726pay.c: (gst_rtp_g726_pay_setcaps): No need to check for audio/G723 and audio/32KADPCM here as they are no longer supported.
* gst/rtp/gstrtpg726pay.c: Fix caps, See #538891.Wim Taymans2008-06-181-4/+2
| | | | | | Original commit message from CVS: * gst/rtp/gstrtpg726pay.c: Fix caps, See #538891.
* gst/rtp/: Added G726 pay/depayloaders. Fixes #538891.mersad2008-06-186-0/+500
| | | | | | | | | | | | | | | | | Original commit message from CVS: Patch by: mersad <mersad at axis dot com> * gst/rtp/Makefile.am: * gst/rtp/gstrtp.c: (plugin_init): * gst/rtp/gstrtpg726depay.c: (gst_rtp_g726_depay_base_init), (gst_rtp_g726_depay_class_init), (gst_rtp_g726_depay_init), (gst_rtp_g726_depay_setcaps), (gst_rtp_g726_depay_process), (gst_rtp_g726_depay_plugin_init): * gst/rtp/gstrtpg726depay.h: * gst/rtp/gstrtpg726pay.c: (gst_rtp_g726_pay_base_init), (gst_rtp_g726_pay_class_init), (gst_rtp_g726_pay_init), (gst_rtp_g726_pay_setcaps), (gst_rtp_g726_pay_plugin_init): * gst/rtp/gstrtpg726pay.h: Added G726 pay/depayloaders. Fixes #538891.
* gst/rtp/gstrtptheoradepay.c: Make the delivery-method mandatory on the caps ↵Olivier Crete2008-06-133-22/+21
| | | | | | | | | | | | | | | | | | and only accept inline for now. Original commit message from CVS: Patch by: Olivier Crete <tester at tester dot ca> * gst/rtp/gstrtptheoradepay.c: (gst_rtp_theora_depay_setcaps): Make the delivery-method mandatory on the caps and only accept inline for now. Reverse strcmp checks for delivery-method. * gst/rtp/gstrtpvorbisdepay.c: (gst_rtp_vorbis_depay_setcaps): Make delivery method optional when parsing caps and note this in the caps. Reverse strcmp checks for delivery-method. * gst/rtp/gstrtpvorbispay.c: Update a comment to note that the delivery-method is optional, Fixes #537675.
* gst/rtp/gstrtptheorapay.c: The Theora RTP payloader only supports the ↵Olivier Crete2008-06-111-1/+26
| | | | | | | | | | | "inline" delievery method so let's declare this... Original commit message from CVS: Patch by: Olivier Crete <tester at tester dot ca> * gst/rtp/gstrtptheorapay.c: The Theora RTP payloader only supports the "inline" delievery method so let's declare this on the caps of the static pad template. Fixes bug #537675.
* gst/rtp/gstrtptheoradepay.c: Improve debugging of the ident.Wim Taymans2008-05-211-3/+3
| | | | | | Original commit message from CVS: * gst/rtp/gstrtptheoradepay.c: (gst_rtp_theora_depay_process): Improve debugging of the ident.
* gst/rtp/gstrtph264pay.*: Correct a typo (sinle -> single).Peter Kjellerstedt2008-05-202-5/+3
| | | | | | | | Original commit message from CVS: * gst/rtp/gstrtph264pay.c: (gst_h264_scan_mode_get_type), (gst_rtp_h264_pay_handle_buffer): * gst/rtp/gstrtph264pay.h: Correct a typo (sinle -> single).
* gst/rtp/gstrtph264depay.*: Add experimental support for outputting ↵Wim Taymans2008-05-204-35/+289
| | | | | | | | | | | | | | | | | | | | | | quicktime-like AVC output in addition to the exist... Original commit message from CVS: * gst/rtp/gstrtph264depay.c: (gst_rtp_h264_depay_class_init), (gst_rtp_h264_depay_init), (gst_rtp_h264_depay_set_property), (gst_rtp_h264_depay_get_property), (gst_rtp_h264_depay_setcaps), (gst_rtp_h264_depay_process): * gst/rtp/gstrtph264depay.h: Add experimental support for outputting quicktime-like AVC output in addition to the existing bytestream output. * gst/rtp/gstrtph264pay.c: (gst_h264_scan_mode_get_type), (gst_rtp_h264_pay_class_init), (gst_rtp_h264_pay_init), (gst_rtp_h264_pay_setcaps), (gst_rtp_h264_pay_payload_nal), (gst_rtp_h264_pay_handle_buffer), (gst_rtp_h264_pay_set_property), (gst_rtp_h264_pay_get_property): * gst/rtp/gstrtph264pay.h: Make the parsing mode configurable, for some inputs we don't need to scan every byte for start codes. Only set the marker bit on ACCESS units.
* gst/rtp/gstrtph264depay.c: Small comment added.Wim Taymans2008-05-142-101/+153
| | | | | | | | | | | | | | Original commit message from CVS: * gst/rtp/gstrtph264depay.c: (gst_rtp_h264_depay_process): Small comment added. * gst/rtp/gstrtph264pay.c: (gst_rtp_h264_pay_class_init), (gst_rtp_h264_pay_decode_nal), (gst_rtp_h264_pay_parse_sps_pps), (gst_rtp_h264_pay_payload_nal), (gst_rtp_h264_pay_handle_buffer): Debug string cleanups (remove trailing \n) Refactor and clean up the payloader a bit and make sure that we only put one NAL unit in an RTP packet even if the input buffer contains multiple NAL units. Add suport for AVC format input.
* gst/rtp/gstrtph264pay.*: Make it possible to specify profile-level-id and ↵Peter Kjellerstedt2008-05-142-7/+99
| | | | | | | | | | | | sprop-parameter-sets using properties in ca... Original commit message from CVS: * gst/rtp/gstrtph264pay.c: (gst_rtp_h264_pay_class_init), (gst_rtp_h264_pay_finalize), (gst_rtp_h264_pay_handle_buffer), (gst_rtp_h264_pay_set_property), (gst_rtp_h264_pay_get_property): * gst/rtp/gstrtph264pay.h: Make it possible to specify profile-level-id and sprop-parameter-sets using properties in case they are not available in-stream.
* gst/rtp/gstrtpg729depay.c: Fix wrong caps string.Wim Taymans2008-05-131-2/+2
| | | | | | Original commit message from CVS: * gst/rtp/gstrtpg729depay.c: (gst_rtp_g729_depay_setcaps): Fix wrong caps string.
* gst/rtp/: Added G729 pay and depayloaders. Fixes #532409.Olivier Crete2008-05-136-0/+520
| | | | | | | | | | | | | | | | | Original commit message from CVS: Based on patch by: Olivier Crete <tester at tester dot ca> * gst/rtp/Makefile.am: * gst/rtp/gstrtp.c: (plugin_init): * gst/rtp/gstrtpg729depay.c: (gst_rtp_g729_depay_base_init), (gst_rtp_g729_depay_class_init), (gst_rtp_g729_depay_init), (gst_rtp_g729_depay_setcaps), (gst_rtp_g729_depay_process), (gst_rtp_g729_depay_plugin_init): * gst/rtp/gstrtpg729depay.h: * gst/rtp/gstrtpg729pay.c: (gst_rtpg729pay_base_init), (gst_rtpg729pay_class_init), (gst_rtpg729pay_init), (gst_rtpg729pay_setcaps), (gst_rtp_g729_pay_plugin_init): * gst/rtp/gstrtpg729pay.h: Added G729 pay and depayloaders. Fixes #532409.
* gst/rtp/: Add DV pay and depayloaders. Fixes #532423.Olivier Crete2008-05-126-0/+951
| | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: Based on patch by: Olivier Crete <tester at tester dot ca> * gst/rtp/Makefile.am: * gst/rtp/gstrtp.c: (plugin_init): * gst/rtp/gstrtpdvdepay.c: (gst_rtp_dv_depay_base_init), (gst_rtp_dv_depay_class_init), (gst_rtp_dv_depay_init), (parse_encode), (gst_rtp_dv_depay_setcaps), (calculate_difblock_location), (gst_rtp_dv_depay_process), (gst_rtp_dv_depay_reset), (gst_rtp_dv_depay_change_state), (gst_rtp_dv_depay_plugin_init): * gst/rtp/gstrtpdvdepay.h: * gst/rtp/gstrtpdvpay.c: (gst_dv_pay_mode_get_type), (gst_rtp_dv_pay_base_init), (gst_rtp_dv_pay_class_init), (gst_rtp_dv_pay_init), (gst_dv_pay_set_property), (gst_dv_pay_get_property), (gst_rtp_dv_pay_setcaps), (gst_dv_pay_negotiate), (include_dif), (gst_rtp_dv_pay_handle_buffer), (gst_rtp_dv_pay_plugin_init): * gst/rtp/gstrtpdvpay.h: Add DV pay and depayloaders. Fixes #532423.
* gst/rtp/gstrtph264pay.c (gst_rtp_h264_pay_parse_sps_pps): Use GST_STR_NULL ↵Ole André Vadla Ravnås2008-05-071-1/+1
| | | | | | | | | when trying to print sps and pps strings t... Original commit message from CVS: * gst/rtp/gstrtph264pay.c (gst_rtp_h264_pay_parse_sps_pps): Use GST_STR_NULL when trying to print sps and pps strings that could be NULL, as this might crash on some platforms.
* gst/rtp/gstrtpilbcpay.c: Added missing stdlib.h include for strtol(), and ↵Ole André Vadla Ravnås2008-05-071-2/+3
| | | | | | | | | made include ordering and style consistent ... Original commit message from CVS: * gst/rtp/gstrtpilbcpay.c: Added missing stdlib.h include for strtol(), and made include ordering and style consistent with the corresponding depayloader.
* gst/rtp/gstrtph263pdepay.c: Add some more debug info and guard against small ↵Wim Taymans2008-05-022-3/+24
| | | | | | | | | | payloads. Original commit message from CVS: * gst/rtp/gstrtph263pdepay.c: (gst_rtp_h263p_depay_process): Add some more debug info and guard against small payloads. * gst/rtp/gstrtppcmudepay.c: (gst_rtp_pcmu_depay_process): Set duration on outgoing buffers because we can.
* gst/rtp/gstrtpspeexpay.c: Add negotiation for the speec channels and rate. ↵Olivier Crete2008-05-021-1/+31
| | | | | | | | | | See #465146. Original commit message from CVS: Patch by: Olivier Crete <tester at tester dot ca> * gst/rtp/gstrtpspeexpay.c: (gst_rtp_speex_pay_class_init), (gst_rtp_speex_pay_getcaps): Add negotiation for the speec channels and rate. See #465146.
* gst/rtp/gstrtpilbcpay.c: Add negotiation for the ILBC mode. See #465146.Olivier Crete2008-05-021-3/+41
| | | | | | | | Original commit message from CVS: Patch by: Olivier Crete <tester at tester dot ca> * gst/rtp/gstrtpilbcpay.c: (gst_rtpilbcpay_class_init), (gst_rtpilbcpay_sink_setcaps), (gst_rtpilbcpay_sink_getcaps): Add negotiation for the ILBC mode. See #465146.
* gst/: Use GLib versions of htonl, htons, ntohl and ntohs in order to avoid ↵Tim-Philipp Müller2008-04-251-2/+2
| | | | | | | | | | | problems on win32 (#529707). Original commit message from CVS: * gst/rtp/gstasteriskh263.c: (gst_asteriskh263_chain): * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_add_internal): * gst/udp/gstudpsrc.c: (gst_udpsrc_start): Use GLib versions of htonl, htons, ntohl and ntohs in order to avoid problems on win32 (#529707).
* Stop using deprecated GLib functions.Sebastian Dröge2008-04-244-9/+9
| | | | | | | | | | | Original commit message from CVS: * ext/cairo/gsttextoverlay.c: (gst_text_overlay_set_property): * gst/debug/tests.c: (md5_get_value): * gst/rtp/gstrtph263pdepay.c: (gst_rtp_h263p_depay_setcaps): * gst/rtp/gstrtpilbcpay.c: (gst_rtpilbcpay_setcaps): * gst/rtp/gstrtptheoradepay.c: (gst_rtp_theora_depay_setcaps): * gst/rtp/gstrtpvorbisdepay.c: (gst_rtp_vorbis_depay_setcaps): Stop using deprecated GLib functions.
* gst/rtp/gstrtph264pay.c: Fix build because of a bad argument number.Julien Moutte2008-04-071-1/+1
| | | | | | | | Original commit message from CVS: 2008-04-07 Julien Moutte <julien@fluendo.com> * gst/rtp/gstrtph264pay.c: (gst_rtp_h264_pay_setcaps): Fix build because of a bad argument number.
* gst/rtp/gstrtph264pay.*: Parse codec_data for future AVC compatibility.Wim Taymans2008-04-042-25/+172
| | | | | | | | | Original commit message from CVS: * gst/rtp/gstrtph264pay.c: (encode_base64), (gst_rtp_h264_pay_setcaps), (gst_rtp_h264_pay_handle_buffer): * gst/rtp/gstrtph264pay.h: Parse codec_data for future AVC compatibility. Fail when we encounter AVC data for now.
* gst/rtp/gstrtph263pdepay.c: Check that a buffer is large enough before ↵Olivier Crete2008-03-081-0/+6
| | | | | | | | | | reading from it. Original commit message from CVS: Patch by: Olivier Crete <tester at tester dot ca> * gst/rtp/gstrtph263pdepay.c: (gst_rtp_h263p_depay_process): Check that a buffer is large enough before reading from it. Fixes bug #521102.
* fixes: #514889Wim Taymans2008-02-126-6/+136
| | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: patch by: Wim Taymans <wim.taymans@collabora.co.uk> fixes: #514889 * gst/rtp/gstrtph264pay.c: * gst/rtp/gstrtpmp4gdepay.c: * gst/rtp/gstrtpmp4gpay.c: * gst/rtp/gstrtpmp4gpay.h: * gst/rtp/gstrtptheorapay.c: * gst/rtp/gstrtpvorbispay.c: Fix various leaks shown up in valgrind - free sprops and buffer in error cases in H264 payloader - fix leak in mp4g depayloader when construction the caps - don't leak config string in the mp4g payloader - don't leak buffers and headers in theora and vorbis payloaders * tests/check/elements/rtp-payloading.c: Fix the RTP data test - Actually send valid amr data to the payloader instead of 20 zero-bytes - The mp4g payloader expects codec_data on the caps
* gst/rtp/: Add MPEG2 video payloaderThijs Vermeir2008-01-254-1/+307
| | | | | | | | | Original commit message from CVS: * gst/rtp/Makefile.am: * gst/rtp/gstrtp.c: * gst/rtp/gstrtpmpvpay.c: * gst/rtp/gstrtpmpvpay.h: Add MPEG2 video payloader
* gst/rtp/: Fix the clock rate to 90000 as required by the RFC.Olivier Crete2008-01-112-15/+5
| | | | | | | | | Original commit message from CVS: Patch by: Olivier Crete <tester at tester dot ca> * gst/rtp/gstrtptheoradepay.c: (gst_rtp_theora_depay_setcaps): * gst/rtp/gstrtptheorapay.c: Fix the clock rate to 90000 as required by the RFC. Fixes #508644.
* gst/rtp/: Remove copy/paste unused code (property setters and getter) found ↵Stefan Kost2008-01-0923-886/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by the coverage suite (yay, saves ~20k on... Original commit message from CVS: * gst/rtp/gstasteriskh263.c: * gst/rtp/gstrtpL16depay.c: * gst/rtp/gstrtpac3depay.c: * gst/rtp/gstrtpamrpay.c: * gst/rtp/gstrtpdepay.c: * gst/rtp/gstrtpgsmdepay.c: * gst/rtp/gstrtph263depay.c: * gst/rtp/gstrtph263pdepay.c: * gst/rtp/gstrtph263ppay.c: * gst/rtp/gstrtph264depay.c: * gst/rtp/gstrtph264pay.c: * gst/rtp/gstrtpmp2tdepay.c: * gst/rtp/gstrtpmp4adepay.c: * gst/rtp/gstrtpmp4gdepay.c: * gst/rtp/gstrtpmp4gpay.c: * gst/rtp/gstrtpmp4vdepay.c: * gst/rtp/gstrtpmpadepay.c: * gst/rtp/gstrtpmpvdepay.c: * gst/rtp/gstrtpsv3vdepay.c: * gst/rtp/gstrtptheoradepay.c: * gst/rtp/gstrtptheorapay.c: * gst/rtp/gstrtpvorbisdepay.c: * gst/rtp/gstrtpvorbispay.c: Remove copy/paste unused code (property setters and getter) found by the coverage suite (yay, saves ~20k on disk).
* gst/rtp/gstrtph264pay.*: Use higher performance start-code searching.Wai-Ming Ho2007-12-112-15/+280
| | | | | | | | | | | | | | Original commit message from CVS: Patch by: Wai-Ming Ho <webregbox at yahoo dot co dot uk> * gst/rtp/gstrtph264pay.c: (gst_rtp_h264_pay_init), (gst_rtp_h264_pay_finalize), (gst_rtp_h264_pay_setcaps), (next_start_code), (is_nal_equal), (gst_rtp_h264_pay_decode_nal), (encode_base64), (gst_rtp_h264_pay_parse_sps_pps), (gst_rtp_h264_pay_handle_buffer): * gst/rtp/gstrtph264pay.h: Use higher performance start-code searching. Parse NALs and store SPS, PPS and profile in the caps so that they can be used in the SDP. Fixes #502814.
* gst/rtp/gstrtph263depay.c: Code beautification.Edward Hervey2007-11-281-99/+96
| | | | | | | | | | Original commit message from CVS: * gst/rtp/gstrtph263depay.c: (gst_rtp_h263_depay_class_init), (gst_rtp_h263_depay_process): Code beautification. Added debug statements. Don't bit-shift everything, just do operations on last/first byte instead.
* gst/rtp/gstrtpmp4adepay.c: Fix wrong comparison in overrun check. Fixes ↵Jayarama S. Santana2007-11-271-1/+1
| | | | | | | | | #499239 some more. Original commit message from CVS: Patch by: Jayarama S. Santana <sundarsantana at gmail dot com> * gst/rtp/gstrtpmp4adepay.c: (gst_rtp_mp4a_depay_process): Fix wrong comparison in overrun check. Fixes #499239 some more.
* gst/rtp/gstrtph263depay.*: Fix h263 depayloader so that ANY h263 decoder can ↵Edward Hervey2007-11-272-32/+97
| | | | | | | | | | | handle the outgoing stream. Original commit message from CVS: * gst/rtp/gstrtph263depay.c: (gst_rtp_h263_depay_init), (gst_rtp_h263_depay_process): * gst/rtp/gstrtph263depay.h: Fix h263 depayloader so that ANY h263 decoder can handle the outgoing stream.
* gst/rtp/gstrtpmp4adepay.*: Fix depayloading when multiple frames are inside ↵Wim Taymans2007-11-262-24/+74
| | | | | | | | | | | | one RTP packet. Original commit message from CVS: Based on Path by: Jayarama S. Santana <sundarsantana at gmail dot com> * gst/rtp/gstrtpmp4adepay.c: (gst_rtp_mp4a_depay_setcaps), (gst_rtp_mp4a_depay_process): * gst/rtp/gstrtpmp4adepay.h: Fix depayloading when multiple frames are inside one RTP packet. Fixes #499239.
* gst/rtp/gstrtph263depay.c: Read the I flag for Mode A h263 rtp stream and ↵Edward Hervey2007-11-261-0/+5
| | | | | | | | | | set the Original commit message from CVS: * gst/rtp/gstrtph263depay.c: (gst_rtp_h263_depay_process): Read the I flag for Mode A h263 rtp stream and set the GST_BUFFER_FLAG_DELTA_UNIT accordingly. Fixes #499383
* gst/rtp/gstrtpmp2tpay.*: Fill the MTU with as many packets as possible. ↵Jordi Jaen Pallares2007-11-152-19/+82
| | | | | | | | | | | | Fixes #491323. Original commit message from CVS: Patch by: Jordi Jaen Pallares <jordijp at gmail dot com> * gst/rtp/gstrtpmp2tpay.c: (gst_rtp_mp2t_pay_class_init), (gst_rtp_mp2t_pay_init), (gst_rtp_mp2t_pay_finalize), (gst_rtp_mp2t_pay_flush), (gst_rtp_mp2t_pay_handle_buffer): * gst/rtp/gstrtpmp2tpay.h: Fill the MTU with as many packets as possible. Fixes #491323.
* gst/rtp/gstrtph264depay.c: Fix small leak. Fixes #497017.Tommi Myöhänen2007-11-151-0/+1
| | | | | | | Original commit message from CVS: Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com> * gst/rtp/gstrtph264depay.c: (gst_rtp_h264_depay_setcaps): Fix small leak. Fixes #497017.