Page 1 of 1

Display and pause first frame ready to play

Posted: 03 Jan 2022 15:17
by m0guy
Hi all,

I'm using the libvlc for GoLang, I have everything working just great.. I can load a video, set the start and end times etc.. Everything I need except one thing.

I need to display the frame and pause ready for the user to press play. I've tried using the "start-paused" option to the media but it doesn't seem to do anything. when I select play it can take a second or two and then starts displaying the video.

When I look at the stats of the video just after loading the clip, even via the CLI it's not attempted to load the first frame..

Code: Select all

$ vlc --no-video-title --start-paused /clips/Install\ Walk\ Through.m4v VLC media player 3.0.12 Vetinari (revision 3.0.12-1-0-gd147bb5e7e) [00840110] vlcpulse audio output error: PulseAudio server connection failure: Connection refused [00859108] main interface error: no suitable interface module [007c3b58] main libvlc error: interface "globalhotkeys,none" initialization failed [007c3b58] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [00859108] skins2 interface error: cannot initialize OSFactory [00859108] [cli] lua interface: Listening on host "*console". VLC media player 3.0.12 Vetinari Command Line Interface initialized. Type `help' for help. > [72330c70] mmal_codec decoder: VCSM init succeeded: Legacy stats +----[ begin of statistical info +-[Incoming] | input bytes read : 463 KiB | input bitrate : 0 kb/s | demux bytes read : 395 KiB | demux bitrate : 0 kb/s | demux corrupted : 0 | discontinuities : 1 | +-[Video Decoding] | video decoded : 0 | frames displayed : 0 | frames lost : 0 | +-[Audio Decoding] | audio decoded : 0 | buffers played : 0 | buffers lost : 0 +----[ end of statistical info ] >
It seems I have to play the clip for an indeterminate amount of time before it starts to display on the screen. Is there anyway to force this loading in advance and flushing the frame to the screen?

Cheers,
--Guy