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.
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)
Still type NORMAL mediamosa/$mediafile_id/still/create [POST] still_type=NORMAL&still_per_mediafile=3
Still type SECOND mediamosa/$mediafile_id/still/create still_type=SECOND&still_every_second=5
Padding Still default size, padding (YES, NO). still_type=NONE&h_padding=0&v_padding=15&size=352x288
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
Still type SCENE mediamosa/$mediafile_id/still/create still_type=SCENE
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.
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.
Summary Generate still Generate multiple stills * Normal * Second * Scene Upload still Working with multiple stills * Order * Set default * Delete