SlideShare uma empresa Scribd logo
1 de 13
PHP, Daemons e Multimedia             Guilherme Blanco




         PHP, Daemons e Multimedia




         PHP Conference Brazil 2009
Doctrine 2.0: A evolução da persistência em PHP   Benjamin Eberlei, Guilherme Blanco, Jonathan Wage & Roman Borschel




                              Guilherme Blanco
•    Desenvolvedor há 10+ anos
•    Evangelista de projetos OS
•    Trabalhar para Naspers/MIH
•    Contribui para...
•    ...Doctrine
•    ...Zend Framework
•    ...Symfony
•    ...PHP
•    ...etc
         PHP Conference Brazil 2009                                                          www.doctrine-project.org
PHP, Daemons e Multimedia                      Guilherme Blanco




                            Guilherme Blanco

 • http://www.twitter.com/guilhermeblanco

 • http://www.facebook.com/guilhermeblanco




         PHP Conference Brazil 2009
PHP, Daemons e Multimedia                      Guilherme Blanco




                                      Agenda
 •   Requisitos
 •   Configuração
 •   Queue System
 •   Daemon
 •   REST




         PHP Conference Brazil 2009
PHP, Daemons e Multimedia                   Guilherme Blanco




                               Requisitos
 • Tratamento de aúdio, vídeo e imagem
     – Ffmpeg + x264
     – Imagemagick

 • 100% distribuído

 • Suporte à geração de thumbnails de vídeos

 • Anamorfismo

         PHP Conference Brazil 2009
PHP, Daemons e Multimedia                                           Guilherme Blanco




                            Configuração
 • Audio


 encoder.profiles.audio.app_audio.options.overwrite        =   true
 encoder.profiles.audio.app_audio.output.0.resourceType    =   audio
 encoder.profiles.audio.app_audio.output.0.format          =   mp3
 encoder.profiles.audio.app_audio.output.0.fileExtension   =   mp3
 encoder.profiles.audio.app_audio.output.0.audioRate       =   44100
 encoder.profiles.audio.app_audio.output.0.audioBitrate    =   128k
 encoder.profiles.audio.app_audio.output.0.audioChannel    =   2
 encoder.profiles.audio.app_audio.output.0.audioCodec      =   libmp3lame




         PHP Conference Brazil 2009
PHP, Daemons e Multimedia                                                    Guilherme Blanco




                            Configuração
 • Imagem

     encoder.profiles.image.app_image.options.overwrite        =   true
     encoder.profiles.image.app_image.output.0.resourceType    =   image
     encoder.profiles.image.app_image.output.0.anamorphic      =   320x240
     encoder.profiles.image.app_image.output.0.boxing          =   false
     encoder.profiles.image.app_image.output.0.fileExtension   =   jpg
     encoder.profiles.image.app_image.output.1.resourceType    =   image
     encoder.profiles.image.app_image.output.1.anamorphic      =   46x46
     encoder.profiles.image.app_image.output.1.boxing          =   false
     encoder.profiles.image.app_image.output.1.fileExtension   =   jpg
     encoder.profiles.image.app_image.output.2.resourceType    =   image
     encoder.profiles.image.app_image.output.2.anamorphic      =   640x480
     encoder.profiles.image.app_image.output.2.boxing          =   false
     encoder.profiles.image.app_image.output.2.fileExtension   =   jpg




         PHP Conference Brazil 2009
PHP, Daemons e Multimedia                                                                 Guilherme Blanco




                              Configuração
            encoder.profiles.video.blobthis_video.options.overwrite        =   true
            encoder.profiles.video.blobthis_video.output.0.resourceType    =   video
            encoder.profiles.video.blobthis_video.output.0.anamorphic      =   320x240
            encoder.profiles.video.blobthis_video.output.0.boxing          =   true
            encoder.profiles.video.blobthis_video.output.0.format          =   flv
            encoder.profiles.video.blobthis_video.output.0.fileExtension   =   flv
            encoder.profiles.video.blobthis_video.output.0.codec           =   libx264
            encoder.profiles.video.blobthis_video.output.0.preset          =   normal
            encoder.profiles.video.blobthis_video.output.0.crf             =   24
            encoder.profiles.video.blobthis_video.output.0.padColor        =   000000
            encoder.profiles.video.blobthis_video.output.0.audioRate       =   22050
            encoder.profiles.video.blobthis_video.output.0.audioBitrate    =   96k
            encoder.profiles.video.blobthis_video.output.0.audioCodec      =   libfaac
            encoder.profiles.video.blobthis_video.output.1.resourceType    =   image
            encoder.profiles.video.blobthis_video.output.1.format          =   mjpeg
            encoder.profiles.video.blobthis_video.output.1.fileExtension   =   jpg
            encoder.profiles.video.blobthis_video.output.1.anamorphic      =   320x240
            encoder.profiles.video.blobthis_video.output.1.boxing          =   true
            encoder.profiles.video.blobthis_video.output.1.rate            =   1
            encoder.profiles.video.blobthis_video.output.1.codec           =   mjpeg
            encoder.profiles.video.blobthis_video.output.1.padColor        =   000000
            encoder.profiles.video.blobthis_video.output.1.seekTime        =   00:00:01
            encoder.profiles.video.blobthis_video.output.1.audio           =   false

         PHP Conference Brazil 2009
