Closed GoogleCodeExporter closed 9 years ago
This new FFmpegFrameRecorder class doesn't work?
Original comment by samuel.a...@gmail.com
on 13 Jul 2012 at 1:20
In fact, i don't know how to replace the old one by the new
Could you explain the procedure?
Original comment by matso...@gmail.com
on 13 Jul 2012 at 1:23
Just rename the class to something else and add it to your own project files
Original comment by samuel.a...@gmail.com
on 13 Jul 2012 at 1:24
Ok, so i create a new class in my package named newFFmpegFrameRecord et
copy/paste the code, but there is a lot of errors like for example
avformat_new_stream(oc, null); who doesnt exist.
Original comment by matso...@gmail.com
on 13 Jul 2012 at 1:58
Oh, right, try the previous version:
http://javacv.googlecode.com/git-history/5bbb841a1d9b03328ad0c3dbc723ad6903220d6
2/src/main/java/com/googlecode/javacv/FFmpegFrameRecorder.java
Original comment by samuel.a...@gmail.com
on 13 Jul 2012 at 2:22
That's green again. =/
Original comment by matso...@gmail.com
on 13 Jul 2012 at 2:33
Let's see, your imageWidth is not a multiple of 16, that's probably not
supported by MPEG-1 and the great majority of codecs...
Original comment by samuel.a...@gmail.com
on 13 Jul 2012 at 2:52
I resize the images and it's works :)
Thank you so much !
Original comment by matso...@gmail.com
on 13 Jul 2012 at 3:07
Great! FYI, I adjusted FFmpegFrameRecorder to have it always round up the
imageWidth to the next multiple of 16. Let me know if you have any issue with
JavaCV 0.2, thanks!
Original comment by samuel.a...@gmail.com
on 22 Jul 2012 at 12:44
[deleted comment]
cv_loadImage function is not working. I think i need its import file, can any
one tell me what is its import file? Thanks!
Original comment by whizpool...@gmail.com
on 11 Sep 2014 at 5:52
opencv_core.IplImage img = cvLoadImage("/sdcard/folder/img1.jpg");
FFmpegFrameRecorder recorder = new
FFmpegFrameRecorder("/sdcard/folder/test.mpeg",200,150);
try {
recorder.setCodecID( CODEC_ID_MPEG1VIDEO);
recorder.setFrameRate(30);
recorder.setPixelFormat( PIX_FMT_YUV420P);
recorder.start();
for (int i=0;i<100;i++)
{
recoder.recode(img);
}
recorder.stop();
}
catch (Exception e){
e.printStackTrace();
}
same but not work fine for me
Original comment by toqeer.g...@gmail.com
on 9 Jan 2015 at 11:17
Original issue reported on code.google.com by
matso...@gmail.com
on 13 Jul 2012 at 1:19