RTMP send error 32 on Android
Submitted by Mimmo Grottoli
Link to original bug (#764471)
Description
I'm trying to broadcast video and audio via rtmp from different Android devices, and I'm always getting the following errors:
GStreamer+rtmp E 0:00:05.353780468 0x9f9496f0 :0: WriteN, RTMP send error 32 (136 bytes)
E 0:00:05.353919322 0x9f9496f0 :0: WriteN, RTMP send error 32 (54 bytes)
E 0:00:05.354330259 0x9f9496f0 :0: WriteN, RTMP send error 9 (42 bytes)
GStreamer+rtmpsink W 0:00:05.354410363 0x9f9496f0 gstrtmpsink.c:286:gst_rtmp_sink_render:<rtmpsink0>
error: Failed to write data
I've tried using wowza and youtube as endpoint, but the error is exactly the same.
The pipeline is:
ahcsrc name=cam ! video/x-raw, width=1280, height=720, framerate=(fraction)24/1 \
! videoconvert \
! amcvidenc-omxqcomvideoencoderavc i-frame-interval=24 \
! h264parse \
! tee name=videoTee \
openslessrc ! audioconvert ! queue ! voaacenc \
! tee name=audioTee \
flvmux streamable=true name=flvmux \
! rtmpsink location="rtmp://RTMP_HOST:PORT" \
videoTee. ! queue ! flvmux. \
audioTee. ! queue ! flvmux.
Note:
- The issue does not happen when I use audiotestsrc instead of openslessrc as audiosource
- If I remove the audio part from the pipeline the result is good too
- If I replace flvmux + rtmpsink with mpegtsmux + udpsink I can publish the stream
Version: 1.7.91