vlc-example-streamplayer icon indicating copy to clipboard operation
vlc-example-streamplayer copied to clipboard

Support for streamed video recording

Open pranishres opened this issue 3 years ago • 9 comments

Hello, I tried this library and works pretty well for rtsp videos. Is there any option for recording the streaming video from the library itself? Thanks

pranishres avatar Jul 28 '21 12:07 pranishres

No. I think that VLC doesn't support record in Android. Anyway you can ask in VLC forums: https://forum.videolan.org/viewforum.php?f=31&sid=0fb733068256c3928fd1e6df4f9df94f

This proyect only compile VLC for Android and create a simple wrapper using it

pedroSG94 avatar Jul 29 '21 08:07 pedroSG94

No. I think that VLC doesn't support record in Android. Anyway you can ask in VLC forums: https://forum.videolan.org/viewforum.php?f=31&sid=0fb733068256c3928fd1e6df4f9df94f

This proyect only compile VLC for Android and create a simple wrapper using it

Is there a way I could do it using your library?

pranishres avatar Jul 29 '21 09:07 pranishres

You haven't access to audio so you need modify VLC library to get it. You can capture video but it is difficult and you need modify all my library code

pedroSG94 avatar Jul 29 '21 09:07 pedroSG94

You haven't access to audio so you need modify VLC library to get it. You can capture video but it is difficult and you need modify all my library code

I won't need audio, basically I am streaming IPCamera view via rtsp stream using your app and that is working great. Just need to record the video in the app.

pranishres avatar Jul 29 '21 09:07 pranishres

In that case you can render a surface provided by MediaCodec class instead of surface provided by SurfaceView and you can use that surface to encode video. To record in a MP4 file using H264 buffer provided by MediaCodec, you can use MediaMuxer class

pedroSG94 avatar Jul 29 '21 09:07 pedroSG94

So you mean I should use the exoplayer library?

pranishres avatar Jul 29 '21 10:07 pranishres

You can try that way too

pedroSG94 avatar Jul 29 '21 10:07 pedroSG94

You can try that way too

Finally after trying different techniques for a week, I am finally successful in achieving my goal. I was able to stream and record the video via the vlc-android sdk from vlc themselves. Thank you for the support from your side too.

pranishres avatar Jul 30 '21 16:07 pranishres

@pranishres

Hi pranishres,

please provide details for recording video via the vlc-android sdk.

thanks

penmatsa avatar Aug 27 '21 19:08 penmatsa