pt吧 关注:219,088贴子:11,470,476

【210402】MEDiA iNFO 自定义输出、MediaInfo 模板

只看楼主收藏回复

背景:MediaInfo 以文本格式输出,在发布页会极其霸占版面,太多信息就意味着没有信息,太烦人了
类似以下的自定义输出,就比较清晰明了,本着“How Hard Can it Be?"的态度,我稍微思考了一下,决定在贴吧讨论讨论这个话题,如何自定义MediaInfo输出?
General
Filename.......: Godzilla.vs.Kong.2021.2160p.HMAX.WEB-DL.DDP5.1.Atmos.HDR.x265-playWEB.mkv
Container......: Matroska
Duration.......: 1 h 53 min
Size...........: 14.8 GiB
Video
Codec..........: HEVC Main 10 @ L5 @ Main 10 bits
HDR Format.....: SMPTE ST 2086, HDR10 compatible
Resolution.....: 3840x2160
Bit rate.......: 17.9 Mb/s
Frame rate.....: 23.976 (24000/1001) FPS
Audio
Format.........: E-AC-3 JOC
Codec..........: Dolby Digital Plus with Dolby Atmos
Channels.......: 6 channels
Bit rate.......: 768 kb/s
Language.......: English
Subtitles
Language.......: English
Language.......: Spanish


IP属地:广东1楼2021-04-02 01:16回复
    问题难在,MediaInfo似乎没有一个网页,整理出所谓的参数“Parameter”,然而,我发现了MediaInfo CLI(命令行版本中),


    IP属地:广东来自Android客户端2楼2021-04-02 01:23
    回复
      广告
      立即查看
      After you Download MediaInfo the CLI version for Windows, extract the zip file and put it on your Desktop.
      RUN + CMD
      Navigate to the MediaInfo Folder on the Desktop.
      Put some Video files in the MediaInfo folder.
      Run the following on the terminal:
      MediaInfo.exe --help >Help.txt
      MediaInfo.exe --Info-Parameters >Info_Parameters.txt


      IP属地:广东3楼2021-04-02 01:23
      回复
        阅读了 Info_Parameters.txt
        再参照这一条网友的回复:
        When you run mediainfo --Info-Parameters, you will notice that there are seven sections: General, Video, Audio, Text, Other, Image, and Menu. Each of these sections contains many different parameters that contain various information about the file and get called with the format --Output=SectionName;%Parameter%. You can pick multiple parameters from the same section name, separating them with any text you like (including \n for newlines (but not \t for tabs, interestingly)), like --Output=SectionName;%Parameter1%\n%Parameter2%.
        You can also add your own text, which gets displayed as however you wrote it, allowing you to label the output for easier reading later. For example, to get the file name, duration, and file size, you can use the command mediainfo --Output="General;File Name: %FileName%\r\nDuration: %Duration/String3%\r\nSize: %FileSize/String%" video.mkv
        我发现问题其实很简单,定制MediaInfo没那么复杂。
        以下就是我的模板,里边有
        1、通用栏目下的文件名、文件容器、时长、体积
        2、视频栏目下的解码器类别、色彩深度、HDR规格(如果是SDR,这里是空白的)、分辨率、长宽比、码率、帧率
        3、音频栏目下的格式(连带音频的商业名,E-AC-3 JOC就是后边的DDP Atmos)、声道数、码率、语言、音频标题(因为音频标题和音频语言的标签一样,所以显示了两个English,请勿见怪)
        4、字幕栏目下的字幕序号、字幕格式、字幕语言、字幕标题(因为字幕标题和字幕语言的标签一样,所以显示了两个English,请勿见怪)
        5、章节栏目是空白的,因为我不关心电影的这种玩意(但是我Remux还是会加进去QAQ,如果是音乐会,章节一定会加进去)
        6、在末尾加了“截图”文字,方便发布嘛~ 加星号是因为好像每个站的官组都喜欢这玩意



        IP属地:广东4楼2021-04-02 01:34
        回复
          那么,哪里可以白嫖我的MediaInfo配置呢?(白嫖什么的,最喜欢了)
          G4yHub链接
          https://github.com/ConnorSu/Customize_MediaInfo_Output/blob/main/README.txt


          IP属地:广东5楼2021-04-02 01:39
          回复


            IP属地:广东6楼2021-04-02 01:50
            收起回复
              支持,最近正好要学压制,赶上了。


              IP属地:广西8楼2021-04-02 04:25
              回复
                一般发布组都有固定格式要求的....


                IP属地:湖北来自手机贴吧9楼2021-04-02 04:46
                回复
                  广告
                  立即查看
                  绑定


                  IP属地:上海来自Android客户端10楼2021-04-02 04:47
                  回复
                    帮顶


                    IP属地:北京来自Android客户端11楼2021-04-02 05:16
                    回复
                      绑定


                      IP属地:河北来自iPhone客户端13楼2021-04-02 05:39
                      回复
                        顶顶


                        IP属地:浙江来自Android客户端14楼2021-04-02 06:02
                        回复
                          绑定


                          IP属地:四川来自Android客户端15楼2021-04-02 07:11
                          回复
                            工作组都有改完的模板


                            IP属地:辽宁来自Android客户端16楼2021-04-02 07:26
                            回复
                              广告
                              立即查看
                              绑定


                              IP属地:北京来自Android客户端17楼2021-04-02 07:35
                              回复