linux - How to keep stderr output and also redirect it to file -


i tried ffmpeg -i rtsp://172.19.1.34/live.sdp -acodec copy -vcodec copy b.mp4 2>>log.txt 2>&1

to keep stderr output , redirect file.

but failed.

however, can keep stderr output by

ffmpeg -i rtsp://172.19.1.34/live.sdp -acodec copy -vcodec copy b.mp4 2>log.txt

you can redirect stderr stdout 2>&1, , use tee command.

cmd 2>&1 | tee -a log


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -