This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| /go/src/test-worker-ffmpeg # go version | |
| go version go1.8.4 linux/amd64 | |
| /go/src/test-worker-ffmpeg # go test | |
| scannerStderr | |
| scannerStdout | |
| writerStdin | |
| ----------------- 1. Iteration ----------------- | |
| Empty message sent: | |
| sending message |
This file contains hidden or 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
| BEGIN { | |
| ORS="" | |
| OFS="" | |
| print "{\"payload\":[" | |
| } | |
| /[^\s"]+|"([^"]*)"/g && (NR>2) { | |
| ORS="" | |
| OFS="" | |
| printf "%s\"index\":\"%d\",\"filename\":\"%s\",\"in\":\"%d\",\"out\":\"%d\",\"length\":\"%d\",\"calculated_length\":\"%d\",\"fps\":\"%s\"", sep, $1, $2, $3, $4, $5, $6, $7; sep="],[" | |
| } |
This file contains hidden or 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
| bash-4.4# cat melted-playlist.txt | gawk -f melted-simple.awk | |
| "],["index":"3","filename":""onetwothree"","in":"0","out":"2255","length":"2256","calculated_length":"2256","fps":"25.00"]}:"25.00 |
This file contains hidden or 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
| $awk -f main.awk | |
| {"payload":["index":"0","filename":""audio-bbc.xml"","in":"0","out":"2255","length":"2256","calculated_length":"2256","fps":"25.00 | |
| "],["index":"1","filename":""afasdfasdfasdf"","in":"0","out":"2255","length":"2256","calculated_length":"2256","fps":"25.00 | |
| "],["index":"2","filename":""onetwo"","in":"0","out":"2255","length":"2256","calculated_length":"2256","fps":"25.00 | |
| "],["index":"3","filename":""onetwothree"","in":"0","out":"2255","length":"2256","calculated_length":"2256","fps":"25.00"]} |