我刚刚进入了关于 Wi-Fi 的激烈讨论。Wi-Fi 中的 Fi 是什么意思?我会想到潜在的“频率接口”,因为所有网络适配器都被归类为接口。不过我不确定。
我想用 ffmpeg 制作延时摄影电影。现在我使用带有以下命令的 mencoder:mencoder mf://*.jpg -mf fps=12 -nosound -noskip -ovc copy -o Zeitraffer$begin.avi
我正在尝试使用 ffmpeg 制作电影,但 ffmpeg 似乎想要覆盖我现有的快照。信息:
ffmpeg -i *.jpg -vcodec mpeg4 timelapse.avi
ffmpeg version 2.6.2 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8 (SUSE Linux)
configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr /share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g' --enable-pic --optflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g' --enable-gpl --enable-x11grab --enable-version3 --enable-pthreads --datadir=/usr/share/ffmpeg --enable-avfilter --enable-libpulse --enable-libwebp --enable-libvpx --enable-libopus --enable-libmp3lame --enable-libvorbis …Run Code Online (Sandbox Code Playgroud) 出于审计和文档目的,我想找到一个命令,以便将给定 bash 会话中发生的所有事情都写入文件。
即,我想最终得到一个文件,该文件显示我运行的所有命令以及这些命令的所有输出。
我知道我可以使用历史文件(命令运行)获得一部分,通过重定向输出获得一部分。
但是,我觉得bash本身应该有这种能力,只是我没有找到。
例子:
> bash --some-kind-of-magic output.txt
$ cat file1.txt
this is the content of file1.txt
$ grep test file2.txt
this is the output of the command
$ exit
> cat output.txt
$ cat file1.txt
this is the content of file1.txt
$ grep test file2.txt
this is the output of the command
$ exit
Run Code Online (Sandbox Code Playgroud) bash ×1
command-line ×1
ffmpeg ×1
linux ×1
logging ×1
mencoder ×1
networking ×1
terminology ×1
timelapse ×1
video ×1