[FFmpeg-trac] #9759(undetermined:closed): Output always goes to stderr even when there are no errors.

FFmpeg trac at avcodec.org
Mon May 2 00:57:49 EEST 2022


#9759: Output always goes to stderr even when there are no errors.
-------------------------------------+-------------------------------------
             Reporter:  Randall      |                    Owner:  (none)
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:  invalid
             Keywords:  stderr,      |               Blocked By:
  error output                       |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by Marton Balint):

 * status:  new => closed
 * resolution:   => invalid

Comment:

 This is completely normal. Stderr is not just for errors, but for any
 additional information. Stdout is for the main output of the program, e.g.
 in case of ffmpeg you could use it to output video there. Stdout should
 never be cluttered with logging or runtime information, because in that
 case you would not be able to use stdout as the main output of the
 program.

 To check if the program was run successfully you should check its exit
 code, not  stdout/stderr output.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9759#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list