i have a problem with streaming a webcam over https with VLC (on linux) to an VLC client (on Windows). The whole thing works pretty cool with http but if i use TLS, the client (seems to connect but) do not display any video.
The Server (headless) is under Ubuntu Server 20.04 LTS with VLC 3.0.9.2 installed. X is installed but deactivated in bootloader.
The Client is under Windows 10 with 3.0.10 installed.
This combination works (HTTP):
Code: Select all
On Server:
cvlc v4l2:///dev/video0:width=640:height=480:fps=30 --sout '#transcode{vcodec=h264,venc=x264{preset=fast,tune=zerolatency,intra-refresh,lookahead=10,keyint=15},scale=auto,fps=30,acodec=mpga,ab=128}:standard{access=http,mux=ts,dst=:35519}' --network-caching 0
On Client (Interface):
Ctrl+N > http://xxx.xxx.xxx.xxx:35519 > play
This combination dont work (HTTPS):
Code: Select all
On Server:
cvlc v4l2:///dev/video0:width=640:height=480:fps=30 --sout '#transcode{vcodec=h264,venc=x264{preset=fast,tune=zerolatency,lookahead=10,keyint=15},scale=auto,acodec=mpga,ab=128}:standard{access=https,mux=ts,dst=:35519}' --http-cert /home/cedo/Documents/cedoCert.crt --http-key /home/cedo/Documents/cedoKey.key
On Client (Interface):
Ctrl+N > https://xxx.xxx.xxx.xxx:35519 > play
You can read the -vvv output of the non working command here: https://pastebin.com/EA4Sc2iU
If I open the URL on client VLC the orange bar on the bottom begins to move left and right forever.
In the same Moment these lines appears in the bash on the server:
Code: Select all
[00007f35240038b0] gnutls tls server debug: TLS handshake: Resource temporarily unavailable, try again.
[00007f35240038b0] gnutls tls server debug: TLS handshake: Success.
[00007f35240038b0] gnutls tls server debug: - safe renegotiation (RFC5746) enabled
[00007f35240038b0] gnutls tls server debug: - extended master secret (RFC7627) enabled
If I press the stop button on client interface this red line appears on server bash:
Code: Select all
[00007f35240038b0] gnutls tls server error: Error in the push function.
I have no iptable rules active. I place two rules to log the traffic on Port 35519 an see that the connection between the server and client is established:
Code: Select all
Jun 6 14:07:53 cedo-serv kernel: [70398.222098] IN=enp0s25 OUT= MAC=xxx SRC=xxx DST=xxx LEN=286 TOS=0x00 PREC=0x00 TTL=120 ID=18657 DF PROTO=TCP SPT=52230 DPT=35519 WINDOW=516 RES=0x00 ACK PSH URGP=0
Jun 6 14:07:53 cedo-serv kernel: [70398.222162] IN= OUT=enp0s25 SRC=xxx DST=xxx LEN=40 TOS=0x00 PREC=0x00 TTL=64 ID=42396 DF PROTO=TCP SPT=35519 DPT=52230 WINDOW=501 RES=0x00 ACK URGP=0
Jun 6 14:07:53 cedo-serv kernel: [70398.248022] IN= OUT=enp0s25 SRC=xxx DST=xxx LEN=2242 TOS=0x00 PREC=0x00 TTL=64 ID=42397 DF PROTO=TCP SPT=35519 DPT=52230 WINDOW=501 RES=0x00 ACK PSH URGP=0
Jun 6 14:07:53 cedo-serv kernel: [70398.266643] IN=enp0s25 OUT= MAC=xxx SRC=xxx DST=xxx LEN=40 TOS=0x00 PREC=0x00 TTL=120 ID=18658 DF PROTO=TCP SPT=52230 DPT=35519 WINDOW=516 RES=0x00 ACK URGP=0
Jun 6 14:07:53 cedo-serv kernel: [70398.267929] IN=enp0s25 OUT= MAC=xxx SRC=xxx DST=xxx LEN=166 TOS=0x00 PREC=0x00 TTL=120 ID=18659 DF PROTO=TCP SPT=52230 DPT=35519 WINDOW=516 RES=0x00 ACK PSH URGP=0
Jun 6 14:07:53 cedo-serv kernel: [70398.267952] IN= OUT=enp0s25 SRC=xxx DST=xxx LEN=40 TOS=0x00 PREC=0x00 TTL=64 ID=42399 DF PROTO=TCP SPT=35519 DPT=52230 WINDOW=501 RES=0x00 ACK URGP=0
Jun 6 14:07:53 cedo-serv kernel: [70398.267990] IN=enp0s25 OUT= MAC=xxx SRC=xxx DST=xxx LEN=203 TOS=0x00 PREC=0x00 TTL=120 ID=18660 DF PROTO=TCP SPT=52230 DPT=35519 WINDOW=516 RES=0x00 ACK PSH URGP=0
Jun 6 14:07:53 cedo-serv kernel: [70398.268005] IN= OUT=enp0s25 SRC=xxx DST=xxx LEN=40 TOS=0x00 PREC=0x00 TTL=64 ID=42400 DF PROTO=TCP SPT=35519 DPT=52230 WINDOW=501 RES=0x00 ACK URGP=0
Jun 6 14:07:53 cedo-serv kernel: [70398.268574] IN= OUT=enp0s25 SRC=xxx DST=xxx LEN=91 TOS=0x00 PREC=0x00 TTL=64 ID=42401 DF PROTO=TCP SPT=35519 DPT=52230 WINDOW=501 RES=0x00 ACK PSH URGP=0
Jun 6 14:07:53 cedo-serv kernel: [70398.328820] IN=enp0s25 OUT= MAC=xxx SRC=xxx DST=xxx LEN=40 TOS=0x00 PREC=0x00 TTL=120 ID=18661 DF PROTO=TCP SPT=52230 DPT=35519 WINDOW=515 RES=0x00 ACK URGP=0
Thanks,
CeDoMain