-
Notifications
You must be signed in to change notification settings - Fork 2
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
Output rendition with dimensions == source #125
Conversation
Bitrate int32 `json:"bitrate,omitempty"` | ||
FPS uint `json:"fps,omitempty"` | ||
FPSDen uint `json:"fpsDen,omitempty"` | ||
Width int64 `json:"width,omitempty"` |
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.
We were using different types in different structs, so standardised on int64 / float64
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.
Go is much better than c++ when handling int
and uint
arithmetic !
@@ -89,7 +89,7 @@ func TestRecordingCompleted(t *testing.T) { | |||
require.NotNil(t, message.Success) | |||
require.True(t, *message.Success) | |||
require.GreaterOrEqual(t, message.Timestamp, testStartTime) | |||
require.Less(t, message.Timestamp, testStartTime+2) | |||
require.Less(t, message.Timestamp, testStartTime+100) |
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.
Nothing changed here, but the timing was a bit too tight on CI and so I was seeing some failures
Codecov Report
@@ Coverage Diff @@
## main #125 +/- ##
===================================================
+ Coverage 39.71261% 40.41052% +0.69791%
===================================================
Files 24 24
Lines 1531 1559 +28
===================================================
+ Hits 608 630 +22
- Misses 844 850 +6
Partials 79 79
Continue to review full report at Codecov.
|
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.
Well Done!
Name: "360p", | ||
MediaData: []byte("pretend media data"), | ||
}, | ||
{ | ||
Name: "super-high-def", | ||
Name: "720p", |
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 a note for real broadcaster: name must start with letter otherwise transcode fails
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.
I didn't realise, good to know thanks!
This resolves #124