javacv could not open codec

43 views
Skip to first unread message

Sam Loy

unread,
Feb 14, 2012, 6:20:50 PM2/14/12
to javacv
Hi Samuel,

java.lang.Exception: could not open codec
at
com.googlecode.javacv.FFmpegFrameRecorder.start(FFmpegFrameRecorder.java:
195)
at com.bluelotussoftware.thread.example.Consumer.<init>(Consumer.java:
52)
at
com.bluelotussoftware.thread.example.ThreadCamCaputeExample.<clinit>(ThreadCamCaputeExample.java:
27)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:
113)

Looking at FFmpegFrameRecorder, it looks like this exception is
different than not being able to find the encoder. Looking into
avcodec.java, it looks like several .h files are required to be in the
windowsIncludepath. I copied the .0.7.11 tar ball source code to my c:
\MinGW\local\include\ and renamed ffmpeg-0.7.11 to simply ffmpeg.

Is this correct, or am I missing something? Does it need to be in the
path as well? I'm still getting the exception.

Thanks in advance!

Samuel Audet

unread,
Feb 14, 2012, 8:30:00 PM2/14/12
to jav...@googlegroups.com
http://www.google.com/#q=site:groups.google.com+"could+not+open+codec"+FFmpegFrameRecorder

Sam Loy

unread,
Feb 17, 2012, 12:02:54 PM2/17/12
to javacv
Thank you. Very helpful. Actually got past this 10mins after your
post.
Reply all
Reply to author
Forward
0 new messages