Frame rate mismatch when converting to raw video
Raw video is just that - a raw dump of video content payload - there is no packetization or metadata.

Output to Y4M for a format with metadata

ffmpeg -r 50 -i test.ts -pix_fmt yuv420p -vf "setpts=PTS-STARTPTS" -y test.y4m