mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-11 00:10:29 -07:00
Add new tests (#311)
* Add new tests * Add tdarrSkipTest logic * Add Tdarr_Plugin_00td_action_add_audio_stream_codec test * Add Tdarr_Plugin_00td_action_handbrake_basic_options test * Add Tdarr_Plugin_00td_action_handbrake_ffmpeg_custom test * Add Tdarr_Plugin_00td_action_keep_one_audio_stream test * Fix lint * Fix reorder streams bug * Add Tdarr_Plugin_00td_action_re_order_all_streams_v2 test * Add Tdarr_Plugin_00td_action_remux_container test * Add Tdarr_Plugin_00td_action_standardise_audio_stream_codecs test * Lint * Add Tdarr_Plugin_00td_filter_by_bitrate test * Add Tdarr_Plugin_00td_filter_by_resolution test * Add Tdarr_Plugin_00td_filter_by_size test * Log all errors together, use chalk * Add Tdarr_Plugin_075a_FFMPEG_HEVC_Generic test * Add Tdarr_Plugin_075a_Transcode_Customisable test * Add Tdarr_Plugin_075b_FFMPEG_HEVC_Generic_Video_Audio_Only test * Add Tdarr_Plugin_075c_FFMPEG_HEVC_Generic_Video_Audio_Only_CRF20 test * Add Tdarr_Plugin_075d_FFMPEG_HEVC_GPU_Generic_Video_Audio_Only_CRF20 test * Add Tdarr_Plugin_076a_re_order_audio_streams test * Add chalk * Add Tdarr_Plugin_076b_re_order_subtitle_streams * Add Tdarr_Plugin_077b_HandBrake_NVENC_264_Configurable test * Add Tdarr_Plugin_a8hc_HaveAGitGat_HandBrake_H264_VeryFast1080p30 test * Add Tdarr_Plugin_a9hc_HaveAGitGat_HandBrake_H264_Fast1080p30 test * Add Tdarr_Plugin_a9hd_FFMPEG_Transcode_Specific_Audio_Stream_Codecs test * Update qsv to vaapi (will handle input at later date) * Add Tdarr_Plugin_a9he_New_file_size_check test * useCloneDeep * Add Tdarr_Plugin_a37x_Drawmonster_MP4_No_Title_Meta test * Add Tdarr_Plugin_A47j_FFMPEG_NVENC_HEVC_Video_Only test * Add Tdarr_Plugin_b38x_Nosirus_h265_aac_no_meta test * Add Tdarr_Plugin_b39x_the1poet_surround_sound_to_ac3 test * Add Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC test * Add Tdarr_Plugin_c0r1_SetDefaultAudioStream test * Lint * Add Tdarr_Plugin_d5d3_iiDrakeii_FFMPEG_NVENC_Tiered_MKV test * Add Tdarr_Plugin_d5d4_iiDrakeii_Not_A_Video_Mjpeg_Fix test * Add Tdarr_Plugin_da11_Dallas_FFmpeg_Presets_H264_MP4 test * Tdarr_Plugin_DOOM_NVENC_Tiered_MKV_CleanAll test * Remove logging * Add Tdarr_Plugin_drdd_standardise_all_in_one test * Add Tdarr_Plugin_e3jc_Tharic_H.264_MKV_480p30_No_Subs_No_Title_Meta test * Add Tdarr_Plugin_e3jd_Tharic_H.264_MKV_720p30_No_Subs_No_Title_Meta test * Add Tdarr_Plugin_e3je_Tharic_H.264_MKV_1080p30_No_Subs_No_Title_Meta test * Add Tdarr_Plugin_e5c3_CnT_Keep_Preferred_Audio test * Add Tdarr_Plugin_ER01_Transcode audio and video with HW (PC and Mac) test * Add Tdarr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs test * Add Tdarr_Plugin_Greg_MP3_FFMPEG_CPU test * Add Tdarr_Plugin_henk_Add_Specific_Audio_Codec test * Add Tdarr_Plugin_hk75_Drawmonster_MP4_AAC_No_Subs_No_metaTitle test * Add Tdarr_Plugin_hk76_GilbN_MP4_AAC_No_metaTitle test * Add outputModify func * Base tests on linux for now * Add Tdarr_Plugin_jeons001_Downmix_to_stereo_and_apply_DRC test * Add Tdarr_Plugin_lmg1_Reorder_Streams test * Add Tdarr_Plugin_MC93_Migz1FFMPEG test * Add Tdarr_Plugin_MC93_Migz1FFMPEG_CPU test * Add Tdarr_Plugin_MC93_Migz1Remux test * Add Tdarr_Plugin_MC93_Migz2CleanTitle test * Add Tdarr_Plugin_MC93_Migz2CleanTitle test * Add Tdarr_Plugin_MC93_Migz3CleanAudio test * Add Tdarr_Plugin_MC93_Migz4CleanSubs test * Add Tdarr_Plugin_MC93_Migz5ConvertAudio test * Add Tdarr_Plugin_MC93_Migz6OrderStreams test * Add Tdarr_Plugin_MC93_MigzImageRemoval test * Add Tdarr_Plugin_MP01_MichPasCleanSubsAndAudioCodecs test * Add Tdarr_Plugin_Mthr_VaapiHEVCTranscode test * Add Tdarr_Plugin_nc7x_Drawmonster_No_Title_Meta test * Add Tdarr_Plugin_r002_rootuser_FFMPEG_HQ_HEVC_MKV_Animation test * Add Tdarr_Plugin_raf4_Floorpie_FFmpeg_Tiered_HEVC_MKV test * Add Tdarr_Plugin_s7x8_winsome_h265 test
This commit is contained in:
parent
e194e6d35c
commit
2a0a7e1bfc
113 changed files with 7662 additions and 102 deletions
432
tests/sampleData/media/sampleH264_1.json
Normal file
432
tests/sampleData/media/sampleH264_1.json
Normal file
|
|
@ -0,0 +1,432 @@
|
|||
{
|
||||
"_id": "C:/Transcode/Source Folder/SampleVideo_1280x720_1mb.mp4",
|
||||
"file": "C:/Transcode/Source Folder/SampleVideo_1280x720_1mb.mp4",
|
||||
"DB": "2MY5YD7P8",
|
||||
"footprintId": "KA_y0Hm3Ld",
|
||||
"hasClosedCaptions": false,
|
||||
"container": "mp4",
|
||||
"scannerReads": {
|
||||
"ffProbeRead": "success",
|
||||
"exiftoolRead": "success",
|
||||
"mediaInfoRead": "success",
|
||||
"closedCaptionRead": "\"Unable to run CCExtractor\""
|
||||
},
|
||||
"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_tag_string": "avc1",
|
||||
"codec_tag": "0x31637661",
|
||||
"width": 1280,
|
||||
"height": 720,
|
||||
"coded_width": 1280,
|
||||
"coded_height": 720,
|
||||
"closed_captions": 0,
|
||||
"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,
|
||||
"captions": 0,
|
||||
"descriptions": 0,
|
||||
"metadata": 0,
|
||||
"dependent": 0,
|
||||
"still_image": 0
|
||||
},
|
||||
"tags": {
|
||||
"creation_time": "1970-01-01T00:00:00.000000Z",
|
||||
"language": "und",
|
||||
"handler_name": "VideoHandler",
|
||||
"vendor_id": "[0][0][0][0]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"index": 1,
|
||||
"codec_name": "aac",
|
||||
"codec_long_name": "AAC (Advanced Audio Coding)",
|
||||
"profile": "LC",
|
||||
"codec_type": "audio",
|
||||
"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",
|
||||
"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,
|
||||
"captions": 0,
|
||||
"descriptions": 0,
|
||||
"metadata": 0,
|
||||
"dependent": 0,
|
||||
"still_image": 0
|
||||
},
|
||||
"tags": {
|
||||
"creation_time": "1970-01-01T00:00:00.000000Z",
|
||||
"language": "und",
|
||||
"handler_name": "SoundHandler",
|
||||
"vendor_id": "[0][0][0][0]"
|
||||
}
|
||||
}
|
||||
],
|
||||
"format": {
|
||||
"filename": "C:/Transcode/Source Folder/SampleVideo_1280x720_1mb.mp4",
|
||||
"nb_streams": 2,
|
||||
"nb_programs": 0,
|
||||
"format_name": "mov,mp4,m4a,3gp,3g2,mj2",
|
||||
"format_long_name": "QuickTime / MOV",
|
||||
"start_time": "0.000000",
|
||||
"duration": "5.312000",
|
||||
"size": "1056519",
|
||||
"bit_rate": "1591143",
|
||||
"probe_score": 100,
|
||||
"tags": {
|
||||
"major_brand": "isom",
|
||||
"minor_version": "512",
|
||||
"compatible_brands": "isomiso2avc1mp41",
|
||||
"creation_time": "1970-01-08T00:00:00.000000Z",
|
||||
"encoder": "Lavf53.24.2",
|
||||
"title": "Sample title test",
|
||||
"composer": "th",
|
||||
"date": "2018",
|
||||
"genre": "this",
|
||||
"artist": "hhj",
|
||||
"comment": "hhk"
|
||||
}
|
||||
}
|
||||
},
|
||||
"file_size": 1.0075750350952148,
|
||||
"video_resolution": "720p",
|
||||
"fileMedium": "video",
|
||||
"video_codec_name": "h264",
|
||||
"audio_codec_name": "",
|
||||
"lastPluginDetails": "none",
|
||||
"createdAt": 1653029288316,
|
||||
"bit_rate": 1591143,
|
||||
"duration": 5,
|
||||
"statSync": {
|
||||
"dev": 3832468976,
|
||||
"mode": 33060,
|
||||
"nlink": 1,
|
||||
"uid": 0,
|
||||
"gid": 0,
|
||||
"rdev": 0,
|
||||
"blksize": 4096,
|
||||
"ino": 1688849864649366,
|
||||
"size": 1056519,
|
||||
"blocks": 2064,
|
||||
"atimeMs": 1653029288299.0342,
|
||||
"mtimeMs": 1569306262000,
|
||||
"ctimeMs": 1650864287160.0793,
|
||||
"birthtimeMs": 1652683715285.7583,
|
||||
"atime": "2022-05-20T06:48:08.299Z",
|
||||
"mtime": "2019-09-24T06:24:22.000Z",
|
||||
"ctime": "2022-04-25T05:24:47.160Z",
|
||||
"birthtime": "2022-05-16T06:48:35.286Z"
|
||||
},
|
||||
"HealthCheck": "",
|
||||
"TranscodeDecisionMaker": "",
|
||||
"lastHealthCheckDate": 0,
|
||||
"holdUntil": 0,
|
||||
"lastTranscodeDate": 0,
|
||||
"bumped": false,
|
||||
"history": "",
|
||||
"oldSize": 0,
|
||||
"newSize": 0,
|
||||
"videoStreamIndex": 0,
|
||||
"lastUpdate": 1653028721083,
|
||||
"meta": {
|
||||
"SourceFile": "C:/Transcode/Source Folder/SampleVideo_1280x720_1mb.mp4",
|
||||
"errors": [],
|
||||
"Duration": 5.312,
|
||||
"PreviewDuration": 0,
|
||||
"SelectionDuration": 0,
|
||||
"TrackDuration": 5.28,
|
||||
"MediaDuration": 5.28,
|
||||
"ExifToolVersion": 12.4,
|
||||
"FileName": "SampleVideo_1280x720_1mb.mp4",
|
||||
"Directory": "C:/Transcode/Source Folder",
|
||||
"FileSize": "1032 KiB",
|
||||
"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": 2022,
|
||||
"month": 5,
|
||||
"day": 20,
|
||||
"hour": 7,
|
||||
"minute": 48,
|
||||
"second": 6,
|
||||
"millisecond": 0,
|
||||
"tzoffsetMinutes": 60,
|
||||
"rawValue": "2022:05:20 07:48:06+01:00"
|
||||
},
|
||||
"FileCreateDate": {
|
||||
"year": 2022,
|
||||
"month": 5,
|
||||
"day": 16,
|
||||
"hour": 7,
|
||||
"minute": 48,
|
||||
"second": 35,
|
||||
"millisecond": 0,
|
||||
"tzoffsetMinutes": 60,
|
||||
"rawValue": "2022:05:16 07:48:35+01:00"
|
||||
},
|
||||
"FilePermissions": "-r--r--r--",
|
||||
"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"
|
||||
],
|
||||
"MediaDataSize": 0,
|
||||
"MediaDataOffset": 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": 0,
|
||||
"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
|
||||
},
|
||||
"mediaInfo": {
|
||||
"@ref": "",
|
||||
"track": [
|
||||
{
|
||||
"@type": "General",
|
||||
"VideoCount": "1",
|
||||
"AudioCount": "1",
|
||||
"Format": "MPEG-4",
|
||||
"Format_Profile": "Base Media",
|
||||
"CodecID": "isom",
|
||||
"CodecID_Compatible": "isom/iso2/avc1/mp41",
|
||||
"FileSize": "1056519",
|
||||
"Duration": "5.312",
|
||||
"OverallBitRate_Mode": "VBR",
|
||||
"OverallBitRate": "1591143",
|
||||
"FrameRate": "25.000",
|
||||
"FrameCount": "132",
|
||||
"StreamSize": "5060",
|
||||
"HeaderSize": "40",
|
||||
"DataSize": "1051467",
|
||||
"FooterSize": "5012",
|
||||
"IsStreamable": "No",
|
||||
"Title": "Sample title test",
|
||||
"Movie": "Sample title test",
|
||||
"Performer": "hhj",
|
||||
"Composer": "th",
|
||||
"Genre": "this",
|
||||
"Recorded_Date": "2018",
|
||||
"Encoded_Date": "UTC 1970-01-08 00:00:00",
|
||||
"Tagged_Date": "UTC 2014-07-19 17:15:29",
|
||||
"Encoded_Application": "Lavf53.24.2",
|
||||
"Comment": "hhk"
|
||||
},
|
||||
{
|
||||
"@type": "Video",
|
||||
"StreamOrder": "0",
|
||||
"ID": "1",
|
||||
"Format": "AVC",
|
||||
"Format_Profile": "Main",
|
||||
"Format_Level": "3.1",
|
||||
"Format_Settings_CABAC": "Yes",
|
||||
"Format_Settings_RefFrames": "1",
|
||||
"CodecID": "avc1",
|
||||
"Duration": "5.280",
|
||||
"BitRate": "1205959",
|
||||
"Width": "1280",
|
||||
"Height": "720",
|
||||
"Sampled_Width": "1280",
|
||||
"Sampled_Height": "720",
|
||||
"PixelAspectRatio": "1.000",
|
||||
"DisplayAspectRatio": "1.778",
|
||||
"Rotation": "0.000",
|
||||
"FrameRate_Mode": "CFR",
|
||||
"FrameRate_Mode_Original": "VFR",
|
||||
"FrameRate": "25.000",
|
||||
"FrameCount": "132",
|
||||
"ColorSpace": "YUV",
|
||||
"ChromaSubsampling": "4:2:0",
|
||||
"BitDepth": "8",
|
||||
"ScanType": "Progressive",
|
||||
"StreamSize": "795933",
|
||||
"Encoded_Date": "UTC 1970-01-01 00:00:00",
|
||||
"Tagged_Date": "UTC 1970-01-01 00:00:00",
|
||||
"extra": {
|
||||
"CodecConfigurationBox": "avcC"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Audio",
|
||||
"StreamOrder": "1",
|
||||
"ID": "2",
|
||||
"Format": "AAC",
|
||||
"Format_AdditionalFeatures": "LC",
|
||||
"CodecID": "mp4a-40-2",
|
||||
"Duration": "5.312",
|
||||
"BitRate_Mode": "VBR",
|
||||
"BitRate": "384000",
|
||||
"BitRate_Maximum": "400392",
|
||||
"Channels": "6",
|
||||
"ChannelPositions": "Front: L C R, Side: L R, LFE",
|
||||
"ChannelLayout": "C L R Ls Rs LFE",
|
||||
"SamplesPerFrame": "1024",
|
||||
"SamplingRate": "48000",
|
||||
"SamplingCount": "254976",
|
||||
"FrameRate": "46.875",
|
||||
"FrameCount": "249",
|
||||
"Compression_Mode": "Lossy",
|
||||
"StreamSize": "255526",
|
||||
"StreamSize_Proportion": "0.24186",
|
||||
"Default": "Yes",
|
||||
"AlternateGroup": "1",
|
||||
"Encoded_Date": "UTC 1970-01-01 00:00:00",
|
||||
"Tagged_Date": "UTC 1970-01-01 00:00:00"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue