Skip to content

Commit

Permalink
Update readme, push version.
Browse files Browse the repository at this point in the history
  • Loading branch information
cubicibo committed Nov 25, 2023
1 parent 5fbb53c commit 9f56b87
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ The config.ini file can be used to specify the relative or absolute path to a qu
-w, --withsup Flag to write both SUP and PES+MUI files.
-t, --tslong Flag to use a conservative PTS/DTS strategy (more events may be filtered out on complex animations).
-m, --max-kbps Set the maximum bitrate to test the output against. Recommended range: [500-16000].
-l, --log-to-file Set (enable) logging to file with the minimum message level: [20: info+, 25: iinf+, 30: warning+]
-e, --extra-acq Set the min count of palette update after which acquisitions should be inserted [0: Disabled, default]
-l, --log-to-file Set (enable) logging to file and set logging level: [10: debug, 20: info, 25: iinf, 30: warnings]
-v, --version Print the version and exit.
```
- Image quantization mode 3 ("PILIQ") is either libimagequant or pngquant, whichever specified in config.ini or available in your system.
Expand All @@ -68,6 +69,7 @@ Here are some additional informations on selected options, especially those that
- Allow normal case object redefinition: whenever possible, update a single object out of two. The requirements are hard to meet so this option may have no effect. Also, objects gets a 50/50 palette split whenever this happen.
- Subsampled BDN XML: Use a 25 or 29.97 fps BDN and generate the SUP as if it was for a 50 or 59.94 fps transport stream.
- Conservative PTS/DTS strategy: doubles the graphic plane access time whenever an object is defined.
- Insert acquisition: Palette effects are encoded in a single bitmap and the output of the last palette update may remain on screen for sufficiently long. Artifacts may come to the viewer attention if they remain visible long enough on the screen. Refreshing the screen will hide potential side effects and improve the perceived quality.

### TL;DR Options
First of all, one should leave the acquisition rate untouched at 100%, unless the stream is highly compressible (i.e includes solely a karaoke).
Expand Down
2 changes: 1 addition & 1 deletion SUPer/__metadata__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

__MAJOR = 0
__MINOR = 2
__REVISION = 1
__REVISION = 2

__name__ = "SUPer"
__version__ = '.'.join(map(str, [__MAJOR, __MINOR, __REVISION]))
Expand Down
2 changes: 1 addition & 1 deletion SUPer/render2.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ def get_palette_data(pal_manager: PaletteManager, node: DSNode) -> tuple[int, in
break
assert z+1 == k

if insert_acqs > 0 and len(pals[0]) >= insert_acqs and flags[k-1] != -1:
if insert_acqs > 0 and len(pals[0]) > insert_acqs and flags[k-1] != -1:
t_diff = TC.tc2s(self.events[k-1].tc_out, self.bdn.fps) - TC.tc2s(self.events[k-1].tc_in, self.bdn.fps)
if t_diff > 0.5:
dts_end = nodes[k-1].dts_end() + 5/PGDecoder.FREQ
Expand Down

0 comments on commit 9f56b87

Please sign in to comment.