@torrent-tv/proxy 2.99.2 → 2.99.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@torrent-tv/proxy",
3
- "version": "2.99.2",
3
+ "version": "2.99.3",
4
4
  "description": "Torrent proxy client that exposes webseed-like HTTP stream endpoint.",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "repository": {
@@ -43,24 +43,29 @@
43
43
  */
44
44
 
45
45
  /**
46
- * Whether an output's pieces copy a stream, picture or sound, and so may hold
47
- * a little past their published end: a copy ends at the first packet boundary
48
- * at or after it, and the player places the next piece where this one truly
49
- * ends (hls.js `updateFragPTSDTS`). A viewer standing at a published edge is
50
- * then asked for by the piece BEFORE it.
46
+ * Whether an output's pieces may hold a little past their published end: a
47
+ * piece ends at the first frame boundary at or after it, and the player places
48
+ * the next piece where this one truly ends (hls.js `updateFragPTSDTS`). A
49
+ * viewer standing at a published edge is then asked for by the piece BEFORE
50
+ * it. True of a copied picture, whose pieces end at a packet, and of sound
51
+ * however it is made: copied sound ends at a packet, and encoded sound at a
52
+ * frame of the encoder — 1024 samples of AAC, 21.3 ms at 48 kHz. Only a
53
+ * re-encoded picture, given a keyframe at every cut, ends where it is published.
51
54
  *
52
55
  * Field 2026-10-09, MP3 copied out of an AVI: a seek to 4000 s asked for the
53
56
  * piece ending at 4000 s. Field r43 (Home Assistant, 2026-10-15), a copied
54
57
  * Matroska picture: a seek to 1000.000 s, the published start of #96, asked for
55
58
  * #95 on both tracks; the picture's pieces were not counted as copies, nothing
56
- * made #95, and the picture stood 131 s until the viewer moved
57
- * (torrent-tv/meta#178).
59
+ * made #95, and the picture stood 131 s until the viewer moved. With the
60
+ * picture counted (r44), its #95 was made in 6.4 s and the soundtrack's, AAC
61
+ * encoded from the film (`its muxer counts cuts -0.021333s`), was still not
62
+ * made (torrent-tv/meta#178).
58
63
  *
59
64
  * @param {{ video?: object | null, audio?: object | null, transcodesVideo?: boolean, transcodesAudio?: boolean } | null | undefined} spec
60
65
  * @returns {boolean}
61
66
  */
62
67
  export function piecesRunPastEnd(spec) {
63
- return (Boolean(spec?.video) && spec.transcodesVideo !== true) || (Boolean(spec?.audio) && spec.transcodesAudio !== true);
68
+ return (Boolean(spec?.video) && spec.transcodesVideo !== true) || Boolean(spec?.audio);
64
69
  }
65
70
 
66
71
  export class Timeline {