Today I need to install VLC Media player on CentOS 5.x to capture remote live event from VLC client as HTTP stream.
So, I have installed that using # yum install vlc
But VLC can not be run as root privileged user 🙁
VLC is not supposed to be run as root. Sorry.
If you need to use real-time priorities and/or privileged TCP ports
you can use vlc-wrapper (make sure it is Set-UID root first and
cannot be run by non-trusted users first).
To run VLC from command line we need to edit VLC file located below
# vi /usr/bin/vlc
To edit “/usr/bin/vlc” search for geteuid and replace it with getppid using vi editor’s command
:%s/geteuid/getppid/ (here geteuid is search term and getppid is replace one)
If we still face issues with stream capture, we can use mplayer 😉
# mplayer http://stream_link -dumpstream -dumpfile outFileName
The trouble with doing something right the first time is that nobody appreciates how difficult it was.