igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.0
    Preparing search index...

    Function ReadVideoSource

    • What reading the developer's video before the encode answers: the stream a poster frame is decoded from and the source facts upload_settings reports. The encode reads the same bytes again: it follows the server's directive, which this read precedes.

      Parameters

      • video: Buffer

      Returns Effect<
          {
              facts: VideoSourceFacts;
              source: {
                  accessUnits: Uint8Array<ArrayBufferLike>[];
                  height: number;
                  pps: Uint8Array<ArrayBufferLike>;
                  rotation: 0 | 90 | 180 | 270;
                  sps: Uint8Array<ArrayBufferLike>;
                  width: number;
              };
          },
          PostingVideoEncodeError,
          never,
      >