Skip to content

Instantly share code, notes, and snippets.

View deedos's full-sized avatar

Daniel Roviriego deedos

  • Rio de Janeiro - Brazil
View GitHub Profile
@deedos
deedos / Node-Red-CasparCG-and-iScore
Created November 21, 2019 18:28
Experiment to integrate CasparCg and iScore through Node-Red
[{"id":"5d3f3e40.7465a","type":"osc","z":"ae0d439e.fdc38","name":"","path":"/","metadata":false,"x":190,"y":140,"wires":[["5943e4f1.33d88c"]]},{"id":"c69b475e.01c3b8","type":"udp in","z":"ae0d439e.fdc38","name":"","iface":"","port":"8888","ipv":"udp4","multicast":"false","group":"","datatype":"buffer","x":60,"y":140,"wires":[["5d3f3e40.7465a"]]},{"id":"646fad9f.685084","type":"debug","z":"ae0d439e.fdc38","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":1010,"y":380,"wires":[]},{"id":"f40182b4.20455","type":"switch","z":"ae0d439e.fdc38","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"/opacity","vt":"str"},{"t":"eq","v":"/brightness","vt":"str"},{"t":"eq","v":"/perspective","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":510,"y":140,"wires":[["a49ba90d.c40af8"],["c7e6c4a7.ded258"],["239e3e4c.314232"]]},{"id":"b75a081e.54ae68","type":"amcp","z":"ae0d439e.fdc38","name":"","port":"5250","host":"localhost","x":1030,"y":140,"wires
@deedos
deedos / tls response - null data
Created August 17, 2018 17:32
tls response - null data
{"response":{"raw":"200 TLS OK","code":200,"data":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},"responseProtocol":{"code":200},"_payload":{},"_status":4,"_stringParamsArray":[],"_objectParams":{},"_token":"8ja8kl3"}
[
{
"_id": "000000000523701011111111",
"md5": "4e58fa361c1269fa4a913289712c99f9",
"mediaId": "TVBR0523701011111111",
"ffprobe": {
"filename": "5237.T01.EP12.BL01.ts",
"filepath": "/home2/transcoderj01/convertidos-netnow/5237.T01.EP12.BL01",
"fileext": ".ts",
"file": "/home2/transcoderj01/convertidos-netnow/5237.T01.EP12.BL01/5237.T01.EP12.BL01.ts",
{"md5":"839e79390bb17ca12a6ac34e55131964","mediaId":"TESTE-now","ffprobe":{"filename":"TESTE-now.ts","filepath":"/home2/transcoderj01/convertidos-netnow/TESTE","fileext":".ts","file":"/home2/transcoderj01/convertidos-netnow/TESTE/TESTE-now.ts","probe_time":217,"streams":[{"codec_name":"h264","codec_long_name":"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10","profile":"High 4:2:2","codec_type":"video","codec_time_base":"1001/60000","codec_tag_string":"[27][0][0][0]","codec_tag":"0x001b","width":1920,"height":1080,"coded_width":1920,"coded_height":1080,"has_b_frames":2,"sample_aspect_ratio":"1:1","display_aspect_ratio":"16:9","pix_fmt":"yuv422p","level":40,"color_range":"N/A","color_space":"unknown","color_transfer":"unknown","color_primaries":"unknown","chroma_location":"left","field_order":"progressive","timecode":"N/A","refs":1,"is_avc":"false","nal_length_size":0,"id":"0x1e1","r_frame_rate":"30000/1001","avg_frame_rate":"30000/1001","time_base":"1/90000","start_pts":132006,"start_time":1.466733,"duration_ts":385
0x0bDE253e58702e813A32008B697417AAa395BF58
<div class="videoWrapper">
<iframe allowfullscreen="" frameborder="0" height="360" src="/path/to/your/clappr" width="640"></iframe></div>
<style type="text/css">.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
height: 0;
}
.videoWrapper iframe {
position: absolute;
@deedos
deedos / nginx-rtmp.md
Created July 14, 2015 19:12
Instalação e configuração de nginx-rtmp module e ffmpeg para transcoding

Instalação e Configuração de nginx-rtmp com live transcoding - S.O : Debian SID stable

  • Instalar ffmpeg da fonte: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

  • Instalar nginx com módulo rtmp

      wget http://nginx.org/download/nginx-1.9.3.tar.gz
      git clone https://github.com/arut/nginx-rtmp-module
      wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.36.tar.bz2
      tar -xvf pcre-8.36.tar.bz2
      tar -xvf nginx-1.9.3.tar.gz
      cd nginx-1.9.3
    
#N canvas 387 171 693 588 10;
#X declare -lib mrpeach;
#X declare -lib moocow;
#X text 21 571 SEE ALSO:;
#X obj 417 541 pdstring;
#X obj -181 359 print bytes2any-help;
#X obj -180 336 bytes2any 128 0;
#X obj 13 217 any2bytes 128 -1;
#X obj 13 262 print any2bytes-help;
#X obj 189 463 tcpclient;
@deedos
deedos / gist:c85dd9dc8551eba11506
Created September 10, 2014 16:46
seção chamada multicam primeira fase
<!-- MULTICAM -->
<div id="multicam_lupi" class="menuanchor"></div>
<div class="multicam">
<div class="content_lupi">
<div class="label">
<h3>Multicâmeras</h3>
<img src="img/multi60x60.png" width="60">
<p>O internauta decide qual câmera destacar</p>
---
# PiVT Configuration File
# Note that PiVT can be operated in two modes, either as the network-controlled
# video server it was designed as or in alternate 'playlist' mode (or both,
# just pick up the playlist where it left off)
# The three dashes at the start of the file are important, please leave them in!
# Folder where video files can be found (--folder). Absolute paths recommended!