From 0f68a302f0b077df9ea62e57483255b574d04fd5 Mon Sep 17 00:00:00 2001 From: ForeverSc Date: Wed, 14 Aug 2024 02:01:31 +0800 Subject: [PATCH] docs: update getMediaInfo output json --- README.md | 49 +++++++++++++++++++++++++------------------------ README_CN.md | 49 +++++++++++++++++++++++++------------------------ 2 files changed, 50 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index 07aac03..9a7b597 100644 --- a/README.md +++ b/README.md @@ -168,10 +168,10 @@ Get the media information of a file, the output is referenced from `ffprobe` ```json { "format_name": "mov,mp4,m4a,3gp,3g2,mj2", - "duration": 10.026667, - "bit_rate": "629116", + "duration": 263.383946, + "bit_rate": "6515500", "start_time": 0, - "nb_streams": 4, + "nb_streams": 2, "streams": [ { "id": 1, @@ -179,31 +179,31 @@ Get the media information of a file, the output is referenced from `ffprobe` "codec_type": 0, "codec_type_string": "video", "codec_name": "h264", - "codec_string": "avc1.4d400c", - "profile": "", - "pix_fmt": "", - "level": -99, - "width": 320, - "height": 176, + "codec_string": "avc1.640032", + "profile": "High", + "pix_fmt": "yuv420p", + "level": 50, + "width": 1080, + "height": 2336, "channels": 0, "sample_rate": 0, - "sample_fmt": "", - "bit_rate": "300570", - "extradata_size": 41, + "sample_fmt": "u8", + "bit_rate": "6385079", + "extradata_size": 36, "extradata": Uint8Array, - "r_frame_rate": "25/1", - "avg_frame_rate": "25/1", + "r_frame_rate": "30/1", + "avg_frame_rate": "30/1", "sample_aspect_ratio": "N/A", "display_aspect_ratio": "N/A", "start_time": 0, - "duration": 10, + "duration": 263.33333333333337, "rotation": 0, - "nb_frames": "250", + "nb_frames": "7900", "tags": { - "creation_time": "2012-03-13T08:58:06.000000Z", + "creation_time": "2023-12-10T15:50:56.000000Z", "language": "und", - "vendor_id": "[0][0][0][0]", - "encoder": "JVT/AVC Coding" + "handler_name": "VideoHandler", + "vendor_id": "[0][0][0][0]" } }, { @@ -219,9 +219,9 @@ Get the media information of a file, the output is referenced from `ffprobe` "width": 0, "height": 0, "channels": 2, - "sample_rate": 48000, + "sample_rate": 44100, "sample_fmt": "", - "bit_rate": "160545", + "bit_rate": "124878", "extradata_size": 2, "extradata": Uint8Array, "r_frame_rate": "0/0", @@ -229,12 +229,13 @@ Get the media information of a file, the output is referenced from `ffprobe` "sample_aspect_ratio": "N/A", "display_aspect_ratio": "N/A", "start_time": 0, - "duration": 10.026666666666666, + "duration": 263.3839455782313, "rotation": 0, - "nb_frames": "470", + "nb_frames": "11343", "tags": { - "creation_time": "2012-03-13T08:58:06.000000Z", + "creation_time": "2023-12-10T15:50:56.000000Z", "language": "und", + "handler_name": "SoundHandler", "vendor_id": "[0][0][0][0]" } } diff --git a/README_CN.md b/README_CN.md index 85a064b..4461daa 100644 --- a/README_CN.md +++ b/README_CN.md @@ -169,10 +169,10 @@ getMediaInfo(): Promise // 2.0新增 ```json { "format_name": "mov,mp4,m4a,3gp,3g2,mj2", - "duration": 10.026667, - "bit_rate": "629116", + "duration": 263.383946, + "bit_rate": "6515500", "start_time": 0, - "nb_streams": 4, + "nb_streams": 2, "streams": [ { "id": 1, @@ -180,31 +180,31 @@ getMediaInfo(): Promise // 2.0新增 "codec_type": 0, "codec_type_string": "video", "codec_name": "h264", - "codec_string": "avc1.4d400c", - "profile": "", - "pix_fmt": "", - "level": -99, - "width": 320, - "height": 176, + "codec_string": "avc1.640032", + "profile": "High", + "pix_fmt": "yuv420p", + "level": 50, + "width": 1080, + "height": 2336, "channels": 0, "sample_rate": 0, - "sample_fmt": "", - "bit_rate": "300570", - "extradata_size": 41, + "sample_fmt": "u8", + "bit_rate": "6385079", + "extradata_size": 36, "extradata": Uint8Array, - "r_frame_rate": "25/1", - "avg_frame_rate": "25/1", + "r_frame_rate": "30/1", + "avg_frame_rate": "30/1", "sample_aspect_ratio": "N/A", "display_aspect_ratio": "N/A", "start_time": 0, - "duration": 10, + "duration": 263.33333333333337, "rotation": 0, - "nb_frames": "250", + "nb_frames": "7900", "tags": { - "creation_time": "2012-03-13T08:58:06.000000Z", + "creation_time": "2023-12-10T15:50:56.000000Z", "language": "und", - "vendor_id": "[0][0][0][0]", - "encoder": "JVT/AVC Coding" + "handler_name": "VideoHandler", + "vendor_id": "[0][0][0][0]" } }, { @@ -220,9 +220,9 @@ getMediaInfo(): Promise // 2.0新增 "width": 0, "height": 0, "channels": 2, - "sample_rate": 48000, + "sample_rate": 44100, "sample_fmt": "", - "bit_rate": "160545", + "bit_rate": "124878", "extradata_size": 2, "extradata": Uint8Array, "r_frame_rate": "0/0", @@ -230,12 +230,13 @@ getMediaInfo(): Promise // 2.0新增 "sample_aspect_ratio": "N/A", "display_aspect_ratio": "N/A", "start_time": 0, - "duration": 10.026666666666666, + "duration": 263.3839455782313, "rotation": 0, - "nb_frames": "470", + "nb_frames": "11343", "tags": { - "creation_time": "2012-03-13T08:58:06.000000Z", + "creation_time": "2023-12-10T15:50:56.000000Z", "language": "und", + "handler_name": "SoundHandler", "vendor_id": "[0][0][0][0]" } }