Here's a short blurb on my problem and goal. I use uShare running on a Ubuntu 9.04 Server to stream video to my XBox 360. My DVD collection has been converted to XviD using mencoder, and it works great. I'd like to start saving my videos in h.264 format especially considering I'll be geting some Blu-ray discs soon. XviD streaming of 1080p content doesn't work well. Microsoft specifications for streaming mpeg4 to the XBox 360 is 1024x768 @ 5Mbps, and 1080p video in mpeg4 doesn't stream well with high bitrates. The XBox 360 supports H.264 @ 15Mbps and that should work much better for streaming 1080p video to it. I've performed testing with a few discs and pre-encoded videos. I've tried putting the video on flash media and streaming through uShare. All completely failing to play on the XBox 360.

My observation has been that when the codec and container frame-rate do not match the movie will not play on the XBox 360 (mpeg4). This is what I believe is happening with my H.264 conversions. ffmpeg information on videos shows that when I see the following messages the video is uplayable on the console. I'm only including the part of the output which I think is relevant.

Code:
Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1)
Stream #0.0: Video: mpeg4, yuv420p, 576x432 [PAR 1:1 DAR 4:3], 25 tbr, 1200 tbn, 50 tbc
When I see the tbr, tbn, and tbc match up then the videos work. The following is the video stream info (ffmpeg) from a console playable video.

Code:
Stream #0.0: Video: mpeg4, yuv420p, 576x432 [PAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
All of my attempts at H.264 output has yielded videos with this ffmpeg information:

Code:
Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1)
Stream #0.0(und): Video: h264, yuv420p, 720x576, 25 tbr, 25 tbn, 50 tbc
So, the container and the codec frame rate do not match. I tried putting the H.264 stream inside a mp4 container using MP4Box. But, that didn't work either.

How can I get the tbr, tbn, tbc, container frame rate, and codec frame rate values to match? It's been driving me insane.