How to "compress" saved video file using VideoFileRenderer ?

194 views
Skip to first unread message

Kushtrim Pacaj

unread,
Apr 6, 2018, 9:18:39 AM4/6/18
to discuss-webrtc
I tried using VideoFileRenderer, but looks like it's saving all frames directly to the file, and the file reaches 80MB for just 4s of recording in 640x480 resolution.

To make a smaller file, looks like something like this would have to be done. https://en.wikipedia.org/wiki/Video_compression_picture_types#Predicted_frames/slices_(P-frames/slices) 

Tried using MediaCodec class, and using some sample code from examples such as https://www.bigflake.com/mediacodec/EncodeAndMuxTest.java.txt , but I haven't been able to achieve a result, since I haven't dealt with media encoding/decoding before.

I'd appreciate any help anyone could provide regarding this. 

ravi sen

unread,
Nov 14, 2019, 2:34:52 AM11/14/19
to discuss-webrtc
Hi i am also working on this have you find any solution on this.

anto gian

unread,
Dec 3, 2019, 2:42:19 AM12/3/19
to discuss-webrtc

I managed to record and compress the video but not audio. If anyone know how to record webrtc call audio please help me.
Reply all
Reply to author
Forward
0 new messages