conformtools 0.6.18 → 0.6.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/{account-O3J732QJ.js → account-VD3EE5UT.js} +1 -1
- package/dist/{agent-hook-setup-HBT2LTVR.js → agent-hook-setup-D2QNHA3V.js} +1 -1
- package/dist/{analysis-engine-BZUEBW55.js → analysis-engine-VNGF3DE4.js} +1 -1
- package/dist/{bridge-25FGN67G.js → bridge-MLBUD6XW.js} +1 -1
- package/dist/browser/timeline_core_bg.wasm +0 -0
- package/dist/{chunk-ND2YUUUH.js → chunk-2S2ZPQQD.js} +1 -1
- package/dist/{chunk-S5AOIOTT.js → chunk-2WNNDPVR.js} +1 -1
- package/dist/chunk-2XQ42O7E.js +7 -0
- package/dist/{chunk-34JO3JNC.js → chunk-3WJSWOCS.js} +1 -1
- package/dist/{chunk-AYUKWSCR.js → chunk-4UT55WZA.js} +1 -1
- package/dist/{chunk-TD3ZHREE.js → chunk-4V3KLFCJ.js} +1 -1
- package/dist/chunk-6IL7M3VP.js +162 -0
- package/dist/chunk-A7AYMSY7.js +9 -0
- package/dist/chunk-COALWMI7.js +4 -0
- package/dist/chunk-GBNPOZ32.js +10 -0
- package/dist/{chunk-PIM3PV5N.js → chunk-GHP6HDLM.js} +1 -1
- package/dist/{chunk-3DYCTUSQ.js → chunk-HCT34NDA.js} +1 -1
- package/dist/{chunk-DIW5X4GI.js → chunk-HROU7LLU.js} +1 -1
- package/dist/{chunk-ANQZKVDD.js → chunk-IPQLKAF2.js} +1 -1
- package/dist/chunk-JVJUJKUP.js +5 -0
- package/dist/chunk-M545OKDZ.js +6 -0
- package/dist/chunk-MU5AGXSH.js +3 -0
- package/dist/chunk-OSPDH2RK.js +6 -0
- package/dist/{chunk-MHBNMYZP.js → chunk-V2FVIZT7.js} +1 -1
- package/dist/chunk-WYI4LL4P.js +535 -0
- package/dist/chunk-Y7PFSVRX.js +3 -0
- package/dist/chunk-ZAL7Y5VZ.js +7 -0
- package/dist/{claude-setup-W27DLJIO.js → claude-setup-AI4WXN2V.js} +1 -1
- package/dist/cli.js +2 -2
- package/dist/demo-engine-MOHHYVGV.js +3 -0
- package/dist/engine-WMOJ3HRU.js +5 -0
- package/dist/framing-U46POZQG.js +3 -0
- package/dist/gfx-worker.js +1 -1
- package/dist/{h264-YX5KP63E.js → h264-4ETGWMKR.js} +1 -1
- package/dist/{h264-mxf-VAHIJCA7.js → h264-mxf-EFHHQL7X.js} +1 -1
- package/dist/hook.js +3 -2
- package/dist/host-relink-MVHI3YQI.js +10 -0
- package/dist/hosted-6BLHLZXM.js +3 -0
- package/dist/hosts-7UO4QETB.js +3 -0
- package/dist/http.js +4 -3
- package/dist/{inspect-7XEE32P5.js → inspect-5TMUYGAL.js} +17 -17
- package/dist/{isobmff-RHP3N5K2.js → isobmff-55TPOVCK.js} +1 -1
- package/dist/{mc-video-CHBOYPI5.js → mc-video-GKWEWCEQ.js} +1 -1
- package/dist/mcp.js +8 -8
- package/dist/media-HCKSVARE.js +3 -0
- package/dist/{mxf-R2ONKSYU.js → mxf-AJTCMKTX.js} +1 -1
- package/dist/{ops-MKDFWWPG.js → ops-UGZODMYE.js} +1 -1
- package/dist/{probe-YDOFGCGD.js → probe-YOYK7HR5.js} +1 -1
- package/dist/{r3d-F4OWLQE2.js → r3d-XHSJUARW.js} +1 -1
- package/dist/resolve-bridge.py +173 -27
- package/dist/{sequence-patch-2S7IPE52.js → sequence-patch-5MFTY52Q.js} +1 -1
- package/dist/{store-A5AKWOSX.js → store-6XN5Q6UG.js} +1 -1
- package/dist/{timeline-ZHDJXDZJ.js → timeline-TFF3L7JP.js} +1 -1
- package/dist/timeline_core-6BRZG4LP.js +3 -0
- package/package.json +5 -5
- package/dist/chunk-2V5PY4P5.js +0 -5
- package/dist/chunk-6B3IELRW.js +0 -6
- package/dist/chunk-AAJRTGEP.js +0 -10
- package/dist/chunk-GTPTZRO6.js +0 -3
- package/dist/chunk-IDEKLW7C.js +0 -3
- package/dist/chunk-LP2MR4ZH.js +0 -516
- package/dist/chunk-NN444GPH.js +0 -6
- package/dist/chunk-QBQJDV2F.js +0 -161
- package/dist/chunk-ROGMKTND.js +0 -4
- package/dist/chunk-RXRBRR3E.js +0 -10
- package/dist/chunk-T7S2UBNN.js +0 -7
- package/dist/chunk-UIX3TT72.js +0 -7
- package/dist/demo-engine-JAQPM4EV.js +0 -3
- package/dist/engine-ZGBF3SQN.js +0 -5
- package/dist/framing-PGFJZIBU.js +0 -3
- package/dist/host-relink-M2VWUZW5.js +0 -10
- package/dist/hosted-4CNQYNX5.js +0 -3
- package/dist/hosts-R4BHIZJS.js +0 -3
- package/dist/media-4VUWQJLQ.js +0 -3
- package/dist/timeline_core-ZKQQHUA2.js +0 -3
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import{a as U}from"./chunk-TK55FA56.js";import{a as J,b as T}from"./chunk-AACY2V3L.js";import{b as p,c as N,g as O}from"./chunk-2DEUYEQD.js";import{b as L}from"./chunk-
|
|
3
|
+
import{a as U}from"./chunk-TK55FA56.js";import{a as J,b as T}from"./chunk-AACY2V3L.js";import{b as p,c as N,g as O}from"./chunk-2DEUYEQD.js";import{b as L}from"./chunk-4V3KLFCJ.js";import{b as V,c as _}from"./chunk-2S2ZPQQD.js";import{$ as f,A as P,B as x,C as F,D as A,Da as I,Ga as C,Ha as d,N as D,O as z,ha as E,k as w,m as v,n as y,p as R,qa as k,ta as H,x as S,y as M}from"./chunk-L2RTMZCN.js";import"./chunk-PSANHDZM.js";function m(e){return(t,n)=>e.read(t,n)}function $(e){let t=e.toLowerCase().trim();return t==="aprn"||t==="aprh"?"prores_raw":t==="apch"||t==="apcn"||t==="apcs"||t==="apco"||t==="ap4h"||t==="ap4x"?"prores":t==="avdn"?"dnxhd":t==="dnxh"?"dnxhr":t==="avc1"||t==="avc3"?"h264":t==="hev1"||t==="hvc1"?"h265":t==="braw"?"braw":e}var h={apco:"Proxy",apcs:"LT",apcn:"422",apch:"HQ",ap4h:"4444",ap4x:"4444 XQ"},Z={1:"bt709",2:"unknown",4:"bt470m",5:"bt470bg",6:"smpte170m",7:"smpte240m",8:"film",9:"bt2020",10:"smpte428",11:"smpte431",12:"smpte432",22:"jedec-p22"},ee={1:"bt709",2:"unknown",4:"gamma22",5:"gamma28",6:"smpte170m",7:"smpte240m",8:"linear",9:"log100",10:"log316",11:"iec61966-2-4",12:"bt1361e",13:"iec61966-2-1",14:"bt2020-10",15:"bt2020-12",16:"smpte2084",17:"smpte428",18:"arib-std-b67"},re={0:"gbr",1:"bt709",2:"unknown",4:"fcc",5:"bt470bg",6:"smpte170m",7:"smpte240m",8:"ycgco",9:"bt2020nc",10:"bt2020c",14:"ictcp"};function te(e,t){return e==="ap4h"||e==="ap4x"?t===32?"yuva444p12le":"yuv444p12le":e in h?"yuv422p10le":void 0}var B={66:"Baseline",77:"Main",88:"Extended",100:"High",110:"High 10",122:"High 4:2:2",244:"High 4:4:4"},Q={1:"Main",2:"Main 10",3:"Main Still",4:"Rext"},ne={1270:"DNxHR 444",1271:"DNxHR HQX",1272:"DNxHR HQ",1273:"DNxHR SQ",1274:"DNxHR LB"};function oe(e,t){if(h[e.codec_fourcc])return`ProRes ${h[e.codec_fourcc]}`;if(e.vc3_cid)return ne[e.vc3_cid]??`DNxHD ${e.vc3_cid}`;if(e.video_profile!=null){if(t==="h264"&&B[e.video_profile])return`H.264 ${B[e.video_profile]}`;if(t==="h265"&&Q[e.video_profile])return`HEVC ${Q[e.video_profile]}`}}function ie(e,t){let n=e.video_chroma,r=e.video_bit_depth;if(n==null&&t==="h264"&&[66,77,88].includes(e.video_profile??-1)&&([n,r]=[1,8]),n==null&&e.vc3_cid&&(n=e.vc3_cid===1270||e.vc3_cid===1256?3:2),n==null||r==null)return;let i=["gray","yuv420p","yuv422p","yuv444p"][n];return r>8?`${i}${r}le`:i}function j(e,t){let n=[];for(let r of e){if(r.kind!=="clip"||!r.source_range)continue;let i=r.source_range.start.value,o=r.source_range.duration.value,c=Math.max(0,Math.floor(i)-t),a=Math.floor(i+o-1)+t;a>=c&&n.push({first_frame:c,last_frame:a})}return n}var be={async inspect(e){await d();let t=e.parts[0],n=await f(m(t),t.fileSize,e.format),r=JSON.parse(n);if(!r)return null;let i=r.timecode&&r.timecode.fps_denominator>0?r.timecode.fps_numerator/r.timecode.fps_denominator:null,o=$(r.codec_fourcc),c=[{kind:"video",codec:o,width:r.width??void 0,height:r.height??void 0,rate:i??void 0,bit_depth:p(r.codec_fourcc)??p(o)??N(o,r.video_profile)??r.video_bit_depth??void 0,codec_specific:{fourcc:r.codec_fourcc,profile:oe(r,o),pixel_format:te(r.codec_fourcc,r.video_depth)??ie(r,o),colr:r.colr?{primaries:Z[r.colr.primaries]??r.colr.primaries,transfer:ee[r.colr.transfer]??r.colr.transfer,matrix:re[r.colr.matrix]??r.colr.matrix}:void 0}}];for(let a of r.audio_tracks??(r.audio?[r.audio]:[]))c.push({kind:"audio",codec:a.codec_fourcc,channels:a.channels??void 0,rate:a.sample_rate??void 0,bit_depth:a.bit_depth??void 0,codec_specific:{fourcc:a.codec_fourcc,channel_layout:a.channel_layout??void 0}});return{id:t.filename,kind:"external",target_url:t.filename,available_range:i&&r.duration_seconds?{start:{value:0,rate:i},duration:{value:Math.round(r.duration_seconds*i),rate:i}}:null,reel_name:null,source_timecode:r.timecode?.display??null,container:e.format==="mov"?"mov":e.format,codec:o,size_bytes:t.fileSize,source_fps:i,source_resolution_w:r.width??null,source_resolution_h:r.height??null,source_pixel_aspect:r.par?r.par[0]/r.par[1]:null,streams:c,decode_provenance:r.decode_provenance??null,vendor_metadata:r.timecode?{drop_frame:r.timecode.drop_frame}:{},binding_state:"unbound",raw_extraction:{mov_probe:r},metadata:{}}},async extract(e){await d();let t=e.parts[0],n=JSON.parse(await E(m(t),t.fileSize,e.format));if(n.length===0)return null;let r=JSON.parse(await f(m(t),t.fileSize,e.format)),i=r?$(r.codec_fourcc):e.format,o=r?.timecode&&r.timecode.fps_denominator>0?r.timecode.fps_numerator/r.timecode.fps_denominator:void 0;return{v:1,container:e.format==="mov"?"mov":e.format,codec:i,width:r?.width??void 0,height:r?.height??void 0,fps:o,frame_count:J(n),timecode:r?.timecode?.display??void 0,granularity:T(n),segments:n}},async sparsify(e,t){await d();let n=e.parts[0],r=j(t.items,t.handles),i=await H(m(n),n.fileSize,JSON.stringify(r),e.format),o=JSON.parse(i);return[{filename:n.filename,fileSize:o.fileSize,structuralRanges:o.structuralRanges,essenceRanges:o.essenceRanges,trimInputs:o.trimInputs}]},async trim(e,t){await d();let n=e.parts[0],r=j(t.items,0);if(r.length===0)throw new Error("isobmff trim: no usable trim ranges in items");let i=await L(r,t.handles,(o,c)=>k(m(n),n.fileSize,o,c,e.format));return i.map((o,c)=>{let a=JSON.parse(o);return i.length>1&&(a.output_clip_number=c+1,a.output_clip_count=i.length,a.output_part_number=1),a})},async decode(e,t,n){await d();let r=n.detail==="coarse",i=e.parts[0];if(e.format==="crm"){let l=await R(m(i),i.fileSize,t,r?"preview":"full");return s(l)}let o=await K(e);if(t<0||t>=o.length)throw new _(t,o.length);let c=o[t],a=await i.read(c.offset,c.size);if(e.format==="braw")return s(r?v(a,0):y(a));if(b(a)){let l=await X(e);return s(l?u.decode_prores_raw_tier(a,r?"preview":"full",l):r?P(a,0):x(a))}if(G(a))return s(r?D(a,0):z(a));if(r)return s(S(a,0));let g=await ae(a);return g||s(A(a))},async decode16(e,t){await d();let n=e.parts[0];if(e.format==="crm")throw new Error("crm: no 16-bit decoder");let r=await K(e);if(t<0||t>=r.length)throw new _(t,r.length);let i=r[t],o=await n.read(i.offset,i.size),c=b(o)?await X(e):null,a=e.format==="braw"?w(o):b(o)?c?u.decode_prores_raw_tier(o,"rgb16",c):M(o):G(o)?(()=>{throw new Error("vc3: no 16-bit decoder")})():F(o);return V(a)}};async function ae(e){if(!!0)return null;try{let t=await import("./prores-CFX64NME.js");if(!await t.proresGpuAvailable())return null;let n=await t.decodeProResRgbaGpu(e);return n?{width:n.width,height:n.height,rgba:n.rgba}:null}catch{return null}}function G(e){return e.length>=4&&e[0]===0&&e[1]===0&&e[2]===2&&e[3]===128}function b(e){return e.length>=8&&e[4]===112&&e[5]===114&&e[6]===114&&e[7]===102}function s(e){let t=new DataView(e.buffer,e.byteOffset,8);return{width:t.getUint32(0,!0),height:t.getUint32(4,!0),rgba:e.slice(8)}}var u=C,W=new WeakMap;function X(e){let t=W.get(e);if(!t){let n=e.parts[0];t=u.prores_raw_container_color&&u.decode_prores_raw_tier?U({fileSize:n.fileSize,read:n.read}).then(r=>{let i=u.prores_raw_container_color(r);return i.length?i:null}):Promise.resolve(null),W.set(e,t)}return t}var q=new WeakMap;async function K(e){let t=q.get(e);if(!t){let n=e.parts[0],r=O(await I(m(n),n.fileSize,e.format));if(!r.w||!r.h)throw new Error("could not find a video sample table");t=r.offs,q.set(e,t)}return t}export{be as isobmffFormat};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import{c as b}from"./chunk-VFXMP7IF.js";import"./chunk-BBCQMZQN.js";import{c as w,g as y}from"./chunk-
|
|
3
|
+
import{c as b}from"./chunk-VFXMP7IF.js";import"./chunk-BBCQMZQN.js";import{c as w,g as y}from"./chunk-2S2ZPQQD.js";import{Ca as l,Ga as p,Ha as h}from"./chunk-L2RTMZCN.js";import"./chunk-PSANHDZM.js";var F=72*1024*1024,S=16,m=p;function L(){return typeof m.video_open=="function"&&typeof m.video_decode=="function"}async function P(r,e){if(await h(),!L())return null;try{return JSON.parse(await m.video_open(r,e))}catch{return null}}function k(r){l?.(r)}var u=new WeakMap;function v(r){let e=u.get(r);if(!e){let t=r.parts[0];e=P((n,a)=>t.read(n,a),t.fileSize).then(n=>{if(!n)throw new Error(`mcvideo: media-core has no video decoder for ${t.filename}`);return{info:n,cache:new Map,cacheCoarse:!1,frameBytes:0,queue:Promise.resolve()}}),e.catch(()=>u.delete(r)),u.set(r,e)}return e}async function B(r){try{return(await v(r)).info.frames}catch{return 0}}function _(r){let e=new DataView(r.buffer,r.byteOffset,r.byteLength),t=new Map,n=4;for(let a=e.getUint32(0,!0);a>0&&n+12<=r.length;a--){let s=e.getUint32(n,!0),c=e.getUint32(n+4,!0),i=e.getUint32(n+8,!0),o=c*i*4;if(n+=12,n+o>r.length)break;t.set(s,{width:c,height:i,rgba:r.slice(n,n+o)}),n+=o}return t}async function C(r,e,t){let n=await v(r),{info:a}=n;if(e<0||e>=a.frames)throw new w(e,a.frames);let s=async()=>{let i=t&&a.codec==="dv";n.cacheCoarse!==i&&(n.cache.clear(),n.cacheCoarse=i);let o=n.cache.get(e);if(!o){let g=a.inter?Math.max(1,Math.min(S,n.frameBytes?Math.floor(F/n.frameBytes):4)):1,d=_(await m.video_decode(a.handle,e,Math.min(a.frames,e+g),i));n.cache=d,o=d.get(e),o&&(n.frameBytes=o.rgba.length)}if(!o)throw new Error(`mcvideo: ${a.codec} frame ${e} did not decode`);return n.cache.delete(e),o},c=n.queue.then(s,s);return n.queue=c.catch(()=>{}),c}async function f(r){let e=b(r.parts[0]?.filename??""),t=e?await y(e):null;return t&&e?[t,{...r,format:e}]:null}async function M(r){let e=await f(r);if(!e)throw new Error(`mcvideo: no container module for ${r.parts[0]?.filename} \u2014 ships whole`);return e}var I={async inspect(r){let e=await f(r);return e?e[0].inspect(e[1]):null},async extract(r){let e=await f(r);return e?e[0].extract(e[1]):null},async sparsify(r,e){let[t,n]=await M(r);return t.sparsify(n,e)},async trim(r,e){let[t,n]=await M(r);return t.trim(n,e)},async decode(r,e,{detail:t}){return C(r,e,t==="coarse")}};export{k as closeVideoLane,L as hasVideoLane,I as mcVideoFormat,P as openVideoLane,_ as unpackWindow,B as videoLaneFrames};
|