Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Criando (muitos) videos utilizando PHP e AWS
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Ivan Rosolen
September 30, 2015
Technology
36
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Criando (muitos) videos utilizando PHP e AWS
Ivan Rosolen
September 30, 2015
Transcript
50 slides
Gerando vídeos usando PHP e AWS
Ivan Rosolen Graduado em Sistemas de Informação Pós-graduado em Gerência
de Projetos Desenvolvedor a 13+ anos Autor de vários PHPT (testes para o PHP) Estratégia e Inovação @ Arizona
A Demanda …
- Receber dados - Gerar vídeo personalizado - HTML5 :)
- Texto dinâmico
A Solução …
- API Post - Avconv - 3 formatos - PHP
- Streaming
Aplicação
API - POST - Ansible - Silex - AWS EC2
“Robô”
Vídeo - Avconv - AWS EC2
Banco de Dados
Banco de Dados - Mysql
Streaming
Streaming - MP4 - WebM - Ogg
Demo
Show Me The Code!
Ansible - Rodar Playbook Local - PHP FPM - Nginx
- Avconv - Mysql
API Silex - Composer - drakojn/io
Avconv - Pra que serve? - Comandos básicos - O
que mais?
None
- Campanha viral - Tempo de gerar vídeos - Textos
animados - Money $$$ - Prazo :( - Aguenta?
None
NOT
None
A Solução …
- API Post - Avconv - 3 formatos - PHP
e Shell - Streaming
- API Post API Post e Get - Avconv Ffmpeg
- 3 formatos - PHP PHP, Shell e “Deamon” - Streaming Arquivos!
Aplicação
API - POST - Ansible - Silex - AWS EC2
API - POST POST e GET - Ansible - Silex
- AWS EC2 - AWS SQS
“Robô”
Vídeo - Avconv - AWS EC2
Vídeo - Avconv Ffmpeg - AWS EC2 - Shell Script
- PHP “Deamon” - AWS SQS
Fila de Processos
AWS SQS - Composer AWS PHP SDK - Chaves e
Configs - VisibilityTimeout
Banco de Dados
Banco de Dados - Mysql
Banco de Dados - Mysql AWS RDS - Fechar conexões
com banco
Streaming
Streaming Arquivos Estáticos
Arquivos - MP4 - WebM - Ogg - AWS S3
AWS S3 - Composer AWS PHP SDK - Sobrescrever o
arquivo - Chaves AWS
Crontab e Deamon - Juntando Tudo!
Aguenta?
Scaling - AWS RDS - AWS SQS - AWS S3
- AWS ELB
Arquitetura
- API Server - Vídeo Server - File Server -
Database - Scaling
Agradecimentos Elton “Red” Minetto Anderson “Duodraco” Casimiro Yros “AWS” Aguiar
Dúvidas?
Obrigado! @ivanrosolen
More Decks by Ivan Rosolen
See All by Ivan Rosolen
Open Source
ivanrosolen
0
47
Conventional Commits
ivanrosolen
0
120
Dicas Carreira Dev
ivanrosolen
0
130
Contando a História do Seu Código V2
ivanrosolen
0
110
Contando a História do Seu Código
ivanrosolen
0
280
Entendendo sistema de mensageria e AMQP
ivanrosolen
0
93
Criando sua primeira palestra
ivanrosolen
0
83
Padrões além do código
ivanrosolen
0
360
Perdendo o medo de falar em público
ivanrosolen
0
120
Other Decks in Technology
See All in Technology
AWS Well-Arhitected Frameworkセキュリティの柱 について
miu_crescent
PRO
2
260
メルカリの小規模チーム「Pod」で、 エンジニアがデータアナリストなしで、 AIを使ってデータ分析の自走を目指す取り組み
jackojacko_
1
360
現地速報! Microsoft Ignite アップデートレポート
kasada
1
460
Context parameters で作る!はじめての型クラス
kworkdev
PRO
1
180
こんなに変わった! AWSネットワークの常識
shotashiratori
16
12k
メール到達性を支える、リンク先URLのドメイン評価の扱い方
wind111
0
200
統制されたID・権限をどう利用するか : DPoP/FAPIによるAPIセキュリティ強化
oidfj
2
310
Del vibe coding a un Desarrollo (agéntico) fiable
jcabot
0
220
Platform Engineering をベースとした Agentic Software Factory の実践
110y
3
1k
AWS Client VPNの設定でハマったポイントとその過程での気づき
amarelo_n24
1
440
コーディングできない僕にBobが舞い降りた
shumpei3
0
210
プラガブルで宣言的なソフトウェアファクトリーを支えるTypeScript
timakin
4
1.2k
Featured
See All Featured
Crafting Experiences
bethany
1
460
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
540
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
360
The Limits of Empathy - UXLibs8
cassininazir
2
800
SEO for Brand Visibility & Recognition
aleyda
0
4.9k
Designing Powerful Visuals for Engaging Learning
tmiket
1
660
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
48k
Mind Mapping
helmedeiros
1
460
Un-Boring Meetings
codingconduct
0
510
Music & Morning Musume
bryan
48
7.5k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k