Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

Recording video stream using VLC player

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
mihaimcraciun
n00b
n00b
Posts: 3
Joined: Wed May 29, 2013 1:18 pm

Recording video stream using VLC player

  • Quote

Post by mihaimcraciun » Wed May 29, 2013 1:34 pm

Hi guys,

I have one script for recording video streaming on server, but it's only working with mplayer, and I want this to work with VLC player too.

Here is the script:

HOST=localhost
if [ ! $1 ]
then
echo "Usage: record.sh <filename> <optional-host>"
exit 0
fi
if [ $2 ]
then
HOST=$2
fi
if [ ! -d /tmp/records ]
then
mkdir -p /tmp/records
fi
echo "*** Recording ***"
mplayer ffmpeg://rtsp://$HOST:554 -dumpvideo -dumpfile /tmp/records/$1

I've try to change 'mplayer' with 'vlc' / 'vlc-wrapper' / ' sudo -u myuser' but I'm facing this errors:

1. When changing 'mplayer' with 'vlc' :
** Recording ***
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 and
cannot be run by non-trusted users first).

2. When changing 'mplayer' with 'sudo -u myuser vlc':
*** Recording ***
VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d)
[0xf98138] main libvlc error: cannot open config file (/root/.config/vlc/vlcrc): Permission denied
vlc: unknown option or missing mandatory argument `-u'
Try `vlc --help' for more information.

Any suggestions are more than welcome.

Thanks!
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

Re: Recording video stream using VLC player

  • Quote

Post by DaggyStyle » Wed May 29, 2013 2:12 pm

mihaimcraciun wrote:Hi guys,

I have one script for recording video streaming on server, but it's only working with mplayer, and I want this to work with VLC player too.

Here is the script:

HOST=localhost
if [ ! $1 ]
then
echo "Usage: record.sh <filename> <optional-host>"
exit 0
fi
if [ $2 ]
then
HOST=$2
fi
if [ ! -d /tmp/records ]
then
mkdir -p /tmp/records
fi
echo "*** Recording ***"
mplayer ffmpeg://rtsp://$HOST:554 -dumpvideo -dumpfile /tmp/records/$1

I've try to change 'mplayer' with 'vlc' / 'vlc-wrapper' / ' sudo -u myuser' but I'm facing this errors:

1. When changing 'mplayer' with 'vlc' :
** Recording ***
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 and
cannot be run by non-trusted users first).

2. When changing 'mplayer' with 'sudo -u myuser vlc':
*** Recording ***
VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d)
[0xf98138] main libvlc error: cannot open config file (/root/.config/vlc/vlcrc): Permission denied
vlc: unknown option or missing mandatory argument `-u'
Try `vlc --help' for more information.

Any suggestions are more than welcome.

Thanks!
is there any specific reason why you require sudo to run that script?
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
mihaimcraciun
n00b
n00b
Posts: 3
Joined: Wed May 29, 2013 1:18 pm

Re: Recording video stream using VLC player

  • Quote

Post by mihaimcraciun » Wed May 29, 2013 2:31 pm

DaggyStyle wrote:
mihaimcraciun wrote:Hi guys,

I have one script for recording video streaming on server, but it's only working with mplayer, and I want this to work with VLC player too.

Here is the script:

HOST=localhost
if [ ! $1 ]
then
echo "Usage: record.sh <filename> <optional-host>"
exit 0
fi
if [ $2 ]
then
HOST=$2
fi
if [ ! -d /tmp/records ]
then
mkdir -p /tmp/records
fi
echo "*** Recording ***"
mplayer ffmpeg://rtsp://$HOST:554 -dumpvideo -dumpfile /tmp/records/$1

I've try to change 'mplayer' with 'vlc' / 'vlc-wrapper' / ' sudo -u myuser' but I'm facing this errors:

1. When changing 'mplayer' with 'vlc' :
** Recording ***
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 and
cannot be run by non-trusted users first).

2. When changing 'mplayer' with 'sudo -u myuser vlc':
*** Recording ***
VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d)
[0xf98138] main libvlc error: cannot open config file (/root/.config/vlc/vlcrc): Permission denied
vlc: unknown option or missing mandatory argument `-u'
Try `vlc --help' for more information.

Any suggestions are more than welcome.

Thanks!
is there any specific reason why you require sudo to run that script?
No, I've put it that way because I want to bypass the .config/vlc/vlcrc problem.
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

Re: Recording video stream using VLC player

  • Quote

Post by DaggyStyle » Wed May 29, 2013 2:37 pm

mihaimcraciun wrote:
DaggyStyle wrote:
mihaimcraciun wrote:Hi guys,

I have one script for recording video streaming on server, but it's only working with mplayer, and I want this to work with VLC player too.

Here is the script:

HOST=localhost
if [ ! $1 ]
then
echo "Usage: record.sh <filename> <optional-host>"
exit 0
fi
if [ $2 ]
then
HOST=$2
fi
if [ ! -d /tmp/records ]
then
mkdir -p /tmp/records
fi
echo "*** Recording ***"
mplayer ffmpeg://rtsp://$HOST:554 -dumpvideo -dumpfile /tmp/records/$1

I've try to change 'mplayer' with 'vlc' / 'vlc-wrapper' / ' sudo -u myuser' but I'm facing this errors:

1. When changing 'mplayer' with 'vlc' :
** Recording ***
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 and
cannot be run by non-trusted users first).

2. When changing 'mplayer' with 'sudo -u myuser vlc':
*** Recording ***
VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d)
[0xf98138] main libvlc error: cannot open config file (/root/.config/vlc/vlcrc): Permission denied
vlc: unknown option or missing mandatory argument `-u'
Try `vlc --help' for more information.

Any suggestions are more than welcome.

Thanks!
is there any specific reason why you require sudo to run that script?
No, I've put it that way because I want to bypass the .config/vlc/vlcrc problem.
why on earth would you like to run vlc as root?
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
mihaimcraciun
n00b
n00b
Posts: 3
Joined: Wed May 29, 2013 1:18 pm

Re: Recording video stream using VLC player

  • Quote

Post by mihaimcraciun » Wed May 29, 2013 2:49 pm

DaggyStyle wrote:
mihaimcraciun wrote:
DaggyStyle wrote:
mihaimcraciun wrote:Hi guys,

I have one script for recording video streaming on server, but it's only working with mplayer, and I want this to work with VLC player too.

Here is the script:

HOST=localhost
if [ ! $1 ]
then
echo "Usage: record.sh <filename> <optional-host>"
exit 0
fi
if [ $2 ]
then
HOST=$2
fi
if [ ! -d /tmp/records ]
then
mkdir -p /tmp/records
fi
echo "*** Recording ***"
mplayer ffmpeg://rtsp://$HOST:554 -dumpvideo -dumpfile /tmp/records/$1

I've try to change 'mplayer' with 'vlc' / 'vlc-wrapper' / ' sudo -u myuser' but I'm facing this errors:

1. When changing 'mplayer' with 'vlc' :
** Recording ***
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 and
cannot be run by non-trusted users first).

2. When changing 'mplayer' with 'sudo -u myuser vlc':
*** Recording ***
VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d)
[0xf98138] main libvlc error: cannot open config file (/root/.config/vlc/vlcrc): Permission denied
vlc: unknown option or missing mandatory argument `-u'
Try `vlc --help' for more information.

Any suggestions are more than welcome.

Thanks!
is there any specific reason why you require sudo to run that script?
No, I've put it that way because I want to bypass the .config/vlc/vlcrc problem.
why on earth would you like to run vlc as root?
Right, vlc should't be run as root, but even if when I run it as non-root user, I receive the following error:

*** Recording ***
VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d)
vlc: unknown option or missing mandatory argument `-u'
Try `vlc --help' for more information.

I'm here because I have no idea why is not working. Maybe it would be nice to give me some constructive advices with this.

Thanks!
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Wed May 29, 2013 4:33 pm

check this link: http://hartvig.de/2008/howto-record-a-w ... -with-vlc/
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
Post Reply

6 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic