-
Notifications
You must be signed in to change notification settings - Fork 759
Fix metadata fetch #2464
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
Fix metadata fetch #2464
Conversation
|
@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
In pytorch#2461, `metadata` field was added to StreamInfo. However, the value attached to this new field was source-level metadata, while each stream can have different metadata. * source level metadata [AVFormatContext->metadata](https://ffmpeg.org/doxygen/4.1/structAVFormatContext.html#a3019a56080ed2e3297ff25bc2ff88adf) * stream level metadata [AVFormatContext->streams[]->metadata](https://ffmpeg.org/doxygen/4.1/structAVStream.html#a50d250a128a3da9ce3d135e84213fb82) This commit moves source level metadata to dedicated method, `get_metadata`, and fix the stream-level metadata to report stream metadata.
|
@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
Hey @mthrok. |
In #2461,
metadatafield was added to StreamInfo.However, the value attached to this new field was source-level metadata,
while each stream can have different metadata.
AVFormatContext->metadata
AVFormatContext->streams[]->metadata
This commit moves source level metadata to dedicated method,
get_metadata, andfix the stream-level metadata to report stream metadata.