Lines 562-567
Link Here
|
562 |
MPLEX_BIN="$MJPEGTBINFOLDER/mplex" |
562 |
MPLEX_BIN="$MJPEGTBINFOLDER/mplex" |
563 |
fi |
563 |
fi |
564 |
|
564 |
|
|
|
565 |
testcmd=`$PPMTOY4M_BIN -h | grep 420mpeg2` |
566 |
if [ "$testcmd" == "" ]; then |
567 |
PPMTOY4M_OPT=" " |
568 |
else |
569 |
PPMTOY4M_OPT="-S 420mpeg2 " |
570 |
fi |
565 |
# Verify if some images file have been given on the command line. |
571 |
# Verify if some images file have been given on the command line. |
566 |
if [ $CPT_IMG_FILE = 0 ]; then |
572 |
if [ $CPT_IMG_FILE = 0 ]; then |
567 |
echo -e "\nNo image file to convert !!!" |
573 |
echo -e "\nNo image file to convert !!!" |
Lines 828-834
Link Here
|
828 |
# MjpegTools MPEG encoding with the number of frames and the current image. |
834 |
# MjpegTools MPEG encoding with the number of frames and the current image. |
829 |
$CONVERT_BIN -depth 8 ppm:"$TMPFILENAME.tmp.pnm" - | cat |
835 |
$CONVERT_BIN -depth 8 ppm:"$TMPFILENAME.tmp.pnm" - | cat |
830 |
|
836 |
|
831 |
done | $PPMTOY4M_BIN -v $VERBOSE -n $NBFRAMETOTAL -F $IMAGES_SEC_FORMAT | $YUVSCALER_BIN -v $VERBOSE -n $VIDEO_TYPE_LETTER -O $VIDEO_FORMAT | $MPEG2ENC_BIN -v $VERBOSE -n $VIDEO_TYPE_LETTER -b $BIT_RATE -V $BUFFER_SIZE -f $VIDEO_FORMAT_NUMBER -o "$TMPFILENAME.tmp.m2v" |
837 |
done | $PPMTOY4M_BIN -v $VERBOSE -n $NBFRAMETOTAL -F $IMAGES_SEC_FORMAT $PPMTOY4M_OPT | $YUVSCALER_BIN -v $VERBOSE -n $VIDEO_TYPE_LETTER -O $VIDEO_FORMAT | $MPEG2ENC_BIN -v $VERBOSE -n $VIDEO_TYPE_LETTER -b $BIT_RATE -V $BUFFER_SIZE -f $VIDEO_FORMAT_NUMBER -o "$TMPFILENAME.tmp.m2v" |
832 |
|
838 |
|
833 |
DATE_FIN=`date +%s` |
839 |
DATE_FIN=`date +%s` |
834 |
TEMPSCALCUL=`echo $(($DATE_FIN-DATE_DEBUT))` |
840 |
TEMPSCALCUL=`echo $(($DATE_FIN-DATE_DEBUT))` |