-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FFMPEGFrameRecorder example #410
Comments
I don't think there is such a thing as the "mjpeg" format. It's not in the list returned by |
Oh, actually it's in the list. I get this error message in the log:
So simply call |
Ok, with the setPixelFormat(avutil.AV_PIX_FMT_YUVJ420P); I'm making some mjpeg experiemnts, and I configured an FFserver and test with success with the ffmpeg directly:
and managed to play in an html< IMG> tag I'm trying to do the same with FfmpegFrameRecorder: ffr = new FFmpegFrameRecorder("http://" + "FFSERVER_IP" + ":" + 8090 + "/feed1.ffm",dim.getWidth(),dim.getHeight(), 0);
ffr.setFormat("mjpeg");
ffr.setVideoCodec(8);//MJPEG
ffr.setPixelFormat(avutil.AV_PIX_FMT_YUVJ420P);
try {
ffr.start();
} catch (org.bytedeco.javacv.FrameRecorder.Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
} this return this output:
but when I record the frame: try {
ffr.record(f);
} catch (org.bytedeco.javacv.FrameRecorder.Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
} I get this exception:
Did I need to make more configuration in FFMPEGFrameRecorder? |
Check the log, it's going to contain more information. |
BTW, issue #267 might be related. |
Sorry I didn't understand what log should I check ? and where is it? |
What do you get as output after the following?
|
That is all I'm getting as output from javacv when I making the ffmpeframerecorder.start(). Then I get the error on recording the frame. using ffmpeg directly I get this output:
|
So, you want to use the ffm format, right? You're not going to get that if you call |
yep that make the trick, Thanks |
FYI, if the |
Hello,
I'm experiment to use FFMPEGFrameRecorder to record the stream that I capture to a file,
the requirement is to make a mjpeg file,
but when I try to start the recording I get an
my code:
What I'm doing wrong, can someone give me some parametrization pointers?
The text was updated successfully, but these errors were encountered: