HD video play in ffmpeg android player

253
July 08, 2017, at 4:07 PM

I have developed android mediaplayer by using ffmpeg. It is working well with local and remote files both.

But it has some issues when i try to play HD video files. The screen shows many rectangles and stopped after a few seconds.

I think it is video rendering problem on low performance devices. In this case, I need to skip some frames and play.

Please help me whether my thought is right or if you have already experienced this , please teach me.

Answer 1

I understand your concerns. There are several ways to fix this issue. Your thought is one of them.

Methods: - You need to HLS video stream which can control video frame rate dynamically. It depends on server side. - when player starts, your player need to check video framerate and check rendering time of I frames. From this information, your player need to calculate how many video frames it can render. After calculation, you need to set the number for skipped frames per several seconds(it depends on your IFrame rate)

READ ALSO
How can I read a file packaged with an android app through a C++ library?

How can I read a file packaged with an android app through a C++ library?

I have written a Unity application in C# that uses a C++ library built using Android NDKI want to read some files that are packaged with the android application (in the assets folder) from this C++ library

173
Unable to read output from barcode scanner

Unable to read output from barcode scanner

I want to upload the result from the barcode scanner to the edit text, but it is not displaying in the edit textMay I know what the problem is and how do I solve it?

212
vue-cli + webpack: where to include npm package js and css files?

vue-cli + webpack: where to include npm package js and css files?

I'm trying to import an npm package into my vue-cli dev siteHere are the instructions provided by the package website:

400