PHP, Daemons e Multimedia                  Guilherme Blanco




                            Queue System
 • Dropr

 • Amazon SQS

 • ...




         PHP Conference Brazil 2009
PHP, Daemons e Multimedia                  Guilherme Blanco




                                  Daemon
 • Manager

 • Workers




         PHP Conference Brazil 2009
PHP, Daemons e Multimedia                    Guilherme Blanco




                                      REST
 •   PUT
 •   GET
 •   DELETE
 •   HEAD




         PHP Conference Brazil 2009
PHP, Daemons e Multimedia                  Guilherme Blanco




                            Perguntas???




         PHP Conference Brazil 2009
PHP, Daemons e Multimedia                                      Guilherme Blanco




                            Guilherme Blanco
                            guilhermeblanco@php.net
                            +55 16 9215-8480

                            Twitter: @guilhermeblanco
                            MSN: guilhermeblanco@hotmail.com




         PHP Conference Brazil 2009

Mais conteúdo relacionado

Semelhante a PHP, Daemons e Multimedia

2015.12.06 - digi test evaluation B&G & FFW (1)
2015.12.06 - digi test evaluation B&G & FFW (1)2015.12.06 - digi test evaluation B&G & FFW (1)
2015.12.06 - digi test evaluation B&G & FFW (1)
Gráinne D'alton
 
Final Cut Express 4 User Manual
Final Cut Express 4 User ManualFinal Cut Express 4 User Manual
Final Cut Express 4 User Manual
guest866798
 

Semelhante a PHP, Daemons e Multimedia (20)

GDD HTML5, Flash, and the Battle for Faster Cat Videos
GDD HTML5, Flash, and the Battle for Faster Cat VideosGDD HTML5, Flash, and the Battle for Faster Cat Videos
GDD HTML5, Flash, and the Battle for Faster Cat Videos
 
Producing Effective Screencasts
Producing Effective ScreencastsProducing Effective Screencasts
Producing Effective Screencasts
 
HTML5, Flash, and the Battle For Faster Cat Videos
HTML5, Flash, and the Battle For Faster Cat VideosHTML5, Flash, and the Battle For Faster Cat Videos
HTML5, Flash, and the Battle For Faster Cat Videos
 
El siguiente paso para aplicaciones exitosas, aplicando cloud, tensorflow y f...
El siguiente paso para aplicaciones exitosas, aplicando cloud, tensorflow y f...El siguiente paso para aplicaciones exitosas, aplicando cloud, tensorflow y f...
El siguiente paso para aplicaciones exitosas, aplicando cloud, tensorflow y f...
 
JS Days HTML5 Flash and the Battle for Faster Cat Videos
JS Days HTML5 Flash and the Battle for Faster Cat VideosJS Days HTML5 Flash and the Battle for Faster Cat Videos
JS Days HTML5 Flash and the Battle for Faster Cat Videos
 
HTML5 Multimedia Streaming
HTML5 Multimedia StreamingHTML5 Multimedia Streaming
HTML5 Multimedia Streaming
 
2015.12.06 - digi test evaluation B&G & FFW (1)
2015.12.06 - digi test evaluation B&G & FFW (1)2015.12.06 - digi test evaluation B&G & FFW (1)
2015.12.06 - digi test evaluation B&G & FFW (1)
 
dannyrats
dannyratsdannyrats
dannyrats
 
Bonita Open Solution: What, Why & How
Bonita Open Solution: What, Why & HowBonita Open Solution: What, Why & How
Bonita Open Solution: What, Why & How
 
Final Cut Express 4 User Manual
Final Cut Express 4 User ManualFinal Cut Express 4 User Manual
Final Cut Express 4 User Manual
 
ECS19 - Johan Delimon - Keep your Skype for Business Hybrid working like a ch...
ECS19 - Johan Delimon - Keep your Skype for Business Hybrid working like a ch...ECS19 - Johan Delimon - Keep your Skype for Business Hybrid working like a ch...
ECS19 - Johan Delimon - Keep your Skype for Business Hybrid working like a ch...
 
Intro to Compression: Audio and Video Optimization for Learning
Intro to Compression: Audio and Video Optimization for LearningIntro to Compression: Audio and Video Optimization for Learning
Intro to Compression: Audio and Video Optimization for Learning
 
Improving code quality with continuous integration (PHPBenelux Conference 2011)
Improving code quality with continuous integration (PHPBenelux Conference 2011)Improving code quality with continuous integration (PHPBenelux Conference 2011)
Improving code quality with continuous integration (PHPBenelux Conference 2011)
 
Developing & Deploying AIR Applications for TV
Developing & Deploying AIR Applications for TVDeveloping & Deploying AIR Applications for TV
Developing & Deploying AIR Applications for TV
 
Demystifying versioning in spfx solutions
Demystifying versioning in spfx solutionsDemystifying versioning in spfx solutions
Demystifying versioning in spfx solutions
 
My Honest VideoRobot Review.pdf
My Honest VideoRobot Review.pdfMy Honest VideoRobot Review.pdf
My Honest VideoRobot Review.pdf
 
How to Personalize Product Demos
How to Personalize Product DemosHow to Personalize Product Demos
How to Personalize Product Demos
 
CBT Development Process Code and Pixels- New.pdf
CBT Development Process Code and Pixels- New.pdfCBT Development Process Code and Pixels- New.pdf
CBT Development Process Code and Pixels- New.pdf
 
Office365 Demosolution
Office365 DemosolutionOffice365 Demosolution
Office365 Demosolution
 
ILLUMINZ Presentation
ILLUMINZ PresentationILLUMINZ Presentation
ILLUMINZ Presentation
 

Mais de Guilherme Blanco

Mais de Guilherme Blanco (6)

Enterprise php
Enterprise phpEnterprise php
Enterprise php
 
PHP 7
PHP 7PHP 7
PHP 7
 
ORM dont kill your DB, developers do
ORM dont kill your DB, developers doORM dont kill your DB, developers do
ORM dont kill your DB, developers do
 
Object Calisthenics Applied to PHP
Object Calisthenics Applied to PHPObject Calisthenics Applied to PHP
Object Calisthenics Applied to PHP
 
PHPubSP Object Calisthenics aplicado ao PHP
PHPubSP Object Calisthenics aplicado ao PHPPHPubSP Object Calisthenics aplicado ao PHP
PHPubSP Object Calisthenics aplicado ao PHP
 
Javascript para adultos
Javascript para adultosJavascript para adultos
Javascript para adultos
 

Último

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 

