How to create current date folder from ffmpeg command -


i writing code ffmpeg command .but want value stored in current date folder . there way create current date folder in ffmpeg command . not in batch files .

try this

#!/bin/bash  now=$(date +"%m_%d_%y") outdir=/pathtodirectory/$now  if [[ ! -d "$outdir" ]];   mkdir -p "$outdir" fi  ffmpeg -i input "$outdir"/output 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -