Some Basic questuions

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

Some Basic questuions

Manish Rana
Hi all,

Some inputs will be helpful.

1. Can we have 2 Sinks in same pipeplie
e.g. element wiit 2 source pads____Sink1
         |________________________ Sink2
but both the sinks are in same bin.

2 Can we have 2 sources in the same pipeline??

3 In gst-launch if i give gst-launch filesrc location=$test ! fakesink filesrc location=$test2 | fakesink

It works but how gst-launch handles??
What to do to write a test application in C to get similar behaviour.

Input are welcome.
Please Help.... :)

Thnaks & Regs
Manish


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Some Basic questuions

Ramana_polaka

1.       you can have  two sinks in same pipeline ( demuxer has video and audio source pads)

Eg:    gst-launch filesrc location= gop.ts ! ffdemux_mpegts name=demux demux. ! queue max-size-buffers=0 ! ffdec_mpeg2video ! xvimagesink demux. ! queue max-size-buffers=0 ! ffdec_mp3 ! alsasink

2.       two sources can be there in same pipeline:

Eg:  while capturing video with audio, you are supposed to have two sources (alsasrc, v4lsrc)

3.       http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/chapter-building-testapp.html

 

--Ramana

 

 

 


From: [hidden email] [mailto:[hidden email]] On Behalf Of Manish Rana
Sent: Wednesday, May 21, 2008 12:12 PM
To: [hidden email]
Subject: [gst-devel] Some Basic questuions

 

Hi all,

Some inputs will be helpful.

1. Can we have 2 Sinks in same pipeplie
e.g. element wiit 2 source pads____Sink1
         |________________________ Sink2
but both the sinks are in same bin.

2 Can we have 2 sources in the same pipeline??

3 In gst-launch if i give gst-launch filesrc location=$test ! fakesink filesrc location=$test2 | fakesink

It works but how gst-launch handles??
What to do to write a test application in C to get similar behaviour.

Input are welcome.
Please Help.... :)

Thnaks & Regs
Manish

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Some Basic questuions

Manish Rana
In reply to this post by Manish Rana
Hi,

I have 1 confusion regarding RTP if someone could help.
1. Where does NTP sit in the current gstrtpbin arch.
2. How do i get the clock-base time at the receiver end.
       a. Is it through SDP?
       b. Is there any other way possible ??( If yes Please let me know)
3. Will clock-base be used for AV sync ??

Best Regards
Manish Kumar



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Some Basic questuions

Wim Taymans
On Tue, 2008-06-17 at 11:02 +0530, Manish Rana wrote:
> Hi,
>
> I have 1 confusion regarding RTP if someone could help.
> 1. Where does NTP sit in the current gstrtpbin arch.

gstrtpbin keeps and sets an NTP time on the session managers so that
they can generate SR RTCP packets for the receivers. Roughly, the buffer
timestamps are added to the NTP base time to get an NTP-RTP timestamp
pair that is sent to the receiver in SR packets. Since all session
managers have the same NTP base time and the timestamps (+segments)
define interstream sync at the gstreamer level, SR packets from
different sessions can be synced together at the receiver. (grep for ntp
in gstrtpbin.c and gstrtpsession.c to see how this is done).

When receiving SR packets, the NTP times are used together with the RTP
timestamps to align streams from multiple sessions. The algorithm is
explained in the RTP book by Colin Perkins, Chapter 7. The code for this
in gstrtpbin.c is in gst_rtp_bin_associate().


> 2. How do i get the clock-base time at the receiver end.
>        a. Is it through SDP?

Usually not, I have never seen that nor any RFC that defines this. It
would also require the SDP to be generated dynamically, which is usually
not the case.

>        b. Is there any other way possible ??( If yes Please let me
> know)

clock-base is mapped to the RTSP rtptime property in the RTP-Info Header
field from the RTP PLAY request. It's very RTSP specific, I've never
seen it outside of an RTSP context.

> 3. Will clock-base be used for AV sync ??

If specified it will be used to synchronize steams before the first SR
packet has arrived. It's a quick way to get synchronized streams without
having to rely on SR packets.

Regards,
Wim

>
> Best Regards
> Manish Kumar
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel