[theora] Batch Encoding in ffmpeg2theora

Ralph Giles giles at thaumas.net
Wed Mar 17 11:47:09 PDT 2010

On 16 February 2010 21:14, Toby Nowland-Foreman <tobynf at gmail.com> wrote:

> I've been doing some OGG Theora encoding with ffmpeg2theora and I can't seem to find a good explanation on
> how to batch encode with ffmpeg2theora. What do I need to type into the terminal to get ffmpeg2theora to take
> multiple input files and export multiple OGVs with the same settings? All of my attempts sofar have resulted in
> multiple files being converted into one OGV file :(

Depends on your shell. With common sh-based shells you can say something like:

for file in *.avi; do ffmpeg2theora $file; done

That will invoke ffmpeg2theora separately for each file in the list
*.avi expands to.

Hope that helps,

More information about the theora mailing list