Atitit 获取多媒体mp3 mp4 m4a元数据 G:\桌面安装\paidashi\bin\ffprobe.exe ffprobe -i 1.flv -print_format json -sh

Atitit 获取多媒体mp3 mp4 m4a元数据

 

目录

1.1. Cli  \paidashi\bin\ffprobe.exe 1

1.2. Gui 使用TagExplorer查看一首MP3中的tag:  7

1.3. 使用类库 7

1.4. 使用自己解析 7

2. ref 7

 

    1. Cli  \paidashi\bin\ffprobe.exe

ffprobe -i 1.flv -print_format json -show_frames -show_format -show_streams -v 0

 

在外部程序调用并处理音频视频信息时,通过ffmpeg/ffprobe查看音频视频文件信息并输出为json格式是非常实用的功能,在终端输入以下命令:

 

ffprobe -v quiet -print_format json -show_format -show_streams #{source}

---------------------

#{source}部分替换为mp3文件所在路径。输出如下:

 

{

    "streams": [

        {

            "index": 0,

            "codec_name": "mp3",

            "codec_long_name": "MP3 (MPEG audio layer 3)",

            "codec_type": "audio",

            "codec_time_base": "1/44100",

            "codec_tag_string": "[0][0][0][0]",

            "codec_tag": "0x0000",

            "sample_fmt": "s16p",

            "sample_rate": "44100",

            "channels": 2,

            "channel_layout": "stereo",

            "bits_per_sample": 0,

            "r_frame_rate": "0/0",

            "avg_frame_rate": "0/0",

            "time_base": "1/14112000",

            "start_pts": 353600,

            "start_time": "0.025057",

            "duration_ts": 3346145280,

            "duration": "237.113469",

            "bit_rate": "128000",

            "disposition": {

                "default": 0,

                "dub": 0,

                "original": 0,

                "comment": 0,

                "lyrics": 0,

                "karaoke": 0,

                "forced": 0,

                "hearing_impaired": 0,

                "visual_impaired": 0,

                "clean_effects": 0,

                "attached_pic": 0,

                "timed_thumbnails": 0

            },

            "tags": {

                "encoder": "LAME3.99r"

            },

            "side_data_list": [

                {

                    "side_data_type": "Replay Gain"

                }

            ]

        },

        {

            "index": 1,

            "codec_name": "mjpeg",

            "codec_long_name": "Motion JPEG",

            "codec_type": "video",

            "codec_time_base": "0/1",

            "codec_tag_string": "[0][0][0][0]",

            "codec_tag": "0x0000",

            "width": 500,

            "height": 500,

            "coded_width": 500,

            "coded_height": 500,

            "has_b_frames": 0,

            "sample_aspect_ratio": "0:1",

            "display_aspect_ratio": "0:1",

            "pix_fmt": "yuvj444p",

            "level": -99,

            "color_range": "pc",

            "color_space": "bt470bg",

            "chroma_location": "center",

            "refs": 1,

            "r_frame_rate": "90000/1",

            "avg_frame_rate": "0/0",

            "time_base": "1/90000",

            "start_pts": 2255,

            "start_time": "0.025056",

            "duration_ts": 21340212,

            "duration": "237.113467",

            "bits_per_raw_sample": "8",

            "disposition": {

                "default": 0,

                "dub": 0,

                "original": 0,

                "comment": 0,

                "lyrics": 0,

                "karaoke": 0,

                "forced": 0,

                "hearing_impaired": 0,

                "visual_impaired": 0,

                "clean_effects": 0,

                "attached_pic": 1,

                "timed_thumbnails": 0

            },

            "tags": {

                "comment": "Cover (front)"

            }

        }

    ],

    "format": {

        "filename": "/Users/mac123/Desktop/music/张学友 - 吻别 (摇滚版).mp3",

        "nb_streams": 2,

        "nb_programs": 0,

        "format_name": "mp3",

        "format_long_name": "MP2/3 (MPEG audio layer 2/3)",

        "start_time": "0.025056",

        "duration": "237.113469",

        "size": "3864162",

        "bit_rate": "130373",

        "probe_score": 51,

        "tags": {

            "ID": "7063568",

            "title": "吻别 (摇滚版)",

            "artist": "张学友",

            "album": "Jacky cheung 15",

            "genre": "Blues"

        }

    }

}

---------------------

 

    1. Gui 使用TagExplorer查看一首MP3中的tag: 

Mp3tag

 

    1. 使用类库
    2. 使用自己解析

 

Atitit 获取mp3音乐文件的音乐名与歌手结构化元数据 nlp java

 

目录

1.1. 一、MP3文件的元数据 1

1.2. MP3文件的数据结构以及为mp3内嵌歌词的代码   3

1.3. MP3文件是由帧构成,帧是 MP3文件的最小组成单位。 3

1.4. 标签帧,而只有数据帧  APEV2 是最新出现的一种标签, 3

1.5. 值得一提的是 Lyrics3v2,它是千千静听播放器发明的一种独立帧, 3

  1. ref

Atitit MP3元数据抽取记录 音乐信息检索.docx

Atitit 获取音频音乐mp3文件tag元数据

Atitit 获取音频音乐mp3文件tag元数据.docx

 

Atitit m4a文件元数据结构.docx

猜你喜欢

转载自blog.csdn.net/attilax/article/details/92062324