-
Notifications
You must be signed in to change notification settings - Fork 50
Update to FFMPEG_jll v6.1.1. Minor bump to v1.2.0 #418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 14 commits
56ab35d
ae3d9a6
95ff370
9f4b868
242ee87
27115f8
a694d31
ef6db25
a9384d9
61d6c45
c31052d
6ba3993
262509b
19f38b7
3bedf4b
30bb016
f7f18a8
2913c85
b3b0714
ab53974
c0201cf
4b620a2
ab55925
80306c4
a179829
feceb08
2e3af92
ec6893f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,8 +20,8 @@ Scratch = "6c6a2e73-6563-6170-7368-637461726353" | |
| [compat] | ||
| ColorTypes = "0.9, 0.10, 0.11" | ||
| Downloads = "1.3" | ||
| FFMPEG = "0.3, 0.4" | ||
| FFMPEG_jll = "4.1" | ||
| FFMPEG = "0.3, 0.4, 1" | ||
| FFMPEG_jll = "6.1" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we still need to directly depend on both?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| FileIO = "1.6" | ||
| Glob = "1.2" | ||
| ImageCore = "0.8, 0.9, 0.10" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,9 @@ | ||
| [deps] | ||
| Clang = "40e3b903-d033-50b4-a0cc-940c62c95e31" | ||
| FFMPEG = "c87230d0-a227-11e9-1b43-d7ebe4e7570a" | ||
| FFMPEG_jll = "b22a6f82-2f65-5046-a5b2-351ab43fb4e5" | ||
| Match = "7eb4fadd-790c-5f42-8a69-bfa0b872bfbf" | ||
| Vulkan_Headers_jll = "8d446b21-f3ad-5576-a034-752265b9b6f9" | ||
|
|
||
| [compat] | ||
| Clang = "0.14.0" | ||
| Clang = "0.14, 0.15, 0.16, 0.17" | ||
theogf marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| FFMPEG_jll = "0.6.1" | ||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -832,10 +832,10 @@ get_frame_presentation_time(stream, frame) = convert(Rational, stream.time_base) | |
| function get_frame_period_timebase(r::VideoReader) | ||
| # This is probably not valid for many codecs, frame period in timebase | ||
| # units | ||
| stream = get_stream(s) | ||
| stream = get_stream(r) | ||
theogf marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| time_base = convert(Rational, stream.time_base) | ||
| time_base == 0 && return nothing | ||
| frame_rate = convert(Rational, av_stream_get_r_frame_rate(stream)) | ||
| frame_rate = convert(Rational, stream.r_frame_rate) | ||
| frame_period_timebase = round(Int64, 1 / (frame_rate * time_base)) | ||
| return frame_period_timebase | ||
| end | ||
|
|
@@ -858,7 +858,7 @@ function seek_trim(r::VideoReader, seconds::Number) | |
| time_base = convert(Rational, stream.time_base) | ||
| time_base == 0 && error("No time base") | ||
| target_pts = seconds_to_timestamp(seconds, time_base) | ||
| frame_rate = convert(Rational, av_stream_get_r_frame_rate(stream)) | ||
| frame_rate = convert(Rational, stream.r_frame_rate) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tests are failing so I can only assume that this is not the solution?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems like the correct change based on https://patchwork.ffmpeg.org/project/ffmpeg/patch/[email protected]/ And the test failures could be rounding assumptions. Not looked deeper into it
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We're a bit far from rounding error? Maybe it's a difference of 1 frame?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is just correct Perhaps
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've pushed a change to the full precision |
||
| frame_period_timebase = round(Int64, 1 / (frame_rate * time_base)) | ||
| gotframe = pump_until_frame(r, false) | ||
| # If advancing another frame would still leave us before the target | ||
|
|
@@ -1005,7 +1005,7 @@ function position(r::VideoReader) | |
| time_base == 0 && return nothing | ||
| nqueued = n_queued_frames(r) | ||
| nqueued == 0 && return last_pts * time_base | ||
| frame_rate = convert(Rational, av_stream_get_r_frame_rate(stream)) | ||
| frame_rate = convert(Rational, stream.r_frame_rate) | ||
| last_returned_pts = last_pts - round(Int, nqueued / (frame_rate * time_base)) | ||
| return last_returned_pts * time_base | ||
| end | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.