Video duration

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

Video duration

Mikl
This post was updated on .
Hello, Readers

Can you inform me, please, who do 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
Reply | Threaded
Open this post in threaded view
|

Re: Video duration

Dimitrios Katsaros
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]> 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]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Video duration

Carl Karsten-2


On Thu, Feb 9, 2017 at 9:16 AM, Dimitrios Katsaros <[hidden email]> wrote:
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?


I'll chime in with: it will likely help if you can post the file somewhere someone can wget it from.

I'll run it though my code that does this:

discoverer = GstPbutils.Discoverer()
d = discoverer.discover_uri('file://{}'.format(pathname))



 

Dimitrios


On Thu, Feb 9, 2017 at 9:39 AM, Mikl <[hidden email]> 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]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Video duration

Mikl

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


From: gstreamer-devel <[hidden email]> on behalf of Carl Karsten <[hidden email]>
Sent: Thursday, February 9, 2017 11:52:49 PM
To: Discussion of the development of and with GStreamer
Subject: Re: Video duration
 


On Thu, Feb 9, 2017 at 9:16 AM, Dimitrios Katsaros <[hidden email]> wrote:
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?


I'll chime in with: it will likely help if you can post the file somewhere someone can wget it from.

I'll run it though my code that does this:

discoverer = GstPbutils.Discoverer()
d = discoverer.discover_uri('file://{}'.format(pathname))



 

Dimitrios


On Thu, Feb 9, 2017 at 9:39 AM, Mikl <[hidden email]> 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]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Video duration

Mikl
In reply to this post by Dimitrios Katsaros

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.


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]>
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]> 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]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: Video duration

Mikl
In reply to this post by Carl Karsten-2
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
Reply | Threaded
Open this post in threaded view
|

Re: Video duration

Dimitrios Katsaros
In reply to this post by Mikl
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 <[hidden email]> 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.


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]>
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]> 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]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
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


View this message in context: Re: Video duration

Sent from the GStreamer-devel mailing list archive at Nabble.com.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Video duration

Mikl
This post was updated on .
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
Reply | Threaded
Open this post in threaded view
|

Re: Video duration

Dimitrios Katsaros
I am no professional with matroska so I might be wrong on my suspicion, but I do not think
it is a streamable container like e.g. mpegts is. If that is the case then you can not rely on the
duration timestamp being updated unless the file is closed correctly.

So if that is correct the only things youa re really left with is: a) fix the source app so when it
"crashes" it produces an eos and handles shutdown gracefully or b) change the container
to something that is independent of graceful shutdown. If the source app crashes are
within your power to fix I would focus on that. You can't rely on the output of an erroneous
pipe.

Dimitrios


On Fri, Feb 10, 2017 at 11:51 AM, Michael Yarochkin <[hidden email]> wrote:

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 <[hidden email]> on behalf of Dimitrios Katsaros <[hidden email]>
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 <[hidden email]> 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.


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]>
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]> 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]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
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


View this message in context: Re: Video duration

Sent from the GStreamer-devel mailing list archive at Nabble.com.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Video duration

Carl Karsten-2
In reply to this post by Mikl
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@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@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]> 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]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Video duration

Mikl
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+[hidden email]>
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@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@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]> 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]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
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.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: Video duration

Mikl
In reply to this post by Carl Karsten-2

Hello, Carl


I did try to repair all my other broken files.

I can see them now, but i lost subtitles. It is 4 subtitles stream inside.


What i need to do in "recovery pipeline" recover also them?


Mikl


From: Carl Karsten-2 [via GStreamer-devel] <ml-node+[hidden email]>
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@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@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]> 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]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
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.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: Video duration

Carl Karsten-2
I'm glad I could help a bit, but sorry, I have no idea how to handle subtitles.  I am sure it is easy, I would ask on IRC or start a new thread because this is a new problem.

On Mon, Feb 13, 2017 at 3:32 AM, Mikl <[hidden email]> wrote:

>
> Hello, Carl
>
>
> I did try to repair all my other broken files.
>
> I can see them now, but i lost subtitles. It is 4 subtitles stream inside.
>
>
> What i need to do in "recovery pipeline" recover also them?
>
>
> Mikl
>
> ________________________________
> From: Carl Karsten-2 [via GStreamer-devel] <ml-node+[hidden email]>
> 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@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@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]> 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]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> 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.
> NAML
>
> ________________________________
> View this message in context: Re: Video duration
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Video duration

Mikl

Hello, Carl


Indeed, you help a lot.

Thank you fro help.


Mikl

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel