How to stream a video file from a amazon server using gstreamer to the internet
manickam palaniappan
manickam79 at yahoo.com
Sun Mar 9 07:08:23 PDT 2014
Ok. I tried that. And here is the output. Pls help to fix what is wrong
Progress: (connect) Connecting to rtspt://10.185.10.118:8555/test
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
** (lt-test-video1:9822): CRITICAL **: could not parse launch syntax (( filesrc
location=/home/ubuntu/DELTA.mpg ! mpeg2dec ! x264enc ! rtph264pay name=pay0 pt=9
6)): could not set property "pt" in element "pay0" to "96)"
** (lt-test-video1:9822): CRITICAL **: could not create element
ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSr
c:source: Could not read from resource.
Additional debug info:
gstrtspsrc.c(5151): gst_rtspsrc_send (): /GstPlayBin:playbin0/GstURIDecodeBin:ur
idecodebin0/GstRTSPSrc:source:
Got error response: 400 (Bad Request).
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
(lt-test-video1:9822): GLib-CRITICAL **: unblock_source: assertion `!SOURCE_DEST
ROYED (source)' failed
On Sunday, March 9, 2014 6:22 PM, manickam palaniappan <manickam79 at yahoo.com> wrote:
Hi Tim,
Yes I have used that and am able to stream videotestsrc to internet now. But Iam not able to stream a MPEG-1 ES file although I have done the below stuff: Here is what I have done:
I have found the way to stream the videotestsrc element to the internet by calling these functions in the test-video.c file of gst-rtsp-server examples directory:
gst_rtsp_server_set_address(server,"10.xxx.xx.xxx");
gst_rtsp_server_set_service(server,"8555");
and unblocking the ports in the aws console.
But now replacing videotestsrc with the following in test-video.c, like below:
gst_rtsp_media_factory_set_launch (factory, "( "
"filesrc location=/home/ubuntu/DELTA.mpg ! mpeg2dec ! x264enc ! rtph264pay name=pay0 pt=96 "
")");
I am not able to get the stream visible on the vlc player. It stays without playing for some 20 seconds or so and then plays black screen for a few seconds and then stops.
Trying the below command on AWS server produces following output:
ubuntu at ip-xx-xxx-xx-xxx:~/gst-rtsp-server-1.2.3/examples$ /usr/local/bin/gst-launch-1.0 playbin uri=rtsp://10.xxx.xx.xxx:8555/test
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://10.185.10.118:8555/test
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
(lt-test-video1:9027): GLib-CRITICAL **: unblock_source: assertion `!SOURCE_DEST
ROYED (source)' failed
WARNING: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSP
Src:source: Could not read from resource.
Additional debug info:
gstrtspsrc.c(4367): gst_rtspsrc_reconnect (): /GstPlayBin:playbin0/GstURIDecodeB
in:uridecodebin0/GstRTSPSrc:source:
Could not receive any UDP packets for 5.0000 seconds, maybe your firewall is blo
cking it. Retrying using a TCP connection.
♥handling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:22.473442001
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
ubuntu at ip-10-xxx-xx-xxx:~/gst-rtsp-server-1.2.3/examples$
What am I doing wrong here ?
On Saturday, March 8, 2014 10:21 PM, manickam palaniappan <manickam79 at yahoo.com> wrote:
Hi,
Could somebody pls help me on this:
I had downloaded 1.2.3 version sources of gstreamer and gst-rtsp-server and gst-plugins-base & -good and compiled them and run "sudo make install" and then had a glimpse of examples in gst-rtsp-server sources. But they are all generating a stream at the url rtsp:// 127.0.0.1:8554 /test
What I want to do is stream a video file like mpeg or some other format from the server machine using the gstreamer that has been installed, to the public internet. e.g., I type in my media player the url rtsp://174.132.98.225:8554/my-file
It should stream the file video to my media player. Sombody putting exact steps on this I would very much appreciate.
Thanks,
Manickam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140309/ac371994/attachment.html>
More information about the gstreamer-devel
mailing list