javacv icon indicating copy to clipboard operation
javacv copied to clipboard

Can I resample a single frame?

Open Code-Lonely opened this issue 2 years ago • 8 comments

Can I resample a single frame。 FFmpegframerecorder will generate files. I don't want to generate files during resampling。

Code-Lonely avatar Jul 06 '22 08:07 Code-Lonely

Do you mean something like FFmpegFrameFilter?

saudet avatar Jul 06 '22 09:07 saudet

Do you mean something like FFmpegFrameFilter?

It should be. How can I use it for resampling? What parameters do I need to pass in

Code-Lonely avatar Jul 07 '22 02:07 Code-Lonely

There is a resampling filter for audio frames: http://ffmpeg.org/ffmpeg-filters.html#aresample-1 And there's some sample code for FFmpegFrameFilter here: https://github.com/bytedeco/javacv/blob/master/platform/src/test/java/org/bytedeco/javacv/FrameFilterTest.java

saudet avatar Jul 07 '22 02:07 saudet

Can I change the pitch of the audio through FFmpegFrameFilter https://ffmpeg.org/ffmpeg-filters.html#rubberband image

Code-Lonely avatar Jul 07 '22 02:07 Code-Lonely

We can use that filter or any other filters in that list, yes.

saudet avatar Jul 07 '22 02:07 saudet

We can use that filter or any other filters in that list, yes.

rubberband command is supported, right?

Code-Lonely avatar Jul 07 '22 02:07 Code-Lonely

Yes, it's a "filter", not a "command"

saudet avatar Jul 07 '22 02:07 saudet

Yes, it's a "filter", not a "command"

I see. Thank you very much

Code-Lonely avatar Jul 07 '22 03:07 Code-Lonely