Video duration
Michael Yarochkin
michael.yarochkin at timetronics.be
Fri Feb 10 10:51:32 UTC 2017
Hello, Demitrios
Thank you for answer.
Ok. So, playbin can "see" all frames. This is already good news. Thank you.
However, i can not use it in my app. I need more control on a stream.
Yes, my original question was about duration. Because that what i need to continue working with file.
-It is a way to get duration from "not finished" file?
-Now playbin doing this?
Encoding pipeline is:
appsrc ! videoconvert ! jpegenc ! matroskamux ! filesink
Decoding pipeline is:
filesink ! matroskademux ! queue ! jpegdec ! videoconvert ! jpegenc ! appsink
My problem is in not correct handling of EOS. Sometimes, my app is not working well and i have files like this. You can name it bag.
But in any way i need to be able to process this files.
Can you help me, please?
Do you need more information from me?
Thank you in advance.
Mikl
________________________________
From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> on behalf of Dimitrios Katsaros <patcherwork at gmail.com>
Sent: Friday, February 10, 2017 10:09:07 AM
To: Discussion of the development of and with GStreamer
Subject: Re: Video duration
Like most things, answering questions is not as simple as a you are right or you are wrong.
Even typing out a 2 liner answer may have much more behind it. But to the problem:
Using the discoverer i can see that your file duration is: 0:00:00.400000000. So as you stated,
the video duration is wrong. Using playbin gives the same results as VLC:
gst-launch-1.0 playbin uri=file:///path/to/file//2017.02.03\ 13.53.34.mkv
So you can use that for playing the video. However, your original message was about duration
queries. And the reason the duration query is incorrect is because the file has been encoded
with that duration.
For future reference a description of your entire pipeline would help us to understand
what you are doing. If you want help fixing the file I would suggest writing a gst-launch
like description of the encoding pipe so we can see why there is a problem with the generated file.
Dimitrios
On Fri, Feb 10, 2017 at 8:58 AM, Mikl <michael.yarochkin at timetronics.be<mailto:michael.yarochkin at timetronics.be>> wrote:
Hello, Dimitros
Thank you for the answer.
Long story short:
I am recording video and subtitles from appsrc in MKV container.
In VLS video is full, but i don`t see length. So, it is corrupted. I did not handle EOS correctly. This i know.
But my question is "how to do the same as VLC".
Can you help me? Do you need more details? My source code? Video file?
PS
I am only half year busy with GStreamer. Of course my questions are "something very generic". I know concept, understand idea, but don`t familiar with details and can stuck on simple thing.
How i can stop asking them without You help? You are THE ONLY source of information.
What information do you need to from me "help me to find direction to solution"?
You will never know it without asking. Yes?
Even "try this..." can help.
PPS
My question was 2 weeks on board and already on second page. it was 13 views and no reaction.
And you see reaction after offer to kill someone. [??]
Sorry to do this.
I completely understand, what every one doing this in free time. As a hobby. Do you believe, what i am doing the same. Answering questions when on this mail list when i have time and know answer.
But, as a community we need to help to each other to grow! Isn't it?
My question is simple. It cost nothing for somebody who have years of experience to say "you are wrong in this. here is the link."
At least how i think and do.
Sorry for long complain. :)
Best regards, Mikl
________________________________
From: Dimitrios Katsaros [via GStreamer-devel] <ml-node+[hidden email]<http:///user/SendEmail.jtp?type=node&node=4681805&i=0>>
Sent: Thursday, February 9, 2017 4:27:01 PM
To: Michael Yarochkin
Subject: Re: Video duration
Well I hope you are not killing people, that doesn't help you get answers!
I would guess that the reason you didn't get an answer is that no one happened to see the question.
People have jobs and a life and there are a lot of questions posted daily on the mailing list and irc, We
can't answer everything!
As for your question, part of the reason that you are getting no replies is that you are asking something very generic
that can be attributed to any number of reasons. What kind of pipeline are you using? What kind of pipeline are
you using to record the file?
Dimitrios
On Thu, Feb 9, 2017 at 9:39 AM, Mikl <[hidden email]<http:///user/SendEmail.jtp?type=node&node=4681786&i=0>> wrote:
Hello, Readers
Can you inform me, please, who i need to kill, to attract attention to my
question?
Thank you.
http://gstreamer-devel.966125.n4.nabble.com/Wrong-file-duration-td4681702.html
Mikl
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Video-duration-tp4681778.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]<http:///user/SendEmail.jtp?type=node&node=4681786&i=1>
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]<http:///user/SendEmail.jtp?type=node&node=4681786&i=2>
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
________________________________
If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/Video-duration-tp4681778p4681786.html
To unsubscribe from Video duration, click here.
NAML<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>
________________________________
View this message in context: Re: Video duration<http://gstreamer-devel.966125.n4.nabble.com/Video-duration-tp4681778p4681805.html>
Sent from the GStreamer-devel mailing list archive<http://gstreamer-devel.966125.n4.nabble.com/> at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org<mailto:gstreamer-devel at lists.freedesktop.org>
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170210/78cca2ce/attachment-0001.html>
More information about the gstreamer-devel
mailing list