2016-12-23 Getting video to play just right with vlc 1 year ago
I wanted to project a videofile with a black screen before and after, with no visible controls on the screen where the video plays, with manual control of when the video starts and with the video starting on the second monitor. The 'why' is simple: I want to use a videoprojector which has no option to turn the screen black itself and I want the smoothest videoplay possible with no visible controls. The how was a bit more work, but vlc has enough command line options. I could not find a guess online so I did an estimated count myself:$ vlc -H --advanced | grep -ce '--' VLC media player 2.2.2 Weatherwax (revision 2.2.2-0-g6259d80) 1525This shows 1525 commandline options. So I had to find the right options. Not too much of a problem either:vlc --image-duration -1 --no-qt-fs-controller --qt-fullscreen-screennumber 1 --no-video-title-show --qt-notification 0 -f --disable-screensaver Downloads/black.png Downloads/VID_20161210_104822.mp4 Downloads/black.pngThis lets me use the vlc controls in the systray, starts playing fullscreen on the right screen, plays the static black image until I select 'next', leaves out all the indicators and ends with the other static black image. The only thing left is the fact that the audio has to select the right audio device too. It turns out vlc plays audio via the alsa emulation in pulseaudio, and I need to change that preference via the pavucontrol program.