Difference between revisions of "Windows"

From Antoine Vienne | Wiki
Jump to navigation Jump to search
(Created page with "=Windows= === Convert with Ffmpeg === <pre> // Add in input uniform vec3 iResolution; // viewport resolution (in pixels) uniform float iTime;...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
=Windows=
 
=Windows=
=== Convert with Ffmpeg ===
+
=== Convert with Ffmpeg - .wav folder to .mp3===
 
<pre>
 
<pre>
// Add in input
+
// Lots of tricks here: https://berniebernie.fr/wiki/Windows_batch
  
uniform vec3      iResolution;          // viewport resolution (in pixels)
+
cd C:\folder
uniform float    iTime;                // shader playback time (in seconds)
+
for %f in (*.wav) do ( ffmpeg -i "%f" -q:a 2 "%~nf.mp3" )
uniform float    iTimeDelta;            // render time (in seconds)
 
uniform int      iFrame;                // shader playback frame
 
uniform float    iChannelTime[4];      // channel playback time (in seconds)
 
uniform vec3      iChannelResolution[4]; // channel resolution (in pixels)
 
uniform vec4      iMouse;                // mouse pixel coords. xy: current (if MLB down), zw: click
 
uniform sampler2D iChannel0;            // input channel. XX = 2D/Cube
 
uniform sampler2D iChannel1;            // input channel. XX = 2D/Cube
 
uniform sampler2D iChannel2;            // input channel. XX = 2D/Cube
 
uniform sampler2D iChannel3;            // input channel. XX = 2D/Cube
 
uniform vec4      iDate;                // (year, month, day, time in seconds)
 
uniform float    iSampleRate;          // sound sample rate (i.e., 44100)
 
 
 
// Replace
 
void mainImage by void main
 
  
 
</pre>
 
</pre>

Latest revision as of 18:35, 6 December 2022

Windows

Convert with Ffmpeg - .wav folder to .mp3

// Lots of tricks here: https://berniebernie.fr/wiki/Windows_batch

cd C:\folder
for %f in (*.wav) do ( ffmpeg -i "%f" -q:a 2 "%~nf.mp3" )