krazykira / VidEffects

This library uses OpenGL Shaders to apply effects on Videos at Runtime
Apache License 2.0
348 stars 89 forks source link

After Video processing video is faster. how to fix that ? #24

Open iharshb opened 6 years ago

iharshb commented 6 years ago

After Applying shader on video and Processing video by FFmpeg with your sample code which in Wiki page .

Issue : FFmpeg Recording Issue video is faster after video processing with channelmixer .

muhammad-umair-khan commented 6 years ago

This is happening because you might be missing frames while re-encoding video. If you had some other problem and got it resolved please mention that here to help out other people. Thanks...

iharshb commented 6 years ago

During video processing.

videoRecorder = FFmpegFrameRecorder.createDefault(path, VIDEO_GRABBER.getImageWidth(),     VIDEO_GRABBER.getImageHeight());
videoRecorder.setVideoCodec(AV_CODEC_ID_MPEG4); 

 //If your video is faster than set Frame rate as your VIDEO.
 videoRecorder.setFrameRate(VIDEO_GRABBER.getFrameRate());

//for quality video
videoRecorder.setVideoCodec(AV_CODEC_ID_MPEG4);
iharshb commented 6 years ago

Please look at my another open issue #23 still issue is not resolving!