VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Results 1 to 2 of 2
Thread
  1. Is there a way to let ffmpeg show the used audio and video codec inside a (.mp4) video file?

    I assume there are commands like:

    ffmpeg -i myvideo.mp4 -showvideocodec

    and

    ffmpeg -i myvideo.mp4 -showaudiocodec

    How is the corresponding command syntax in detail?
    Quote Quote  
  2. simply call:
    Code:
    ffmpeg -i myvideo.mp4
    and ffmpeg should output something like:
    Code:
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'h:\TestClips&Co\chapter.mp4':
      Metadata:
        major_brand     : avc1
        minor_version   : 0
        compatible_brands: isomavc1
        creation_time   : 2009-06-30 06:08:14
      Duration: 00:00:17.16, start: 0.000000, bitrate: 934 kb/s
        Chapter #0.0: start 0.000000, end 3.000000
        Metadata:
          title           : Zero
        Chapter #0.1: start 3.000000, end 5.000000
        Metadata:
          title           : Three
        Chapter #0.2: start 5.000000, end 7.000000
        Metadata:
          title           : Five
        Chapter #0.3: start 7.000000, end 11.000000
        Metadata:
          title           : Seven
        Chapter #0.4: start 11.000000, end 17.000000
        Metadata:
          title           : Eleven
        Chapter #0.5: start 17.000000, end 17.160000
        Metadata:
          title           : Seventeen
        Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 640x352 [SAR 1:1 DAR 20:11], 801 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc
        Metadata:
          creation_time   : 2009-06-30 06:08:14
          handler_name    : GPAC ISO Video Handler
        Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 130 kb/s
        Metadata:
          creation_time   : 2009-06-30 06:08:14
          handler_name    : GPAC ISO Audio Handler
    which is the same output you get when calling 'ffprobe myvideo.mp4'.

    If you need more details/control better use MediaInfos CLI version.

    Cu Selur

    Ps.: there's no syntax/call to get just audio/video/chapter/subtitle infos from a file using ffmpeg.
    Quote Quote  



Similar Threads