[FFmpeg-devel] [PATCH 2/3] doc/faq: add section on freezing terminal state

Ganesh Ajjanagadde gajjanagadde at gmail.com
Tue Aug 11 16:46:31 CEST 2015


On Fri, Jul 31, 2015 at 8:38 AM, Ganesh Ajjanagadde
<gajjanagadde at gmail.com> wrote:
> 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
>

Regardless of what people feel about patch 1/3 (which Nicolas and I
still think should be applied),
I think this patch (and also patch 3) can be applied independently.


More information about the ffmpeg-devel mailing list