[FFmpeg-devel] [PATCH 2/3] doc/faq: add section on freezing terminal state
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Fri Jul 31 14:38:43 CEST 2015
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
doc/faq.texi | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/doc/faq.texi b/doc/faq.texi
index 5fe716b..696c5b2 100644
--- a/doc/faq.texi
+++ b/doc/faq.texi
@@ -149,6 +149,26 @@ Try a @code{make distclean} in the ffmpeg source directory before the build.
If this does not help see
(@url{http://ffmpeg.org/bugreports.html}).
+ at section Why does ffmpeg mess up my terminal when it crashes?
+
+ffmpeg modifies the terminal state in order to accept user input.
+On crashing, the shell needs to restore the terminal state.
+
+For @command{zsh}, add the following to your @code{.zshrc}:
+
+ at example
+# "freeze" terminal settings
+ttyctl -f
+ at end example
+
+For @command{bash}, add the following to your @code{.bashrc}:
+
+ at example
+# "freeze" terminal settings
+bash_tty_mode=$(stty -g)
+PROMPT_COMMAND='stty $bash_tty_mode'
+ at end example
+
@section How do I encode single pictures into movies?
First, rename your pictures to follow a numerical sequence.
--
2.5.0
More information about the ffmpeg-devel
mailing list