[gst-devel] problem with pa_stream_make_writeable_size() failed connection terminated

Nathanael D. Noblet nathanael at gnat.ca
Wed Jan 26 07:22:28 CET 2011


Hello Everyone,

   So I've built an application based on gstreamer that's been working 
well so far. I've recently run into an issue that I don't understand. 
I'm hoping someone here will know what I should look at.

   So I read from an IP camera via rtspsrc. It sends video in MP4 format 
and Audio in AAC. We're running a beta with our client and recently 
after installing it on location I've run into issues with one location. 
After 5-9 seconds I get

pa_stream_make_writeable_size() failed connection terminated

this causes the stream to pause if I'm recording, but not if I'm just 
viewing.

After taking a look I found the following differences. The cameras that 
worked were set to have audio at 96Kbps vs 16Kbps. I only noticed when I 
compared the caps that each pad-added pad from the decoder had.

The one that has the problem was:

application/x-rtp, media=(string)audio, payload=(int)97, 
clock-rate=(int)16000, encoding-name=(string)MPEG4-GENERIC, 
encoding-params=(string)2, streamtype=(string)5, 
profile-level-id=(string)15, mode=(string)AAC-hbr, config=(string)1410, 
sizelength=(string)13, indexlength=(string)3, 
indexdeltalength=(string)3, ctsdeltalength=(string)0, 
dtsdeltalength=(string)0, a-charset=(string)Shift_JIS, 
a-etag=(string)1234567890, clock-base=(uint)0, seqnum-base=(uint)0, 
npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1;

and the one that worked:
application/x-rtp, media=(string)audio, payload=(int)97, 
clock-rate=(int)44100, encoding-name=(string)MPEG4-GENERIC, 
encoding-params=(string)2, streamtype=(string)5, 
profile-level-id=(string)15, mode=(string)AAC-hbr, config=(string)1210, 
sizelength=(string)13, indexlength=(string)3, 
indexdeltalength=(string)3, ctsdeltalength=(string)0, 
dtsdeltalength=(string)0, a-charset=(string)Shift_JIS, 
a-etag=(string)1234567890, clock-base=(uint)0, seqnum-base=(uint)0, 
npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1;

A diff of the two was what tipped me off to the difference between the 
two cameras:

@@ -1,13 +1,13 @@
  Structure application/x-rtp,
  media=(string)audio,
  payload=(int)97,
-clock-rate=(int)16000,
+clock-rate=(int)44100,
  encoding-name=(string)MPEG4-GENERIC,
  encoding-params=(string)2,
  streamtype=(string)5,
  profile-level-id=(string)15,
  mode=(string)AAC-hbr,
-config=(string)1410,
+config=(string)1210,
  sizelength=(string)13,
  indexlength=(string)3,
  indexdeltalength=(string)3,


Once I changed the settings on the camera it started working again, 
lowering the bitrate causes the error again.

So I'm at a total loss as to what the error I get about 
pa_stream_make_writeable_size() has to do with the audio bitrate.

I'm *really* hoping someone could shed some light on this so I can 
understand what the issue is and how to work around it.

-- 
Nathanael d. Noblet





More information about the gstreamer-devel mailing list