Discussion:
Rebroadcast an RTP stream as an RTSP stream with Live555?
Suneet Shah
2011-01-20 09:27:16 UTC
Permalink
Hello,

I'm wondering if Live555 media server can help me accomplish the following:


- I'm using gstreamer to create a live video feed encoded in H264, and
then transmitted as RTP packets.
- I need to rebroadcast this stream as RTSP with a properly generated SDP
file, so that it can be viewed on Android


Can Live555 accomplish this? From the website, I couldn't tell if it works
well with live streams, or only with recorded files.

If so, can someone share an example SDP file or provide more instructions on
how to do so?

Thanks in advance,
Suneet
Ross Finlayson
2011-01-20 09:52:14 UTC
Permalink
Post by Suneet Shah
I'm using gstreamer to create a live video feed encoded in H264, and
then transmitted as RTP packets.
I need to rebroadcast this stream as RTSP with a properly generated
SDP file, so that it can be viewed on Android
Can Live555 accomplish this? From the website, I couldn't tell if it
works well with live streams, or only with recorded files.
The supplied code includes demo applications that stream from files;
however, these can be adapted to stream from a live source instead.
See
http://www.live555.com/liveMedia/faq.html#liveInput-unicast

Because your input data is a RTP stream, you could use a
"H264VideoRTPSource" as your 'input device'.

BTW, if you wished, you could also use our code (instead of
'gstreamer') to stream encoded H.264 video via RTP.
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
Suneet Shah
2011-01-20 17:31:27 UTC
Permalink
Thanks a lot Ross.

Can you confirm that others have had success streaming to Android with H264? Android seems extremely particular about RTSP implementations.

I'm using gstreamer to capture a desktop as live video. I can feed it to Live as raw video or encoded-- my goal is to get very low latency so I will try both.

I can also use ffmpeg to create the video stream if others have had success with the combo of ffmpeg and live.


Sent from my mobile device, please excuse poor speling
I'm using gstreamer to create a live video feed encoded in H264, and then transmitted as RTP packets.
I need to rebroadcast this stream as RTSP with a properly generated SDP file, so that it can be viewed on Android
Can Live555 accomplish this? From the website, I couldn't tell if it works well with live streams, or only with recorded files.
The supplied code includes demo applications that stream from files; however, these can be adapted to stream from a live source instead. See
http://www.live555.com/liveMedia/faq.html#liveInput-unicast
Because your input data is a RTP stream, you could use a "H264VideoRTPSource" as your 'input device'.
BTW, if you wished, you could also use our code (instead of 'gstreamer') to stream encoded H.264 video via RTP.
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
_______________________________________________
live-devel mailing list
http://lists.live555.com/mailman/listinfo/live-devel
Ross Finlayson
2011-01-21 02:06:07 UTC
Permalink
Post by Suneet Shah
Can you confirm that others have had success streaming to Android with H264?
No, it's up to 'others' to report any problems that they may have had
with Android clients playing streaming from LIVE555 servers.

The only such report that I've seen so far was one - last Sunday -
that claimed that an Android RTSP/RTP client did not handle the
static RTP payload type 33 (meaning: MPEG Transport Stream data). I
responded, pointing out that this client was not standards-compliant,
and needed to be fixed.
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
Suneet Shah
2011-01-21 10:35:02 UTC
Permalink
Nevermind-- apparently I was using a video resolution that would not work
with Android.

I tried again using a new .264 file with a lower resolution (320 x 240)---
and it works.
Hi Ross,
- .264 file (stream plays in VLC)
- .m4e file (stream plays in VLC)
Neither of these play on Android. Unfortunately, Android only supports H264
in an MP4 or 3GPP container.
Is there a way to stream this with Live555? When I tried streaming an mp4
file (e.g. H264 In MPEG4), it did not work.. Unfortunately, Android only has
native support for H.263/264 in MPEG4/3GPP.
Thanks,
Suneet
Post by Suneet Shah
Can you confirm that others have had success streaming to Android with
H264?
No, it's up to 'others' to report any problems that they may have had with
Android clients playing streaming from LIVE555 servers.
The only such report that I've seen so far was one - last Sunday - that
claimed that an Android RTSP/RTP client did not handle the static RTP
payload type 33 (meaning: MPEG Transport Stream data). I responded,
pointing out that this client was not standards-compliant, and needed to be
fixed.
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
_______________________________________________
live-devel mailing list
http://lists.live555.com/mailman/listinfo/live-devel
Loading...