USAGE: mjpeg2jpg [-l[ist] ] verify and/or list properties of . USAGE: mjpeg2jpg [ ..] extract one or more JPG-files from . DEST: "[][]%[[0]]d[].jpg" %d replaced by or a single file ".jpg" USAGE: mjpeg2jpg [ ..] extract mp4-stream from downloaded file. KEY VALUE DESCRIPTION AND DEFAULT -b[egin] picturenumber to save. Default: 0 -e[nd] terminate process. Default: 8640000 -f[irst] in filename . Default: 0 -i[ncrement] increment of . Default: 1 -i[ncrement] t[ime] add seconds in day to first . -j[ump] increment picturenumber to save. Default: 1 -l[ist] q[uiet] do not write progress to stdout. -l[ist] s[tatist] write statistics to stdout. -s[elect] write only if maximumJPGpayloadsize >= (1+0.01*)*minimumJPGpayloadsize calculated over as far as read. -t[ype] a[udio] extract Content-Type audio/basic. -t[ype] j[peg] extract Content-Type image/jpeg. -t[ype] m[peg] extract Content-Type video/mpeg. By default image/jpeg or video/mpeg is extracted whichever is found first. Error messages are written to stderr. SYNTAX OF MJPEG-FILES: "--ThisRandomString" or "--myboundary" "Content-Type: image/jpeg" "Content-Length: ######" "" ###### bytes JPG-file payload "" All lines end on \r\n (0x0d0a). SYNTAX OF "MP4"-FILES: "--myboundary" "Content-Type: image/mpeg" or "Content-Type: audio/basic" (ignored by default) "Content-Length: #[#####]" "" #[#####] bytes JPG-file payload "" All lines end on \r\n (0x0d0a). NOTE: Use ffmpeg 0.5 to extract pictures from an Intellinet IP-Cam MP4-stream. Copyright (C) 2011 by Harm J. Schoonhoven Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. VERSION: Jun 24 2014