[gst-devel] rtp transmit occur "not-negotiated (-4)" error

guodecn guo.dehua at zxelec.com
Thu Nov 11 04:03:15 CET 2010


Marco Ballesio,
    Because my x264enc lib dependence "x264-snapshot-20101102-2245", but
ffdec_h264 dependence the "gst-ffmpeg-0.10.11", they are from different
opensource, maybe not matched ,so I change h264 to h263, but other error
occur, my pipeline as below:

server:
gst-launch videotestsrc ! ffenc_h263p ! rtph263ppay ! udpsink host=127.0.0.1
port=40000

client:
gst-launch udpsrc port =40000
caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H263-1998"
! rtph263pdepay ! ffdec_h263p ! xvimagesink

when I set the GST_DEBUG=3, the client show error message as below:
0:00:00.516123278  3298  0xa08b780 ERROR                 ffmpeg :0:: header
damaged
0:00:00.516166011  3298  0xa08b780 WARN                  ffmpeg
gstffmpegdec.c:2259:gst_ffmpegdec_frame:<ffdec_h2630> ffdec_h263: decoding
error (len: -1, have_data: 0)

I am doubt the ffenc_h263p and ffdec_h263p plugins both from the same plugin
lib "gst-ffmpeg-0.10.11", also the rtph263ppay and rtph263pdepay are both
from the same plugin lib "gst-plugins-good-0.10.25", they should match, but
still occur error.

The detailed log message is attached.




Marco Ballesio wrote:
> 
> Hi,
> 
> mmmhhh, I've the suspect that in your case sending machine != receivning
> machine. Maybe you've an old version of x264enc in the first one. It
> appears, in fact, that the sending part is preparing the
> sprop-paramenter-set (aka codec data) for being transmitted outband. You
> can
> try to either add the property:
> 
> codec_data=(buffer)014d4015ffe10017674d4015eca0a0fd8088000003000bb9aca00078b16cb001000468ebecb2
> 
> in your receiver udpsrc caps.
> 
> Alternatively (but less likely to succeed) you can set the following
> property in rtph264pay to send in-band sps and pps:
> 
> config-interval=1
> 
> (should send in-band sps and pps).
> 
> If it still does not work, please attach somewher the log you get with
> GST_DEBUG=3
> 
> Regards
> 
> On Wed, Nov 10, 2010 at 12:03 PM, guodecn <guo.dehua at zxelec.com> wrote:
> 
>>
>> Marco Ballesio,
>> Very sadly, I use your modfied sample still the same error.
>> I think the syntax is no problem, my os is fedora13 install on vmware
>> workstation.
>> I have no idea.
>>
>>
>> Marco Ballesio wrote:
>> >
>> > Hi,
>> >
>> > On Wed, Nov 10, 2010 at 11:30 AM, guodecn <guo.dehua at zxelec.com> wrote:
>> >
>> >>
>> >> Hi,Marco Ballesio,
>> >> Thanks for your reply very much.
>> >>
>> >> >>However, the issue was the place you've set the "port" property.
>> >> what's your mean? Don't udpsrc need the port property? if don't udpsrc
>> >> have
>> >> no port property, we can't receive the data.
>> >>
>> >
>> > sorry, I didn't notice the "caps=" before the caps ;)
>> >
>> >
>> >>
>> >> I have modify the pipeline as below:
>> >>
>> >> server:
>> >> gst-launch-0.10 -v videotestsrc ! x264enc ! rtph264pay ! udpsink
>> >> host=127.0.0.1 port=40000
>> >>
>> >> client:
>> >> gst-launch-0.10 -v udpsrc port=40000 caps=
>> >>
>> >>
>> "application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264,payload=(int)96"
>> >> ! rtph264depay ! ffdec_h264 ! xvimagesink
>> >>
>> >>
>> > These pipelines are working pretty well, both with the standard ubuntu
>> > 10.4
>> > and all the packages aligned with the respective upstream heads. I
>> suggest
>> > you to check your syntax and copy/paste efficiency ;)
>> >
>> > Regards
>> >
>> >
>> >>
>> >> But the same error is still exist. Can you modify my pipeline correct,
>> >> and
>> >> show me.
>> >>
>> >> Thanks.
>> >> --
>> >> View this message in context:
>> >>
>> http://gstreamer-devel.966125.n4.nabble.com/rtp-transmit-occur-not-negotiated-4-error-tp3035468p3035742.html
>> >> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
>> ------------------------------------------------------------------------------
>> >> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
>> >> David G. Thomson, author of the best-selling book "Blueprint to a
>> >> Billion" shares his insights and actions to help propel your
>> >> business during the next growth cycle. Listen Now!
>> >> http://p.sf.net/sfu/SAP-dev2dev
>> >> _______________________________________________
>> >> gstreamer-devel mailing list
>> >> gstreamer-devel at lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>> >>
>> >
>> >
>> ------------------------------------------------------------------------------
>> > The Next 800 Companies to Lead America's Growth: New Video Whitepaper
>> > David G. Thomson, author of the best-selling book "Blueprint to a
>> > Billion" shares his insights and actions to help propel your
>> > business during the next growth cycle. Listen Now!
>> > http://p.sf.net/sfu/SAP-dev2dev
>> > _______________________________________________
>> > gstreamer-devel mailing list
>> > gstreamer-devel at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>> >
>> >
>>
>> --
>> View this message in context:
>> http://gstreamer-devel.966125.n4.nabble.com/rtp-transmit-occur-not-negotiated-4-error-tp3035468p3035787.html
>> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
>> David G. Thomson, author of the best-selling book "Blueprint to a
>> Billion" shares his insights and actions to help propel your
>> business during the next growth cycle. Listen Now!
>> http://p.sf.net/sfu/SAP-dev2dev
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
> 
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a 
> Billion" shares his insights and actions to help propel your 
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> 
> 
http://gstreamer-devel.966125.n4.nabble.com/file/n3037196/log_h263_client.txt
log_h263_client.txt 
-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/rtp-transmit-occur-not-negotiated-4-error-tp3035468p3037196.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list