<div dir="ltr"><div><div>Like most things, answering questions is not as simple as a you are right or you are wrong. <br></div>Even typing out a 2 liner answer may have much more behind it. But to the problem:<br><br></div><div>Using the discoverer i can see that your file duration is: 0:00:00.400000000. So as you stated,<br></div><div>the video duration is wrong. Using playbin gives the same results as VLC:<br><br>gst-launch-1.0 playbin uri=file:///path/to/file//2017.02.03\ 13.53.34.mkv <br><br></div><div>So you can use that for playing the video. However, your original message was about duration<br></div><div>queries. And the reason the duration query is incorrect is because the file has been encoded<br></div><div>with that duration. <br><br><br></div><div>For future reference a description of your entire pipeline would help us to understand <br></div><div>what you are doing. If you want help fixing the file I would suggest writing a gst-launch<br></div><div>like description of the encoding pipe so we can see why there is a problem with the generated file.<br><br><br></div><div>Dimitrios</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 10, 2017 at 8:58 AM, Mikl <span dir="ltr"><<a href="mailto:michael.yarochkin@timetronics.be" target="_blank">michael.yarochkin@timetronics.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div id="m_-7930411796298129353divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<div id="m_-7930411796298129353divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">Hello, Dimitros</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">Thank you for the answer.</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">Long story short:</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">I am recording video and subtitles from appsrc in MKV container.</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">In VLS video is full, but i don`t see length. <span style="font-size:12pt">So, it is corrupted. I did not handle EOS correctly. This i know.</span></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">But my question is "how to do the same as VLC".</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">Can you help me? Do you need more details? My source code? Video file?</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><span style="font-size:12pt">PS</span></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><span style="font-size:12pt"><br>
</span></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><span style="font-size:12pt">I am only half year busy with GStreamer. Of course my questions are "<span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">something
 very generic</span>". I know concept, understand idea, but don`t familiar with details and can </span><span style="font-size:12pt">stuck </span><span style="font-size:12pt">on simple thing</span><span style="font-size:12pt">.</span><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><font face="Calibri, Arial, Helvetica, sans-serif">How i can stop asking them without You help? You are THE ONLY source of information.</font><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">What information do you need to from me "help me to find direction to solution"?</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">You will never know it without asking. Yes?</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">Even "try this..." can help.</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">PPS</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">My question was 2 weeks on board and already on second page. it was 13 views and no reaction.</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><span style="font-size:12pt">And you see reaction after offer to kill someone. <img class="m_-7930411796298129353EmojiInsert" id="m_-7930411796298129353OWAEmoji993406" alt="😊" style="vertical-align:bottom" src="http://gstreamer-devel.966125.n4.nabble.com/attachment/4681805/0/%3D%3Futf-8%3FB%3FT3V0bG9va0Vtb2ppLfCfmIoucG5n%3F%3D"></span><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><span style="font-size:12pt">Sorry to do this.</span></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><span style="font-size:12pt"><br>
</span></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><font face="Calibri, Arial, Helvetica, sans-serif"><span style="font-size:12pt">I </span>completely<span style="font-size:12pt"> understand, what every one doing this in free
 time. As a hobby. Do you </span>believe<span style="font-size:12pt">, what i am doing the same. </span>Answering<span style="font-size:12pt"> questions when on this mail list when </span></font><font face="Calibri, Arial, Helvetica, sans-serif">i have
 time and know answer.</font></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><font face="Calibri, Arial, Helvetica, sans-serif">But, as a community we need to help to each other to grow! Isn't it?</font></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><font face="Calibri, Arial, Helvetica, sans-serif"><span style="font-size:12pt">My question is simple. It cost nothing for </span>somebody<span style="font-size:12pt"> who have
 years of </span>experience<span style="font-size:12pt"> </span><span style="font-size:12pt">to say "you are wrong in this. here is the link.</span><span style="font-size:12pt">"</span></font></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><font face="Calibri, Arial, Helvetica, sans-serif">At least how i think and do.</font></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><font face="Calibri, Arial, Helvetica, sans-serif">Sorry for long complain. :)</font></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><font face="Calibri, Arial, Helvetica, sans-serif"><br>
</font></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><font face="Calibri, Arial, Helvetica, sans-serif">Best regards, Mikl</font></p>
<div><font face="Calibri, Arial, Helvetica, sans-serif"><br>
</font></div>
<p></p>
<p><br>
</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-7930411796298129353divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Dimitrios Katsaros [via GStreamer-devel] <ml-node+<a href="http:///user/SendEmail.jtp?type=node&node=4681805&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>><br>
<b>Sent:</b> Thursday, February 9, 2017 4:27:01 PM<br>
<b>To:</b> Michael Yarochkin<br>
<b>Subject:</b> Re: Video duration</font>
<div> </div>
</div>
<div><span class="">
<div dir="ltr">
<div>
<div>Well I hope you are not killing people, that doesn't help you get answers!<br>
<br>
</div>
I would guess that the reason you didn't get an answer is that no one happened to see the question.
<br>
People have jobs and a life and there are a lot of questions posted daily on the mailing list and irc, We<br>
</div>
<div>can't answer everything! <br>
<br>
</div>
<div>As for your question, part of the reason that you are getting no replies is that you are asking something very generic<br>
</div>
<div>that can be attributed to any number of reasons. What kind of pipeline are you using? What kind of pipeline are<br>
</div>
<div>you using to record the file?<br>
</div>
<div><br>
</div>
<div>Dimitrios<br>
</div>
<div><br>
</div>
</div>
</span><div class="gmail_extra"><br>
<div class="gmail_quote"><span class="">On Thu, Feb 9, 2017 at 9:39 AM, Mikl <span dir="ltr"><<a href="http:///user/SendEmail.jtp?type=node&node=4681786&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span> wrote:<br>
</span><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><span class="">
Hello, Readers<br>
<br>
Can you inform me, please, who i need to kill, to attract attention to my<br>
question?<br>
Thank you.<br>
<br>
<a href="http://gstreamer-devel.966125.n4.nabble.com/Wrong-file-duration-td4681702.html" rel="nofollow" link="external" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/Wrong-file-durat<wbr>ion-td4681702.html</a><br>
<br>
Mikl<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Video-duration-tp4681778.html" rel="nofollow" link="external" target="_blank">
http://gstreamer-devel.966125.<wbr>n4.nabble.com/Video-duration-t<wbr>p4681778.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
</span><a href="http:///user/SendEmail.jtp?type=node&node=4681786&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="nofollow" link="external" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>
</blockquote>
</div>
<br>
</div>
<br>
______________________________<wbr>_________________ <br>
gstreamer-devel mailing list <br>
<a href="http:///user/SendEmail.jtp?type=node&node=4681786&i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="nofollow" link="external" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br>
<br>
<hr color="#cccccc" noshade size="1">
<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
<a href="http://gstreamer-devel.966125.n4.nabble.com/Video-duration-tp4681778p4681786.html" rel="nofollow" link="external" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/Video-duration-<wbr>tp4681778p4681786.html</a>
</div>
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To unsubscribe from Video duration, <a rel="nofollow" link="external">
click here</a>.<br>
<a href="http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" link="external" target="_blank">NAML</a>
</div>
</div>
</div>




        
        
        
<br><hr align="left" width="300">
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Video-duration-tp4681778p4681805.html" target="_blank">Re: Video duration</a><div class="HOEnZb"><div class="h5"><br>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/" target="_blank">GStreamer-devel mailing list archive</a> at Nabble.com.<br></div></div><br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div>