프론트엔드 정복하기
React_ffprobe 제공 정보(ffmpeg 메소드) 본문
*ffprobe란?) ffmpeg 라이브러리에서 제공하는 메소드
{ streams:
[0] [ { index: 0,
[0] codec_name: 'h264',
[0] codec_long_name: 'H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10',
[0] profile: 'High',
[0] codec_type: 'video',
[0] codec_time_base: '1001/60000',
[0] codec_tag_string: 'avc1',
[0] codec_tag: '0x31637661',
[0] width: 1280,
[0] height: 720,
[0] coded_width: 1280,
[0] coded_height: 720,
[0] closed_captions: 0,
[0] has_b_frames: 0,
[0] sample_aspect_ratio: 'N/A',
[0] display_aspect_ratio: 'N/A',
[0] pix_fmt: 'yuv420p',
[0] level: 31,
[0] color_range: 'unknown',
[0] color_space: 'unknown',
[0] color_transfer: 'unknown',
[0] color_primaries: 'unknown',
[0] chroma_location: 'left',
[0] field_order: 'unknown',
[0] timecode: 'N/A',
[0] refs: 1,
[0] is_avc: 'true',
[0] nal_length_size: 4,
[0] id: 'N/A',
[0] r_frame_rate: '30000/1001',
[0] avg_frame_rate: '30000/1001',
[0] time_base: '1/60000',
[0] start_pts: 0,
[0] start_time: 0,
[0] duration_ts: 986000,
[0] duration: 16.433333,
[0] bit_rate: 2998090,
[0] max_bit_rate: 'N/A',
[0] bits_per_raw_sample: 8,
[0] nb_frames: 493,
[0] nb_read_frames: 'N/A',
[0] nb_read_packets: 'N/A',
[0] tags: [Object],
[0] disposition: [Object] },
[0] { index: 1,
[0] codec_name: 'aac',
[0] codec_long_name: 'AAC (Advanced Audio Coding)',
[0] profile: 'LC',
[0] codec_type: 'audio',
[0] codec_time_base: '1/44100',
[0] codec_tag_string: 'mp4a',
[0] codec_tag: '0x6134706d',
[0] sample_fmt: 'fltp',
[0] sample_rate: 44100,
[0] channels: 2,
[0] channel_layout: 'stereo',
[0] bits_per_sample: 0,
[0] id: 'N/A',
[0] r_frame_rate: '0/0',
[0] avg_frame_rate: '0/0',
[0] time_base: '1/44100',
[0] start_pts: 0,
[0] start_time: 0,
[0] duration_ts: 726016,
[0] duration: 16.462948,
[0] bit_rate: 191999,
[0] max_bit_rate: 200616,
[0] bits_per_raw_sample: 'N/A',
[0] nb_frames: 709,
[0] nb_read_frames: 'N/A',
[0] nb_read_packets: 'N/A',
[0] tags: [Object],
[0] disposition: [Object] } ],
[0] format:
[0] { filename: 'uploads\\1591068482823_명동거리.mp4',
[0] nb_streams: 2,
[0] nb_programs: 0,
[0] format_name: 'mov,mp4,m4a,3gp,3g2,mj2',
[0] format_long_name: 'QuickTime / MOV',
[0] start_time: 0,
[0] duration: 16.461667,
[0] size: 6570282,
[0] bit_rate: 3193009,
[0] probe_score: 100,
[0] tags:
[0] { major_brand: 'mp42',
[0] minor_version: '0',
[0] compatible_brands: 'isommp42',
[0] creation_time: '2013-06-03T09:45:05.000000Z' } },
[0] chapters: [] }
[0] 16.461667
[0] Screenshots taken
ex ) fileDuration = metadata.format.duration
'React > 라이브러리' 카테고리의 다른 글
react-slick 라이브러리 (0) | 2020.06.25 |
---|---|
React에서 Jquery 사용하기 (0) | 2020.06.25 |
React_multer 제공 기능 (0) | 2020.06.02 |
React_lib 제공 method 모음 (0) | 2020.05.22 |
React_Redux_연결시키기 (0) | 2020.05.22 |