Skip to content
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

Add metadata to source stream info #2461

Closed
wants to merge 1 commit into from
Closed

Conversation

mthrok
Copy link
Collaborator

@mthrok mthrok commented Jun 7, 2022

Add metadata, such as ID3tag to StreamReaderSourceAudioStream.

@facebook-github-bot
Copy link
Contributor

@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

mthrok added a commit to mthrok/audio that referenced this pull request Jun 7, 2022
Summary:
Add metadata, such as ID3 (pytorch@da3ffe9bf146c89585ed32aaf3be7f81bea2c4ab)tag to `StreamReaderSourceAudioStream`.

Pull Request resolved: pytorch#2461

Differential Revision: D36985656

Pulled By: mthrok

fbshipit-source-id: 8a8fc6fda5c39c84f5a2fe10237f0eb793c968a6
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D36985656

@mthrok mthrok marked this pull request as ready for review June 7, 2022 22:15
Summary:
Add metadata, such as ID3 (pytorch@a5a7849ae86caad70a788130b03a594daf4eea0b)tag to `StreamReaderSourceAudioStream`.

Pull Request resolved: pytorch#2461

Reviewed By: hwangjeff

Differential Revision: D36985656

Pulled By: mthrok

fbshipit-source-id: b63f48a22b70627c2e5b8e4e6b81849ca67d5bc7
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D36985656

@github-actions
Copy link

github-actions bot commented Jun 8, 2022

Hey @mthrok.
You merged this PR, but labels were not properly added. Please add a primary and secondary label (See https://github.com/pytorch/audio/blob/main/.github/process_commit.py)

@mthrok mthrok deleted the metadata branch June 8, 2022 03:03
mthrok added a commit to mthrok/audio that referenced this pull request Jun 8, 2022
mthrok added a commit to mthrok/audio that referenced this pull request Jun 8, 2022
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, and
revert the changes made on StreamInfomation in pytorch#2461.
@mthrok mthrok mentioned this pull request Jun 8, 2022
mthrok added a commit to mthrok/audio that referenced this pull request Jun 8, 2022
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.
facebook-github-bot pushed a commit that referenced this pull request Jun 8, 2022
Summary:
In #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.

Pull Request resolved: #2464

Reviewed By: hwangjeff, xiaohui-zhang

Differential Revision: D36995452

Pulled By: mthrok

fbshipit-source-id: 534be1f7feb07790a0ce8624c336cdb7b65a8697
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants