Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'll be great if we could parse this time, and store it in out_time_ns.
It'll also be great if you could fix the out_time_ms as well :)
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Progress output looks like this:
out_time_us
has integer value in microseconds,out_time_ms
has the same value which is not in milliseconds like the name would hint due a bug in ffmpeg https://trac.ffmpeg.org/ticket/7345.If I parse
out_time_us
andout_time_ms
and add them tothis.out_time_ns
, the value gets overwritten by value parsed fromout_time
.I could do following, but I think that it would be better to parse
this.out_time_ns
just from one source like this PR currently does.For reference: ffmpeg patch where key
out_time_us
was added: https://patchwork.ffmpeg.org/patch/9894/ . They are also discussing about removingout_time_ms
key at some point in the future.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another options would be to add a ignore/skip list for specific key and ignore key
out_time_ms
andout_time_us
there.Yet another option would be to remove the logging line.
LOG.warn("skipping unhandled key: {} = {}", key, value);