• exec/fileinfo.jsctrl/file.ini docs/v322_new.md

    From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Mon Nov 16 21:58:16 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/0642ad3fb615ed14a62e29c1
    Added Files:
    exec/fileinfo.js
    Modified Files:
    ctrl/file.ini docs/v322_new.md
    Log Message:
    New viewer module: fileinfo.js, for audio, video and image files

    Identifies a file by its content rather than its name and displays its
    format, bitrate, sample rate, channels, dimensions, length and tags,
    followed by any SAUCE record. Only the file's headers and trailers are
    read (MIDI files, being small, are read whole), so the result is
    immediate for a file of any size, where an external tool such as
    "mp3info -x" reads an entire variable-bitrate MP3 file to do the same.

    Supported: MP3 (ID3v1/v2), WAV, FLAC, Ogg Vorbis/Opus, MOGG (Rock Band multitrack Ogg), MP4/M4A/MOV, AVI, WMA/WMV, MIDI, JPEG, PNG, GIF and
    BMP, with a type-only line for PDF and ZIP/RAR/7-Zip files.

    The length of a variable-bitrate MP3 file comes from its Xing or VBRI
    header; without one it is estimated from the leading frames and
    labeled as such. A file larger than 4GB needs the 64-bit File.position
    support to be read past that offset, and gets a type-only line without
    it.

    The stock file.ini gains viewer entries ("?fileinfo %f") for the media
    file extensions, ahead of the catch-all archive viewer.

    Issue #1352

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)