Video duration

Mikl michael.yarochkin at timetronics.be
Mon Feb 13 08:41:12 UTC 2017


Hello, Carl

Thank you for effort very much!

It is working, if i will simply do this:
filesrc location=bad.mkv ! queue ! matroskademux ! queue ! matroskamux ! filesink location=fixed.mkv
It is still reporting bad time, but fixing it in the new file.

So, the only way to fix it is "reassemble"?

Mikl

PS.
Here is gst-launch output:

gst-launch-1.0 filesrc location=bad.mkv ! queue ! matroskademux ! queue ! matroskamux ! filesink location=fixed.mkv
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:00.166347655
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

________________________________
From: Carl Karsten-2 [via GStreamer-devel] <ml-node+s966125n4681832h41 at n4.nabble.com>
Sent: Friday, February 10, 2017 9:25:16 PM
To: Michael Yarochkin
Subject: Re: Video duration

I think your file is "broken" or not in spec, or corrupt.

my guess is the thing that created the file needs --eos-on-shutdown

my code just errors.

AttributeError: 'NoneType' object has no attribute 'get_year'
(my code is not very robust, so don't worry about 'that')

Here is something

(veyepar) carl at twist:~/src/veyepar/dj/lib$ mediainfo --Inform="Video;%Duration%" 2017.02.03\ 13.53.34.mkv

mkvmerge -o fixed.mkv  2017.02.03\ 13.53.34.mkv

(veyepar) carl at twist:~/src/veyepar/dj/lib$ mediainfo --Inform="Video;%Duration%" fixed.mkv
54100.000000

mkvmerge fixed it.




On Fri, Feb 10, 2017 at 2:02 AM, Mikl <[hidden email]</user/SendEmail.jtp?type=node&node=4681832&i=0>> wrote:
Hello, Carl

Thank You!
Drop box will be enough?
https://www.dropbox.com/s/dehuttf8h5b1frw/2017.02.03%2013.53.34.mkv?dl=0

It is quiet big. Sorry.

Do you need any information from me?

Mikl



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Video-duration-tp4681778p4681806.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=4681832&i=1>
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=4681832&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-tp4681778p4681832.html
To unsubscribe from Video duration, click here<http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4681778&code=bWljaGFlbC55YXJvY2hraW5AdGltZXRyb25pY3MuYmV8NDY4MTc3OHwyMDkyNzIxODU=>.
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: http://gstreamer-devel.966125.n4.nabble.com/Video-duration-tp4681778p4681854.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170213/899c34df/attachment.html>


More information about the gstreamer-devel mailing list