OpenCores
URL https://opencores.org/ocsvn/mjpeg-decoder/mjpeg-decoder/trunk

Subversion Repositories mjpeg-decoder

[/] [mjpeg-decoder/] [trunk/] [tools/] [encode_mjpeg.sh] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 smanz
#!/bin/bash
2
 
3
if [ -z "$1" -o -z "$2" ]
4
then
5
  echo "This program recodes movies into mjpeg format suitable"
6
  echo "for running on Sebastian Manz' FPGA mjpeg decoder. You"
7
  echo "should install transcode to use this script."
8
  echo "Usage: $0 <infile> <outfile>"
9
  echo
10
  echo "<infile>:  The source file. The input formats allowed depend on your transcode installation."
11
  echo "<outfile>: The resulting mjpeg file in an avi container (no sound, \".avi\" will be appended)."
12
  exit 1
13
fi
14
 
15
INFILE="$1"
16
OUTFILE="${2}.avi"
17
 
18
 
19
 
20
transcode -i $INFILE -o $OUTFILE -y mjpeg,null --export_fps 20 || exit 1
21
 
22
echo "ENDE ENDE ENDE ENDE ENDE ENDE ENDE ENDE ENDE ENDE ENDE ENDE ENDE ENDE ENDE ENDE ENDE ENDE ENDE ENDE ENDE ENDE" >> $OUTFILE

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.