In my C++ program I use popen()
to read video frames with ffmpeg. When program stops on it's own or I close it with Ctrl+C
everything I type into terminal just never appears (but it's there). I do close pipe with pclose()
. When I try to build my program again and it fails so gcc
prints errors - it fixes itself. Ubuntu 18.04.3, kernel 5.4
Is it terminal window's bug or I misunderstand pipes in some way?
had a similar problem with python Popen solved it by adding
-nostdin
flag to ffmpeg command https://stackoverflow.com/questions/65329483/python-subprocess-popen-ffmpeg-breaks-terminal-input