HRA123 / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Repeated frames optimization #420

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I am working on a project where encoding a new video is a frequent task so I'm 
trying to optimize it. These videos usually have a lot of repeated frames (It's 
mostly a static image and a guy talking).

Is there any way I can modify FFMpegFrameRecorder to make the encoding process 
much faster when frames are repeated?

Thanks.

Original issue reported on code.google.com by bogdan.m...@gmail.com on 5 Feb 2014 at 12:40

GoogleCodeExporter commented 8 years ago
Why not use `setTimestamp()` to whatever value required to skip the number of 
repeated frames?

Original comment by samuel.a...@gmail.com on 5 Feb 2014 at 1:16

GoogleCodeExporter commented 8 years ago
I did not know that was something I can do. Thanks

Original comment by bogdan.m...@gmail.com on 5 Feb 2014 at 2:14

GoogleCodeExporter commented 8 years ago
So, does it do what you need it to do?

In any case, please post your questions on the mailing list, not here, if 
possible, thanks!

Original comment by samuel.a...@gmail.com on 9 Feb 2014 at 2:05

GoogleCodeExporter commented 8 years ago
Yes it did but apparently the default android media player cannot handle video 
files (video/audio goes off sync because of missing frames, all other players 
I've tried can handle it fine though)

Original comment by bogdan.m...@gmail.com on 9 Feb 2014 at 4:58