This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker build -t flaneurtv/core-worker-ffmpeg:dmitry . | |
# you probably have to replace $PWD with your code path, if it does not expand automatically. | |
docker run -it --name dmitry -v $PWD/:/go/src/github.com/242617/flaneurtv/ -w /go/src/github.com/242617/flaneurtv -e SERVICE_UUID=707C4578-597E-4BF1-AA96-AC8E2295C049 -e SERVICE_NAME=micro-worker-ffmpeg -e SERVICE_HOST=worker00 -e NAMESPACE_LISTENER=flaneur -e NAMESPACE_PUBLISHER=flaneur flaneurtv/core-worker-ffmpeg:dmitry ash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hiMac:processor-worker-ffmpeg elias$ docker build -t flaneurtv/core-worker-ffmpeg --no-cache . | |
Sending build context to Docker daemon 3.518MB | |
Step 1/8 : FROM jrottenberg/ffmpeg:3.3-alpine as ffmpeg | |
---> 70ea2b424980 | |
Step 2/8 : FROM golang:1.9-alpine as builder | |
---> 107ed76bfbd2 | |
Step 3/8 : COPY --from=ffmpeg /usr/local/ /usr/local/ | |
---> 72b3c500179d | |
Step 4/8 : RUN apk add --no-cache --update ca-certificates libcrypto1.0 libssl1.0 libgomp expat libgcc libstdc++ | |
---> Running in 04d0770f0714 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"topic": "$NAMESPACE_LISTENER/tick", | |
"service_uuid": "$SERVICE_UUID", | |
"service_name": "$SERVICE_NAME", | |
"service_host": "$SERVICE_HOST", | |
"created_at": "$NOW", | |
"payload": { | |
"tick_uuid": "$TICK_UUID", | |
"tick_timestamp": "$NOW" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as log from 'loglevel'; | |
import React from 'react'; | |
import AuthStore from './stores/AuthStore' | |
import Uppy from 'uppy' | |
import 'bootstrap/dist/css/bootstrap.min.css'; | |
import 'uppy/dist/uppy.min.css' | |
import './css/UppyComponent.css' | |
import './css/font-awesome.min.css' | |
const TUS_ENDPOINT = 'https://tusd.flaneur.tv/files/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
INPUT="/srv/elias/assets/audio-bbc.mp4" | |
TARGET="rtmp://rtmp-api.facebook.com:80/rtmp/XXX" | |
FORMAT="flv" | |
VBITRATE="2000k" | |
VPRE="fast" | |
VPROFILE="main" | |
VLEVEL="3.1" | |
FPS=25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set root=/srv/assets/ | |
uadd avformat:rtmp://rtmp-api.facebook.com:80/rtmp/XXX | |
uset u0 consumer.realtime=1 | |
uset u0 consumer.mlt_profile=atsc_1080p_25 | |
user u0 consumer.target=rtmp://rtmp-api.facebook.com:80/rtmp/XXX | |
uset u0 consumer.pix_fmt="yuv420p" | |
uset u0 consumer.f="flv" | |
uset u0 consumer.bufsize=1835008 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NAME=obe_hd | |
screen -d -m -S $NAME obecli | |
sleep 1 | |
screen -p 0 -S $NAME -X stuff $'set input decklink\012' | |
screen -p 0 -S $NAME -X stuff $'set input opts card-idx=0\012' | |
screen -p 0 -S $NAME -X stuff $'set input opts video-format=1080i50\012' | |
screen -p 0 -S $NAME -X stuff $'set input opts video-connection=sdi\012' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OBE configure script | |
Command line options: "--prefix=/opt/obe" | |
checking whether gcc works... yes | |
checking for -std=gnu99... yes | |
checking whether yasm supports vpaddw xmm0, xmm0, xmm0... yes | |
checking whether gcc supports __asm__("pabsw %xmm0, %xmm0");... yes | |
checking for pthread.h... yes | |
checking for x264_encoder_close(0); in x264.h... yes | |
checking whether X264_BUILD >= 99 is true... yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NAME=obe_sd | |
screen -d -m -S $NAME obecli | |
sleep 2 | |
screen -p 0 -S $NAME -X stuff $'set input decklink\012' | |
screen -p 0 -S $NAME -X stuff $'set input opts card-idx=3\012' | |
screen -p 0 -S $NAME -X stuff $'set input opts video-format=pal\012' | |
screen -p 0 -S $NAME -X stuff $'probe input\012' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Open Broadcast Encoder command line interface. | |
Version 0.1-beta | |
obecli> set input decklink | |
obecli> set input opts card-idx=0 | |
obecli> set input opts video-format=1080i50 | |
obecli> set input opts video-connection=sdi | |
obecli> set input opts audio-connection=embedded | |
obecli> probe input | |
Probing device: Decklink card 0. Timeout 20 seconds |