bytedeco/javacv
Ver no GitHubHow to add Thumbnail into mp4 file created with FFmpegFrameRecorder?
Open
#2.008 aberto em 5 de abr. de 2023
help wantedquestion
Métricas do repositório
- Stars
- (6.985 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
The mp4 files created with FFmpegFrameRecorder has no thumbnails. I tried many libraries to create thumbnail and add into file but couldn't manage due to not supported codec error. The initializing code :
Loader.load(ffmpeg.class);
recorder = new FFmpegFrameRecorder(ffmpeg_link, imageWidth, imageHeight, 1);
recorder.setFormat("mp4");
recorder.setVideoCodec(avcodec.AV_CODEC_ID_MPEG4);
recorder.setSampleRate(sampleAudioRateInHz);
recorder.setFrameRate(frameRate);
What should be the solution for Android environment?