<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><font color="#000000" style="background-color:rgb(255,255,255)">Hi Guys,</font><div><font color="#000000" style="background-color:rgb(255,255,255)">  </font></div><div><font color="#000000" style="background-color:rgb(255,255,255)">   We used gstreamer to play dvd,and we have met some problems :</font></div><div><font color="#000000">The screen is dazzling when we playbing dvd. We find that before the "video-output-bin" there is no "deinterlace" bin so that we add this bin </font><span style="color:rgb(67,67,67);font-family:Arial,sans-serif;line-height:24px">manually </span><span style="color:rgb(0,0,0)">to gstreamer pipeline.</span></div><div><span style="color:rgb(0,0,0)">And then we can play the dvd normally.</span></div><div><font color="#000000" style="background-color:rgb(255,255,255)">But we found there is no subtitle when playing dvd following. Firstly ,we check the gstreamer use the commad </font><span style="color:rgb(0,0,0)">line:</span></div><div><font color="#000000" style="background-color:rgb(255,255,255)">gst-launch-1.0 playbin uri=dvd://current-text=1</font></div><div><font color="#000000" style="background-color:rgb(255,255,255)">Happily, we can see the subtitle now and everthing is ok.</font></div><div><font color="#000000" style="background-color:rgb(255,255,255)">However, We change the following gstreamer source code (Adding </font><span style="color:rgb(0,0,0)">GST_PLAY_FLAG_TEXT</span><font color="#000000">)to open subtitle flag switch </font><span style="color:rgb(0,0,0)">and using a  dvd-app which made by QT to play dvd</span><span style="color:rgb(0,0,0)">:</span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><font color="#000000" style="background-color:rgb(255,255,255)">int flags = GST_PLAY_FLAG_VIDEO | GST_PLAY_FLAG_AUDIO;</font></div><div><font color="#000000" style="background-color:rgb(255,255,255)">int flags = GST_PLAY_FLAG_VIDEO | GST_PLAY_FLAG_AUDIO |GST_PLAY_FLAG_TEXT;</font></div><div><font color="#000000" style="background-color:rgb(255,255,255)"><br></font></div><div><font color="#000000" style="background-color:rgb(255,255,255)">The screen is still dazzling .</font></div><div><font color="#000000" style="background-color:rgb(255,255,255)">we  compare the two ways  by scripts ,we found that:</font></div><div><font color="#000000" style="background-color:rgb(255,255,255)">In QT dvd-app playing </font><span style="color:rgb(0,0,0)">scripts</span><font color="#000000" style="background-color:rgb(255,255,255)"> ,"</font><span style="color:rgb(0,0,0)">deinterlace" bin was before  </span><span style="color:rgb(0,0,0)">"video-output-bin" and "tbin".</span></div><div><span style="color:rgb(0,0,0)">In gstreamer playbin </span><span style="color:rgb(0,0,0)">scripts</span><span style="color:rgb(0,0,0)"> ,</span><font color="#000000">"</font><span style="color:rgb(0,0,0)">deinterlace" bin </span><span style="color:rgb(0,0,0)">was after  </span><span style="color:rgb(0,0,0)">"video-output-bin" and "tbin".</span></div><div><span style="color:rgb(0,0,0)">I wonder the gstreamer "deinterlace" bin is autoload but not loaded manually.</span></div><div><span style="color:rgb(0,0,0)">  </span></div><div><span style="color:rgb(0,0,0)">   And can you tell me how to get subtitle by app?</span></div><div><span style="color:rgb(0,0,0)">Any reply is appreciative ! Thanks a lot.</span></div><div><span style="color:rgb(0,0,0)"><br></span></div></div>
</div><br></div>