<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-IN link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Further pipeline simplification<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>gst-launch \<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>v4l2src device=/dev/video1 ! \<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>'video/x-raw-yuv,format=(fourcc)YUY2,width=640,height=480,framerate=30/1' ! \<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>fakesink &<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>this pipeline is also creating two <b>/dev/video1 </b>Fds.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I need both fds.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Keyur Patel<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> gstreamer-devel-bounces@lists.freedesktop.org [mailto:gstreamer-devel-bounces@lists.freedesktop.org] <b>On Behalf Of </b>Keyur Patel<br><b>Sent:</b> 04 January 2014 06:37<br><b>To:</b> gstreamer-devel@lists.freedesktop.org<br><b>Subject:</b> Problem in getting File descriptor from pipeline<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have pipeline as mentioned below<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> /*Local video stream chaine*/<o:p></o:p></p><p class=MsoNormal> gst_bin_add_many( GST_BIN( video_pipeline_tx ), source, capsfilter, ffmpegcsd, ffcapsfiler, videoflip, videosink, NULL);<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> /*Link the differents elements*/<o:p></o:p></p><p class=MsoNormal> ret = gst_element_link_many( source, capsfilter, ffmpegcsd, ffcapsfiler, videoflip, videosink, NULL);<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> GstPad* data_pad = gst_element_get_static_pad (videoflip, "src");<o:p></o:p></p><p class=MsoNormal> gst_pad_add_buffer_probe (data_pad, G_CALLBACK (gst_frame_data), this);<o:p></o:p></p><p class=MsoNormal> gst_object_unref (data_pad);<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>where source is <b>“v4l2src” /dev/video0<o:p></o:p></b></p><p class=MsoNormal><b><o:p> </o:p></b></p><p class=MsoNormal>in normal pipeline PLAY state my application is opening two fd instants of /dev/video0 (checked by ls -l /proc/pid/fd)<o:p></o:p></p><p class=MsoNormal>and after pipeline PAUSE state it close these two fds.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I want these two fds from code.<o:p></o:p></p><p class=MsoNormal>I have successfully get first fd by using <o:p></o:p></p><p class=MsoNormal><b>g_object_get(source, "device-fd", &my_fd, NULL);<o:p></o:p></b></p><p class=MsoNormal><b><o:p> </o:p></b></p><p class=MsoNormal>now i am unable to get 2<sup>nd</sup> fd, Can you please tell me why this 2<sup>nd</sup> FD is open? Also i need its File descriptor.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks in advance, Please help<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Regards,<o:p></o:p></p><p class=MsoNormal>Keyur Patel<o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br>************************************************************************************************************************************************************* <o:p></o:p></span></p><p><b>eInfochips Business Disclaimer</b>: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spr ead of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email.<o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>************************************************************************************************************************************************************* <o:p></o:p></span></p><table class=MsoNormalTable border=0 cellpadding=0><tr><td style='background:white;padding:.75pt .75pt .75pt .75pt'><pre><span style='color:black'>---------------------------------------------------------------------------------------------<o:p></o:p></span></pre><pre><span style='color:black'>Notice: <o:p></o:p></span></pre><pre><span style='color:black'>This message has been scanned by Trend Micro Mail Security scanner and is believed to be clean<o:p></o:p></span></pre><pre><span style='color:black'>---------------------------------------------------------------------------------------------<o:p></o:p></span></pre></td></tr></table><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";display:none'><o:p> </o:p></span></p><table class=MsoNormalTable border=0 cellpadding=0><tr><td style='background:white;padding:.75pt .75pt .75pt .75pt'><pre><span style='color:black'>---------------------------------------------------------------------------------------------<o:p></o:p></span></pre><pre><span style='color:black'>Notice: <o:p></o:p></span></pre><pre><span style='color:black'>This message has been scanned by Trend Micro Mail Security scanner and is believed to be clean<o:p></o:p></span></pre><pre><span style='color:black'>---------------------------------------------------------------------------------------------<o:p></o:p></span></pre></td></tr></table><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p></div>
<br>*************************************************************************************************************************************************************
<p align="justify"><b>eInfochips Business Disclaimer</b>: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spr
ead of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email.</p>
*************************************************************************************************************************************************************
<br></body></html>
<table><tr><td bgcolor=#ffffff><font color=#000000><pre>---------------------------------------------------------------------------------------------
Notice:
This message has been scanned by Trend Micro Mail Security scanner and is believed to be clean
---------------------------------------------------------------------------------------------</pre></font></td></tr></table>