This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| # can't remember where I found this.. | |
| # | |
| # THIS SCRIPT CONVERTS EVERY MP4 (IN THE CURRENT FOLDER AND SUBFOLDER) TO A MULTI-BITRATE VIDEO IN MP4-DASH | |
| # For each file "videoname.mp4" it creates a folder "dash_videoname" containing a dash manifest file "stream.mpd" and subfolders containing video segments. | |
| # Explanation: | |
| # Validation tool: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import { Extension, ExtensionProperty, Node, NodeIO, PropertyType } from '@gltf-transform/core'; | |
| import { weld, dedup, simplifyPrimitive } from '@gltf-transform/functions'; | |
| import { MeshoptSimplifier } from 'meshoptimizer'; | |
| /****************************************************************************** | |
| * Example implementation of MSFT_lod for glTF-Transform. | |
| * | |
| * ⚠️ NOTICE: This code is provided for the sake of example, and is not tested or | |
| * maintained. For a full implementation, refer to: | |
| * https://github.com/takahirox/glTF-Transform-lod-script | 
OlderNewer