Searching command line tool which lists resolution,bitrate,fps and video+audio codec of all AVIs + M

Discussion in 'Amateur Video Production' started by Joe DeAngelo, Aug 11, 2007.

  1. Joe DeAngelo

    Joe DeAngelo Guest

    Is there a command line tool which lists
    resolution,bitrate,fps and video+audio codec of all AVIs + MPGs in a directory ?

    Note: I don't need a GUI based like GSpot. It's output should be text on the console.

    Joe DeAngelo, Aug 11, 2007
    1. Advertisements

  2. Yes:
    for file in $(ls *.avi *.mp?g); do
    ffmpeg -i $file 2>&1

    HTH, cheers.
    Stefano Sabatini, Aug 11, 2007
    1. Advertisements

  3. Maybe you can convince him to write a commandline version.

    Or see mplayer which has many options, maybe it helps.
    Heiko Recktenwald, Aug 11, 2007
  4. Joe DeAngelo

    Ken Maltby Guest

    Bravo, well done, I never even thought of ffmpeg.

    Ken Maltby, Aug 11, 2007
  5. Joe DeAngelo

    Snapper Guest

    Have you tried AVI2Clipboard? It lists the items you desire but AFAIK
    only for AVIs and only one at a time. I don't believe it can be run
    from the command line. Go to and see what you

    File Name ..........: The 3 Burials of Melquiades Estrada.avi
    Total Size (Bytes) .: 732,719,104 Bytes
    Total Size (KB) ....: 715,546 KB
    Total Size (MB) ....: 698.78 MB
    Total Streams ......: 2 Stream(s)
    File Size Correct ..: Yes

    Video Size (Bytes) .: 616,340,888 Bytes
    Video Size (KB) ....: 601,895 KB
    Video Size (MB) ....: 587.79 MB
    Video Length .......: 02:01:13
    Video Codec Code ...: XVID
    Video Codec Name ...: XviD MPEG-4 codec
    Video Bitrate ......: 677 KB/s
    Resolution .........: 672 x 256
    Aspect Ratio .......: 2.62:1
    Total Frames .......: 174374 Frames
    Framerate ..........: 23.976 FPS
    Color Depth ........: 12 Bits
    Quality Factor .....: 0.164 B/px
    Packed Bitstream ...: Yes

    Audio Size (Bytes) .: 116,368,000 Bytes
    Audio Size (KB) ....: 113,641 KB
    Audio Size (MB) ....: 110.98 MB
    Audio Length .......: 02:01:12
    Audio Codec Code ...: 85 (0x0055)
    Audio Codec Name ...: MPEG-1 Layer 3 (MP3)
    Audio Bitrate ......: 128 KB/s (CBR)
    Channels ...........: 2 Ch
    Sampling Rate ......: 48000 Hz
    Snapper, Aug 12, 2007
  6. Joe DeAngelo

    tonsofpcs Guest

    VLC can do this through command line options or alternate interfaces
    (like telnet and command) as well as the ffmpeg method already posted
    tonsofpcs, Aug 12, 2007
  7. You might be able to capitalise on GSpot's facility to deliver its
    output directly to a text file, setup via Options > Export.

    So, for example, if I enter the following at a Command Prompt in
    Windows XP
    "D:\Program Files\GSpot270a\GSpot.exe" -"D:\Movies\Womble\Womble
    Editor Output\Test.MPG"
    then GSpot runs, and as well as displaying its GUI (which I can
    ignore), it automatically appends the results to my specified text
    file, in my case

    If, at the command prompt, I then enter
    my text editor displays that file with its appended new results.
    Terry Pinnell, Aug 12, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.