-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add scaling support to converter and decoder #27
Conversation
test/video_converter_test.exs
Outdated
|
||
assert byte_size(ref_frame1) == 480 * 360 * 3 | ||
assert byte_size(ref_frame2) == 360 * 240 * 3 | ||
end | ||
|
||
test "scale video frame", %{frame_480p: frame_480p} do | ||
converter = Xav.VideoConverter.new!(width: 368) |
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.
check incorrrect width and height
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.
Should we add validation on the elixir code ? since we don't initialize the converter on creation ffmpeg
won't do any validation until you first try to convert a frame.
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.
Yeah, I would do this. Thanks!
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.
Just this thing and we are ready to merge
@mickel8 since we're raising in the |
Thanks! |
@gBillal looks like somethings failes on macos-arm. Do you have any means to check what's wrong? It looks like scaled binary does not match 🤔 |
Follow up of #25