Created
September 24, 2014 17:20
-
-
Save gotodeploy/657894fcaaf00d4afdb3 to your computer and use it in GitHub Desktop.
Some tricks for my OpenCV works
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Get thumbnail images every seconds of the full hd sized video(using avconv) | |
avconv -i video.3gp -s:v hd1080 -filter:v fps=fps=1 -an image%d.jpg | |
‘-s[:stream_specifier] size (input/output,per-stream)’ | |
Set frame size. | |
As an input option, this is a shortcut for the ‘video_size’ private option, recognized by some demuxers for which the frame size is either not stored in the file or is configurable – e.g. raw video or video grabbers. | |
As an output option, this inserts the scale video filter to the end of the corresponding filtergraph. Please use the scale filter directly to insert it at the beginning or some other place. | |
The format is ‘wxh’ (default - same as source). The following abbreviations are recognized: | |
‘sqcif’ | |
128x96 | |
‘qcif’ | |
176x144 | |
‘cif’ | |
352x288 | |
‘4cif’ | |
704x576 | |
‘16cif’ | |
1408x1152 | |
‘qqvga’ | |
160x120 | |
‘qvga’ | |
320x240 | |
‘vga’ | |
640x480 | |
‘svga’ | |
800x600 | |
‘xga’ | |
1024x768 | |
‘uxga’ | |
1600x1200 | |
‘qxga’ | |
2048x1536 | |
‘sxga’ | |
1280x1024 | |
‘qsxga’ | |
2560x2048 | |
‘hsxga’ | |
5120x4096 | |
‘wvga’ | |
852x480 | |
‘wxga’ | |
1366x768 | |
‘wsxga’ | |
1600x1024 | |
‘wuxga’ | |
1920x1200 | |
‘woxga’ | |
2560x1600 | |
‘wqsxga’ | |
3200x2048 | |
‘wquxga’ | |
3840x2400 | |
‘whsxga’ | |
6400x4096 | |
‘whuxga’ | |
7680x4800 | |
‘cga’ | |
320x200 | |
‘ega’ | |
640x350 | |
‘hd480’ | |
852x480 | |
‘hd720’ | |
1280x720 | |
‘hd1080’ | |
1920x1080 | |
‘-filter[:stream_specifier] filter_graph (output,per-stream)’ | |
filter_graph is a description of the filter graph to apply to the stream. Use -filters to show all the available filters (including also sources and sinks). | |
-Resize all jpg images without exif(using imagemagick) | |
mogrify -strip -resize 360x *.JPG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment