← Commit history
Record native widget playback, captions, chapters and report-image verification
2 files changed
+53−1
tools/assemble_volume_video.py+1−1@@ -24,6 +24,6 @@ for i,s in enumerate(scenes): (O/'captions.vtt').write_text('WEBVTT\n\n'+'\n\n'.join(f"{stamp(c['start'])} --> {stamp(c['end'])}\n{c['text']}" for c in cues)+'\n');(O/'chapters.json').write_text(json.dumps(chapters,indent=2)) base=B/'electronic-load-r10-captioned-web.mp4';base_d=duration(base);(F/'concat.txt').write_text(f"file '{base}'\nfile '{addon}'\n");full=F/'electronic-load-with-thermal-web.mp4' run(['ffmpeg','-y','-f','concat','-safe','0','-i',str(F/'concat.txt'),'-c:v','libx264','-preset','fast','-b:v','340k','-maxrate','380k','-bufsize','760k','-g','30','-keyint_min','30','-pix_fmt','yuv420p','-c:a','aac','-b:a','64k','-movflags','+faststart',str(full)])-old=json.loads((B/'review.video.json').read_text());vtt=old['captions'].rstrip()+'\n\n'+'\n\n'.join(f"{stamp(base_d+c['start'])} --> {stamp(base_d+c['end'])}\n{c['text']}" for c in cues)+'\n';chs=old['chapters']+[{'t':base_d+x['t'],'title':'Thermal: '+x['title']} for x in chapters]+old=json.loads((B/'review.video.json').read_text());vtt=(B/'captions.vtt').read_text().rstrip()+'\n\n'+'\n\n'.join(f"{stamp(base_d+c['start'])} --> {stamp(base_d+c['end'])}\n{c['text']}" for c in cues)+'\n';chs=old['chapters']+[{'t':base_d+x['t'],'title':'Thermal: '+x['title']} for x in chapters] (F/'captions.vtt').write_text(vtt);(F/'chapters.json').write_text(json.dumps(chs,indent=2));manifest={'video':'/adom/adom-custom-electronic-load/render/videos/full-edit-with-thermal/'+full.name,'title':'Electronic load: build and compact cooling analysis','poster':old['poster'],'captions':vtt,'chapters':chs};(F/'review.video.json').write_text(json.dumps(manifest,indent=2)) report={'duration':duration(full),'bytes':full.stat().st_size,'sha256':hashlib.sha256(full.read_bytes()).hexdigest(),'baseSeconds':base_d,'addonSeconds':duration(addon),'captionTiming':'New segment: sentence-level duration weighted by word count, not forced-aligned; source audio trimmed of pauses >=0.7s to retained 0.25s. Existing captions retained.','segments':audit,'recording':'Native Pup window footage; separately synthesized Adom TTS voiceover added in edit.','sourceStatus':'Fields source PR pending owner review, not installed release','hardwareQualified':False};(F/'edit-report.json').write_text(json.dumps(report,indent=2));print(json.dumps(report),flush=True)
videos/full-edit-with-thermal/wiki-verification.jsonadded+52@@ -0,0 +1,52 @@+{+ "widget": {+ "shadow": true,+ "state": {+ "captions": 81,+ "chapters": 37,+ "duration": 274.2,+ "speed": 1,+ "state": "paused",+ "t": 0+ },+ "video": "https://wiki.adom.inc/api/pages/adom/adom-custom-electronic-load/files/videos/full-edit-with-thermal/electronic-load-with-thermal-web.mp4"+ },+ "playback": {+ "currentTime": 215.914665,+ "readyState": 4,+ "state": {+ "captions": 81,+ "chapters": 37,+ "duration": 274.2,+ "speed": 1,+ "state": "paused",+ "t": 215.914665+ },+ "videoWidth": 1280+ },+ "reportImages": [+ {+ "height": 764,+ "src": "https://wiki.adom.inc/adom/adom-custom-electronic-load/render/docs/cooling-volume/power-comparison.png",+ "width": 1512+ },+ {+ "height": 741,+ "src": "https://wiki.adom.inc/adom/adom-custom-electronic-load/render/docs/cooling-volume/preferred50-section.png",+ "width": 1830+ },+ {+ "height": 783,+ "src": "https://wiki.adom.inc/adom/adom-custom-electronic-load/render/docs/cooling-volume/chipset40-section.png",+ "width": 1831+ },+ {+ "height": 741,+ "src": "https://wiki.adom.inc/adom/adom-custom-electronic-load/render/docs/cooling-volume/pi5-section.png",+ "width": 1830+ }+ ],+ "nativeTarget": "AdomLapper",+ "aiThread": "adom-custom-load",+ "existingWindowReused": true+}