a-schild / jave2

The JAVE (Java Audio Video Encoder) library is Java wrapper on the ffmpeg project
GNU General Public License v3.0
1.28k stars 249 forks source link

why always read from errorStream? #271

Closed zhangys529 closed 2 months ago

zhangys529 commented 2 months ago

i viewed many issues, and find out that they always read data from errorStream, i try to read from inputStream, but nothing. Is it normal? just like below:

ProcessWrapper ffmpeg = new DefaultFFMPEGLocator().createExecutor();
ffmpeg.addArgument("-i");
ffmpeg.addArgument(inputFilePath);
ffmpeg.execute();
BufferedReader br = new BufferedReader(new InputStreamReader(ffmpeg.getErrorStream()));
a-schild commented 2 months ago

This depends what messages you wish to receive. Many messages relevant from ffpmeg are sent to errout, since stdout can also be used to stream out resulting images/videos