Driven by many applications in a wide span of scientific fields, a myriad of advanced ultrafast imaging techniques have emerged in the last decade, featuring record-high imaging speeds above a trillion-frame-per-second with long sequence depths. Although bringing remarkable insights in various ultrafast phenomena, their application out of a laboratory environment is however limited in most cases, either by the cost, complexity of operation or by an heavy data processing. We then report a flexible single-shot imaging technique combining sequentially-timed all-optical mapping photography (STAMP) with acousto-optics programmable dispersive filtering. The full control over the acquisition parameters is enabled via the spectro-temporal tailoring of the imaging pulses in an electrically-driven spectral phase and amplitude shaper in which the pulse shaping in both the temporal and spectral domains is controlled through the interaction of the light field with an acoustic wave. Here, contrary to most single-shot techniques, the frame rate, exposure time and frame intensities can be independently adjusted in a wide range of pulse durations and chirp values, making the system remarkably versatile and user-friendly. The imaging speed of the system as well as its flexibility are validated by visualizing ultrashort events on both the picosecond and nanosecond time scales. With the perspective of real-world applications and to achieve the highest technical simplicity, we eventually demonstrate its lensless operation based on digital in-line holography. The virtues and limitations as well as the potential improvements of this on-demand ultrafast imaging method are critically discussed.