7. Introduction: MediaMosa A mediafile may have a video. Asset Title Description Mediafile: Video (codec, filesize)
8. Introduction: MediaMosa We can transcode a mediafile to an other format. Asset Title Description Mediafile: Video (Original) Mediafile: Video (Transcoded)
9. Introduction: MediaMosa We can create an another mediafile (with video). Asset Title Description Mediafile: Video (Original) Mediafile: Video (Transcoded) Mediafile: Video (Original)
10. Introduction: MediaMosa Every mediafile may have still images. Asset Title Description Mediafile: Video (Original) Mediafile: Video (Transcoded) Mediafile: Video (Original)
11. Introduction: MediaMosa The asset has a default still (if there is any). Asset Title Description Mediafile: Video (Original) Mediafile: Video (Transcoded) Mediafile: Video (Original)
12. Introduction: MediaMosa A video sites has assets with default stills. Asset Title Desc. Asset Title Desc. Asset Title Desc. Asset Title Desc.
13. Introduction: MediaMosa A video page has an asset with video(s) and still(s). Asset Title Description
14. Main points Generate still Generate multiple stills Upload still Working with multiple stills
15. Introduction WLE WLE (White Label Ega) is a client side application for testing. We will use this software in this presentation.
21. REST interface, REST calls The REST interface is a communication channel between the client application and the MediaMosa. A REST call request can be GET or POST (PUT). - GET is for getting data from MediaMosa. - POST (PUT) is for changing data (eg. file upload). The response is an XML about the status and the data.
30. Multiple stills One still good, multiple stills are better. Types - Normal (creating N stills from a video) - Second (creating stills in every N second) - Scene (creating stills, when the video has a scene change)
31. Still type NORMAL mediamosa/$mediafile_id/still/create [POST] still_type=NORMAL&still_per_mediafile=3
34. Still type SECOND mediamosa/$mediafile_id/still/create still_type=SECOND&still_every_second=5
35. Padding Still default size, padding (YES, NO). still_type=NONE&h_padding=0&v_padding=15&size=352x288
36. Scene stills Create stills on the video scene changes. Requirements: - Patch ffmpeg (NORMAL, SCENE too) - lav2yuv: * Part of MJPEG Tools * apt-get install mjpegtools * MediaMosa status page
37. Still type SCENE mediamosa/$mediafile_id/still/create still_type=SCENE
38. I, robot It is not easy to decide what is a scene change. The computer is not human. Is it a perfect tool? No, it doesn't. Accuracy ~70%. With our fixes ~80%. It is useful, if we know the advantages and disadvantages of scene stills.
47. Delete still Deleting from asset, from mediafile, or delete a unique still asset/$asset_id/still/delete POST: <nothing> or mediafile_id or still_id
49. FFmpeg tricks Creating multiple stills without using MediaMosa (and without patching ffmpeg). For extracting images from a video: ffmpeg -i foo.avi -r 1 -s WxH -f image2 foo-%03d.jpeg This will extract one video frame per second from the video and will output them in files named foo-001.jpeg, foo-002.jpeg, etc. Images will be rescaled to fit the new WxH values.
50. Summary Generate still Generate multiple stills * Normal * Second * Scene Upload still Working with multiple stills * Order * Set default * Delete