Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How Silex and Cilex became the glue for a media transcoding application (php[tek] 2014)

How Silex and Cilex became the glue for a media transcoding application (php[tek] 2014)

Symfony2 is awesome, but can be overkill for some applications. During this talk, you will hear about a use case for using the Silex microframework for web and the Cilex microframework for CLI, and how these frameworks combined became the glue to the components of the media transcoding application that powers the majority of on-demand adaptive streaming for the Dutch public broadcasting organization NPO.

A8f72e32766355f12a56ede9aaa0ee78?s=128

Stefan Koopmanschap

May 21, 2014
Tweet

Transcript

  1. Cilex & Silex became the glue for a media transcoding

    application How
  2. Stefan Koopmanschap • PHP developer since ’97/’98 • Ingewikkeld and

    Techademy • Several PHP communities • Regular conference speaker
  3. Managing expectations

  4. Cilex Silex

  5. cc-by 2.0 homespothq.com

  6. The problem

  7. None
  8. media management transcoding

  9. media management transcoding transcoding management

  10. Deciding on technology

  11. What happens? • Mediamanagement delivers XML and source file •

    Transcoding expects sourcefile and API call
  12. Choosing the framework • Plain PHP • Symfony2 • ZFTool

    • Cilex
  13. Cilex + PDO

  14. The task at hand

  15. Tasks • Monitor • Validate • Send to Codem •

    Wait for feedback • Finalize • Publish
  16. Video Bitrate Bitrate Bitrate Bitrate

  17. media management transcoding transcoding management

  18. media management transcoding transcoding management

  19. media management transcoding transcoding management

  20. Changing requirements

  21. media management transcoding transcoding management polling

  22. media management transcoding transcoding management push

  23. transcoding management ! ! ! ! ! Cilex Silex

  24. Cilex + PDO + Silex

  25. Changing requirements (again)

  26. Functional application management • Quickly see recent jobs • See

    which jobs failed, and why • Search for old jobs
  27. Cilex + PDO + Silex + Twig

  28. What does it look like?

  29. The ever-changing requirements

  30. Choose your tool wisely

  31. Start out simple

  32. https://joind.in/10659