Skip to content

Increasing Frame Rate? #264

@jwcharp

Description

@jwcharp

@izzytwosheds
This library has saved me a significant amount of time. I was on the verge of diving deep into the wormhole of implementing the MediaCodec from scratch, so I truly appreciate your assistance.

I have a query that might seem unusual, but I'm hopeful you might have a solution or at least guide me in the right direction.

Here are the scenarios I'm looking at:

Input: 1920x1080 resolution at 30fps, h264 (video/avc)
Output: 1280x720 resolution at 120fps, h264 (video/avc)

Input: 1920x1080 resolution at 60fps, h264 (video/avc)
Output: 1280x720 resolution at 120fps, h264 (video/avc)

I understand the frames required for 120fps don't actually exist in the input. However, is there a way to auto-multiply or duplicate the existing frames to achieve this?

Separately, I also have this scenario which I believe is achievable. I'll be working on it over the next few days:

Input: 1920x1080 resolution at 30fps, 40-second video, h264 (video/avc)
Output: 1280x720 resolution at 120fps, 10-second video, h264 (video/avc)

For the latter scenario, I assume that by simply setting (MediaFormat.KEY_FRAME_RATE, 120) I can get the desired result. But I'm still not certain about how to approach the first two scenarios mentioned above.

Thanks once again for all your help!

Best regards,
Joe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions