ffmpeg-libav-tutorial icon indicating copy to clipboard operation
ffmpeg-libav-tutorial copied to clipboard

How to control the palying speed?

Open wujilingfeng opened this issue 3 years ago β€’ 6 comments

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

wujilingfeng avatar Apr 11 '21 12:04 wujilingfeng

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.

leandromoreira avatar Apr 11 '21 15:04 leandromoreira

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

wujilingfeng avatar Apr 12 '21 00:04 wujilingfeng

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 avatar Apr 12 '21 00:04 wujilingfeng

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?

wujilingfeng avatar Apr 12 '21 00:04 wujilingfeng

@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.

leandromoreira avatar Apr 12 '21 03:04 leandromoreira

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

wujilingfeng avatar May 11 '21 07:05 wujilingfeng