Skip to content

Instantly share code, notes, and snippets.

View zalazarc20's full-sized avatar
🏠
Working from home

Carlos Zalazar zalazarc20

🏠
Working from home
View GitHub Profile
@Saccarab
Saccarab / merge-ffmpeg.js
Created June 9, 2019 08:54
fluent-ffmpeg merge audio with video
const command = ffmpeg()
const commandArray = []
command.addInput(`./best.mp4`)
command.addInput(`./best2.wav`)
commandArray.push(`[1]volume=0.1[a1]`)
command.addInput(`./voiceover.mp3`)
commandArray.push(`[2]volume=0.9[a2]`)
let ffmpegKeys = '[a1][a2]amix=inputs=2[a]'
commandArray.push(ffmpegKeys)
@lucky-c
lucky-c / app.js
Last active August 19, 2025 05:43
React Native: Expo video HLS streaming sample
import React from 'react';
import { StyleSheet, Text, View, Dimensions } from 'react-native';
import { Video } from 'expo';
export default class App extends React.Component {
render() {
// Set video dimension based on its width, so the video doesn't stretched on any devices.
// The video dimension ratio is 11 : 9 for width and height
let videoWidth = Dimensions.get('window').width;