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
Post a Comment