Advertisement
freddyncalm

Untitled

Jan 23rd, 2023
1,095
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.53 KB | Source Code | 0 0
  1. #!/bin/bash
  2.  
  3. nombre=$1
  4. bgcolor="202030FF"
  5. wavecolor="40a0FFFF"
  6. picture_output="/tmp/audvid.png"
  7. output="${nombre%.*}-video.mp4"
  8.  
  9. ffmpeg -y -i $nombre -filter_complex "color=c=$bgcolor[color];aformat=channel_layouts=mono,showwavespic=s=1280x960:colors=$wavecolor[wave];[color][wave]scale2ref[bg][fg];[bg][fg]overlay=format=auto" -frames:v 1 $picture_output
  10.  
  11. ffmpeg -loop 1 -i $picture_output -i $nombre -shortest -fflags shortest -max_interleave_delta 100M -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p $output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement