Hi All,
I am having troubles streaming video to vlc player. Please help. I am using leopard board to stream composite In video with gstreamer. I use the following plugin: gst-launch -v -e v4l2src always-copy=FALSE input-src=composite chain-ipipe=true ! video/x-raw-yuv,format=\(fourcc\)NV12, width=640, height=480 ! queue ! dmaiaccel ! dmaienc_h264 encodingpreset=2 ratecontrol=2 intraframeinterval=23 idrinterval=46 targetbitrate=3000000 ! rtph264pay ! udpsink port=3000 host=192.168.1.102 sync=false enable-last-buffer=false
I have created an sdp file on my client side: v=0 o=- 2110055936 1 IN IP4 192.168.1.102 s=Gstreamer
i=Streaming via network test c=IN IP4 192.168.1.101 t=0 0 a=type:broadcast
m=video 3000 RTP/AVP 96 a=rtpmap:96 H264/90000 when I double click on this file in vlc, nothing is being played. Though I feel something is being received because when I check the message window, I get the following warning:
packetizer_h264 warning: waiting for SPS/PPS Can any one please help as to what is going wrong? What changes I need to make in my SDP file.
-- Thank you & Regards, Mazahir Poonawalla _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
sdp for h264 video needs profile-level-id and sprop-parameter-sets parameters. This is generated by the h264 encoder. How exactly you get it out of the gst graph I'm not sure, but playback wil not work without it.
Sergej
On Thu, Aug 16, 2012 at 9:41 AM, Mazahir Poonawalla <[hidden email]> wrote: Hi All, _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi,
Thanks for the reply. the caps after applying the below plugin are: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)\"Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQFAeyA\\,aO48sA\\=\\=\", payload=(int)96, ssrc=(uint)3815007218, clock-base=(uint)3201629907, seqnum-base=(uint)59072 What exactly do i need to put in the sdp file. Can you give me an example. Thanks, Mazahir On 16 August 2012 14:56, Rapsey <[hidden email]> wrote: sdp for h264 video needs profile-level-id and sprop-parameter-sets parameters. This is generated by the h264 encoder. How exactly you get it out of the gst graph I'm not sure, but playback wil not work without it. Thank you & Regards, Mazahir Poonawalla ideaForge Technology Pvt. Ltd. | Board: +91 22 2767 0001; +91 22 2767 0707 | [hidden email] |www.ideaforge.co.in P Please consider the environment before printing this e-mail _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi,
I applied the sprop-parameter-sets as well. Now my sdp file is: v=0 o=- 2110055936 1 IN IP4 192.168.1.102
s=Gstreamer i=Streaming via network test c=IN IP4 192.168.1.101 t=0 0
a=type:broadcast m=video 3000 RTP/AVP 96 a=rtpmap:96 H264/90000 a=cliprect:0,0,480,640
a=framesize:96 640-480 a=tool:Gstreamer a=fmtp:96 profile-level-id=0; sprop-parameter-sets=(string)\"Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQFAeyA\\,aO48sA\\=\\=\"
However nothing is being displayed and I still get the same warning when I double click on the sdp file: packetizer_h264 warning: waiting for SPS/PPS
On 16 August 2012 15:07, Mazahir Poonawalla <[hidden email]> wrote: Hi, Thank you & Regards, Mazahir Poonawalla ideaForge Technology Pvt. Ltd. | Board: +91 22 2767 0001; +91 22 2767 0707 | [hidden email] |www.ideaforge.co.in P Please consider the environment before printing this e-mail _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Mazahir,
You might want to ask this on the gstreamer TI forums as well since you're using, I'm assuming, an TI SoC. A while back, I know for the Davinci H.264 encoders the SPS was sent only once at the begin of the encode, so any clients that connected later just missed out and wouldn't connect without a good sdp file. I believe with some tweaking the encoder can be forced to send it out periodically so you wouldn't have to define it in your sdp file. Post your question there as well. It's at https://gstreamer.ti.com/gf/project/gstreamer_ti/forum/?action=ForumBrowse&forum_id=187 Emile On 8/16/2012 2:41 AM, Mazahir Poonawalla wrote: Hi, -- Emile Semmes Owner / Software Consultant e6 Group, LLC Office: (630) 376-0626 www.e6group.com Skype: Emile.Semmes LinkedIn: http://www.linkedin.com/pub/emile-semmes/3/646/570 Guru.com: http://www.guru.com/freelancers/e6group m _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
... Right after I sent this, I realized
you just copy/pasted your sprop-parameter-sets string into your
sdp. You need to take out the Gstreamer formating and escape
characters for it to work, ie.
a=fmtp:96
sprop-parameter-sets=Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQFAeyA\,aO48sA\=\=
Emile On 8/18/2012 11:39 PM, Emile Semmes wrote:
-- Emile Semmes e6 Group, LLC www.e6group.com LinkedIn: http://www.linkedin.com/pub/emile-semmes/3/646/570 Guru.com: http://www.guru.com/freelancers/e6group _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Thanks folks.. I had my setup running in a day- composite video encoded in .264 and played over network on VLC player. Thanks a lot N.Kartik Senior Developer | Renu Electronics Pvt. Ltd.
On Sun, Aug 19, 2012 at 12:16 PM, Emile Semmes <[hidden email]> wrote:
Believe in your dreams, they have a strange way of coming true!!! _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Thanks Emile,
Yes it is working over network on VLC player now. Though there is a delay. Any answers to that? Kartik do you have any delay in your video. How did you fix it? Also, since it is working on VLC now over network. Thats not my final aim. What I am looking at is to capture the buffer, decode it and pass the frames across to another application. Any idea as to how will I capture the incoming RTP buffer on windows?
Thanks,
Mazahir On 20 August 2012 19:19, kartik natarajan <[hidden email]> wrote:
Thank you & Regards, Mazahir Poonawalla ideaForge Technology Pvt. Ltd. | Board: +91 22 2767 0001; +91 22 2767 0707 | [hidden email] |www.ideaforge.co.in P Please consider the environment before printing this e-mail _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Mazahir,
My application is limited to playing the video across the network only. But yes I am seeing about 2 seconds delay in the video and it is just too annoying. I shall be running some bandwidth tests to understand the reason, though my preliminary guess is that the software decoders in the player may be causing the delay.
On Wed, Aug 22, 2012 at 3:22 PM, Mazahir Poonawalla <[hidden email]> wrote: Thanks Emile, Believe in your dreams, they have a strange way of coming true!!! _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Mazahir Poonawalla
Mazahir,
As for the delay, VLC typically has a 300ms to 1sec delay but it depends on your version. To change it, when you go to Open Media/Network, select the Show More Options box and reduce caching to a smaller number. I think we should refrain from VLC talk lest the Gstreamer gods strike down this thread for our blasphemy ;) Post this over in the Gforge forums and you'll get a bit more general support there as well. Emile On 8/22/2012 2:52 AM, Mazahir Poonawalla wrote: Thanks Emile, _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |