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.

Stefan Koopmanschap

May 21, 2014
Tweet

More Decks by Stefan Koopmanschap

Other Decks in Technology

Transcript

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

    View Slide

  2. Stefan Koopmanschap
    • PHP developer since ’97/’98

    • Ingewikkeld and Techademy

    • Several PHP communities

    • Regular conference speaker

    View Slide

  3. Managing expectations

    View Slide

  4. Cilex Silex

    View Slide

  5. cc-by 2.0 homespothq.com

    View Slide

  6. The problem

    View Slide

  7. View Slide

  8. media management
    transcoding

    View Slide

  9. media management
    transcoding
    transcoding management

    View Slide

  10. Deciding on technology

    View Slide

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

    • Transcoding expects sourcefile and API call

    View Slide

  12. Choosing the framework
    • Plain PHP

    • Symfony2

    • ZFTool

    • Cilex

    View Slide

  13. Cilex + PDO

    View Slide

  14. The task at hand

    View Slide

  15. Tasks
    • Monitor

    • Validate

    • Send to Codem

    • Wait for feedback

    • Finalize

    • Publish

    View Slide

  16. Video
    Bitrate
    Bitrate
    Bitrate
    Bitrate

    View Slide

  17. media management
    transcoding
    transcoding management

    View Slide

  18. media management
    transcoding
    transcoding management

    View Slide

  19. media management
    transcoding
    transcoding management

    View Slide

  20. Changing requirements

    View Slide

  21. media management
    transcoding
    transcoding management
    polling

    View Slide

  22. media management
    transcoding
    transcoding management
    push

    View Slide

  23. transcoding management

    !
    !
    !
    !
    !
    Cilex
    Silex

    View Slide

  24. Cilex + PDO + Silex

    View Slide

  25. Changing requirements
    (again)

    View Slide

  26. Functional application
    management
    • Quickly see recent jobs

    • See which jobs failed, and why

    • Search for old jobs

    View Slide

  27. Cilex + PDO + Silex +
    Twig

    View Slide

  28. What does it look like?

    View Slide

  29. The ever-changing
    requirements

    View Slide

  30. Choose your tool
    wisely

    View Slide

  31. Start out simple

    View Slide

  32. https://joind.in/10659

    View Slide