as per my knowledge potatoes and peas causes more gas or flatus. for me any of the dairy products also causes gas for me. it more irritating and distress. i heard that its due to nitrogen in the gas. how to reduce the nitrogen in the gas.
Avoid the above said food items. This itself will help. See a doctor and ask for some tablet to tackle TH problem.