moe

mysql
coturn Version Coturn-4.5.0.3 ‘dan Eider’

add hard drive

insert into turn_origin_to_realm (origin,realm) values(‘https://turn0.mydetv.com:443′,’mydetv.com’);
external-ip=52.170.237.95
fingerprint
user=turn_user:himom
lt-cred-mech
realm=mydetv.com
log-file=/var/log/turnserver/turnserver.log
simple-log
tls-listening-port=5349

mysql-userdb=”host=127.0.0.1 dbname=turn user=turn password=turn port=3306 connect_timeout=30″
cert=/etc/letsencrypt/live/turn0.mydetv.com/cert.pem
pkey=/etc/letsencrypt/live/turn0.mydetv.com/privkey.pem
#cipher-list=”DEFAULT”
no-tlsv1
no-tlsv1_1
cli-password=qwerty
cli-ip=10.0.0.4

coturn

trying to let the janus server also run coturn

actually it is called turnserver
root@a6:/usr/src2/a6# turnserver -h
0: log file opened: /var/log/turn_15993_2018-03-01.log
0:
RFC 3489/5389/5766/5780/6062/6156 STUN/TURN Server
Version Coturn-4.5.0.3 ‘dan Eider’
0:
Max number of open files/sockets allowed for this process: 1048576
0:
Due to the open files/sockets limitation,
max supported number of TURN Sessions possible is: 524000 (approximately)
0:

==== Show him the instruments, Practical Frost: ====

0: TLS supported
0: DTLS supported
0: DTLS 1.2 supported
0: TURN/STUN ALPN supported
0: Third-party authorization (oAuth) supported
0: GCM (AEAD) supported
0: OpenSSL compile-time version: OpenSSL 1.0.2g-fips 1 Mar 2016
0:
0: SQLite supported, default database location is /var/lib/turn/turndb
0: Redis supported
0: PostgreSQL supported
0: MySQL supported
0: MongoDB is not supported
0:
0: Default Net Engine version: 3 (UDP thread per CPU core)

currently running in Azure

VM: dom
public IP: 52.191.116.248

cat /etc/turnserver.conf
external-ip=52.191.116.248
fingerprint
user=turn_user:b3BlbnZpZHUz
lt-cred-mech
realm=mydetv.com
log-file=/var/log/turnserver/turnserver.log
simple-log

cat /etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini
stunServerAddress=52.191.116.248
stunServerPort=3478
turnURL=turn_user:b3BlbnZpZHU=@52.191.116.248:3478

motion

Linux motion program on a7

sure enough, after a reboot ununtu named my /dev/video devices differently.

using
udevadm info -a -p $(udevadm info -q path -p /class/video4linux/video0)
udevadm info -a -p $(udevadm info -q path -p /class/video4linux/video2)

I found they are different cards.
ATTR{card}==”118″
ATTR{card}==”77″

root@a7:~# lspci
04:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
04:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
04:01.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
04:01.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)

sc-pvs1
pico2000 clone

/sbin/modprobe bttv card=118,118,118,118
udevadm info -a -p $(udevadm info -q path -p /class/video4linux/video1)

[ 8.814502] bttv: driver version 0.9.19 loaded
[ 8.814507] bttv: using 8 buffers with 2080k (520 pages) each for capture

[ 8.814557] bttv: Bt8xx card found (0)
[ 8.814646] bttv: 0: Bt878 (rev 17) at 0000:04:00.0, irq: 17, latency: 32, mmio: 0xe0103000
[ 8.814660] bttv: 0: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
[ 15.244029] bttv: 0: tuner type unset
[ 15.244207] bttv: 0: registered device video0
[ 15.244264] bttv: 0: registered device vbi0

[ 47.404059] bttv: Bt8xx card found (1)
[ 47.404158] bttv: 1: Bt878 (rev 17) at 0000:04:01.0, irq: 16, latency: 32, mmio: 0xe0101000
[ 47.404173] bttv: 1: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
[ 47.435151] bttv: 1: tuner type unset
[ 47.435275] bttv: 1: registered device video1
[ 47.435327] bttv: 1: registered device vbi1

lspci -vvvn
04:00.0 0400: 109e:036e (rev 11)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR-

mysql: passwordless, sprocs

https://serverfault.com/questions/358903/store-the-mysql-client-password-or-setup-password-less-authentication/786944

create my.cnf in ~home
[client]
host = mysql.homlish.net
user = phomlish
password = thepassword
#database = mysql

mysqldump -hmysql.homlish.net -uphomlish mydetvDev –routines -n -d -t > /tmp/routines
mysql -hmysql.homlish.net -uphomlish mydetv

My Delaware TV Swarm – Project Summary

The Swarm project is a solution to perform real browser to browser live P2P broadcasting.

Browser testing is being done in a lab in Delaware, USA and the Azure cloud (east & west US, southeast Australia, south Brazil, north & west Europe, east Asia, south Korea, and west India). Machines include Windows 7, 8, 10, Server 2012, and Linux Centos 7.

Key:

DCCCIBO

D – direction

C

 

 

Background
I’ve been doing live P2P broadcasts since 2006. Every time I get involved with a solution the provider has jumped ship or changed their TOS to own my content if I use them. I don’t own the content so I cannot I accept that TOS.

Mad Buffalo Productions was created because I grew disgusted with the way big media has stolen our music, our movies, our art. When I say ‘our’, I mean us humans. It is ridiculous to me that music that is 40 years old is still owned by big corporations. Did you know that Time Warner owns ‘Happy Birthday to You’, and we won’t legally be able to sing it on stage until the year 2030 unless we pay them off? Update: This was invalidated in 2015 by a federal judge.

Mad Buffalo Productions is the company responsible for the promotion of the artists, and My Delaware TV is the technical ‘get it out to the masses’ entity.

ffmpeg combine files

Assuming the codecs are the same you create a file (example mylist.txt):

file ‘/path/here/file1.avi’
file ‘/path/here/file2.avi’
file ‘/path/here/file3.avi’

Then pass that file to ffmpeg

ffmpeg -f concat -i mylist.txt -c copy x.avi

You can use this command to make the list:

ls *.avi | while read each; do echo “file ‘$each'” >> mylist.txt; done

to convert

ffmpeg -i example.mp4 -f webm -c:v libvpx -b:v 1M -acodec libvorbis example.webm -hide_banner
ffmpeg -f concat -i mylist.txt -f webm -c:v libvpx -b:v 1M -acodec libvorbis oupu.webm -hide_banner
ffmpeg -f concat -i mylist.txt -strict -2 -c:a aac -b:a 128k -c:v libx264 -crf 23 -y output.mp4

to add some keyframes
-x264-params keyint=15:min-keyint=15
ffmpeg -f concat -i mylist.txt -strict -2 -c:a aac -b:a 128k -c:v libx264 -x264-params keyint=15:min-keyint=15 -crf 23 -y output.mp4

ffmpeg -strict -2 -i Collection1-Video124.Kiki.mpg -preset slow -codec:a aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 2500k -minrate 1500k -maxrate 4000k -bufsize 5000k -vf scale=-1:720 -strict -2 Collection1-Video124.Kiki2.mp4

ffmpeg -i input.mpg -preset fast -strict -2 -y output.mp4
ffmpeg -i video.mp4 -c:v mpeg2video -q:v 5 -c:a mp2 -f vob video.mpg