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

Dynamic Time Warping & Synchronizace videí

Dynamic Time Warping & Synchronizace videí

Ostravské Pyvo, 2015-06-04

Petr Viktorin

June 04, 2015
Tweet

More Decks by Petr Viktorin

Other Decks in Programming

Transcript

  1. pyvo
    vo
    video!

    View full-size slide

  2. pyvo
    |
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyv
    |
    o
    video
    |
    pyvo
    |
    vide
    |
    o

    View full-size slide

  3. pyvo
    |
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyv
    |
    o
    video
    |
    pyvo
    |
    vide
    |
    o
    py
    |
    vo
    video
    |
    py
    |
    vo
    vide
    |
    o
    pyv
    |
    o
    vide
    |
    o
    py
    |
    vo
    vide
    |
    o
    py
    |
    vo
    vid
    |
    eo
    pyv
    |
    o
    vid
    |
    eo
    pyv
    |
    o
    vid
    |
    eo
    py
    |
    vo
    vide
    |
    o
    pyvo
    |
    vid
    |
    eo

    View full-size slide

  4. pyvo
    |
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyv
    |
    o
    video
    |
    pyvo
    |
    vide
    |
    o
    py
    |
    vo
    video
    |
    py
    |
    vo
    vide
    |
    o
    pyv
    |
    o
    vide
    |
    o
    py
    |
    vo
    vide
    |
    o
    py
    |
    vo
    vid
    |
    eo
    pyv
    |
    o
    vid
    |
    eo
    pyv
    |
    o
    vid
    |
    eo
    py
    |
    vo
    vide
    |
    o
    pyvo
    |
    vid
    |
    eo
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video
    pyvo
    video

    View full-size slide

  5. v i d e o
    p
    y
    v
    o

    View full-size slide

  6. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |

    View full-size slide

  7. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |

    View full-size slide

  8. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o

    View full-size slide

  9. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o

    View full-size slide

  10. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video

    View full-size slide

  11. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo

    View full-size slide

  12. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo

    View full-size slide

  13. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0

    View full-size slide

  14. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1

    View full-size slide

  15. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2

    View full-size slide

  16. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3

    View full-size slide

  17. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4

    View full-size slide

  18. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5

    View full-size slide

  19. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video

    View full-size slide

  20. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video

    View full-size slide

  21. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1

    View full-size slide

  22. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2

    View full-size slide

  23. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3

    View full-size slide

  24. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4

    View full-size slide

  25. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo

    View full-size slide

  26. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2

    View full-size slide

  27. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3

    View full-size slide

  28. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4

    View full-size slide

  29. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5

    View full-size slide

  30. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6

    View full-size slide

  31. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3

    View full-size slide

  32. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4

    View full-size slide

  33. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5

    View full-size slide

  34. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6

    View full-size slide

  35. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7

    View full-size slide

  36. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo

    View full-size slide

  37. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2

    View full-size slide

  38. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3

    View full-size slide

  39. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4

    View full-size slide

  40. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5

    View full-size slide

  41. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6

    View full-size slide

  42. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3

    View full-size slide

  43. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4

    View full-size slide

  44. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5

    View full-size slide

  45. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6

    View full-size slide

  46. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 5

    View full-size slide

  47. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 5

    View full-size slide

  48. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 5

    View full-size slide

  49. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 5

    View full-size slide

  50. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 5

    View full-size slide

  51. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 5

    View full-size slide

  52. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 5

    View full-size slide

  53. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 5

    View full-size slide

  54. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 5

    View full-size slide

  55. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 5

    View full-size slide

  56. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 5

    View full-size slide

  57. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 5

    View full-size slide

  58. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 5

    View full-size slide

  59. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 5

    View full-size slide

  60. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 5

    View full-size slide

  61. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 5

    View full-size slide

  62. v i d e o
    p
    y
    v
    o
    pyvo
    |
    video
    |
    pyv
    |
    o
    video
    |
    pyv
    |
    o
    vide
    |
    o
    pyvo
    |
    vide
    |
    o
    |
    pyvo
    |
    video
    |
    pyvo
    v
    |
    ideo
    0 1 2 3 4 5
    p
    |
    yvo
    |
    video
    py
    |
    vo
    |
    video
    1
    2
    3
    4
    p
    |
    yvo
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 7
    pyv
    |
    o
    v
    |
    ideo
    2 3 4 5 6
    3 4 5 6 5

    View full-size slide

  63. pyvo
    vo
    video!

    View full-size slide

  64. Dynamic Time Warping
    & Video Synchronization
    Petr Viktorin
    [email protected]
    Brněnské PyVo, 2015-05-28

    View full-size slide

  65. Signal A:
    Signal B:

    View full-size slide

  66. $ ffmpeg -filter_complex [bd] anullsink ;
    color=color=00000000:duration=186.68:rate=50:size=1920x1081 [bb] ;
    movie=filename=in1.png:streams=dv [bc] ; [bb][bc] overlay=repeatlast=1 [ay] ; [ay][az]
    overlay=repeatlast=0 [ax] ; [ax] setpts=expr=N/FRAME_RATE/TB [out0] ;
    color=color=00000000:duration=173.68:rate=50:size=1920x1080 [av] ;
    movie=filename=in2.png:streams=dv [aw] ; [av][aw] overlay=repeatlast=1 [au] ; [au]
    fade=alpha=1:color=00000000:duration=0.5:start_time=173.18:type=out [ag] ;
    movie=filename=in3.ogv:streams=dv+da [at][bd] ; [at] fps=fps=30 [as] ; [as]
    format=pix_fmts=rgba|yuva420p|yuva422p|yuva444p [ar] ; [ar] setpts=expr=PTS-STARTPTS [aq] ; [aq]
    scale=h=1080:w=1440 [ap] ; [ap] setsar=sar=1 [ao] ; [ao]
    pad=color=00000000:h=1080:w=1920:x=0:y=0 [an] ; [an] fps=fps=25 [am] ; [am]
    fade=alpha=1:color=00000000:duration=0.5:start_time=179.233333:type=out [al] ; [al]
    trim=start=5.24506890629 [ak] ; [ak] setpts=expr=PTS-STARTPTS [aj] ; [aj] trim=end=173.68 [ai] ;
    [ai] setpts=expr=PTS-STARTPTS [ah] ; [ag][ah] overlay=repeatlast=0 [w] ; [af] fps=fps=30 [ae] ;
    [ae] format=pix_fmts=rgba|yuva420p|yuva422p|yuva444p [ad] ; [ad] setpts=expr=PTS-STARTPTS [ac] ;
    [ac] scale=h=271:w=481 [ab] ; [ab] setsar=sar=1 [aa] ; [aa]
    pad=color=00000000:h=1080:w=1920:x=1438:y=809 [z] ; [z] fps=fps=25 [y] ; [y]
    fade=alpha=1:color=00000000:duration=0.5:start_time=173.18:type=out [x] ; [w][x]
    overlay=repeatlast=0 [b] ; movie=filename=in4.MTS:streams=dv+da [af][v] ; [v]
    asetpts=expr=PTS-STARTPTS [c] ; color=color=00000000:duration=6:rate=50:size=1921x1081 [t] ;
    movie=filename=in5.png:streams=dv [u] ; [t][u] overlay=repeatlast=1 [s] ; [s]
    fade=alpha=1:color=00000000:duration=0.5:start_time=0:type=in [r] ; [r]
    fade=alpha=1:color=00000000:duration=0.5:start_time=5.5:type=out [d] ;
    aevalsrc=duration=6:exprs=0 [e] ; color=color=00000000:duration=7:rate=50:size=1921x1081 [p] ;
    movie=filename=in6.png:streams=dv [q] ; [p][q] overlay=repeatlast=1 [i] ;
    color=color=00000000:duration=7:rate=50:size=528x528 [n] ; movie=filename=in7.png:streams=dv [o]
    ; [n][o] overlay=repeatlast=1 [m] ; [m] scale=h=528:w=528 [l] ; [l] setsar=sar=1 [k] ; [k]
    pad=color=00000000:h=1080:w=1920:x=697:y=439 [j] ; [i][j] overlay=repeatlast=0 [h] ; [h]
    fade=alpha=1:color=00000000:duration=0.5:start_time=0:type=in [f] ; aevalsrc=duration=7:exprs=0
    [g] ; [b][c][d][e][f][g] concat=a=1:n=3:v=1 [az][a] ; [a] asetpts=expr=N/SR/TB [out1] -f mp4
    -c:v libx264 -c:a aac -crf 30 -maxrate 5000k -strict -2 -map [out0] -map [out1] outfile.mp4

    View full-size slide

  67. $ ffmpeg -filter_complex [bd] anullsink ;
    color=color=00000000:duration=186.68:rate=50:size=1920x1081 [bb] ;
    movie=filename=in1.png:streams=dv [bc] ; [bb][bc] overlay=repeatlast=1 [ay] ; [ay][az]
    overlay=repeatlast=0 [ax] ; [ax] setpts=expr=N/FRAME_RATE/TB [out0] ;
    color=color=00000000:duration=173.68:rate=50:size=1920x1080 [av] ;
    movie=filename=in2.png:streams=dv [aw] ; [av][aw] overlay=repeatlast=1 [au] ; [au]
    fade=alpha=1:color=00000000:duration=0.5:start_time=173.18:type=out [ag] ;
    movie=filename=in3.ogv:streams=dv+da [at][bd] ; [at] fps=fps=30 [as] ; [as]
    format=pix_fmts=rgba|yuva420p|yuva422p|yuva444p [ar] ; [ar] setpts=expr=PTS-STARTPTS [aq] ; [aq]
    scale=h=1080:w=1440 [ap] ; [ap] setsar=sar=1 [ao] ; [ao]
    pad=color=00000000:h=1080:w=1920:x=0:y=0 [an] ; [an] fps=fps=25 [am] ; [am]
    fade=alpha=1:color=00000000:duration=0.5:start_time=179.233333:type=out [al] ; [al]
    trim=start=5.24506890629 [ak] ; [ak] setpts=expr=PTS-STARTPTS [aj] ; [aj] trim=end=173.68 [ai] ;
    [ai] setpts=expr=PTS-STARTPTS [ah] ; [ag][ah] overlay=repeatlast=0 [w] ; [af] fps=fps=30 [ae] ;
    [ae] format=pix_fmts=rgba|yuva420p|yuva422p|yuva444p [ad] ; [ad] setpts=expr=PTS-STARTPTS [ac] ;
    [ac] scale=h=271:w=481 [ab] ; [ab] setsar=sar=1 [aa] ; [aa]
    pad=color=00000000:h=1080:w=1920:x=1438:y=809 [z] ; [z] fps=fps=25 [y] ; [y]
    fade=alpha=1:color=00000000:duration=0.5:start_time=173.18:type=out [x] ; [w][x]
    overlay=repeatlast=0 [b] ; movie=filename=in4.MTS:streams=dv+da [af][v] ; [v]
    asetpts=expr=PTS-STARTPTS [c] ; color=color=00000000:duration=6:rate=50:size=1921x1081 [t] ;
    movie=filename=in5.png:streams=dv [u] ; [t][u] overlay=repeatlast=1 [s] ; [s]
    fade=alpha=1:color=00000000:duration=0.5:start_time=0:type=in [r] ; [r]
    fade=alpha=1:color=00000000:duration=0.5:start_time=5.5:type=out [d] ;
    aevalsrc=duration=6:exprs=0 [e] ; color=color=00000000:duration=7:rate=50:size=1921x1081 [p] ;
    movie=filename=in6.png:streams=dv [q] ; [p][q] overlay=repeatlast=1 [i] ;
    color=color=00000000:duration=7:rate=50:size=528x528 [n] ; movie=filename=in7.png:streams=dv [o]
    ; [n][o] overlay=repeatlast=1 [m] ; [m] scale=h=528:w=528 [l] ; [l] setsar=sar=1 [k] ; [k]
    pad=color=00000000:h=1080:w=1920:x=697:y=439 [j] ; [i][j] overlay=repeatlast=0 [h] ; [h]
    fade=alpha=1:color=00000000:duration=0.5:start_time=0:type=in [f] ; aevalsrc=duration=7:exprs=0
    [g] ; [b][c][d][e][f][g] concat=a=1:n=3:v=1 [az][a] ; [a] asetpts=expr=N/SR/TB [out1] -f mp4
    -c:v libx264 -c:a aac -crf 30 -maxrate 5000k -strict -2 -map [out0] -map [out1] outfile.mp4

    View full-size slide

  68. $ ffmpeg -filter_complex [bd] anullsink ;
    color=color=00000000:duration=186.68:rate=50:size=1920x1081 [bb] ;
    movie=filename=in1.png:streams=dv [bc] ; [bb][bc] overlay=repeatlast=1 [ay] ; [ay][az]
    overlay=repeatlast=0 [ax] ; [ax] setpts=expr=N/FRAME_RATE/TB [out0] ;
    color=color=00000000:duration=173.68:rate=50:size=1920x1080 [av] ;
    movie=filename=in2.png:streams=dv [aw] ; [av][aw] overlay=repeatlast=1 [au] ; [au]
    fade=alpha=1:color=00000000:duration=0.5:start_time=173.18:type=out [ag] ;
    movie=filename=in3.ogv:streams=dv+da [at][bd] ; [at] fps=fps=30 [as] ; [as]
    format=pix_fmts=rgba|yuva420p|yuva422p|yuva444p [ar] ; [ar] setpts=expr=PTS-STARTPTS [aq] ; [aq]
    scale=h=1080:w=1440 [ap] ; [ap] setsar=sar=1 [ao] ; [ao]
    pad=color=00000000:h=1080:w=1920:x=0:y=0 [an] ; [an] fps=fps=25 [am] ; [am]
    fade=alpha=1:color=00000000:duration=0.5:start_time=179.233333:type=out [al] ; [al]
    trim=start=5.24506890629 [ak] ; [ak] setpts=expr=PTS-STARTPTS [aj] ; [aj] trim=end=173.68 [ai] ;
    [ai] setpts=expr=PTS-STARTPTS [ah] ; [ag][ah] overlay=repeatlast=0 [w] ; [af] fps=fps=30 [ae] ;
    [ae] format=pix_fmts=rgba|yuva420p|yuva422p|yuva444p [ad] ; [ad] setpts=expr=PTS-STARTPTS [ac] ;
    [ac] scale=h=271:w=481 [ab] ; [ab] setsar=sar=1 [aa] ; [aa]
    pad=color=00000000:h=1080:w=1920:x=1438:y=809 [z] ; [z] fps=fps=25 [y] ; [y]
    fade=alpha=1:color=00000000:duration=0.5:start_time=173.18:type=out [x] ; [w][x]
    overlay=repeatlast=0 [b] ; movie=filename=in4.MTS:streams=dv+da [af][v] ; [v]
    asetpts=expr=PTS-STARTPTS [c] ; color=color=00000000:duration=6:rate=50:size=1921x1081 [t] ;
    movie=filename=in5.png:streams=dv [u] ; [t][u] overlay=repeatlast=1 [s] ; [s]
    fade=alpha=1:color=00000000:duration=0.5:start_time=0:type=in [r] ; [r]
    fade=alpha=1:color=00000000:duration=0.5:start_time=5.5:type=out [d] ;
    aevalsrc=duration=6:exprs=0 [e] ; color=color=00000000:duration=7:rate=50:size=1921x1081 [p] ;
    movie=filename=in6.png:streams=dv [q] ; [p][q] overlay=repeatlast=1 [i] ;
    color=color=00000000:duration=7:rate=50:size=528x528 [n] ; movie=filename=in7.png:streams=dv [o]
    ; [n][o] overlay=repeatlast=1 [m] ; [m] scale=h=528:w=528 [l] ; [l] setsar=sar=1 [k] ; [k]
    pad=color=00000000:h=1080:w=1920:x=697:y=439 [j] ; [i][j] overlay=repeatlast=0 [h] ; [h]
    fade=alpha=1:color=00000000:duration=0.5:start_time=0:type=in [f] ; aevalsrc=duration=7:exprs=0
    [g] ; [b][c][d][e][f][g] concat=a=1:n=3:v=1 [az][a] ; [a] asetpts=expr=N/SR/TB [out1] -f mp4
    -c:v libx264 -c:a aac -crf 30 -maxrate 5000k -strict -2 -map [out0] -map [out1] outfile.mp4

    View full-size slide