PHP, Daemons e Multimedia

  • 1. PHP, Daemons e Multimedia Guilherme Blanco PHP, Daemons e Multimedia PHP Conference Brazil 2009
  • 2. Doctrine 2.0: A evolução da persistência em PHP Benjamin Eberlei, Guilherme Blanco, Jonathan Wage & Roman Borschel Guilherme Blanco • Desenvolvedor há 10+ anos • Evangelista de projetos OS • Trabalhar para Naspers/MIH • Contribui para... • ...Doctrine • ...Zend Framework • ...Symfony • ...PHP • ...etc PHP Conference Brazil 2009 www.doctrine-project.org
  • 3. PHP, Daemons e Multimedia Guilherme Blanco Guilherme Blanco • http://www.twitter.com/guilhermeblanco • http://www.facebook.com/guilhermeblanco PHP Conference Brazil 2009
  • 4. PHP, Daemons e Multimedia Guilherme Blanco Agenda • Requisitos • Configuração • Queue System • Daemon • REST PHP Conference Brazil 2009
  • 5. PHP, Daemons e Multimedia Guilherme Blanco Requisitos • Tratamento de aúdio, vídeo e imagem – Ffmpeg + x264 – Imagemagick • 100% distribuído • Suporte à geração de thumbnails de vídeos • Anamorfismo PHP Conference Brazil 2009
  • 6. PHP, Daemons e Multimedia Guilherme Blanco Configuração • Audio encoder.profiles.audio.app_audio.options.overwrite = true encoder.profiles.audio.app_audio.output.0.resourceType = audio encoder.profiles.audio.app_audio.output.0.format = mp3 encoder.profiles.audio.app_audio.output.0.fileExtension = mp3 encoder.profiles.audio.app_audio.output.0.audioRate = 44100 encoder.profiles.audio.app_audio.output.0.audioBitrate = 128k encoder.profiles.audio.app_audio.output.0.audioChannel = 2 encoder.profiles.audio.app_audio.output.0.audioCodec = libmp3lame PHP Conference Brazil 2009
  • 7. PHP, Daemons e Multimedia Guilherme Blanco Configuração • Imagem encoder.profiles.image.app_image.options.overwrite = true encoder.profiles.image.app_image.output.0.resourceType = image encoder.profiles.image.app_image.output.0.anamorphic = 320x240 encoder.profiles.image.app_image.output.0.boxing = false encoder.profiles.image.app_image.output.0.fileExtension = jpg encoder.profiles.image.app_image.output.1.resourceType = image encoder.profiles.image.app_image.output.1.anamorphic = 46x46 encoder.profiles.image.app_image.output.1.boxing = false encoder.profiles.image.app_image.output.1.fileExtension = jpg encoder.profiles.image.app_image.output.2.resourceType = image encoder.profiles.image.app_image.output.2.anamorphic = 640x480 encoder.profiles.image.app_image.output.2.boxing = false encoder.profiles.image.app_image.output.2.fileExtension = jpg PHP Conference Brazil 2009
  • 8. PHP, Daemons e Multimedia Guilherme Blanco Configuração encoder.profiles.video.blobthis_video.options.overwrite = true encoder.profiles.video.blobthis_video.output.0.resourceType = video encoder.profiles.video.blobthis_video.output.0.anamorphic = 320x240 encoder.profiles.video.blobthis_video.output.0.boxing = true encoder.profiles.video.blobthis_video.output.0.format = flv encoder.profiles.video.blobthis_video.output.0.fileExtension = flv encoder.profiles.video.blobthis_video.output.0.codec = libx264 encoder.profiles.video.blobthis_video.output.0.preset = normal encoder.profiles.video.blobthis_video.output.0.crf = 24 encoder.profiles.video.blobthis_video.output.0.padColor = 000000 encoder.profiles.video.blobthis_video.output.0.audioRate = 22050 encoder.profiles.video.blobthis_video.output.0.audioBitrate = 96k encoder.profiles.video.blobthis_video.output.0.audioCodec = libfaac encoder.profiles.video.blobthis_video.output.1.resourceType = image encoder.profiles.video.blobthis_video.output.1.format = mjpeg encoder.profiles.video.blobthis_video.output.1.fileExtension = jpg encoder.profiles.video.blobthis_video.output.1.anamorphic = 320x240 encoder.profiles.video.blobthis_video.output.1.boxing = true encoder.profiles.video.blobthis_video.output.1.rate = 1 encoder.profiles.video.blobthis_video.output.1.codec = mjpeg encoder.profiles.video.blobthis_video.output.1.padColor = 000000 encoder.profiles.video.blobthis_video.output.1.seekTime = 00:00:01 encoder.profiles.video.blobthis_video.output.1.audio = false PHP Conference Brazil 2009
  • 9. PHP, Daemons e Multimedia Guilherme Blanco Queue System • Dropr • Amazon SQS • ... PHP Conference Brazil 2009
  • 10. PHP, Daemons e Multimedia Guilherme Blanco Daemon • Manager • Workers PHP Conference Brazil 2009
  • 11. PHP, Daemons e Multimedia Guilherme Blanco REST • PUT • GET • DELETE • HEAD PHP Conference Brazil 2009
  • 12. PHP, Daemons e Multimedia Guilherme Blanco Perguntas??? PHP Conference Brazil 2009
  • 13. PHP, Daemons e Multimedia Guilherme Blanco Guilherme Blanco guilhermeblanco@php.net +55 16 9215-8480 Twitter: @guilhermeblanco MSN: guilhermeblanco@hotmail.com PHP Conference Brazil 2009