Thanks Art for shading some light. Its worth knowing. Al have a look at the API.
On Mon, Mar 15, 2010 at 7:27 AM, Art Clarke <[email protected]> wrote: > jffmpeg is very out of date. You can try Xuggler ( > http://www.xuggle.com/xuggler) or ffmpeg-java (a subproject of FMJ: > http://fmj-sf.net/). > > - Art > > On Mon, Mar 15, 2010 at 6:58 AM, Urugn <[email protected]> wrote: > > > Hello i have been trying to compile jffmpeg-1.1.0 under solaris. though i > > have managed to compile the jar files, > > i can not seem to generate libjffmpeg.so for there are so many gcc > errors. > > what configuration should i follow to full fill this. > > Here is my environment > > > > GNU Make 3.80 > > gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) > > javac 1.6.0_10 > > ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004 Fabrice > > Bellard > > > > Am using CSWffmpeg as follows > > > > pkgchk -l CSWffmpeg|egrep "Pathname|Type" > > > > Pathname: /opt/csw/bin/ffmpeg > > Type: regular file > > Pathname: /opt/csw/bin/ffplay > > Type: regular file > > Pathname: /opt/csw/bin/ffserver > > Type: regular file > > Pathname: /opt/csw/include > > Type: directory > > Pathname: /opt/csw/include/ffmpeg > > Type: directory > > Pathname: /opt/csw/include/ffmpeg/avcodec.h > > Type: regular file > > Pathname: /opt/csw/include/ffmpeg/avformat.h > > Type: regular file > > Pathname: /opt/csw/include/ffmpeg/avio.h > > Type: regular file > > Pathname: /opt/csw/include/ffmpeg/common.h > > Type: regular file > > Pathname: /opt/csw/include/ffmpeg/rational.h > > Type: regular file > > Pathname: /opt/csw/include/ffmpeg/rtp.h > > Type: regular file > > Pathname: /opt/csw/include/ffmpeg/rtsp.h > > Type: regular file > > Pathname: /opt/csw/include/ffmpeg/rtspcodes.h > > Type: regular file > > Pathname: /opt/csw/include/postproc > > Type: directory > > Pathname: /opt/csw/include/postproc/postprocess.h > > Type: regular file > > Pathname: /opt/csw/lib/libavcodec-0.4.9-pre1.so > > Type: regular file > > Pathname: /opt/csw/lib/libavcodec.so > > Type: symbolic link > > Pathname: /opt/csw/lib/libavformat-0.4.9-pre1.so > > Type: regular file > > Pathname: /opt/csw/lib/libavformat.so > > Type: symbolic link > > Pathname: /opt/csw/lib/libpostproc.so > > Type: symbolic link > > Pathname: /opt/csw/lib/libpostproc.so.0 > > Type: symbolic link > > Pathname: /opt/csw/lib/libpostproc.so.0.0.1 > > Type: regular file > > Pathname: /opt/csw/lib/vhook > > Type: directory > > Pathname: /opt/csw/lib/vhook/drawtext.so > > Type: regular file > > Pathname: /opt/csw/lib/vhook/fish.so > > Type: regular file > > Pathname: /opt/csw/lib/vhook/imlib2.so > > Type: regular file > > Pathname: /opt/csw/lib/vhook/null.so > > Type: regular file > > Pathname: /opt/csw/lib/vhook/ppm.so > > Type: regular file > > Pathname: /opt/csw/share/man/man1 > > Type: directory > > Pathname: /opt/csw/share/man/man1/ffmpeg.1 > > Type: regular file > > Pathname: /opt/csw/share/man/man1/ffplay.1 > > Type: regular file > > Pathname: /opt/csw/share/man/man1/ffserver.1 > > Type: regular file > > > > I edited config.mak for FFMPEG_DIRto poin to /opt/csw/include/ffmpeg > > and modified the following lines in src/cpp/decoder.c src/cpp/encoder.c > > and src/cpp/jffmpeg.h > > #include <libavcodec/avcodec.h> to #include <avcodec.h> > > > > Am now stack in the following error > > > > gmake > > exec /usr/sfw/bin/ant -DJAVA_HOME=/opt/jdk -DJMF_HOME=/opt/JMF > > -DFFMPEG_DIR=/opt/csw/include/ffmpeg > > Buildfile: build.xml > > > > init: > > [echo] JAVA_HOME is /opt/jdk > > [echo] JMF_HOME is /opt/JMF > > > > precompile: > > > > javacompile: > > > > jar: > > > > javah: > > [javah] > > ClassArgument.name=net.sourceforge.jffmpeg.ffmpegnative.NativeDecoder > > [javah] > > ClassArgument.name=net.sourceforge.jffmpeg.ffmpegnative.NativeEncoder > > > > BUILD SUCCESSFUL > > Total time: 1 second > > gcc -I. "-I/opt/jdk/include" "-I/opt/jdk/include/solaris" > > "-I/opt/csw/include/ffmpeg" -Ibuild/cpp -Wall -D_FILE_OFFSET_BITS=64 > > -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o build/cpp/decoder.o > > src/cpp/decoder.c > > src/cpp/decoder.c: In function > > `Java_net_sourceforge_jffmpeg_ffmpegnative_NativeDecoder_open_1decoder': > > src/cpp/decoder.c:121: warning: assignment discards qualifiers from > pointer > > target type > > src/cpp/decoder.c:70: warning: unused variable `codec_required' > > gcc -I. "-I/opt/jdk/include" "-I/opt/jdk/include/solaris" > > "-I/opt/csw/include/ffmpeg" -Ibuild/cpp -Wall -D_FILE_OFFSET_BITS=64 > > -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o build/cpp/encoder.o > > src/cpp/encoder.c > > src/cpp/encoder.c: In function > > `Java_net_sourceforge_jffmpeg_ffmpegnative_NativeEncoder_open_1encoder': > > src/cpp/encoder.c:324: warning: assignment from incompatible pointer type > > src/cpp/encoder.c: In function > > `Java_net_sourceforge_jffmpeg_ffmpegnative_NativeEncoder_convert': > > src/cpp/encoder.c:507: warning: cast to pointer from integer of different > > size > > src/cpp/encoder.c:508: warning: cast to pointer from integer of different > > size > > gcc -I. "-I/opt/jdk/include" "-I/opt/jdk/include/solaris" > > "-I/opt/csw/include/ffmpeg" -Ibuild/cpp -Wall -D_FILE_OFFSET_BITS=64 > > -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o build/cpp/yuv2rgb.o > > src/cpp/yuv2rgb.c > > gcc -shared -o build/dist/libjffmpeg.so build/cpp/*.o > > /opt/csw/lib/libavcodec.a > > gcc: /opt/csw/lib/libavcodec.a: No such file or directory > > gmake: *** [jffmpeg_lib] Error 1 > > > > > > PSome one point me to the right direction please. Thank you > > > > Regards Urugn > > _______________________________________________ > > libav-user mailing list > > [email protected] > > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > > > > > > -- > http://www.xuggle.com/ > xu‧ggle (zŭ' gl) v. To freely encode, decode, and experience audio and > video. > > Use Xuggle to get the power of FFmpeg in Java. > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
