How to use ahcsrc to obtain Camera videos on Android and then perform rtsp streaming?

Hi,

How to use ahcsrc to obtain Camera videos on Android and then perform rtsp streaming?
Can you give an example? Thank you for any response.

This is how I use it:“ahcsrc ! x264enc ! rtph264pay pt=96 name=pay0”
Always failed.
But I can saw a Green icon in status bar in the upper right corner of the screen. When clicked it will prompt"Being used by …".

I received the following log:
E/GStreamer+rtspclient: 0:00:24.710545095 0xb4000072e36e5aa0 …/gst/rtsp-server/rtsp-client.c:1115:find_media client 0xb4000073435b4130: can’t prepare media

I/GLib+stdout: RTSP response message 0x713a3bd7d0
I/GLib+stdout: status line:
I/GLib+stdout: code: ‘503’
I/GLib+stdout: reason: ‘Service Unavailable’
I/GLib+stdout: version: ‘1.0’
I/GLib+stdout: headers:
I/GLib+stdout: key: ‘CSeq’, value: ‘3’
I/GLib+stdout: key: ‘Server’, value: ‘GStreamer RTSP server’

BRs,
Nancy

Do you need a sink? I guess you want to stream to network. In Linux, my stream pipeline uses udpsink with local host. Maybe try a pipeline on Linux first and get familiar with stream pipelines. Then make your pipeline for Android.

Thank you for your help.

I will try to add udpsink .

BRs,
Nancy