I am working on third-party patches support for pTool.
But it is not ready yet.
Do you want to add all this constants?
Code changing around constants on right screenshot is used in preset bitrates as far as I remember.
Thread: GH1 IDA Pro database research
Results 41 to 50 of 65
-
Bronze Member
- Join Date
- Apr 2010
- Posts
- 2,415
09-16-2010 06:29 PM
-
Senior Member
- Join Date
- Aug 2006
- Location
- Colorado Springs
- Posts
- 473
09-16-2010 06:41 PM
Actually I'm more interested in the first one (the one with only two constants). If you add all of them, though, I'll run them through their paces.
Am I right in understanding that the constants on the right are changed according to Presets changes, but not the ones on the left? Which ones? I don't recognize any of the numbers from PTool.
ChrisLast edited by cbrandin; 09-16-2010 at 06:45 PM.
-
Bronze Member
- Join Date
- Apr 2010
- Posts
- 2,415
09-16-2010 07:09 PM
Download PTool, all constants added (plus one more 234 constant, used in loop).
As for Preset bitrate, you can see that it is 234 by default :-) Actually it also involves code changes so always only this option (from all set) will be used.
-
Bronze Member
- Join Date
- Apr 2010
- Posts
- 2,415
09-16-2010 07:23 PM
I also suggest to look at this
"cmp 0x12D, D0" - slightly above right screenshot.
If D0 will be larger it jumps to set error code (as I understand).
Same comparison is right before this error set location.
Really I do not believe that something very useful can be done changing this constants only (as they are selected based on some bitrate related things, again, look at part above).
-
Senior Member
- Join Date
- Aug 2006
- Location
- Colorado Springs
- Posts
- 473
09-16-2010 07:54 PM
Thanks
Chris
-
Senior Member
- Join Date
- Mar 2010
- Posts
- 2,176
09-16-2010 09:15 PM
-
Bronze Member
- Join Date
- Apr 2010
- Posts
- 2,415
-
Senior Member
- Join Date
- Mar 2010
- Posts
- 2,176
-
Senior Member
- Join Date
- Aug 2006
- Location
- Colorado Springs
- Posts
- 473
09-18-2010 01:26 PM
Vitaliy,
I've been digging deeper into the video plug-ins. Here are my findings so far:
Video_Encode_Plugin is for FHD mode. I'm fairly certain about this.
Video_Encode_Plugin_0 is for SH, H, and L modes.
The new patches I asked for appear to be P frame quality settings. If I raise them too high the codec appears to run out of steam easily with big P frames and then eventually empty P frames right before the next I frame. The I frames also appear to be a little too small, like they have been robbed of bitrate allocation. Interestingly, though, the codec appears to only make the last P frame empty - like a GOP value calculation used for individual frame size is off by 1 frame. I think the "pulsing" is caused by this. Making these smaller seems to eliminate empty frames (or, at least reduce their frequency). When I doubled their value absolutely every last P frame before an I frame was empty when shooting a detailed static scene. Also, up until the empty frame the P frame sizes increased the closer they got to the end of the GOP. Without increasing these numbers the P frame sizes were pretty consistent (flat).
It's the video encoders that appear to be assembling the raw stream for the Mux, including audio. There are a couple of subroutines in them that call the audio encoder.
Native mode still crashes with a write error. A couple of times, however, there was no crash but the MTS file contained invalid packets. This leads me to believe that we are seeing a buffer overrun caused by an inadequate buffer allocation for full 1080p frames vs half 1080p frames (or, maybe full 720p frames). I'm going to study the invalid frames to see if I can determine anything about the data in them - they appear not to be video data of any kind, they are something else.
It appears that pulsing and crashing aren't related - they are two separate issues.
Chris
-
Bronze Member
- Join Date
- Apr 2010
- Posts
- 2,415
09-18-2010 01:55 PM
You can also try to look at frame slices.
As I understand, encoder do not know about 1080p mode, so use slices sizes for 720p, making too many slices in one frame.





