1

I am trying to make a bashscript to allow mass converting a couple of moviefiles with the help of ffmpeg.

ffmpeg works great alone by itself, but when I run it as shown below - nothing seems to become appended to my logfile. What am I doing wrong?

ffmpeg -i "$input" -c:v mpeg4 -vtag divx -sameq -aspect 16:9 -r 25 "$output" >> ~/Desktop/logfile.txt

1 Answer 1

2

Try this instead:

ffmpeg -i "$input" -c:v mpeg4 -vtag divx -sameq -aspect 16:9 -r 25 "$output" > ~/Desktop/logfile.txt  2>&1

It redirect both STDOUT and STDERR. Some bits shorter version is:

ffmpeg -i "$input" -c:v mpeg4 -vtag divx -sameq -aspect 16:9 -r 25 "$output" &>> ~/Desktop/logfile.txt
Sign up to request clarification or add additional context in comments.

Comments

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.