Skip to content

Instantly share code, notes, and snippets.

View mondain's full-sized avatar
🏠
Working from home

Paul Gregoire mondain

🏠
Working from home
View GitHub Profile
@mondain
mondain / REDSUPPORT-352.md
Last active August 30, 2016 19:04
Info for REDSUPPORT-352 ticket

Properties / statistics requested:

  • stream start time (unix timestamp)
  • stream end time (unix timestamp)
  • broadcaster user agent
  • video codec
  • audio codec
  • video size (width and height)
  • FPS
  • total bitrate (bits per second)
@mondain
mondain / gist:c45741c79026b0623f12fffe9b7f7c8b
Created October 5, 2016 13:18
Working with exiting Maven Projects in Eclipse
Here's what I do..
1. Create my new branch
2. Pull the code
3. Execute `mvn eclipse:eclipse` in each project subdirectory
4. Import into Eclipse as generic existing (not Maven)
5. Click on each project and select `Configure` then `Convert to Maven project`
6. Click on each project and select `Properties` then `Java Build Path` then `Libraries`, remove direct library links leaving `Maven Dependencies`, `JRE System...`, `Junit 4` entries
@mondain
mondain / gist:acbec32fb1d120b7da1b393bfca8180b
Last active May 12, 2017 14:46
ffmpeg and the libopus encoder
av_register_all(); // Initialize libavformat and register all the muxers, demuxers and protocols (but not the codecs)
avcodec_register_all(); // Register the codec and initialize libavcodec
SwrContext *swr;
AVCodec *codec;
AVCodecContext *context;
// get the libopus codec encoder
codec = avcodec_find_encoder_by_name("libopus");
if (codec) {
swr = swr_alloc_set_opts(NULL, // we're allocating a new context
@mondain
mondain / gist:983892136d64975c9871c6ecedda7a29
Created July 8, 2017 02:45
ConnectivityCheckServer - Failed to send BINDING-RESPONSE(0x101)
UA: Edge on Win
2017-07-07 19:02:19,248 [NioProcessor-18] DEBUG c.r.webrtc.stream.RTCSourceStream - Offer: v=0
o=thisisadapterortc 3579037566002956 2 IN IP4 127.0.0.1
s=-
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE 9wj9mdiaks 0k3vfndwv6
a=ice-options:trickle
m=audio 9 UDP/TLS/RTP/SAVPF 104 102 9 0 8 103 97 13 118 101
@mondain
mondain / gist:3e3437f244970bfb8eee38ec2fe71ef0
Created July 8, 2017 02:53
WebRTC Microsoft Edge SDP offer
v=0
o=thisisadapterortc 4297110096882024 2 IN IP4 127.0.0.1
s=-
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE a06j75e7a6 jqcf8mqvs4
a=ice-options:trickle
m=audio 9 UDP/TLS/RTP/SAVPF 104 102 9 0 8 103 97 13 118 101
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
@mondain
mondain / gist:95a6af74a2b2a85bfcdf40cdfd4e4bd7
Created July 8, 2017 02:54
WebRTC Apple Safari (preview) SDP offer
v=0
o=- 9045225780225639943 2 IN IP4 127.0.0.1
s=-
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE audio video
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
b=AS:50
a=rtcp:9 IN IP4 0.0.0.0
@mondain
mondain / gist:27cd5c9ea5728eb148fc87075582132c
Created July 8, 2017 02:54
WebRTC Firefox 54 SDP offer
v=0
o=mozilla...THIS_IS_SDPARTA-54.0 1039943552010360183 0 IN IP4 0.0.0.0
s=-
t=0 0
a=fingerprint:sha-256 7D:D6:A1:06:55:5B:A4:51:D7:25:1D:82:0E:93:8D:50:3D:7E:65:32:EF:8C:B2:46:71:36:E0:30:4A:BD:C6:3B
a=group:BUNDLE sdparta_0 sdparta_1
a=ice-options:trickle
a=msid-semantic:WMS *
m=audio 9 UDP/TLS/RTP/SAVPF 109 9 0 8 101
c=IN IP4 0.0.0.0
@mondain
mondain / gist:444db0d82eba6a2a436e8928a582054a
Created July 8, 2017 03:03
WebRTC Chrome 59 SDP offer
v=0
o=- 2993238603765319990 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS AyZiiVhnAinEte7RxyRbOTqd0g1KbCMxmzEE
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:uptc
@mondain
mondain / loadtest.sh
Created August 29, 2017 19:02
Chromium load test script
#!/bin/bash
# maximum chromium instances to spawn
MAX_INSTANCES=50
# the testing url to request, default page will use "stream1"
#TEST_URL='http://localhost:5080/webrtcexamples/test/subscribe/''
#TEST_URL='http://webrtc.red5.org:5080/webrtcexamples/test/subscribe/'
#TEST_URL='https://webrtc.red5.org/live/viewer.jsp?host=webrtc.red5.org&stream=myStream'
TEST_URL='http://webrtc.red5.org:5080/live/viewer.jsp?host=webrtc.red5.org&stream=myStream'
#!/bin/bash
for f in `find . -name '*.flv'`;
do ffmpeg -y -re -i ${f} -vcodec copy -acodec copy -f segment -segment_list ${f}.m3u8 ${f}%03d.ts;
done