From 8b0989b99c10c1910ca22cc83713cd8640c4ac05 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Sun, 27 Dec 2020 12:46:16 +0100 Subject: [PATCH] Update README.md --- README.md | 650 ++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 409 insertions(+), 241 deletions(-) diff --git a/README.md b/README.md index 5204862..5d484c6 100644 --- a/README.md +++ b/README.md @@ -88,244 +88,412 @@ Note, to access FFprobe inside a plugin, use this: Example file object: - let file = { - _id: 'C:/Users/H/Desktop/Test Input1/Sample.mp4', - DB: 'ZRPDmnmpyuAEQi7nG', - HealthCheck: 'Not attempted', - TranscodeDecisionMaker: 'Not attempted', - bit_rate: 1690430.4, - container: 'mp4', - createdAt: 2019-09-26T06:46:31.929Z, - ffProbeData: - { streams: - [ { index: 0, - codec_name: 'h264', - codec_long_name: 'H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10', - profile: 'Main', - codec_type: 'video', - codec_time_base: '1/50', - codec_tag_string: 'avc1', - codec_tag: '0x31637661', - width: 1280, - height: 720, - coded_width: 1280, - coded_height: 720, - has_b_frames: 0, - sample_aspect_ratio: '1:1', - display_aspect_ratio: '16:9', - pix_fmt: 'yuv420p', - level: 31, - chroma_location: 'left', - refs: 1, - is_avc: 'true', - nal_length_size: '4', - r_frame_rate: '25/1', - avg_frame_rate: '25/1', - time_base: '1/12800', - start_pts: 0, - start_time: '0.000000', - duration_ts: 67584, - duration: '5.280000', - bit_rate: '1205959', - bits_per_raw_sample: '8', - nb_frames: '132', - disposition: - { default: 1, - 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: - { creation_time: '1970-01-01T00:00:00.000000Z', - language: 'und', - handler_name: 'VideoHandler' } }, - { index: 1, - codec_name: 'aac', - codec_long_name: 'AAC (Advanced Audio Coding)', - profile: 'LC', - codec_type: 'audio', - codec_time_base: '1/48000', - codec_tag_string: 'mp4a', - codec_tag: '0x6134706d', - sample_fmt: 'fltp', - sample_rate: '48000', - channels: 6, - channel_layout: '5.1', - bits_per_sample: 0, - r_frame_rate: '0/0', - avg_frame_rate: '0/0', - time_base: '1/48000', - start_pts: 0, - start_time: '0.000000', - duration_ts: 254976, - duration: '5.312000', - bit_rate: '384828', - max_bit_rate: '400392', - nb_frames: '249', - disposition: - { default: 1, - 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: - { creation_time: '1970-01-01T00:00:00.000000Z', - language: 'und', - handler_name: 'SoundHandler' } } ] }, - ffProbeRead: 'success', - file: 'C:/Users/H/Desktop/Test Input1/Sample.mp4', - fileMedium: 'video', - file_size: 1.056519, - meta: - { SourceFile: 'C:/Users/H/Desktop/Test Input1/Sample.mp4', - errors: [], - Duration: 5.312, - PreviewDuration: 0, - SelectionDuration: 0, - TrackDuration: 5.28, - MediaDuration: 5.312, - ExifToolVersion: 11.65, - FileName: 'Sample.mp4', - Directory: 'C:/Users/H/Desktop/Test Input1', - FileSize: '1032 kB', - FileModifyDate: - { year: 2019, - month: 9, - day: 24, - hour: 7, - minute: 24, - second: 22, - millisecond: 0, - tzoffsetMinutes: 60, - rawValue: '2019:09:24 07:24:22+01:00' }, - FileAccessDate: - { year: 2019, - month: 9, - day: 26, - hour: 7, - minute: 44, - second: 30, - millisecond: 0, - tzoffsetMinutes: 60, - rawValue: '2019:09:26 07:44:30+01:00' }, - FileCreateDate: - { year: 2019, - month: 9, - day: 26, - hour: 7, - minute: 44, - second: 30, - millisecond: 0, - tzoffsetMinutes: 60, - rawValue: '2019:09:26 07:44:30+01:00' }, - FilePermissions: 'rw-rw-rw-', - FileType: 'MP4', - FileTypeExtension: 'mp4', - MIMEType: 'video/mp4', - MajorBrand: 'MP4 Base Media v1 [IS0 14496-12:2003]', - MinorVersion: '0.2.0', - CompatibleBrands: [ 'isom', 'iso2', 'avc1', 'mp41' ], - MovieDataSize: 0, - MovieDataOffset: 1051515, - MovieHeaderVersion: 0, - CreateDate: - { year: 1970, - month: 1, - day: 8, - hour: 0, - minute: 0, - second: 0, - millisecond: 0, - rawValue: '1970:01:08 00:00:00' }, - ModifyDate: - { year: 2014, - month: 7, - day: 19, - hour: 17, - minute: 15, - second: 29, - millisecond: 0, - rawValue: '2014:07:19 17:15:29' }, - TimeScale: 1000, - PreferredRate: 1, - PreferredVolume: '100.00%', - PreviewTime: '0 s', - PosterTime: '0 s', - SelectionTime: '0 s', - CurrentTime: '0 s', - NextTrackID: 3, - TrackHeaderVersion: 0, - TrackCreateDate: '0000:00:00 00:00:00', - TrackModifyDate: '0000:00:00 00:00:00', - TrackID: 1, - TrackLayer: 0, - TrackVolume: '0.00%', - ImageWidth: 1280, - ImageHeight: 720, - GraphicsMode: 'srcCopy', - OpColor: '0 0 0', - CompressorID: 'avc1', - SourceImageWidth: 1280, - SourceImageHeight: 720, - XResolution: 72, - YResolution: 72, - BitDepth: 24, - VideoFrameRate: 25, - MatrixStructure: '1 0 0 0 1 0 0 0 1', - MediaHeaderVersion: 0, - MediaCreateDate: '0000:00:00 00:00:00', - MediaModifyDate: '0000:00:00 00:00:00', - MediaTimeScale: 48000, - MediaLanguageCode: 'und', - HandlerDescription: 'SoundHandler', - Balance: 0, - AudioFormat: 'mp4a', - AudioChannels: 2, - AudioBitsPerSample: 16, - AudioSampleRate: 48000, - HandlerType: 'Metadata', - HandlerVendorID: 'Apple', - Encoder: 'Lavf53.24.2', - Title: 'Sample title test', - Composer: 'th', - BeatsPerMinute: '', - ContentCreateDate: 2018, - Genre: 'this', - Artist: 'hhj', - Comment: 'hhk', - Subtitle: 'jj', - Mood: 'lik', - ContentDistributor: 'cont', - Conductor: 'jo', - Writer: 'writ', - InitialKey: 'ho', - Producer: 'prod', - ParentalRating: 'par', - Director: 'dir', - Period: 'pol', - Publisher: 'pub', - PromotionURL: 'prom', - AuthorURL: 'auth', - EncodedBy: 'enc', - Category: 'h', - ImageSize: '1280x720', - Megapixels: 0.922, - AvgBitrate: '1.58 Mbps', - Rotation: 0 }, - processingStatus: false, - video_codec_name: 'h264', - video_resolution: '720p' } + let file = { + "meta": { + "SourceFile": "C:/Users/H/Desktop/Transcode/Source/SampleVideo_1280x720_30mb - Copy (5).mp4", + "errors": [], + "Duration": 170.902, + "PreviewDuration": 0, + "SelectionDuration": 0, + "TrackDuration": 170.861, + "MediaDuration": 170.901333333333, + "ExifToolVersion": 12.1, + "FileName": "SampleVideo_1280x720_30mb - Copy (5).mp4", + "Directory": "C:/Users/H/Desktop/Transcode/Source", + "FileSize": "16 MB", + "FileModifyDate": { + "year": 2020, + "month": 12, + "day": 26, + "hour": 12, + "minute": 29, + "second": 11, + "millisecond": 0, + "tzoffsetMinutes": 60, + "rawValue": "2020:12:26 12:29:11+01:00" + }, + "FileAccessDate": { + "year": 2020, + "month": 12, + "day": 27, + "hour": 11, + "minute": 42, + "second": 53, + "millisecond": 0, + "tzoffsetMinutes": 60, + "rawValue": "2020:12:27 11:42:53+01:00" + }, + "FileCreateDate": { + "year": 2020, + "month": 12, + "day": 26, + "hour": 12, + "minute": 29, + "second": 22, + "millisecond": 0, + "tzoffsetMinutes": 60, + "rawValue": "2020:12:26 12:29:22+01:00" + }, + "FilePermissions": "rw-rw-rw-", + "FileType": "MP4", + "FileTypeExtension": "mp4", + "MIMEType": "video/mp4", + "MajorBrand": "MP4 v2 [ISO 14496-14]", + "MinorVersion": "0.2.0", + "CompatibleBrands": [ + "isom", + "iso2", + "avc1", + "mp41" + ], + "MediaDataSize": 16831682, + "MediaDataOffset": 48, + "MovieHeaderVersion": 0, + "CreateDate": { + "year": 2020, + "month": 12, + "day": 26, + "hour": 11, + "minute": 28, + "second": 53, + "millisecond": 0, + "rawValue": "2020:12:26 11:28:53" + }, + "ModifyDate": { + "year": 2020, + "month": 12, + "day": 26, + "hour": 11, + "minute": 28, + "second": 53, + "millisecond": 0, + "rawValue": "2020:12:26 11:28:53" + }, + "TimeScale": 1000, + "PreferredRate": 1, + "PreferredVolume": "100.00%", + "PreviewTime": "0 s", + "PosterTime": "0 s", + "SelectionTime": "0 s", + "CurrentTime": "0 s", + "NextTrackID": 3, + "TrackHeaderVersion": 0, + "TrackCreateDate": { + "year": 2020, + "month": 12, + "day": 26, + "hour": 11, + "minute": 28, + "second": 53, + "millisecond": 0, + "rawValue": "2020:12:26 11:28:53" + }, + "TrackModifyDate": { + "year": 2020, + "month": 12, + "day": 26, + "hour": 11, + "minute": 28, + "second": 53, + "millisecond": 0, + "rawValue": "2020:12:26 11:28:53" + }, + "TrackID": 1, + "TrackLayer": 0, + "TrackVolume": "0.00%", + "ImageWidth": 1280, + "ImageHeight": 720, + "GraphicsMode": "srcCopy", + "OpColor": "0 0 0", + "CompressorID": "avc1", + "SourceImageWidth": 1280, + "SourceImageHeight": 720, + "XResolution": 72, + "YResolution": 72, + "BitDepth": 24, + "PixelAspectRatio": "1:1", + "VideoFrameRate": 24.997, + "MatrixStructure": "1 0 0 0 1 0 0 0 1", + "MediaHeaderVersion": 0, + "MediaCreateDate": { + "year": 2020, + "month": 12, + "day": 26, + "hour": 11, + "minute": 28, + "second": 53, + "millisecond": 0, + "rawValue": "2020:12:26 11:28:53" + }, + "MediaModifyDate": { + "year": 2020, + "month": 12, + "day": 26, + "hour": 11, + "minute": 28, + "second": 53, + "millisecond": 0, + "rawValue": "2020:12:26 11:28:53" + }, + "MediaTimeScale": 48000, + "MediaLanguageCode": "und", + "HandlerDescription": "Stereo", + "Balance": 0, + "AudioFormat": "mp4a", + "AudioChannels": 2, + "AudioBitsPerSample": 16, + "AudioSampleRate": 48000, + "Track2Name": "Stereo", + "Track2Title": "Stereo", + "HandlerType": "Metadata", + "HandlerVendorID": "Apple", + "Encoder": "HandBrake 1.3.3 2020061300", + "ImageSize": "1280x720", + "Megapixels": 0.922, + "AvgBitrate": "788 kbps", + "Rotation": 0 + }, + "mediaInfo": { + "@ref": "", + "track": [ + { + "@type": "General", + "VideoCount": "1", + "AudioCount": "1", + "Format": "MPEG-4", + "Format_Profile": "Base Media", + "CodecID": "mp42", + "CodecID_Compatible": "isom/iso2/avc1/mp41", + "FileSize": "16965336", + "Duration": "170.902", + "OverallBitRate": "794155", + "FrameRate": "25.000", + "FrameCount": "4271", + "StreamSize": "133654", + "HeaderSize": "40", + "DataSize": "16831690", + "FooterSize": "133606", + "IsStreamable": "No", + "Encoded_Date": "UTC 2020-12-26 11:28:53", + "Tagged_Date": "UTC 2020-12-26 11:28:53", + "Encoded_Application": "HandBrake 1.3.3 2020061300" + }, + { + "@type": "Video", + "StreamOrder": "0", + "ID": "1", + "Format": "AVC", + "Format_Profile": "Main", + "Format_Level": "4", + "Format_Settings_CABAC": "Yes", + "Format_Settings_RefFrames": "4", + "CodecID": "avc1", + "Duration": "170.861", + "BitRate": "627225", + "Width": "1280", + "Height": "720", + "Sampled_Width": "1280", + "Sampled_Height": "720", + "PixelAspectRatio": "1.000", + "DisplayAspectRatio": "1.778", + "Rotation": "0.000", + "FrameRate_Mode": "VFR", + "FrameRate": "25.000", + "FrameRate_Minimum": "16.393", + "FrameRate_Maximum": "25.000", + "FrameCount": "4271", + "ColorSpace": "YUV", + "ChromaSubsampling": "4:2:0", + "BitDepth": "8", + "ScanType": "Progressive", + "StreamSize": "13394380", + "Encoded_Library": "x264 - core 157 r2935 545de2f", + "Encoded_Library_Name": "x264", + "Encoded_Library_Version": "core 157 r2935 545de2f", + "Encoded_Library_Settings": "cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=22 / lookahead_threads=5 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=crf / mbtree=1 / crf=24.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=20000 / vbv_bufsize=25000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00", + "Encoded_Date": "UTC 2020-12-26 11:28:53", + "Tagged_Date": "UTC 2020-12-26 11:28:53", + "colour_description_present": "Yes", + "colour_description_present_Source": "Stream", + "colour_range": "Limited", + "colour_range_Source": "Stream", + "colour_primaries": "BT.709", + "colour_primaries_Source": "Stream", + "transfer_characteristics": "BT.709", + "transfer_characteristics_Source": "Stream", + "matrix_coefficients": "BT.709", + "matrix_coefficients_Source": "Stream", + "extra": { + "CodecConfigurationBox": "avcC" + } + }, + { + "@type": "Audio", + "StreamOrder": "1", + "ID": "2", + "Format": "AAC", + "Format_Settings_SBR": "No (Explicit)", + "Format_AdditionalFeatures": "LC", + "CodecID": "mp4a-40-2", + "Duration": "170.902", + "BitRate_Mode": "CBR", + "BitRate": "160902", + "Channels": "2", + "ChannelPositions": "Front: L R", + "ChannelLayout": "L R", + "SamplesPerFrame": "1024", + "SamplingRate": "48000", + "SamplingCount": "8203296", + "FrameRate": "46.875", + "FrameCount": "8011", + "Compression_Mode": "Lossy", + "StreamSize": "3437302", + "StreamSize_Proportion": "0.20261", + "Title": "Stereo", + "Default": "Yes", + "AlternateGroup": "1", + "Encoded_Date": "UTC 2020-12-26 11:28:53", + "Tagged_Date": "UTC 2020-12-26 11:28:53" + } + ] + }, + "hasClosedCaptions": false, + "container": "mp4", + "ffProbeRead": "success", + "ffProbeData": { + "streams": [ + { + "index": 0, + "codec_name": "h264", + "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10", + "profile": "Main", + "codec_type": "video", + "codec_time_base": "170861/8542000", + "codec_tag_string": "avc1", + "codec_tag": "0x31637661", + "width": 1280, + "height": 720, + "coded_width": 1280, + "coded_height": 720, + "has_b_frames": 2, + "sample_aspect_ratio": "1:1", + "display_aspect_ratio": "16:9", + "pix_fmt": "yuv420p", + "level": 40, + "color_range": "tv", + "color_space": "bt709", + "color_transfer": "bt709", + "color_primaries": "bt709", + "chroma_location": "left", + "refs": 1, + "is_avc": "true", + "nal_length_size": "4", + "r_frame_rate": "50/1", + "avg_frame_rate": "4271000/170861", + "time_base": "1/90000", + "start_pts": 0, + "start_time": "0.000000", + "duration_ts": 15377490, + "duration": "170.861000", + "bit_rate": "627147", + "bits_per_raw_sample": "8", + "nb_frames": "4271", + "disposition": { + "default": 1, + "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": { + "creation_time": "2020-12-26T11:28:53.000000Z", + "language": "und", + "handler_name": "VideoHandler" + } + }, + { + "index": 1, + "codec_name": "aac", + "codec_long_name": "AAC (Advanced Audio Coding)", + "profile": "LC", + "codec_type": "audio", + "codec_time_base": "1/48000", + "codec_tag_string": "mp4a", + "codec_tag": "0x6134706d", + "sample_fmt": "fltp", + "sample_rate": "48000", + "channels": 2, + "channel_layout": "stereo", + "bits_per_sample": 0, + "r_frame_rate": "0/0", + "avg_frame_rate": "0/0", + "time_base": "1/48000", + "start_pts": 0, + "start_time": "0.000000", + "duration_ts": 8202240, + "duration": "170.880000", + "bit_rate": "160902", + "max_bit_rate": "160902", + "nb_frames": "8011", + "disposition": { + "default": 1, + "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": { + "creation_time": "2020-12-26T11:28:53.000000Z", + "language": "und", + "handler_name": "Stereo" + } + } + ] + }, + "file_size": 16.179405212402344, + "bit_rate": 794155.0596248143, + "video_resolution": "720p", + "fileMedium": "video", + "video_codec_name": "h264", + "_id": "C:/Users/H/Desktop/Transcode/Source/SampleVideo_1280x720_30mb - Copy (5).mp4", + "file": "C:/Users/H/Desktop/Transcode/Source/SampleVideo_1280x720_30mb - Copy (5).mp4", + "DB": "WratRWZpe", + "lastPluginDetails": "none", + "processingStatus": false, + "createdAt": "2020-12-27T10:42:55.642Z", + "statSync": { + "dev": 3832468976, + "mode": 33206, + "nlink": 1, + "uid": 0, + "gid": 0, + "rdev": 0, + "blksize": 4096, + "ino": 5066549580826442, + "size": 16965336, + "blocks": 33136, + "atimeMs": 1609065774191.6953, + "mtimeMs": 1608982151506.065, + "ctimeMs": 1608982164201.0798, + "birthtimeMs": 1608982162081.075, + "atime": "2020-12-27T10:42:54.192Z", + "mtime": "2020-12-26T11:29:11.506Z", + "ctime": "2020-12-26T11:29:24.201Z", + "birthtime": "2020-12-26T11:29:22.081Z" + }, + "history": "" + }