Office Hours — Today, September 26

Tuesday, September 24

Sep 26
7:25 PM
Mark M.
has entered the room
Mark M.
turned on guest access
7:30 PM
Harish k.
has entered the room
Harish k.
Hi
Mark M.
hello, Harish!
how can I help you today?
Harish k.
I am looking to build an app that will play a video and allow me to seek the video frame by frame. I looked into the Android Mediaplayer API that allows one to play videos. It doesnt seem to have the support to seek frame by frame. I am beginning to look at opensource video players for android that is based on FFMPEG to achieve this. Are there other approaches to this problem?
Mark M.
well, if you can determine the FPS rate of the video, seeking by time is theoretically equivalent to seeking by frame
beyond that, you're looking at a ton of work, I imagine, as apps like VLC probably are not designed to be forked as the basis for other apps
Harish k.
hmmmm...ok
7:35 PM
Mark M.
sorry that I don't have more experience with other video engines for Android
is there anything else that I can help with today?
Harish k.
thanks Mark
7:45 PM
Mark M.
if you have another question, feel free to ask
Harish k.
sure
7:50 PM
Harish k.
I am looking for a way to do the following. Two videos (v0 and v1) are being played fullscreen (screen's 100% width) with one overlayed on top of the other (V1 on V0). To start with, all that a user would see is the video V1 as V1 is on top of V0. I want to build a UI that would allow a user to choose how much of V1 and how much of V0 to be seen. What is the best way to achieve this? Is there an android layout to do this? Create a custom layout? OR is this best approached some other way? OpenGL?
Tried my best to put in words what I had in mind !!
Mark M.
I am not aware that this is possible, except perhaps using TextureView on API Level 14+
I cannot rule out something in native code, perhaps using OpenGL or a framebuffer API, because that's not my area of expertise
but in terms of standard Android SDK implementations, this might work with TextureView but almost certainly will not work well with SurfaceView (which underlies the stock VideoView widget)
you also have to factor in that many devices will simply lack the CPU/GPU speed to play two videos at once, and you cannot readily filter on the Play Store for devices by performance
Harish k.
ok
thanks for the responses
Mark M.
you are very welcome
8:30 PM
Mark M.
that is a wrap for today's chat
the transcript will be posted at http://commonsware.com/office-hours/ shortly
the next chat is Tuesday at 4pm Eastern
have a pleasant day!
Harish k.
has left the room
Mark M.
turned off guest access

Tuesday, September 24

 

Office Hours

People in this transcript

  • Harish kish
  • Mark Murphy