Asadd:Your excellent work can rejuvenate many old Xbox's for use of streaming using the Windows Media Center. If only we could speed up the FPS a bit while lowering the stream enough to get it to work with the original xbox in a better way. Your version 7 seems to work the best for me. It would be cool if someone could get MEncoder to stream a live show kinda like Webguide 4 does only its like a second or two off but that isnt a big deal...I get some slow FPS with MEncoder 7. It's not too bad but it is noticeable but beggers and non-programers cant ......
I looked at your script and below is the command line they are using:
mencoder -delay 0.2 -oac lavc -srate 48000 -af lavcresample=48000 -of mpeg -mpegopts format=dvd -o "output.360" -ovc lavc -vf scale=368:272,expand=368:272,harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:keyint=15:vrc_maxrate=8000:vbitrate=4000:aspect=4/3:acodec=mp2:abitrate=192 -ofps 24000/1001 "Input File"
I don't understand why they are using "-delay 0.2", it seems like this would be causing AV sync issues with quite a few files. However, it isn't what's causing your problem. The problem is with the parameter "keyint=15". This parameter tells Mencoder to make every 15th frame a key frame. It looks like there is a bug in this function with the current Mencoder source code. If you don't use this parameter, the AC sync will be fine. I'll report it to the MPlayer decelopers and see if we can get it fixed (I don't understand what they are doing in the section of code, so it would take me far to long to figure it out and come up with a fix). So, the good news is this problem doesn't have anything to do with the dvr-ms changes we made - however, since it isn't my code causing the problem, I'll have to rely on someone else to fix it. For now if you are using Transcode 360, I recommend you stay with Version 7.
Now, above you said that Version 7 is giving you slow fps. Can you explain what you mean a little more? Do you mean that it's extreamly slow at converting the files? Is this with Trancode 360, or using the profiles I created? Mencoder is going to be highly dependant on the speed of your machine, so what type of machine do you have? If you are refering to the fps of the encoding file is slow (like it's only encoded to 24 fps), then that has to do with the settings in Trancode 360. Notice in the transcode 360 command line above, they forced the fps to 23.97. Now it won't do this for all files, they have a variable system where they force the fps to be 23.97 up to 30. Of course, that is still telling mencoder to drop quite a few frames from some ATSC shows because some ATSC shows can be 59.94 fps. I'm sure they have to do this becuse the V1 extenders can't handle 59.94 fps.