Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8015

Other programming languages • Re: Bash script to launch vlc

$
0
0
Have you tried running

Code:

vlc --fullscreen --no-video-title-show --mouse-hide-timeout 5 --loop file:///var/www/html/commands/vid2.mp4
manually from a bash terminal?

Did you get the same (or a similar) error?
I get the same error.
Maybe use cvlc. This works for me, run the script from a Terminal on the pi when another video is already playing in VLC - it switches to angry.mp4

Code:

#!/bin/bashsudo killall vlcsleep .5cvlc  --no-video-title-show --loop file:///home/pi/Videos/angry.mp4
This produces:

Code:

VLC media player 3.0.21 Vetinari (revision 3.0.21-0-gdd8bfdbabe8)[0000005583ebfab0] main interface error: no suitable interface module[0000005583dd6560] main libvlc error: interface "globalhotkeys,none" initialization failed[0000005583ebfab0] dummy interface: using the dummy interface module...[0000007f7c0340a0] main video output error: video output creation failed[0000007f7c006730] main decoder error: failed to create video output
with the last 2 lines repeated constantly.

I know this should really be a simple job, but I can't figure out where to go..

Statistics: Posted by salawinder — Fri May 23, 2025 7:53 pm



Viewing all articles
Browse latest Browse all 8015

Trending Articles