~camilo/pelusa-software

d7a29644682d661d808c4e9e5be83ae984024b0d — camilo 10 days ago d16dde9
+info
1 files changed, 17 insertions(+), 4 deletions(-)

M creavid0
M creavid0 => creavid0 +17 -4
@@ 1,8 1,21 @@
#!/bin/bash
echo "creavid0 [audio] [video] [project]
lenght (video < audio)

gpl3···"
if [[ $1 = '-h'  || ! $1 ]] ; then
    echo "
========
Creavid0: Mezclador de video en loop hasta que audio termine.

Ejemplo de uso:
 creavid0 roll.mp3 nleu.mp4 roll_nleu

El resultado será:
 roll_nleu.mp4

========
http://roll.nl.eu.org/?p=pelusa.creavid "
    exit
fi

dur=`ffmpeg -i "$1" 2>&1 | grep -o -P "(?<=Duration: ).*?(?=,)"`
echo ::::::::::::::::::::::::::::::::::::::::::::::: "$dur"
echo ":::::::::::::::::::::::::: Duración del video: $dur"
ffmpeg -strict -2 -loglevel warning -hide_banner -stats -re -stream_loop -1 -i "$2" -i "$1" -c:v copy -c:a copy -t $dur "$3".mp4