Example script to create a jpeg list sequence file is next. It can be modified to create a list for exr, gif, ppm, png, tga, or tiff sequences instead by changing JPEGLIST to be EXRLIST, GIFLIST, PPMLIST, PNGLIST, TGALIST, or TIFFLIST.
#!/bin/bash out="$1" dir=$(dirname "$out") shift geom=$(anytopnm "$1" | head -2 | tail -1) w="$(echo $geom | cut -d " " -f1)" h="$(echo $geom | cut -d " " -f2)" exec > $out echo "JPEGLIST" echo "# First line is always format_typeLIST" echo "# Frame rate:" echo "29.970030" echo "# Width:" echo "$w" echo "# Height:" echo "$h" echo "# List of image files follows" while [ $# -gt 0 ]; do if [ x$(dirname "$1") = x"$dir" ]; then f=./`basename "$1"`; else f="$1"; fi echo "$f" shift done |
./imagelist.sh outfile infiles/*.jpg
where imagelist.sh is just the name chosen for this script which could be anything but has to be executable, outfile is the sequence list that is created, infiles is the directory containing the format_type files such as jpg in this example. The xxxtopnm messages that show up can just be ignored such as: jpegtopnm: WRITING PPM FILE and jpegtopnm: Error writing row. In addition, you can edit this script as needed. See also Filelist format.
The CINELERRA-GG Community, 2021