SG-44494: Add read support for HEVC elementary streams - #1345
Open
stfnylim wants to merge 3 commits into
Open
Conversation
stfnylim
requested review from
bernie-laberge,
cedrik-fuoco-adsk and
eloisebrosseau
as code owners
July 10, 2026 22:16
|
|
Signed-off-by: stfnylim <stfnylim@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Linked issues
Summarize your change.
This adds support for reading raw HEVC/H.265 elementary streams, including files with
.265,.h265, and.hevcextensions.Describe the reason for the change.
Some HEVC files are raw elementary streams rather than container formats like MOV or MP4. These files can be missing the timing information RV normally relies on, such as duration, frame count, and packet timestamps. When that happens, RV may not be able to determine playback timing or step through frames correctly.
This change adds a fallback path for those streams: RV can count the video packets to determine the frame count, and it can synthesize packet timestamps from the detected frame rate when the stream does not provide timestamps itself.
Describe what you have tested and on which operating system.
Tested on Windows using the existing Visual Studio 2022
Release|x64build tree.I ran:
git diff --checkMovieFFMpeg.vcxprojbuild inRelease|x64The MovieFFMpeg target built successfully with
0warnings and0errors.Add a list of changes, and note any that might need special attention during the review.
.265,.h265, and.hevcas read-only movie formats.One thing worth looking at during review is the packet-counting fallback. It only applies to raw HEVC streams where timing metadata is missing, but it does scan the stream once during initialization.