ffmpeg - Splitting .flv file in Java OR php -


possible duplicate:
how split flv file size using ffmpeg or mencoder or smth else?

i have big .flv of 10 hours want split in 10 mins. can in java or php using ffmpeg, if yes can please direct me specific documentation can achieve this.

public class splitflv {  public static void main(string[] args) {                try {                    system.out.println("splitting started");                  process p = runtime.getruntime().exec("ffmpeg –i 1000.flv -acodec libfaac -ss 00:00:00 -t 00:10:00 -ar 22050 -ab 32 -f flv 1010.flv");                  system.out.println("splitting ended");                  bufferedreader in = new bufferedreader(                                        new inputstreamreader(p.getinputstream()));                    string line = null;                    while ((line = in.readline()) != null) {                        system.out.println(line);               }                } catch (ioexception e) {                    e.printstacktrace();                }           }   

}

i wrote code not working

ffmpeg can split videos, has invoked command line.

ffmpeg –i video.flv -acodec libfaac -ss 00:00:00 -t 00:03:00 -ar 22050 -ab 32 -f flv video1.flv

  • acodec audio codec libfacc
  • ss starting time
  • t ending time
  • ar audio sample rate 22050 hz
  • ab audio bit rate 32 kilobits per second
  • f flv output file format flv.
  • s dimensions of output file.

in php/ java, can "exec/runtime.getruntime().exec" execute command.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -