Vlc socket bind error

I'm trying to stream an .mkv file using VLC on Ubuntu 12.04, but keep receiving:

ilagi

New Cone
New Cone
Posts: 6
Joined: 02 Aug 2014 18:25

Streaming with VLC returns socket bind error (Permission den

I’m trying to stream an .mkv file using VLC on Ubuntu 12.04, but keep receiving:

Code: Select all

[http] main interface error: socket bind error (Permission denied)

I have the next setting for VLC:

Code: Select all

new channel1 broadcast enabled
setup channel1 input /tmp/recording40.mkv
setup channel1 output #http{mux=ts,dst=:8080/live1}
setup channel1 option http-reconnect
setup channel1 option no-sout-rtp-sap option no-sout-standard-sap
option ttl=1 option sout-keep

control channel1 play

And running vlc with:

Code: Select all

nohup cvlc -Ihttp --file-logging --log-verbose=1 --logfile="vlc.log" --vlm-conf vlm.conf & echo $! > vlc.pid

As you can see I’m using port 8080, so non-root user should have access to open that port. I have also tried other ports too — no luck. Running cvlc with root doesn’t help either (and that is not recommended by the documentation).

Any ideas why I keep receiving this error?


ilagi

New Cone
New Cone
Posts: 6
Joined: 02 Aug 2014 18:25

Re: Streaming with VLC returns socket bind error (Permission

Postby ilagi » 03 Aug 2014 06:03

I’m going to answer my own question.

So as it turns out it didn’t matter what port I speficied in the above config file the http port vlc is trying to use is always 8080, where I already had socket.io running.

The only way to change the port is actually by using the —http-port= parameter when calling cvlc:

Code: Select all

nohup cvlc -Ihttp --file-logging --log-verbose=1 --logfile="vlc.log" --http-port=9090 --vlm-conf vlm.conf & echo $! > vlc.pid

My mkv file is still not streaming, but there is no more socket error. And I can telnet in on port 9090.

Now I have :

Code: Select all

main interface error: no suitable interface module
main libvlc error: interface "globalhotkeys,none" initialization failed



Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 0 guests

I have Ubuntu desktop 14.04 with two NIC, eth0 and eth1. One is just for internet and the other one is on local subnet where multicast UDP stream is coming.
Default route is on eth0, and multicast route is on eth1. UDP stream is coming on eth1 and I can see that is here with TCPDUMP on that interface but can’t open it in VLC. In VLC log I can see that VLC can’t open that port or what?
Can someone help me? Is that problem with some user rights or port is closed, or what?
The same stream I can play on other computer with windows. Here is VLC log:

main debug: processing request item: udp://225.224.2.2:1002, node: Playlist, skip: 0
main debug: resyncing on udp://225.224.2.2:1002
main debug: udp://225.224.2.2:1002 is at 9
main debug: starting playback of the new playlist item
main debug: resyncing on udp://225.224.2.2:1002
main debug: udp://225.224.2.2:1002 is at 9
main debug: creating new input thread
main debug: Creating an input for 'udp://225.224.2.2:1002'
main debug: using timeshift granularity of 50 MiB, in path '/tmp'
main debug: `udp://@225.224.2.2:1002' gives access `udp' demux `' path `@225.224.2.2:1002'
main debug: creating demux: access='udp' demux='' location='@225.224.2.2:1002' file='(null)'
main debug: looking for access_demux module matching "udp": 20 candidates
main debug: no access_demux modules matched
main debug: creating access 'udp' location='@225.224.2.2:1002', path='(null)'
main debug: looking for access module matching "udp": 25 candidates
access_udp debug: opening server=:0 local=225.224.2.2:1002
main debug: net: opening 225.224.2.2 datagram port 1002
main error: socket bind error (Permission denied)
access_udp error: cannot open socket
main debug: no access modules matched
main error: open of `udp://@225.224.2.2:1002' failed
main debug: dead input
main debug: changing item without a request (current 9/10)
main debug: nothing to play

here is ip route:

ip route

default via 192.168.2.1 dev eth0  proto static 
192.168.2.0/24 dev eth0  proto kernel  scope link  src 192.168.2.50  metric 1 
192.168.10.0/24 dev eth1  proto kernel  scope link  src 192.168.10.25  metric 1 
224.0.0.0/4 via 192.168.10.25 dev eth1

I changed the Multicast port and still can’t open stream that is easy opened on Windows mashine in the same subnet. Here is VLC stream:

main debug: incoming request - stopping current input
main debug: object waitpipe triggered
main debug: socket 25 polling interrupted
main debug: prebuffering done 0 bytes in 39s - 0 KiB/s
main error: cannot pre fill buffer
main debug: removing module "access_udp"
main warning: cannot create a stream_t from access
main debug: incoming request - stopping current input
main debug: finished input
dbus debug: Getting property CanRaise
main debug: incoming request - stopping current input
main debug: dead input
main debug: processing request item: udp://225.224.2.3:3003, node: Playlist, skip: 0
main debug: resyncing on udp://225.224.2.3:3003
main debug: udp://225.224.2.3:3003 is at 0
main debug: starting playback of the new playlist item

And firewall is disabled….

One more update:
On Ubuntu desktop and even on (I have to try)Win 2008 server VLC won’t open udp stream which coming on multicast when two NIC are connected. When is connected just one NIC VLC can play the stream….So the problem is with VLC and two NIC. I assume that VLC doesn’t know on which NIC to look for stream but I don’t know how to resolve this. Any idea???

I didn’t find answer to my problem but can’t wait any more and need to move on to other things to do….So, here is the whole thing: I need to multicast stream which comes on eth1 to forward on eth0 so other computers and students in subnet can see it(connecting mcast stream to router or switch for everyone just mess with network and bandwidth and stream is freezing and pixeling ), (in what ever manner, but best will be as http stream so students can open stream with VLC) First I need to verify that stream is available, and for that I try with Ubuntu desktop and its working with one NIC, but with two no. After to much time without solution I decide to move to server 14.04 and UDPXY. Now I Installed Ubuntu server 14.04, server is joined multicast group, with tcpdump -i I can see that mcast stream is here on eth1, can’t open the stream because it’s server without video card, I installed UDPXY, which is accepting mcast stream on eth1 and client requests on eth0 so they open stream like: http://192.168.2.50:5005/udp/225.224.2.3:3003 I try to open stream in VLC on Windows, and on Linux computer and nothing. The VLC log gives me the same massage like before on Ubuntu desktop.

Even if I changed the whole configuration that’s the same problem…Ubuntu with two NIC can’t open, or forward stream. Is it problem with kernel routing or permissions??? In this case VLC doesn’t have problem to choose on witch NIC to look for stream so it’s have to be with Ubuntu… please help???

Содержание

  1. The VideoLAN Forums
  2. Streaming with VLC returns socket bind error (Permission den
  3. Streaming with VLC returns socket bind error (Permission den
  4. Re: Streaming with VLC returns socket bind error (Permission
  5. The VideoLAN Forums
  6. Run as Root to fix Socket Bind Error for VOD?
  7. Run as Root to fix Socket Bind Error for VOD?
  8. The VideoLAN Forums
  9. network stream
  10. network stream
  11. The VideoLAN Forums
  12. Help, Permission Denied. Cannot run rtsp or VOD server!
  13. Help, Permission Denied. Cannot run rtsp or VOD server!
  14. The VideoLAN Forums
  15. Streaming error: lua interface error
  16. Streaming error: lua interface error

The VideoLAN Forums

Discussion and support for VLC media player and friends

Streaming with VLC returns socket bind error (Permission den

Streaming with VLC returns socket bind error (Permission den

Post by ilagi » 03 Aug 2014 02:19

[http] main interface error: socket bind error (Permission denied)

new channel1 broadcast enabled setup channel1 input /tmp/recording40.mkv setup channel1 output #http setup channel1 option http-reconnect setup channel1 option no-sout-rtp-sap option no-sout-standard-sap option ttl=1 option sout-keep control channel1 play

nohup cvlc -Ihttp —file-logging —log-verbose=1 —logfile=»vlc.log» —vlm-conf vlm.conf & echo $! > vlc.pid

As you can see I’m using port 8080, so non-root user should have access to open that port. I have also tried other ports too — no luck. Running cvlc with root doesn’t help either (and that is not recommended by the documentation).

Any ideas why I keep receiving this error?

Re: Streaming with VLC returns socket bind error (Permission

Post by ilagi » 03 Aug 2014 06:03

I’m going to answer my own question.

So as it turns out it didn’t matter what port I speficied in the above config file the http port vlc is trying to use is always 8080, where I already had socket.io running.

The only way to change the port is actually by using the —http-port= parameter when calling cvlc:

nohup cvlc -Ihttp —file-logging —log-verbose=1 —logfile=»vlc.log» —http-port=9090 —vlm-conf vlm.conf & echo $! > vlc.pid

My mkv file is still not streaming, but there is no more socket error. And I can telnet in on port 9090.

main interface error: no suitable interface module main libvlc error: interface «globalhotkeys,none» initialization failed

Источник

The VideoLAN Forums

Discussion and support for VLC media player and friends

Run as Root to fix Socket Bind Error for VOD?

Run as Root to fix Socket Bind Error for VOD?

Post by thegauntface » 24 Oct 2011 13:21

I’m trying to use VLC as a VOD streaming server, I can run and access the http web interface but when I try to create a VOD media item, I just get the following errors in the console:

[0x10029da38] main interface: creating httpd
[0x1002a6808] main vod server error: socket bind error (Permission denied)
[0x1002a6808] main vod server error: socket bind error (Permission denied)
[0x1002a6808] main vod server error: cannot create socket(s) for HTTP host
[0x1002a6808] vod_rtsp vod server error: cannot create RTSP server ((null):554)
[0x1002a6558] main vlm daemon error: cannot find vod server

It would normally be at this point I would run as root and see if that fixed the issues, however running as root I get asked to use vlc-wrapper :

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 /Applications/VLC.app/Contents/MacOS/VLC-wrapper (make sure it is Set-UID root and
cannot be run by non-trusted users first).

The issue with this is that VLC-wrapper is that it isn’t in the default VLC install.

Is there a different way to allow the port permissions without root? otherwise where can I get the vlc-wrapper for OS X ?

Источник

The VideoLAN Forums

Discussion and support for VLC media player and friends

network stream

network stream

Post by shark95 » 04 Dec 2008 17:18

hi vlc community!

I want to stream just a file (later on a DVB-S channel) on my home network. I use PC with OpenSuse 11.0 with vlc 0.9.6 as a server and a notebook with windows Vista and vlc 0.9.6 as a client. I set up my stream on the server: i select the file i want to stream in vlc streaming options. Then i use RTP-Protocol and type in the IP of the client (in my case 192.168.0.7) and take the default port 1234. If i use the MPEG-2 Codec i get the error:

avcodec error: cannot open encoder
stream_out_transcode error: cannot find video encoder (module:any fourcc:mp2v)

What does that mean and how can i solve this problem?

ok, so i take another codec: I use MPEG-TS with MPEG 4 (videocodec) and MPEG 4 Audio (AAC) (audiocodec). That works (no error).

But if i want to receive the stream on my client i always get this error:

main error: socket bind error (Cannot assign requested address)
main error: no access module matched «rtp»
main error: open of ‘rtp://@192.168.0.3:1234’ failed: could not create access: no module matched «rtp»

The IP addresses and ports are correct, all firewalls on my Systems are disabled, so i don’t know where i can find my mistake. I also tried UDP: same result.

But if i start vlc twice on my OpenSuse System (once as a server, once as a client) and stream the file to the IP 127.0.0.1 it works. Seems that somethings going wrong with my network but i don’t know what. But the connection should be ok, if i try ping i always get good results.

Источник

The VideoLAN Forums

Discussion and support for VLC media player and friends

Help, Permission Denied. Cannot run rtsp or VOD server!

Help, Permission Denied. Cannot run rtsp or VOD server!

Post by jpelc » 15 Jul 2011 15:14

vlc —vlm-conf VOD.vlm

# VLC media player VLM command batch # http://www.videolan.org/vlc/ new EIF vod enabled setup EIF input «/home/administrator/VOD/EIF.avi» setup EIF option file-caching=300 new SKD vod enabled setup SKD input «/home/administrator/VOD/SkiDiving.avi» setup SKD option file-caching=300

/VOD$ vlc —vlm-conf VOD.vlm VLC media player 1.1.9 The Luggage (revision exported) [0x8e8c75c] main vod server: creating httpd [0x8e8c75c] main vod server error: socket bind error (Permission denied) [0x8e8c75c] main vod server error: socket bind error (Permission denied) [0x8e8c75c] main vod server error: cannot create socket(s) for HTTP host [0x8e8c75c] vod_rtsp vod server error: cannot create RTSP server ((null):554) [0x8e991bc] main vlm daemon error: cannot find vod server [0x8e991bc] main vlm daemon error: Load error on line 5: new: could not create media Blocked: call to unsetenv(«DBUS_ACTIVATION_ADDRESS») Blocked: call to unsetenv(«DBUS_ACTIVATION_BUS_TYPE») [0x8de5914] main libvlc: Running vlc with the default interface. Use ‘cvlc’ to use vlc without interface. Blocked: call to setlocale(6, «») Warning: call to srand(1310847162) Warning: call to rand() Blocked: call to setlocale(6, «») (process:4062): Gtk-WARNING **: Locale not supported by C library. Using the fallback ‘C’ locale.

I realy could use to help getting this going. my guess from many years of windows experience, i may be running the folder VOD from the wrong location.

Источник

The VideoLAN Forums

Discussion and support for VLC media player and friends

Streaming error: lua interface error

Streaming error: lua interface error

Post by Deep_Blue » 28 Mar 2011 16:08

I’m trying to set up a VOD stream on my server. Its running Ubuntu 10.10 with VLC 1.1.4 (That’s the current version on the repository, and I don’t want to add a sketchy ppa)

I input into the command line
vlc -I telnet —control telnet —telnet-password abc123 —rtsp-host 0.0.0.0:5554

And I get out
[0xefaef0] [telnet] lua interface: Listening on host «localhost:4212».
Blocked: call to unsetenv(«DBUS_ACTIVATION_ADDRESS»)
Blocked: call to unsetenv(«DBUS_ACTIVATION_BUS_TYPE»)
[0xf1e110] inhibit interface error: Failed to connect to the D-Bus session daemon: /bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

[0xf1e110] main interface error: no suitable interface module
[0xf27a00] main interface error: no suitable interface module
[0xe0e120] main libvlc error: interface «globalhotkeys,none» initialization failed
[0xf27a80] [telnet] lua interface: Listening on host «localhost:4212».
[0xf27a80] [telnet] main interface error: socket bind error (Permission denied)
[0xf27a80] [telnet] main interface error: socket bind error (Permission denied)
[0xf27a80] [telnet] lua interface error: Error loading script /usr/lib/vlc/lua/intf/telnet.luac: lua/intf/modules/host.lua:189: Cannot listen on localhost:4212

It will then just sit there until i issue a kill command. I’ve tried changing the port with —telnet-port, but no luck.
Any help on this would be much appreciated.

Источник

Например вывод

[bupyc@bupyc-desktop ~]$ vlc
VLC media player 1.1.4.1 The Luggage (revision exported)
Blocked: call to unsetenv(«DBUS_ACTIVATION_ADDRESS»)
Blocked: call to unsetenv(«DBUS_ACTIVATION_BUS_TYPE»)
[0x1239120] main libvlc: Запуск vlc с интерфейсом по умолчанию. Используйте ‘cvlc’ для запуска vlc без интерфейса.
Blocked: call to setlocale(6, «»)
Blocked: call to sigaction(17, 0x7f374b756ac0, 0x7f374b756b60)
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
Blocked: call to setlocale(6, «»)
[0x190cca0] main access out: creating httpd
[0x190cca0] main access out error: socket bind error (Permission denied)
[0x190cca0] main access out error: socket bind error (Permission denied)
[0x190cca0] main access out error: cannot create socket(s) for HTTP host
[0x190cca0] access_output_http access out error: cannot listen on port 8080
[0x19023c0] stream_out_standard stream out error: no suitable sout access module for `http/ts://:8080/’
[0x18f8130] v4l2 demux error: device does not support mmap i/o
[0x193c340] v4l2 access error: device does not support mmap i/o
[0x193c340] v4l2 access error: device does not support mmap i/o
[0x18d7600] main input error: open of `v4l2://’ failed: (null)
[bupyc@bupyc-desktop ~]$ sudo killall vlc
Пароль:
[bupyc@bupyc-desktop ~]$ vlc
VLC media player 1.1.4.1 The Luggage (revision exported)
Blocked: call to unsetenv(«DBUS_ACTIVATION_ADDRESS»)
Blocked: call to unsetenv(«DBUS_ACTIVATION_BUS_TYPE»)
[0xece120] main libvlc: Запуск vlc с интерфейсом по умолчанию. Используйте ‘cvlc’ для запуска vlc без интерфейса.
Blocked: call to setlocale(6, «»)
Blocked: call to sigaction(17, 0x7fc9dbffeac0, 0x7fc9dbffeb60)
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
Blocked: call to setlocale(6, «»)
[0x158f5d0] main access out: creating httpd
x264 [info]: using cpu capabilities: MMX2 SSE2Slow SlowCTZ
x264 [info]: profile High, level 3.0
x264 [info]: using SAR=12/11
Blocked: call to setlocale(1, «C»)
Blocked: call to setlocale(1, «ru_RU.UTF-8»)
Blocked: call to setlocale(1, «C»)
x264 [info]: using cpu capabilities: MMX2 SSE2Slow SlowCTZ
x264 [info]: profile High, level 3.0
[0x1584630] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[0x1584630] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[0x1584630] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
mmco: unref short failure
[0x1584630] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
mmco: unref short failure
^C[0xfe0c80] signals interface error: Caught Прерывание signal, exiting…
x264 [info]: frame I:3 Avg QP:17,22 size: 25708
x264 [info]: frame P:90 Avg QP:19,86 size: 7858
x264 [info]: frame B:166 Avg QP:21,23 size: 2098
x264 [info]: consecutive B-frames: 7,0% 15,5% 9,3% 68,2%
x264 [info]: mb I I16..4: 4,0% 80,2% 15,8%
x264 [info]: mb P I16..4: 0,4% 5,6% 0,6% P16..4: 48,4% 23,7% 19,3% 0,0% 0,0% skip: 2,0%
x264 [info]: mb B I16..4: 0,0% 0,3% 0,1% B16..8: 35,0% 0,0% 0,0% direct:19,4% skip:45,2% L0:43,4% L1:37,1% BI:19,5%
x264 [info]: 8×8 transform intra:82,6% inter:62,2%
x264 [info]: coded y,uvDC,uvAC intra: 93,9% 97,1% 97,0% inter: 44,2% 56,8% 35,1%
x264 [info]: i16 v,h,dc,p: 32% 3% 32% 34%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 12% 32% 7% 6% 6% 6% 7% 15%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 12% 20% 8% 5% 4% 5% 7% 26%
x264 [info]: i8c dc,h,v,p: 85% 4% 2% 9%
x264 [info]: Weighted P-Frames: Y:16,7%
x264 [info]: ref P L0: 37,1% 12,8% 34,7% 13,4% 2,0%
x264 [info]: ref B L0: 52,0% 41,9% 6,0%
x264 [info]: ref B L1: 87,1% 12,9%
x264 [info]: kb/s:874,68

Bupyc ★★

(01.11.10 22:10:19 MSK)

  • Показать ответ
  • Ссылка

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

jonsteckelberg

VLC will not start

I am running Mint 11.
When I try to start VLC through the menu nothing happens.
I tried uninstalling and reinstalling but still the same results.
Anyone have an idea what the problem is?

Thanks
Jon

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.

Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

dagon

Level 7
Level 7
Posts: 1655
Joined: Mon Dec 06, 2010 4:33 am
Location: Kungälv, Sweden
Contact:

Re: VLC will not start

Post

by dagon » Wed Feb 29, 2012 1:28 pm

Try running vlc from a terminal (just type vlc) and paste back any info it prints out here.

jonsteckelberg

Re: VLC will not start

Post

by jonsteckelberg » Wed Feb 29, 2012 5:04 pm

This is what I get trying to run vlc from terminal

VLC media player 1.1.9 The Luggage (revision exported)
Warning: call to srand(1330549217)
Warning: call to rand()
Blocked: call to unsetenv(«DBUS_ACTIVATION_ADDRESS»)
Blocked: call to unsetenv(«DBUS_ACTIVATION_BUS_TYPE»)
[0x9ad51e4] main interface: creating httpd
[0x9ad51e4] main interface error: socket bind error (Permission denied)
[0x9ad51e4] main interface error: cannot create socket(s) for HTTP host
[0x9ad51e4] oldhttp interface error: cannot listen on 8080:8080
[0x9ad51e4] main interface error: no suitable interface module
[0x9a30914] main libvlc error: interface «default» initialization failed

dagon

Level 7
Level 7
Posts: 1655
Joined: Mon Dec 06, 2010 4:33 am
Location: Kungälv, Sweden
Contact:

Re: VLC will not start

Post

by dagon » Wed Feb 29, 2012 5:47 pm

Open up nautilus and select «Show hidden files» (ctrl + h)
~/.config there should be a folder «vlc».
rename vlc to vlcBACKUP
now start(or restart) vlc

works?
you renamed the configuration files so it will recreate a default/clean environment.

jonsteckelberg

Re: VLC will not start

Post

by jonsteckelberg » Wed Feb 29, 2012 6:25 pm

There is only one file in that folder.
It is «Trolltech.conf»

Jon

dagon

Level 7
Level 7
Posts: 1655
Joined: Mon Dec 06, 2010 4:33 am
Location: Kungälv, Sweden
Contact:

Re: VLC will not start

Post

by dagon » Wed Feb 29, 2012 6:31 pm

Are you trying to enter the vlc folder? Don’t. Rename it!

Понравилась статья? Поделить с друзьями:
  • Vlc sat ip stream error failed to setup rtsp session
  • Vlc media player как изменить скин
  • Vlc main interface error no suitable interface module
  • Vlc main decoder error buffer deadlock prevented
  • Vlc lua error