-
Notifications
You must be signed in to change notification settings - Fork 30
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
Update comments for foxglove.CompressedVideo
schema
#129
Changes from 3 commits
587bf29
bf9d324
6ce6563
138d85a
d61585f
914da78
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 | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -798,7 +798,7 @@ const CompressedVideo: FoxgloveMessageSchema = { | |||||||||
{ | ||||||||||
name: "timestamp", | ||||||||||
type: { type: "primitive", name: "time" }, | ||||||||||
description: "Timestamp of image", | ||||||||||
description: "Timestamp of video frame", | ||||||||||
}, | ||||||||||
{ | ||||||||||
name: "frame_id", | ||||||||||
|
@@ -810,7 +810,7 @@ const CompressedVideo: FoxgloveMessageSchema = { | |||||||||
name: "data", | ||||||||||
type: { type: "primitive", name: "bytes" }, | ||||||||||
description: | ||||||||||
"Compressed video frame data. For packet-based video codecs this data must begin and end on packet boundaries (no partial packets), and must contain enough video packets to decode exactly one image (either a keyframe or delta frame).", | ||||||||||
"Compressed video frame data. For packet-based video codecs this data must begin and end on packet boundaries (no partial packets), and must contain enough video packets to decode exactly one image (either a keyframe or delta frame). NOTE: It is strongly recommended to _not_ write B frames/slices to the H264 stream and instead solely use I and P frames because this more closely mirrors live data sources.", | ||||||||||
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. Would this still make sense?
Suggested change
I don't know the terminology that well but the "more closely mirrors live data sources" didn't feel like it clearly explained the reasoning. If you want to keep reasoning maybe something more like "to support streaming playback"? 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. a B frame is technically a "delta" frame. What about something like:
Suggested change
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 "live sources" is a bit unclear and it's also not obvious why someone who's just writing an mcap file should care about live sources 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 a more accurate answer is because of their incompatibility with streaming playback. Displaying B-frame encoded video requires lookahead. |
||||||||||
}, | ||||||||||
{ | ||||||||||
name: "format", | ||||||||||
|
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.
this still says "image"
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.
This is old right?
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.
oh I see the comment below still says image 👍 will fix