[FFmpeg-trac] #9562(documentation:new): ffprobe non-option brackets

FFmpeg trac at avcodec.org
Sun Jun 12 13:35:06 EEST 2022


#9562: ffprobe non-option brackets
-------------------------------------+-------------------------------------
             Reporter:  Dan          |                    Owner:  (none)
  Jacobson                           |
                 Type:  defect       |                   Status:  new
             Priority:  minor        |                Component:
                                     |  documentation
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Stefano Sabatini):

 Replying to [comment:3 cornholio]:
 > Was going to add a disclaimer about useless use of cat but figured no
 one would notice.  pff.
 >

 > ffprobe doesn't require -i though

 Double checked the code and I confirm that the -i option is mandatory,
 although you can use {{{-i -}}} to simulate that behavior:
 {{{
 $ cat test.mpeg | ./ffprobe
 ffprobe version N-106634-gbb6ef6d314 Copyright (c) 2007-2022 the FFmpeg
 developers
   built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
   configuration: --enable-openssl
   libavutil      57. 24.101 / 57. 24.101
   libavcodec     59. 26.100 / 59. 26.100
   libavformat    59. 22.100 / 59. 22.100
   libavdevice    59.  6.100 / 59.  6.100
   libavfilter     8. 33.100 /  8. 33.100
   libswscale      6.  6.100 /  6.  6.100
   libswresample   4.  6.100 /  4.  6.100
 Simple multimedia streams analyzer
 usage: ffprobe [OPTIONS] [INPUT_FILE]

 You have to specify one input file.
 Use -h to get full help or, even better, run 'man ffprobe'.
 $ cat test.mpeg | ./ffprobe -i -
 [...]
 Input #0, mpeg, from 'pipe:':
   Duration: N/A, start: 0.518189, bitrate: 105017 kb/s
   Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p(tv), 160x120 [SAR 1:1 DAR
 4:3], 104857 kb/s, 25 fps, 25 tbr, 90k tbn
   Stream #0:1[0x1c0]: Audio: mp2, 22050 Hz, mono, s16p, 160 kb/s
  }}}

 Also, this was the behavior since the first commit, so I think the
 committed change is correct.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9562#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list