2

I am writing a code for ffmpeg command .But i want the value to be stored in current date folder . is there any way to create current date folder in ffmpeg command . not in Batch files .

1 Answer 1

1

try this

#!/bin/bash

now=$(date +"%m_%d_%Y")
outdir=/pathtodirectory/$now

if [[ ! -d "$outdir" ]]; then
  mkdir -p "$outdir"
fi

ffmpeg -i input "$outdir"/output
Sign up to request clarification or add additional context in comments.

2 Comments

yes you can create a batch file and run it on command line right
ok..i will try that . But can you tell me that is it possible to create the date folder from the commandline or not

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.