Skip to content

Instantly share code, notes, and snippets.

View bentoti's full-sized avatar

Antonio Bento bentoti

View GitHub Profile
@bentoti
bentoti / comandos-docker
Created April 11, 2021 15:05 — forked from morvanabonin/comandos-docker
Comandos do Docker
Segue a lista de comandos docker e sua utilidade:
docker attach – Acessar dentro do container e trabalhar a partir dele.
docker build – A partir de instruções de um arquivo Dockerfile eu possa criar uma imagem.
docker commit – Cria uma imagem a partir de um container.
docker cp – Copia arquivos ou diretórios do container para o host.
docker create – Cria um novo container.
docker diff – Exibe as alterações feitas no filesystem do container.
docker events – Exibe os eventos do container em tempo real.
docker exec – Executa uma instrução dentro do container que está rodando sem precisar atachar nele.
@bentoti
bentoti / ffmpeg.sh
Created February 26, 2021 18:55 — forked from kevinGodell/ffmpeg.sh
testing ffmpeg mp4 encryption
#!/bin/bash
# convert, encrypt, decrypt, probe
echo "Hello ffmpeg mp4 encryption!"
echo -e "\n---------- convert wav to mp4 ----------\n"
ffmpeg -y -i long_input_44100.wav long_input_44100.mp4
echo -e "\n---------- encrypt mp4 ----------\n"
<?xml version="1.0"?>
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" mediaPresentationDuration="PT22.46S" minBufferTime="PT11.43S" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011" type="static">
<Period id="0">
<AdaptationSet mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1">
<Representation bandwidth="55448" codecs="mp4a.40.2" id="audio-und">
<BaseURL>https://staging-black.youhaveajack.com/4dbce552-8ecc-4ba8-9f70-5fdff8c0a4c7_d3a2f6938f1e4750743f6574da8427ed/4dbce552-8ecc-4ba8-9f70-5fdff8c0a4c7_d3a2f6938f1e4750743f6574da8427ed-audio-und.mp4?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9zdGFnaW5nLWJsYWNrLnlvdWhhdmVhamFjay5jb20vNGRiY2U1NTItOGVjYy00YmE4LTlmNzAtNWZkZmY4YzBhNGM3X2QzYTJmNjkzOGYxZTQ3NTA3NDNmNjU3NGRhODQyN2VkLzRkYmNlNTUyLThlY2MtNGJhOC05ZjcwLTVmZGZmOGMwYTRjN19kM2EyZjY5MzhmMWU0NzUwNzQzZjY1NzRkYTg0MjdlZC1hdWRpby11bmQubXA0KiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTQ2Njg1NTg2MH19fV19&amp;Signature=EwRFxf~sBgtM9DQKUD~CHcjlhyjBPVLvCuriLkcWsAJ-E
<?xml version="1.0"?>
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" mediaPresentationDuration="PT22.46S" minBufferTime="PT11.43S" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011" type="static">
<Period id="0">
<AdaptationSet mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1">
<Representation bandwidth="55448" codecs="mp4a.40.2" id="audio-und">
<BaseURL>https://staging-black.youhaveajack.com/4dbce552-8ecc-4ba8-9f70-5fdff8c0a4c7_d3a2f6938f1e4750743f6574da8427ed/4dbce552-8ecc-4ba8-9f70-5fdff8c0a4c7_d3a2f6938f1e4750743f6574da8427ed-audio-und.mp4?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9zdGFnaW5nLWJsYWNrLnlvdWhhdmVhamFjay5jb20vNGRiY2U1NTItOGVjYy00YmE4LTlmNzAtNWZkZmY4YzBhNGM3X2QzYTJmNjkzOGYxZTQ3NTA3NDNmNjU3NGRhODQyN2VkLzRkYmNlNTUyLThlY2MtNGJhOC05ZjcwLTVmZGZmOGMwYTRjN19kM2EyZjY5MzhmMWU0NzUwNzQzZjY1NzRkYTg0MjdlZC1hdWRpby11bmQubXA0KiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTQ2Njg1NTg2MH19fV19&amp;Signature=EwRFxf~sBgtM9DQKUD~CHcjlhyjBPVLvCuriLkcWsAJ-E
@bentoti
bentoti / ffmpeg-qsv-enabled-build-ubuntu-18.04lts-testbed.md
Created December 24, 2019 04:06 — forked from Brainiarc7/ffmpeg-qsv-enabled-build-ubuntu-18.04lts-testbed.md
This gist will generate an Intel QSV-enabled FFmpeg build using the open source Intel Media SDK. Testbed used: Ubuntu 18.04LTS. A fallback is also provided for the intel vaapi driver where needed.

Build FFmpeg with Intel's QSV enablement on an Intel-based validation test-bed:

Build platform: Ubuntu 18.04LTS

Ensure the platform is up to date:

sudo apt update && sudo apt -y upgrade && sudo apt -y dist-upgrade

Install baseline dependencies first (inclusive of OpenCL headers+)

@bentoti
bentoti / mpeg-dash-ffmpeg-dashjs.md
Created November 10, 2019 15:36 — forked from kevinGodell/mpeg-dash-ffmpeg-dashjs.md
Use ffmpeg to connect to an ip cctv camera and create video files on the fly that can be viewed in an mpeg-dash compatible browser using dash.js and an html5 video element.

Live streaming mpeg-dash video using ffmpeg and dash.js

Use ffmpeg to connect to an ip cctv camera and create video files on the fly that can be viewed in an mpeg-dash compatible browser using dash.js and an html5 video element.

Prerequisites

A linux server, such as Ubuntu

Apache web server installed, running, and reachable via its ip address