Check this video out from England.
Now, which one was more stupid:
1. First guy putting his tripod on the rails? or
2. Second guy too close to the tracks, with his back to the 2nd train? or
3. Guy who said "yoo hoo" to warn of the oncoming train?
Nobody really comes off too well in this video.
Keep safe out there. Your safety is worth more than "getting the shot".