项目作者: amarghosh

项目描述 :
ISO base media file viewer
高级语言: Python
项目地址: git://github.com/amarghosh/mp4viewer.git
创建时间: 2013-09-24T06:36:30Z
项目社区:https://github.com/amarghosh/mp4viewer

开源协议:MIT License

下载


lint
Code style
pytest
PyPI - Version

MP4Viewer

MP4Viewer is an mp4 metadata analyser (ISO base media file format) written in python.
You can use it to analyse the metadata of mp4 files on the shell, a new gtk based window, or save it as a json file.
The definitions of structures used in the code can be found in the ~publicly available standard~ (it is not free to download anymore) ISO/IEC 14496-12 - ISO base media file format.

Install using pip

  1. pip install --upgrade mp4viewer
  2. python3 -m mp4viewer [-h] [-o {stdout,gui,json}] [-e] [-c {on,off}] file.mp4

Run directly from code

  1. ./parse.sh [-h] [-o {stdout,gui,json}] [-e] [-c {on,off}] file.mp4

Arguments

  1. positional arguments:
  2. input_file Location of the ISO bmff file (mp4)
  3. options:
  4. -h, --help show this help message and exit
  5. -o {stdout,gui,json}, --output {stdout,gui,json}
  6. Specify the output format. Please note that pygtk is required for `gui`.
  7. -c {on,off}, --color {on,off}
  8. Toggle colors in console based output; on by default.
  9. -j JSON_PATH, --json JSON_PATH
  10. Path to the json file where the output should be saved. If this is specified, the json output will be generated and written to this file even if the requested output format is not
  11. json. If the output format is json and this argument is not specified, the json object will be written to the current directory using "$PWD/$(basename input_file).mp4viewer.json"
  12. -e, --expand-arrays Do not truncate long arrays
  13. --debug Used for internal debugging
  14. --latex Generate latex-in-markdown for github README

Sample outputs:

The default output on the console

shell output

GTK

window with gtk treeview

MP4Viewer uses gtk in graphics mode and requires pygtk3 for viewing results in a window.
This usually comes preinstalled with recent versions of ubuntu.

You can find more similar MP4 tools in this page