I would like to save still images from a video, which is on a direct http URL. At the same time I want to save the video as well. How can I use ffmpeg with its special tee muxer to save the images and the video at the same time? My attempt doesn't work:
ffmpeg -fflags +genpts -i http://www.example.com/video.avi -map 0:v -map 0:a -c:v copy -c:a copy -f tee 'video.avi|[f=image2]%06d.jpg'
Of course this only a simplified example, or else I could use the standard linux filter / command tee, but in real I want the video data go through ffmpeg for additional video / audio filtering in the future.