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

[Cherry-pick] Fix path-like object support in FFmpeg dispatcher (#3243, #3248) #3245

Merged
merged 2 commits into from
Apr 7, 2023

Conversation

mthrok
Copy link
Collaborator

@mthrok mthrok commented Apr 6, 2023

Summary:
In dispatcher mode, FFmpeg backend does not handle file-like object, and C++ implementation raises an issue.

This commit fixes it by normalizing file-like object to string.

Pull Request resolved: #3243

Reviewed By: nateanl

Differential Revision: D44719280

Pulled By: mthrok

fbshipit-source-id: 9dae459e2a5fb4992b4ef53fe4829fe8c35b2edd

Summary:
In dispatcher mode, FFmpeg backend does not handle file-like object, and C++ implementation raises an issue.

This commit fixes it by normalizing file-like object to string.

Pull Request resolved: pytorch#3243

Reviewed By: nateanl

Differential Revision: D44719280

Pulled By: mthrok

fbshipit-source-id: 9dae459e2a5fb4992b4ef53fe4829fe8c35b2edd
@mthrok mthrok changed the title Fix path-like object support in FFmpeg dispatcher (#3243) [Cherry-pick] Fix path-like object support in FFmpeg dispatcher (#3243) Apr 6, 2023
@mthrok mthrok requested a review from nateanl April 6, 2023 00:28
…#3248)

Summary:
Follow up of pytorch#3243. Save compat module had different semantics than info and load, which requires different way of performing path normalization.

Pull Request resolved: pytorch#3248

Reviewed By: hwangjeff

Differential Revision: D44774997

Pulled By: mthrok

fbshipit-source-id: 4b967ae3ca6b45850d455b8e95aaa31762c5457e
@mthrok mthrok mentioned this pull request Apr 7, 2023
@mthrok mthrok changed the title [Cherry-pick] Fix path-like object support in FFmpeg dispatcher (#3243) [Cherry-pick] Fix path-like object support in FFmpeg dispatcher (#3243, #3248) Apr 7, 2023
@mthrok mthrok merged commit d92216d into pytorch:release/2.0 Apr 7, 2023
@mthrok mthrok deleted the cherry-pick-3243 branch April 7, 2023 18:57
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