Capture video from playing video on Android - android

Is it possible to capture video from a playing video (not from the camera) on Android? I mean, that it records a video from surface video output.
As far as I know, mediaRecorder can record it only from Camera. But, I'm trying to trim a video for a specific range while it plays this video.
Is it possible?

Related

How to capture slow and fast motion video through camera android like tiktok and instagram

After capturing a video I can make a video in slow motion but, how to record real-time slow-motion video or fast-motion video.

react-native:Is it possible to keep recording video in the background?

I use react-native-camera recording video, but camera stop recording video when the App is in the background
Is it possible to keep recording video while the App is in the background?

how to tik tok record video in partistions with switch camera and merge after recording in android

I am trying to create video recording functionality like tik tok (musically) application. In which when i touch and hold recording button then video will be recorded and after release button video recording pause not stop and user also switch camera while recording video. The video will be fixed duration. After complete video recording the whole video will be merge.
But When i record video from front camera then video is flipped and after merge video, the orientation is change. I am merging the videos using mp4parser library. How to implement this functionality?

How to reach 30fps on recording audio and video using MediaCodec MediaMuxer on android?

I would like to record 1920x1080p, H264 video from camera and audio from mic. I started with the sample code. This only gets 15fps at the max.
https://github.com/saki4510t/AudioVideoRecordingSample
Another sample code can reach 30fps without audio.
https://github.com/google/grafika "Show + capture camera"
I am running Android 5.1, on which MediaRecorder can record AV at 30fps. But I have to access the video data before muxer.
I guess it is related to timestamp on both video and audio. I was able to reach 26fps with AV out of sync.
Any suggestions on 30fps on AudioVideoRecordingSample?

Android : Capture current frame from streaming video

I made a video player by TextureView and Mediaplayer. And I want to capture current frame. I found some questions about this. But They deal with capturing video from local video file. But I need capturing current video frame from streaming video. How can i do this?
Thanks!

Categories

Resources