transmit video stream- example doesn't work

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

transmit video stream- example doesn't work

userAr
Hi,

Im trying to send video+audio stream via rtp. and open it with another pc via VLC.
I have tried to play two examples: test-launch.c, test-mp4.c.

1) when I try to launch test-launch.c with:  ./test-launch.c movie.MP4

   on the server i get this error:
          ** (vaexe:24556): CRITICAL **: could not parse launch syntax (movie.MP4): Unrecoverable syntax error while  parsing     pipeline movie.MP4
          ** (vaexe:24556): CRITICAL **: could not create element

  on the VLC client i get this error:
       your input can't be opened:
       Following address was not opened by VLC 'rtsp://192.168.1.22:8554/name' please refer to the log for details


2) when I try to launch  test-mp4.c with:  ./test-mp4.c movie.MP4,

   on the server i get this error:
(test-mp4exe:24739): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
** (testmp4exe:24739): CRITICAL **: gst_rtsp_media_factory_get_auth: assertion `GST_IS_RTSP_MEDIA_FACTORY (factory)' failed

   on the VLC client i get this error:
your input can't be opened:
Following address was not opened by VLC 'rtsp://192.168.1.22:8554/name' please refer to the log for details

I didn't change anything in the code, except the line:
/* attach the test factory to the /test url */
  gst_rtsp_media_mapping_add_factory (mapping, "/name", factory);  (instead of "/test")


if someone know what am I doing wrong it will be great!

thanks.




Reply | Threaded
Open this post in threaded view
|

Re: transmit video stream- example doesn't work

Sebastian Dröge-3
On Sa, 2014-01-25 at 03:14 -0800, d wrote:
> Hi,
>
> Im trying to send video+audio stream via rtp. and open it with another pc
> via VLC.
> I have tried to play two examples: test-launch.c, test-mp4.c.
>
> 1) when I try to launch test-launch.c with:  *./test-launch.c movie.MP4*
>
> [...]

Try running test-launch without parameters, it tells you what is wrong.
You have to provide a special pipeline string as parameter to
test-launch, e.g.

./test-launch "( videotestsrc ! x264enc ! rtph264pay name=pay0 pt=96 )"

It must be a bin, and there must be RTP payloaders in the end with names
pay0 to payN

> 2) when I try to launch  test-mp4.c with: * ./test-mp4.c movie.MP4,*
>
> [...]

I don't know what is wrong here, test-mp4 works the way you call it...
assuming you have AAC and h264 inside the MP4 file. Do you? Does that
happen with every file? Which versions of gstreamer and gst-rtsp-server
are you using?

Would be good to get a debug log of this if it still happens with the
latest version.

--
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: transmit video stream- example doesn't work

userAr
Im using the latest version fg gstreamer.

about test-launch:

    this is the command from the server:   ./test-launch "( videotestsrc ! x264enc ! rtph264pay name=pay0 pt=96 )"
    this is the command from the client:   gst-launch-0.10 rtspsrc location=rtsp://127.0.0.1:8554/test

    this is the log from the client:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.
Additional debug info:
gstrtspsrc.c(4860): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Got error response: 503 (Service Unavailable).
Execution ended after 24514152 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...






Reply | Threaded
Open this post in threaded view
|

Re: transmit video stream- example doesn't work

userAr
In reply to this post by Sebastian Dröge-3
2) about the test-mp4:
this is the command from the server:  ./test-mp4 movie.mp4
the command from the client  gst-launch-0.10 rtspsrc location=rtsp://127.0.0.1:8554/test

the error from the server:
(test-mp4:4626): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

** (test-mp4:4626): CRITICAL **: gst_rtsp_media_factory_get_auth: assertion `GST_IS_RTSP_MEDIA_FACTORY (factory)' failed
GLib (gthread-posix.c): Unexpected error from C library during 'pthread_mutex_lock': Invalid argument.  Aborting.
Aborted (core dumped)


the error from the client:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.
Additional debug info:
gstrtspsrc.c(4589): gst_rtspsrc_try_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive message. (System error: Connection refused)
Execution ended after 104924471 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...


thank you!!

Reply | Threaded
Open this post in threaded view
|

Re: transmit video stream- example doesn't work

Sebastian Dröge-3
In reply to this post by userAr
On So, 2014-01-26 at 05:25 -0800, d wrote:
> Im using the latest version fg gstreamer.
>
> about test-launch:
>
>     this is the command from the server:   ./test-launch "( videotestsrc !
> x264enc ! rtph264pay name=pay0 pt=96 )"
>     this is the command from the client:   gst-launch-0.10 rtspsrc
> location=rtsp://127.0.0.1:8554/test

You're using GStreamer 0.10, that's an old version. 1.2.2 is the latest
stable release. Please try with that and a gst-rtsp-server that uses 1.x
too.

Does gst-launch-1.0 videotestsrc ! x264enc ! queue ! decodebin ! videoconvert ! autovideosink
work for you (after upgrading GStreamer)?

--
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: transmit video stream- example doesn't work

userAr
Im kind of new with ubuntu..

this is the command I installed 1.x
sudo add-apt-repository ppa:gstreamer-developers/ppa
sudo apt-get update
sudo apt-get install gstreamer1.0*

is o.k? be cause after that i tried to launch
server: gst-launch-1.0 videotestsrc ! x264enc ! queue ! decodebin ! videoconvert ! autovideosink
client: gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test

on the server nothing happens:

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Redistribute latency...


on the client I get:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://127.0.0.1:8554/test
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading and writing.
Additional debug info:
gstrtspsrc.c(5746): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Failed to connect. (Generic error)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...


Reply | Threaded
Open this post in threaded view
|

Re: transmit video stream- example doesn't work

userAr
can you help me with the steps of updating it? thank you very much!!
Reply | Threaded
Open this post in threaded view
|

Re: transmit video stream- example doesn't work

userAr
In reply to this post by userAr
now I cant even run the old projects....

 ./test-uri  gives me error:

./test-uri: error while loading shared libraries: libgstrtspserver-0.10.so.0: cannot open shared object file: No such file or directory
Reply | Threaded
Open this post in threaded view
|

Re: transmit video stream- example doesn't work

pankaj Bhardwaj
In reply to this post by userAr
could you please let me know from where i can download test-mp4 file ?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel