From: Ken L. <fo...@la...> - 2007-08-29 10:08:35
|
I've committed a fix to FMJ for this problem. It seems that I don't know how to correctly calculate the frame time for a given frame based on the pts/dts in the packets that make up the frames. So I changed it to just use the frame number and frame rate for now. The movie plays with this changed. Committed to CVS, the patch is attached as well. Also, for troubleshooting purposes, I've now added a simple standalone player to ffmpeg-java, see my news posting below. Ken ----------------- For testing, ffmpeg-java now includes a simple video player that does not use JMF/FMJ. It is very simple for now, does not have correct timing or sound, but it is a start. Get the latest ffmpeg-java release, and try something like; java -cp ./ffmpeg-java.jar:./lib/jna.jar net.sf.ffmpeg_java.example.PlayerExample http://www.javasaver.com/testjs/jmf/anim/2005-11-26.mov Brent Baccala wrote: > On Tue, 28 Aug 2007, Ken Larson wrote: > >> Did you increase your OS swap space, or increase the amount of memory >> available to ant? You have to increase the amount of memory >> available to ant, for example: >> export ANT_OPTS=-Xmx700m >> before running. >> >> That said, the unit tests are probably not that critical for you to run. > > OK, that got the tests running. Now the documentation fails: > > javadoc: > [javadoc] Generating Javadoc > [javadoc] Javadoc execution > [javadoc] javadoc: error - Illegal package name: > "/home/baccala/JAVA/fmj-cvs/src/net/sf/fmj/codegen/package.html" > (46 more similar errors) > >> It turns out that FFMPEGParser was hard-coded to only support .mov >> and .avi. I added .mpg, this is in CVS only at this point though. > > OK, I'm using the latest CVS version. It now loads the first frame, > and the audio plays, but the video doesn't move. I'm attaching the > MPEG I'm using. > > > > -bwb > > Brent Baccala > co...@fr... |