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

How to control the palying speed? #91

Open
wujilingfeng opened this issue Apr 11, 2021 · 6 comments
Open

How to control the palying speed? #91

wujilingfeng opened this issue Apr 11, 2021 · 6 comments

Comments

@wujilingfeng
Copy link

Will the function of "av_read_frame" run by prescribed speed?

@leandromoreira
Copy link
Owner

Hi @wujilingfeng I don't if I understood your question but the av_read_frame do not accept a timeout, if you want to control the speed you get frames from it, you should control the pace you request a new frame.

@wujilingfeng
Copy link
Author

wujilingfeng commented Apr 12, 2021

Hi @leandromoreira I want to render the video, but I'm not sure it will read at the default speed ?

@wujilingfeng
Copy link
Author

wujilingfeng commented Apr 12, 2021

Hi @leandromoreira If the function of "av_read_frame" read all frames in one second, will the opengl play the video in one second?
Actually, I want to known how to render the video in opengl? Do you have any fresh evidence?

@wujilingfeng
Copy link
Author

wujilingfeng commented Apr 12, 2021

Hi @leandromoreira ,I've already run this demo of "helloworld.c", It did finish the job in a flash .
So how to render the video with opengl at the default speed?How to get the information about default speed of the video?

@leandromoreira
Copy link
Owner

@wujilingfeng maybe the ffprobe (ffmpeg's player) will be a better example as a player for you. And they seem to be using SDL. And there's also a good tutorial on how to build a ffmpeg player.

@wujilingfeng
Copy link
Author

OK.Thankyou.
I think I need control it by hand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants