I want to wrap h264 stream to mp4 container on fly. But ffmpeg exits after first buffer
ffmpeg = subprocess.Popen("ffmpeg -f h264 -i pipe: -c copy -f mp4