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

Fix warning of changing video frame properties on the fly #3318

Closed
wants to merge 1 commit into from

Conversation

whoyao
Copy link
Contributor

@whoyao whoyao commented May 6, 2023

Fix the following warnings when using the NVIDIA hardware encoder:

[in @ 0x755f1600] filter context - w: 1024 h: 1024 fmt: 2, incoming frame - w: 1024 h: 1024 fmt: 119 pts_time: NOPTS
[in @ 0x755f1600] Changing video frame properties on the fly is not supported by all filters.

Resolve issue #3317

@pytorch-bot
Copy link

pytorch-bot bot commented May 6, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/audio/3318

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit b4db443:

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@whoyao
Copy link
Contributor Author

whoyao commented May 6, 2023

Now, the filter can be set correctly by the following code:

video_config = dict(
    format='cuda',
    frame_rate=25,
    width=256,
    height=256,
    hw_accel='cuda:0',
    encoder='h264_nvenc',
    encoder_format='rgb0',
    encoder_option={'gpu': '0'},
)
stream.add_video_stream(**video_config)

@mthrok
Copy link
Collaborator

mthrok commented Jun 9, 2023

Fixed by #3426

@mthrok mthrok closed this Jun 9, 2023
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