FFmpeg - Encode Theora: Difference between revisions
From PiRho Knowledgebase
Jump to navigationJump to search
m Knowledgebaseadmin moved page FFmpeg - Theora to FFmpeg - Encode Theora |
No edit summary |
||
| Line 1: | Line 1: | ||
[[Category:FFmpeg]] | [[Category:FFmpeg]] | ||
[[Category:Theora]] | [[Category:Theora]] | ||
Theora is a free, open, open‑source video codec developed by the Xiph.org Foundation. FFmpeg fully supports encoding to Theora through the libtheora encoder, provided your FFmpeg build is compiled with the correct external libraries. | |||
== Basic Usage == | |||
The simplest way to encode a video to Theora: | |||
``` | |||
ffmpeg -i <input.file> -c:v libtheora -qscale:v 10 <output.file> | ffmpeg -i <input.file> -c:v libtheora -qscale:v 10 <output.file> | ||
< | ``` | ||
== Recommended Audio Settings (Optional) == | |||
If you want to output Ogg Theora + Vorbis: | |||
``` | |||
ffmpeg -i <input.file> -c:v libtheora -qscale:v 7 -c:a libvorbis -qscale:a 5 output.ogv | |||
``` | |||
== Two-Pass Encoding == | |||
Pass 1: | |||
``` | |||
ffmpeg -i input.mkv -c:v libtheora -qscale:v 7 -pass 1 -an -f ogg /dev/null | |||
``` | |||
Pass 2: | |||
``` | |||
ffmpeg -i input.mkv -c:v libtheora -qscale:v 7 -c:a libvorbis -qscale:a 5 -pass 2 output.ogv | |||
``` | |||
== Reference == | |||
* FFmpeg Wiki — A Brief Theora and Vorbis Encoding Guide | |||
Latest revision as of 15:55, 14 March 2026
Theora is a free, open, open‑source video codec developed by the Xiph.org Foundation. FFmpeg fully supports encoding to Theora through the libtheora encoder, provided your FFmpeg build is compiled with the correct external libraries.
Basic Usage
The simplest way to encode a video to Theora:
``` ffmpeg -i <input.file> -c:v libtheora -qscale:v 10 <output.file> ```
Recommended Audio Settings (Optional)
If you want to output Ogg Theora + Vorbis:
``` ffmpeg -i <input.file> -c:v libtheora -qscale:v 7 -c:a libvorbis -qscale:a 5 output.ogv ```
Two-Pass Encoding
Pass 1: ``` ffmpeg -i input.mkv -c:v libtheora -qscale:v 7 -pass 1 -an -f ogg /dev/null ``` Pass 2: ``` ffmpeg -i input.mkv -c:v libtheora -qscale:v 7 -c:a libvorbis -qscale:a 5 -pass 2 output.ogv ```
Reference
- FFmpeg Wiki — A Brief Theora and Vorbis Encoding Guide