Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
outdated, someone else is updating the list now -> https://gist.github.com/Fobxx/107e2bad2bf7312cd49431c696aac912
| var client = require('firebase-tools'); | |
| function transfer(path, options) { | |
| var fromDb = options.fromDb; | |
| var toDb = options.toDb; | |
| var output = options.output; | |
| client.data.get(path, { firebase: fromDb, output: output }) | |
| .then(function(data) { | |
| return client.data.set(path, output, { firebase: toDb, confirm: true }); | |
| }) |
| using UnityEngine; | |
| using System.Collections; | |
| using Coherent.UI; | |
| using System.IO; | |
| using System; | |
| using System.Runtime.InteropServices; | |
| [RequireComponent(typeof(CoherentUIView))] | |
| [RequireComponent(typeof(AudioSource))] | |
| unsafe public class CoherentAudioPlayerFilter : MonoBehaviour |
| using UnityEngine; | |
| using System.IO; | |
| using System; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Collections.Generic; | |
| using System.Collections; | |
| public class FFMpegYUV4Texture : MonoBehaviour | |
| { |
| void GetStreamingAssetsPath(string fileName) | |
| { | |
| #if UNITY_EDITOR | |
| dbPath = string.Format(@"Assets/StreamingAssets/{0}", fileName); | |
| #else | |
| // check if file exists in Application.persistentDataPath | |
| var filepath = string.Format("{0}/{1}", Application.persistentDataPath, fileName); | |
| if (!File.Exists(filepath)) |
| // Unity C# Cheat Sheet | |
| // I made these examples for students with prior exerience working with C# and Unity. | |
| // Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting |
| /* | |
| * Unity Batch Burner: A script designed to reduce static mesh draw calls automatically in scenes | |
| * with a large amount of static geometry entities. | |
| * | |
| * Copyright 2016-2017 Will Preston & Die-Cast Magic Studios, LLC. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * |
| using System; | |
| using System.Reflection; | |
| using System.Collections.Generic; | |
| using UnityEditor; | |
| using UnityEngine; | |
| public class EditorWindowFinder : EditorWindow | |
| { |
| using UnityEngine; | |
| using System.Collections; | |
| [ExecuteInEditMode] | |
| public class VRNightVision : MonoBehaviour { | |
| private Material material; | |
| private Camera cam; | |
| [Tooltip("Grain size in pixel. Should be greater than 1 with supersampling.")] |