0

Is there a way to use ffmpeg to extract say first 15seconds of a video file (mov or mp4)? The input file will be passed in as a stream. I've looked at this https://github.com/bramp/ffmpeg-cli-wrapper, but not sure if supports stream input. Thanks for any advice in advance!

rst
  • 101
  • 1
  • 1
    What have you tried so far? – DavidPostill May 04 '20 at 15:59
  • I am looking at this https://github.com/bramp/ffmpeg-cli-wrapper/tree/master/src/main/java/net/bramp/ffmpeg , but not sure I see what I need. Many thanks for your comment – rst May 04 '20 at 16:00
  • @DavidPostill Can you please open the question now? – rst May 04 '20 at 16:49
  • Please note that https://superuser.com is not a free script/code writing service. If you tell us what you have tried so far (include the scripts/code you are already using) and where you are stuck then we can try to help with specific problems. You should also read [ask]. – DavidPostill May 04 '20 at 16:50
  • Hint: [ffmpeg Documentation](https://ffmpeg.org/ffmpeg.html) – DavidPostill May 04 '20 at 16:51
  • Guess I've already clearly mentioned that I don't find a way to use an input stream (java) on the documentation. Not sure what other information I can provide. If someone can guide me to the appropriate documentation that would help.I m not asking for an entire code/script. – rst May 05 '20 at 08:12
  • See the link in the duplicate question banner. [command line - Using ffmpeg to cut up video - Super User](https://superuser.com/questions/138331/using-ffmpeg-to-cut-up-video) – DavidPostill May 05 '20 at 08:15
  • This is not a duplicate question, unless someone does not understand what I am asking? I have asked about a java implementation and have also asked about streaming implementation.Don't see how a command line related question can be treated as an equivalent. – rst May 05 '20 at 08:21
  • If you are asking about a Java implementation then it is off topic, as programming questions are off topic. – DavidPostill May 05 '20 at 08:22

0 Answers0