Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 28 lines (24 sloc) 0.649 kB
#!/bin/bash
if [ ! -n "${RT_SOURCE}" ] || [ ! -n "${RT_DESTINATION}" ] || [ ! -n "${RT_WIDTH}" ] || [ ! -n "${RT_HEIGHT}" ]
then
echo "Usage: ${0} /path/to/source.${RT_IN_FORMAT} /path/to/dest.${RT_OUT_FORMAT} width height"
echo "Example: rgb ~/camera_images/img021.${RT_IN_FORMAT} ~/Photos/Me-and-Jeff.${RT_OUT_FORMAT} 720 480"
exit 1
fi
ffmpeg \
-vcodec rawvideo \
-f rawvideo \
-pix_fmt ${RT_IN_FORMAT} \
-s ${RT_SIZE} \
-i ${RT_SOURCE} \
\
-f image2 \
-vcodec ${RT_OUT_FORMAT} \
${RT_DESTINATION}
unset RT_DESTINATION
unset RT_SOURCE
unset RT_WIDTH
unset RT_HEIGHT
unset RT_SIZE
unset RT_IN_FORMAT
unset RT_OUT_FORMAT
Jump to Line
Something went wrong with that request. Please try again.