Skip to content

Instantly share code, notes, and snippets.

View Makio64's full-sized avatar
💭
enjoying coding Meshlines

Makio64 Makio64

💭
enjoying coding Meshlines
View GitHub Profile
@cghiban
cghiban / mp4-to-dash.sh
Created October 4, 2021 13:49
mp4-to-dash.sh
#!/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:
@donmccurdy
donmccurdy / generate_lods.mjs
Last active July 11, 2025 10:33
Example implementation of MSFT_lod in glTF-Transform.
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