A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Java in General
ffmpeg and Java
Joined: Mar 08, 2007
Mar 08, 2007 09:49:00
I�m trying to use ffmpeg launching it from
. Though I�m able to use it from the command line, I receive the following error from Java
Executing c:\ffmpeg.exe -i c:\test.mov -b 40k -r 10 -s qcif -target pal-vcd c:\test.3gp
ERROR>FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
ERROR> configuration: �enable-memalign-hack �extra-cflags=-I/local/include �extra-ldflags=-L/local/lib
ERROR> libavutil version: 49.3.0
ERROR> libavcodec version: 51.38.0
ERROR> libavformat version: 51.10.0
ERROR> built on Mar 6 2007 12:40:35, gcc: 3.2.3 (mingw special 20030504-1)
ERROR>c:\ffmpeg.exe: unrecognized option �-i c:\test.mov�
Please help me!!
Jesper de Jong
Joined: Aug 16, 2005
Mar 08, 2007 12:19:00
What happens if you open a command prompt and manually type this at the prompt:
c:\ffmpeg.exe -i c:\test.mov -b 40k -r 10 -s qcif -target pal-vcd c:\test.3gp
Do you get the same error message? If yes, then '-i ...' is probably not a valid option for ffmpeg. Do you have documentation for ffmpeg? Does it say something about the '-i' option?
Can you show us the Java code that you use to execute ffmpeg?
[ March 08, 2007: Message edited by: Jesper Young ]
Java Beginners FAQ
JavaRanch SCJP FAQ
The Java Tutorial
Java SE 8 API documentation
Joined: Mar 08, 2007
Mar 14, 2007 09:52:00
If I launch this
from the command line it works
cmd.exe start /c c:\\ffmpeg.exe -i c:\\Surf\\text.mp4 -b 40k -r 10 -s qcif -target pal-vcd c:\\Surf\\mov.3gp & exit
If I launch it from a simple java class it works.
But if I launch it from a javaBean called from a
it doesn't work. It never exits from the execution of the command...
rocket mass heater
subject: ffmpeg and Java
Using Commands in java program
struts video file upload
FFmpeg has stopped working
doubt in explanation dam mock question
Flvtool2: problem convert videos to flv format
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015