Query regarding mkvtimestamp_v2 filter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Query regarding mkvtimestamp_v2 filter

Tarun singhal
Hi All,

I need help in understanding what does  mkvtimestamp_v2 filter do.
I tried to search documentation around it but couldnt find. All I could
find was this command
*ffmpeg -i usopen.mp4 -f mkvtimestamp_v2 -qscale:v 0 a.txt*

which apparently seems to give out timestamp of each frame in the video.

Can you please help?
What other options are available with formatting of this filter output.

Regards,
Tarun
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Query regarding mkvtimestamp_v2 filter

Gyan
On Mon, May 15, 2017 at 5:44 PM, tarun singhal <[hidden email]> wrote:

> Hi All,
>
> I need help in understanding what does  mkvtimestamp_v2 filter do.
> I tried to search documentation around it but couldnt find. All I could
> find was this command
> *ffmpeg -i usopen.mp4 -f mkvtimestamp_v2 -qscale:v 0 a.txt*
>
> which apparently seems to give out timestamp of each frame in the video.
>
> Can you please help?
> What other options are available with formatting of this filter output.
>

mkvtimestamp_v2 is a muxer, not a filter. Running     ffmpeg -h
muxer=mkvtimestamp_v2    will show you its options, which are  ...  none.
It doesn't have any.

As you've seen, it writes out the PTS of each video frame, using a timebase
of 1/1000, to a text file.  So, any source timestamp with finer
granularity, will be rounded.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Query regarding mkvtimestamp_v2 filter

Tarun singhal
How do I convert from PTS to seconds? What does time base means here?

On 15 May 2017 at 18:13, Gyan <[hidden email]> wrote:

> mkvtimestamp_v2
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Query regarding mkvtimestamp_v2 filter

Gyan
On Wed, May 17, 2017 at 6:02 PM, tarun singhal <[hidden email]> wrote:

> How do I convert from PTS to seconds? What does time base means here?
>

PTS is denominated in terms of a unit timebase, which the smallest fraction
of a second which can be specified. So, PTS x timebase gets you the time in
seconds. See http://stackoverflow.com/q/43333542/5726027 for an example.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Query regarding mkvtimestamp_v2 filter

Moritz Barsnick
In reply to this post by Tarun singhal
On Wed, May 17, 2017 at 18:02:28 +0530, tarun singhal wrote:
> How do I convert from PTS to seconds? What does time base means here?

BTW, you can use ffprobe to get every frame's proper source PTS and
timebase, without restricting yourself to what MKV and this muxer does.

Or am I missing something obvious?

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".