First, thanks a lot for janus. I have implemented it on my Raspberry PI, and was guided by this two posts and the git samples of course:
http://www.rs-online.com/designspark/electronics/blog/building-a-raspberry-pi-2-webrtc-camera
https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=99283&p=693103#p693103
It is working now for me in FireFox and in local network. That makes me happy :)
Any advice is apreciated…
Best regards,
Simon
Hello,
I have intalled the janus gateway now on an Azure VM with Ubuntu 14 LTS.
I have opened following Ports for Janus (80, 443, 7088(admin)TCP, 8088(signalPort) TCP, 8004(udpsink) UDP)
I can send the streams, but when i start streaming with the streaming demo. I get following Error and the Streaming stops, video is never visible then.
Current error: [ERR] [ice.c:janus_ice_cb_component_state_changed:1114] [2618639093] ICE failed for component 1 in stream 1...
I have the exact same settings as they are working locally. Only difference is that i have hosted the Janus Demos in a nodejs server instead a nginx server.
Do you have any idea what is the source of the problem?
Thanks for support,
Simon
raspivid --verbose --nopreview -hf -vf --width 640 --height 480 --framerate 15 --bitrate 1000000 --profile baseline --timeout 0 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! udpsink host=137.116.196.147 port=8004
Session: 3997884238
Session 3997884238 found... returning up to 1 messages
[janus.c:janus_ws_notifier:2533] ... handling long poll...
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 :STUN transaction retransmitted (timeout 1196ms).
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 :STUN transaction retransmitted (timeout 1189ms).
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 : timer tick #51: 0 frozen, 2 in-progress, 0 waiting, 0 succeeded, 0 discovered, 0 nominated, 0 waiting-for-nom.
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 :STUN transaction retransmitted (timeout 2385ms).
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 :STUN transaction retransmitted (timeout 2399ms).
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 : timer tick #101: 0 frozen, 2 in-progress, 0 wai ting, 0 succeeded, 0 discovered, 0 nominated, 0 waiting-for-nom.
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 : timer tick #151: 0 frozen, 2 in-progress, 0 wai ting, 0 succeeded, 0 discovered, 0 nominated, 0 waiting-for-nom.
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 : timer tick #201: 0 frozen, 2 in-progress, 0 wai ting, 0 succeeded, 0 discovered, 0 nominated, 0 waiting-for-nom.
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 :STUN transaction retransmitted (timeout 4789ms).
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 :STUN transaction retransmitted (timeout 4783ms).
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 : timer tick #251: 0 frozen, 2 in-progress, 0 wai ting, 0 succeeded, 0 discovered, 0 nominated, 0 waiting-for-nom.
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 : timer tick #301: 0 frozen, 2 in-progress, 0 wai ting, 0 succeeded, 0 discovered, 0 nominated, 0 waiting-for-nom.
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 : timer tick #351: 0 frozen, 2 in-progress, 0 wai ting, 0 succeeded, 0 discovered, 0 nominated, 0 waiting-for-nom.
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 : timer tick #401: 0 frozen, 2 in-progress, 0 wai ting, 0 succeeded, 0 discovered, 0 nominated, 0 waiting-for-nom.
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 : Retransmissions failed, giving up on connectivi ty check 0x7fc680034000
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 : pair 0x7fc680034000 state FAILED
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 : Retransmissions failed, giving up on connectivi ty check 0x7fc668004000
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 : pair 0x7fc668004000 state FAILED
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 : timer tick #450: 0 frozen, 0 in-progress, 0 wai ting, 0 succeeded, 0 discovered, 0 nominated, 0 waiting-for-nom.
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 : priv_conn_check_tick_unlocked: stopping connche ck timer
(process:5721): libnice-DEBUG: Agent 0x7fc680007bc0 : stream 1 component 1 STATE-CHANGE connecting -> failed.
[362133931] Component state changed for component 1 in stream 1: 5 (failed)
[ERR] [ice.c:janus_ice_cb_component_state_changed:1114] [362133931] ICE failed for component 1 in str eam 1...
[362133931] Telling the plugin about it (JANUS Streaming plugin)
No WebRTC media anymore
[362133931] Notifying WebRTC hangup
[362133931] Adding event to queue of messages...
I try to make that work for for more than 15 hours, so any advice is appreciated...
...
WARNING: from element /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: Can't record audio fast enough
Additional debug info: gstaudiobasesrc.c(857): gst_audio_base_src_create (): /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0:
Dropped 4240 samples. This is most likely because downstream can't keep up and is consuming samples too slowly.
[gstreamer-monitor-h264]
type = rtp
id = 2
description = H.264 live stream coming from gstreamer
audio = yes
video = yes
audioport = 8003
audiopt = 111
audiortpmap = opus/48000/2
videoport = 8005
videopt = 126
videortpmap = H264/90000
videofmtp = profile-level-id=42e01f\;packetization-mode=1
secret = adminpwd
#!/bin/bash -e
gst-launch-1.0 -v alsasrc device=plughw:Set ! mulawenc ! rtppcmupay ! udpsink host=137.116.196.147 port=8003 &
raspivid -n -w 640 -h 480 -b 100000 -fps 2 -vf -hf -t 0 -pf baseline -o - | gst-launch-1.0 -v fdsrc fd=0 ! h264parse ! rtph264pay config-interval=2 pt=126 ! udpsink host=137.116.196.147 port=8005