suchen

Heim  >  Fragen und Antworten  >  Hauptteil

mediainfo - ubuntu获取多媒体信息的控制台工具?

Ubuntu 12.04,
我查到有 mediainfo 可以获取多媒体信息。
请问还有其它方便的可以获取音视频的编码方式的工具么~

FFmpeg 2.1 与 gstreamer 1.3 在不编码的情况下可以有什么命令获取?

伊谢尔伦伊谢尔伦2846 Tage vor441

Antworte allen(2)Ich werde antworten

  • ringa_lee

    ringa_lee2017-04-21 10:58:49

    我一直在用的脚本:

    >>> cat =midentify
    #!/bin/sh
    #
    # This is a wrapper around the -identify functionality.
    # It is supposed to escape the output properly, so it can be easily
    # used in shellscripts by 'eval'ing the output of this script.
    #
    # Written by Tobias Diedrich <ranma+mplayer@tdiedrich.de>
    # Licensed under GNU GPL.
    
    if [ -z "$1" ]; then
            echo "Usage: midentify <file> [<file> ...]"
            exit 1
    fi
    
    mplayer -vo null -ao null -frames 0 -identify "$@" 2>/dev/null |
            sed -ne '/^ID_/ {
                              s/[]()|&;<>`'"'"'\\!$" []/\\&/g;p
                            }'
    

    Antwort
    0
  • 阿神

    阿神2017-04-21 10:58:49

    三个工具都可以:

    MP4Box -info video.mp4
    
    ffmpeg -i video.mp4
    
    mediainfo video.mp4
    

    Antwort
    0
  • StornierenAntwort