Update README.md

make-only-subtitle-default
HaveAGitGat 5 years ago committed by GitHub
parent 00b9ef0856
commit 8b0989b99c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -88,244 +88,412 @@ Note, to access FFprobe inside a plugin, use this:
Example file object: Example file object:
let file = { let file = {
_id: 'C:/Users/H/Desktop/Test Input1/Sample.mp4', "meta": {
DB: 'ZRPDmnmpyuAEQi7nG', "SourceFile": "C:/Users/H/Desktop/Transcode/Source/SampleVideo_1280x720_30mb - Copy (5).mp4",
HealthCheck: 'Not attempted', "errors": [],
TranscodeDecisionMaker: 'Not attempted', "Duration": 170.902,
bit_rate: 1690430.4, "PreviewDuration": 0,
container: 'mp4', "SelectionDuration": 0,
createdAt: 2019-09-26T06:46:31.929Z, "TrackDuration": 170.861,
ffProbeData: "MediaDuration": 170.901333333333,
{ streams: "ExifToolVersion": 12.1,
[ { index: 0, "FileName": "SampleVideo_1280x720_30mb - Copy (5).mp4",
codec_name: 'h264', "Directory": "C:/Users/H/Desktop/Transcode/Source",
codec_long_name: 'H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10', "FileSize": "16 MB",
profile: 'Main', "FileModifyDate": {
codec_type: 'video', "year": 2020,
codec_time_base: '1/50', "month": 12,
codec_tag_string: 'avc1', "day": 26,
codec_tag: '0x31637661', "hour": 12,
width: 1280, "minute": 29,
height: 720, "second": 11,
coded_width: 1280, "millisecond": 0,
coded_height: 720, "tzoffsetMinutes": 60,
has_b_frames: 0, "rawValue": "2020:12:26 12:29:11+01:00"
sample_aspect_ratio: '1:1', },
display_aspect_ratio: '16:9', "FileAccessDate": {
pix_fmt: 'yuv420p', "year": 2020,
level: 31, "month": 12,
chroma_location: 'left', "day": 27,
refs: 1, "hour": 11,
is_avc: 'true', "minute": 42,
nal_length_size: '4', "second": 53,
r_frame_rate: '25/1', "millisecond": 0,
avg_frame_rate: '25/1', "tzoffsetMinutes": 60,
time_base: '1/12800', "rawValue": "2020:12:27 11:42:53+01:00"
start_pts: 0, },
start_time: '0.000000', "FileCreateDate": {
duration_ts: 67584, "year": 2020,
duration: '5.280000', "month": 12,
bit_rate: '1205959', "day": 26,
bits_per_raw_sample: '8', "hour": 12,
nb_frames: '132', "minute": 29,
disposition: "second": 22,
{ default: 1, "millisecond": 0,
dub: 0, "tzoffsetMinutes": 60,
original: 0, "rawValue": "2020:12:26 12:29:22+01:00"
comment: 0, },
lyrics: 0, "FilePermissions": "rw-rw-rw-",
karaoke: 0, "FileType": "MP4",
forced: 0, "FileTypeExtension": "mp4",
hearing_impaired: 0, "MIMEType": "video/mp4",
visual_impaired: 0, "MajorBrand": "MP4 v2 [ISO 14496-14]",
clean_effects: 0, "MinorVersion": "0.2.0",
attached_pic: 0, "CompatibleBrands": [
timed_thumbnails: 0 }, "isom",
tags: "iso2",
{ creation_time: '1970-01-01T00:00:00.000000Z', "avc1",
language: 'und', "mp41"
handler_name: 'VideoHandler' } }, ],
{ index: 1, "MediaDataSize": 16831682,
codec_name: 'aac', "MediaDataOffset": 48,
codec_long_name: 'AAC (Advanced Audio Coding)', "MovieHeaderVersion": 0,
profile: 'LC', "CreateDate": {
codec_type: 'audio', "year": 2020,
codec_time_base: '1/48000', "month": 12,
codec_tag_string: 'mp4a', "day": 26,
codec_tag: '0x6134706d', "hour": 11,
sample_fmt: 'fltp', "minute": 28,
sample_rate: '48000', "second": 53,
channels: 6, "millisecond": 0,
channel_layout: '5.1', "rawValue": "2020:12:26 11:28:53"
bits_per_sample: 0, },
r_frame_rate: '0/0', "ModifyDate": {
avg_frame_rate: '0/0', "year": 2020,
time_base: '1/48000', "month": 12,
start_pts: 0, "day": 26,
start_time: '0.000000', "hour": 11,
duration_ts: 254976, "minute": 28,
duration: '5.312000', "second": 53,
bit_rate: '384828', "millisecond": 0,
max_bit_rate: '400392', "rawValue": "2020:12:26 11:28:53"
nb_frames: '249', },
disposition: "TimeScale": 1000,
{ default: 1, "PreferredRate": 1,
dub: 0, "PreferredVolume": "100.00%",
original: 0, "PreviewTime": "0 s",
comment: 0, "PosterTime": "0 s",
lyrics: 0, "SelectionTime": "0 s",
karaoke: 0, "CurrentTime": "0 s",
forced: 0, "NextTrackID": 3,
hearing_impaired: 0, "TrackHeaderVersion": 0,
visual_impaired: 0, "TrackCreateDate": {
clean_effects: 0, "year": 2020,
attached_pic: 0, "month": 12,
timed_thumbnails: 0 }, "day": 26,
tags: "hour": 11,
{ creation_time: '1970-01-01T00:00:00.000000Z', "minute": 28,
language: 'und', "second": 53,
handler_name: 'SoundHandler' } } ] }, "millisecond": 0,
ffProbeRead: 'success', "rawValue": "2020:12:26 11:28:53"
file: 'C:/Users/H/Desktop/Test Input1/Sample.mp4', },
fileMedium: 'video', "TrackModifyDate": {
file_size: 1.056519, "year": 2020,
meta: "month": 12,
{ SourceFile: 'C:/Users/H/Desktop/Test Input1/Sample.mp4', "day": 26,
errors: [], "hour": 11,
Duration: 5.312, "minute": 28,
PreviewDuration: 0, "second": 53,
SelectionDuration: 0, "millisecond": 0,
TrackDuration: 5.28, "rawValue": "2020:12:26 11:28:53"
MediaDuration: 5.312, },
ExifToolVersion: 11.65, "TrackID": 1,
FileName: 'Sample.mp4', "TrackLayer": 0,
Directory: 'C:/Users/H/Desktop/Test Input1', "TrackVolume": "0.00%",
FileSize: '1032 kB', "ImageWidth": 1280,
FileModifyDate: "ImageHeight": 720,
{ year: 2019, "GraphicsMode": "srcCopy",
month: 9, "OpColor": "0 0 0",
day: 24, "CompressorID": "avc1",
hour: 7, "SourceImageWidth": 1280,
minute: 24, "SourceImageHeight": 720,
second: 22, "XResolution": 72,
millisecond: 0, "YResolution": 72,
tzoffsetMinutes: 60, "BitDepth": 24,
rawValue: '2019:09:24 07:24:22+01:00' }, "PixelAspectRatio": "1:1",
FileAccessDate: "VideoFrameRate": 24.997,
{ year: 2019, "MatrixStructure": "1 0 0 0 1 0 0 0 1",
month: 9, "MediaHeaderVersion": 0,
day: 26, "MediaCreateDate": {
hour: 7, "year": 2020,
minute: 44, "month": 12,
second: 30, "day": 26,
millisecond: 0, "hour": 11,
tzoffsetMinutes: 60, "minute": 28,
rawValue: '2019:09:26 07:44:30+01:00' }, "second": 53,
FileCreateDate: "millisecond": 0,
{ year: 2019, "rawValue": "2020:12:26 11:28:53"
month: 9, },
day: 26, "MediaModifyDate": {
hour: 7, "year": 2020,
minute: 44, "month": 12,
second: 30, "day": 26,
millisecond: 0, "hour": 11,
tzoffsetMinutes: 60, "minute": 28,
rawValue: '2019:09:26 07:44:30+01:00' }, "second": 53,
FilePermissions: 'rw-rw-rw-', "millisecond": 0,
FileType: 'MP4', "rawValue": "2020:12:26 11:28:53"
FileTypeExtension: 'mp4', },
MIMEType: 'video/mp4', "MediaTimeScale": 48000,
MajorBrand: 'MP4 Base Media v1 [IS0 14496-12:2003]', "MediaLanguageCode": "und",
MinorVersion: '0.2.0', "HandlerDescription": "Stereo",
CompatibleBrands: [ 'isom', 'iso2', 'avc1', 'mp41' ], "Balance": 0,
MovieDataSize: 0, "AudioFormat": "mp4a",
MovieDataOffset: 1051515, "AudioChannels": 2,
MovieHeaderVersion: 0, "AudioBitsPerSample": 16,
CreateDate: "AudioSampleRate": 48000,
{ year: 1970, "Track2Name": "Stereo",
month: 1, "Track2Title": "Stereo",
day: 8, "HandlerType": "Metadata",
hour: 0, "HandlerVendorID": "Apple",
minute: 0, "Encoder": "HandBrake 1.3.3 2020061300",
second: 0, "ImageSize": "1280x720",
millisecond: 0, "Megapixels": 0.922,
rawValue: '1970:01:08 00:00:00' }, "AvgBitrate": "788 kbps",
ModifyDate: "Rotation": 0
{ year: 2014, },
month: 7, "mediaInfo": {
day: 19, "@ref": "",
hour: 17, "track": [
minute: 15, {
second: 29, "@type": "General",
millisecond: 0, "VideoCount": "1",
rawValue: '2014:07:19 17:15:29' }, "AudioCount": "1",
TimeScale: 1000, "Format": "MPEG-4",
PreferredRate: 1, "Format_Profile": "Base Media",
PreferredVolume: '100.00%', "CodecID": "mp42",
PreviewTime: '0 s', "CodecID_Compatible": "isom/iso2/avc1/mp41",
PosterTime: '0 s', "FileSize": "16965336",
SelectionTime: '0 s', "Duration": "170.902",
CurrentTime: '0 s', "OverallBitRate": "794155",
NextTrackID: 3, "FrameRate": "25.000",
TrackHeaderVersion: 0, "FrameCount": "4271",
TrackCreateDate: '0000:00:00 00:00:00', "StreamSize": "133654",
TrackModifyDate: '0000:00:00 00:00:00', "HeaderSize": "40",
TrackID: 1, "DataSize": "16831690",
TrackLayer: 0, "FooterSize": "133606",
TrackVolume: '0.00%', "IsStreamable": "No",
ImageWidth: 1280, "Encoded_Date": "UTC 2020-12-26 11:28:53",
ImageHeight: 720, "Tagged_Date": "UTC 2020-12-26 11:28:53",
GraphicsMode: 'srcCopy', "Encoded_Application": "HandBrake 1.3.3 2020061300"
OpColor: '0 0 0', },
CompressorID: 'avc1', {
SourceImageWidth: 1280, "@type": "Video",
SourceImageHeight: 720, "StreamOrder": "0",
XResolution: 72, "ID": "1",
YResolution: 72, "Format": "AVC",
BitDepth: 24, "Format_Profile": "Main",
VideoFrameRate: 25, "Format_Level": "4",
MatrixStructure: '1 0 0 0 1 0 0 0 1', "Format_Settings_CABAC": "Yes",
MediaHeaderVersion: 0, "Format_Settings_RefFrames": "4",
MediaCreateDate: '0000:00:00 00:00:00', "CodecID": "avc1",
MediaModifyDate: '0000:00:00 00:00:00', "Duration": "170.861",
MediaTimeScale: 48000, "BitRate": "627225",
MediaLanguageCode: 'und', "Width": "1280",
HandlerDescription: 'SoundHandler', "Height": "720",
Balance: 0, "Sampled_Width": "1280",
AudioFormat: 'mp4a', "Sampled_Height": "720",
AudioChannels: 2, "PixelAspectRatio": "1.000",
AudioBitsPerSample: 16, "DisplayAspectRatio": "1.778",
AudioSampleRate: 48000, "Rotation": "0.000",
HandlerType: 'Metadata', "FrameRate_Mode": "VFR",
HandlerVendorID: 'Apple', "FrameRate": "25.000",
Encoder: 'Lavf53.24.2', "FrameRate_Minimum": "16.393",
Title: 'Sample title test', "FrameRate_Maximum": "25.000",
Composer: 'th', "FrameCount": "4271",
BeatsPerMinute: '', "ColorSpace": "YUV",
ContentCreateDate: 2018, "ChromaSubsampling": "4:2:0",
Genre: 'this', "BitDepth": "8",
Artist: 'hhj', "ScanType": "Progressive",
Comment: 'hhk', "StreamSize": "13394380",
Subtitle: 'jj', "Encoded_Library": "x264 - core 157 r2935 545de2f",
Mood: 'lik', "Encoded_Library_Name": "x264",
ContentDistributor: 'cont', "Encoded_Library_Version": "core 157 r2935 545de2f",
Conductor: 'jo', "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",
Writer: 'writ', "Encoded_Date": "UTC 2020-12-26 11:28:53",
InitialKey: 'ho', "Tagged_Date": "UTC 2020-12-26 11:28:53",
Producer: 'prod', "colour_description_present": "Yes",
ParentalRating: 'par', "colour_description_present_Source": "Stream",
Director: 'dir', "colour_range": "Limited",
Period: 'pol', "colour_range_Source": "Stream",
Publisher: 'pub', "colour_primaries": "BT.709",
PromotionURL: 'prom', "colour_primaries_Source": "Stream",
AuthorURL: 'auth', "transfer_characteristics": "BT.709",
EncodedBy: 'enc', "transfer_characteristics_Source": "Stream",
Category: 'h', "matrix_coefficients": "BT.709",
ImageSize: '1280x720', "matrix_coefficients_Source": "Stream",
Megapixels: 0.922, "extra": {
AvgBitrate: '1.58 Mbps', "CodecConfigurationBox": "avcC"
Rotation: 0 }, }
processingStatus: false, },
video_codec_name: 'h264', {
video_resolution: '720p' } "@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": ""
}

Loading…
Cancel
Save