(index ("with-ffmpeg-video" 0) ("ffmpeg-open-video" 130) ("ffmpeg-close-video" 130) ("ffmpeg-video-finished?" 303) ("ffmpeg-video-frame-index" 303) ("ffmpeg-video-width" 303) ("ffmpeg-video-height" 303) ("ffmpeg-video-frame-rate" 303) ("ffmpeg-next-frame!" 732) ("ffmpeg-video-frame-data" 845) ("ffmpeg-video-frame-data-as-imlib" 845) ("video-length" 1157) ("for-each-frame" 1469) ("for-each-frame-but-last" 1469) ("for-each-frame-reversed" 1469) ("for-each-frame-indexed" 1469) ("for-each-frame-indexed-but-last" 1469) ("map-frame" 1469) ("map-frame-but-last" 1469) ("map-frame-indexed" 1469) ("map-frame-indexed-but-last" 1469) ("for-each-frame-pair" 2403) ("map-frame-pair" 2403) ("for-each-imlib-frame-from-video-indexed" 2736) ("for-each-imlib-frame-from-video-indexed-but-last" 2736) ("for-each-imlib-frame-pair-from-video" 2736) ("for-each-imlib-frame-pair-from-video-indexed" 2736) ("map-imlib-frame-from-video-indexed" 2736) ("map-imlib-frame-pair-from-video" 2736))
(def (sig (procedure "(with-ffmpeg-video video-path f)" (id with-ffmpeg-video))) (p "Call f with an open ffmpeg at video-path."))
(def (sig (procedure "(ffmpeg-open-video filename)" (id ffmpeg-open-video)) (procedure "(ffmpeg-close-video video)" (id ffmpeg-close-video))) (p "Open and close a video."))
(def (sig (procedure "(ffmpeg-video-finished? video)" (id ffmpeg-video-finished?)) (procedure "(ffmpeg-video-frame-index video)" (id ffmpeg-video-frame-index)) (procedure "(ffmpeg-video-width video)" (id ffmpeg-video-width)) (procedure "(ffmpeg-video-height video)" (id ffmpeg-video-height)) (procedure "(ffmpeg-video-frame-rate video)" (id ffmpeg-video-frame-rate))) (p "Get information about an open video of an open video."))
(def (sig (procedure "(ffmpeg-next-frame! video)" (id ffmpeg-next-frame!))) (p "Advance the frame of a video."))
(def (sig (procedure "(ffmpeg-video-frame-data video)" (id ffmpeg-video-frame-data)) (procedure "(ffmpeg-video-frame-data-as-imlib video)" (id ffmpeg-video-frame-data-as-imlib))) (p "Returns an image for the current frame as a PPM or an imlib image. See the scheme2c-compatibility or imlib eggs respectively."))
(def (sig (procedure "(video-length video-pathname)" (id video-length))) (p "Compute the length of a video in frames. Note that this is a very slow operation as it must inspect the entire video. Frame-level accuracy cannot be achieved by seeking. See the note at the beginning of this document about caching."))
(def (sig (procedure "(for-each-frame f v)" (id for-each-frame)) (procedure "(for-each-frame-but-last f v)" (id for-each-frame-but-last)) (procedure "(for-each-frame-reversed f v)" (id for-each-frame-reversed)) (procedure "(for-each-frame-indexed f v)" (id for-each-frame-indexed)) (procedure "(for-each-frame-indexed-but-last f v)" (id for-each-frame-indexed-but-last)) (procedure "(map-frame f v)" (id map-frame)) (procedure "(map-frame-but-last f v)" (id map-frame-but-last)) (procedure "(map-frame-indexed f v)" (id map-frame-indexed)) (procedure "(map-frame-indexed-but-last f v)" (id map-frame-indexed-but-last))) (p "Walk over the frames of a video. Note that this does not fetch any data, even though decoding must happen for frame-level accuracy, it simply calls the function with one argument, the frame index. The indexed versions of these functions also pass an index (guaranteed to be 0-based) into the current movie."))
(def (sig (procedure "(for-each-frame-pair individual-f pair-f video-name)" (id for-each-frame-pair)) (procedure "(map-frame-pair individual-f pair-f video-name)" (id map-frame-pair))) (p "As above this only provides frame indices not data. individual-f is called once for each frame and pair-f is called on every pair of frames."))
(def (sig (procedure "(for-each-imlib-frame-from-video-indexed f video)" (id for-each-imlib-frame-from-video-indexed)) (procedure "(for-each-imlib-frame-from-video-indexed-but-last f video)" (id for-each-imlib-frame-from-video-indexed-but-last)) (procedure "(for-each-imlib-frame-pair-from-video individual-f pair-f video)" (id for-each-imlib-frame-pair-from-video)) (procedure "(for-each-imlib-frame-pair-from-video-indexed individual-f pair-f video)" (id for-each-imlib-frame-pair-from-video-indexed)) (procedure "(map-imlib-frame-from-video-indexed f video)" (id map-imlib-frame-from-video-indexed)) (procedure "(map-imlib-frame-pair-from-video individual-f pair-f video)" (id map-imlib-frame-pair-from-video))) (p "Iterate over the video as above but the functions are called with both a frame number and an imlib image of the current frame. The indexed versions of these functions also pass an index (as the second arugment) (guaranteed to be 0-based) into the current movie."))
