forked from fraunhoferhhi/vvenc
-
Notifications
You must be signed in to change notification settings - Fork 0
Implement SEI messages and frontend config to inject Alpha metadata in the stream #1
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
Open
diegonieto
wants to merge
5
commits into
v1.12.0-ML
Choose a base branch
from
alpha-sei
base: v1.12.0-ML
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e040339
SEI: add Alpha Channel SEI message write implementation
diegonieto 0bd3c21
SEI: add Scalability Dimension SEI message write implementation
diegonieto 6dfbc77
SEIEncoder: add alpha channel SEI option when encoding GOPs
diegonieto 3780894
config: add sequenceGray cfg to showcase ML encoding with alpha
diegonieto a8dd765
config: add two layers with fixed parameters
diegonieto File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # gst-launch-1.0 videotestsrc num-buffers=60 pattern=ball motion=sweep ! "video/x-raw,width=1920,height=1080,framerate=60/1" ! videoconvert ! video/x-raw,format=I420 ! filesink location=./output2.yuv | ||
| #======== File I/O =============== | ||
| InputFile : output2.yuv # Input file | ||
| InputBitDepth : 8 # Input bitdepth | ||
| InputChromaFormat : 420 # Ratio of luminance to chrominance samples | ||
| FrameRate : 60 # Frame Rate per second (numerator) | ||
| FrameScale : 1 # Frame Scale per second (denominator) | ||
| FrameSkip : 0 # Number of frames to be skipped in input | ||
| SourceWidth : 1920 # Input frame width | ||
| SourceHeight : 1080 # Input frame height | ||
| FramesToBeEncoded : 5 # Number of frames to be coded | ||
|
|
||
| Level : 4.1 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # generated with: gst-launch-1.0 videotestsrc num-buffers=60 pattern=ball ! "video/x-raw,width=1920,height=1080,framerate=60/1" ! videoconvert ! video/x-raw,format=I420 ! filesink location=./alpha_8.yuv | ||
| #======== File I/O =============== | ||
| InputFile : alpha_8.yuv # Input file | ||
| InputBitDepth : 8 # Input bitdepth | ||
| InputChromaFormat : 420 # Ratio of luminance to chrominance samples | ||
| FrameRate : 60 # Frame Rate per second (numerator) | ||
| FrameScale : 1 # Frame Scale per second (denominator) | ||
| FrameSkip : 0 # Number of frames to be skipped in input | ||
| SourceWidth : 1920 # Input frame width | ||
| SourceHeight : 1080 # Input frame height | ||
| FramesToBeEncoded : 5 # Number of frames to be coded | ||
|
|
||
| Level : 4.1 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #======== File I/O =============== | ||
| InputFile : gray_8.yuv # Input file | ||
| InputBitDepth : 8 # Input bitdepth | ||
| InputChromaFormat : 400 # Ratio of luminance to chrominance samples | ||
| FrameRate : 60 # Frame Rate per second (numerator) | ||
| FrameScale : 1 # Frame Scale per second (denominator) | ||
| FrameSkip : 0 # Number of frames to be skipped in input | ||
| SourceWidth : 1920 # Input frame width | ||
| SourceHeight : 1080 # Input frame height | ||
| FramesToBeEncoded : 60 # Number of frames to be coded | ||
|
|
||
| Level : 4.1 |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| #======== Layers =============== | ||
| MaxLayers : 2 | ||
| MaxSublayers : 7 | ||
| AllIndependentLayersFlag : 1 | ||
| #======== Alpha ================ | ||
| SEIAlphaChannel : 1 | ||
| SEIScalabityDimension : 1 | ||
| #======== OLSs ================= | ||
| EachLayerIsAnOlsFlag : 1 | ||
| NumOutputLayerSets : 2 | ||
| NumPTLsInVPS : 1 | ||
| #======== Layer-0 =============== | ||
| LayerId0 : 0 | ||
| #======== Layer-1 =============== | ||
| LayerId1 : 1 | ||
| #======== OLS-0 =============== | ||
| OlsPTLIdx0 : 0 | ||
| #======== OLS-1 =============== | ||
| OlsPTLIdx1 : 1 | ||
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
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.
When adding an alpha channel layer, you would always want to send the SDI and ACI SEI messages, I don't think this should be configurable by the user. A better configuration interface would be the ability to define what layer is the alpha channel one:
#======== Layer-0 ===============
LayerId0 : 0
#======== Layer-1 ===============
LayerId1 : 1
#======== Alpha layer ================
LayerAlpha : 1
AlphaLayedId0