Answer the question
In order to leave comments, you need to log in
Bash script for video encoding?
There are many folders in the directory, there are more folders in these folders. Some of these folders have txt files.
With the command
find path/to/total/folder -name "*.txt" -exec dirname {} \;
Answer the question
In order to leave comments, you need to log in
The result of running this command
I get for example 3 directories that contain txt.
How can I force ffmpeg to encode videos of a certain type in these directories?
Can I please have an example?
find video -name "*.txt" | xargs dirname | sort -u | xargs -I {} find \{} -name "*.MP4" | while read movie; do ffmpeg -i "$movie" -vcodec prores -profile:v 3 -acodec copy "${movie%.*}Final.mov"; done
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question