OGGCUT(1)
π oggCut β the manual, but make it make sense
okay so this is the manpage for oggCut(1), from the User Manuals section. Buckle up bestie, we're cutting ogg files today π
β¨ NAME β¨
oggCut β extracts parts of an ogg file (β.ogv, β.ogg and β.oga)
πΈ SYNOPSIS πΈ
oggCut [options] inputfile outputfile
π¦ DESCRIPTION π¦
So basically oggCut takes inputfile and makes a brand new ogg file called outputfile that's just a little subpart of the original. Snipped, trimmed, iconic. βοΈβ¨
It can cut video (theora) only files, audio (vorbis) only files, or files that have both video and audio streams in them. Versatile queen fr fr π
You tell it where the cut starts and where it ends using the -s and -e options, and both of those have to be given in milliseconds. No seconds, no vibes-based guessing, milliseconds. β±οΈ
Now here's the part where you have to pay attention, bestie. π
A video stream is made of Iβframes (which are full pictures) and Pβframes (which are delta pictures pointing back at the leading Iβframe). The oggCut algorithm goes hunting for the first Iβframe. If a video file started on a pβframe, the player literally could not interpret that picture, because the leading Iβframe that it's based on wouldn't be there. So oggCut starts the Iβframe search at the start time you gave with the -s option. Which means: expect a shorter video time than the calculated seconds for the new file. Yeah. The math said one thing, the keyframes said another. π
The good news? oggCut does not do any reencoding, so the output quality is completely the same as the input file. Zero quality loss, zero glow-down, we love to see it. π
And for the girlies who are deep into the ogg container format: the file is cut on packet basis, not on page basis. Iykyk. π§
β οΈ PSA: there is another tool called oggCut floating around out there on the internet with a different synopis. That one was not written by the author of this tool that you are actually using right now. Don't get it twisted. π
β¨ OPTIONS β¨
-sβ Cut start position in ms. If the input file is a video file, the cut area starts with the next keyframe found. Default:0
Example: -s 5000
-lβ Length of the cut area in ms. If-eis also given, the length is ignored. (Sorry-l,-eis the main character here.)
Example: -l 10000
-eβ Cut end position in ms. If-lis also used, the end position is preferred. If the end position is set to-1, the end of the stream is assumed.
Default: -1
Example: -e 20000
-iβ the input file flag, part of the input/output pair below π«Ά-oβ Input file and output file set (alternative). These parameters can be used alternatively. They are overwritten by the arguments after the options. If there is one argument given, it is used as the input file (and overwrites a file given with-i). If there are two arguments, the input and output files from the-iand-ooption values are overwritten.
π EXAMPLE π
oggCut -s 1000 -e 21000 myVideo.ogv myOutput.ogv
Creates a new video called myOutput.ogv from the video myVideo.ogv starting after 1 second ending after 21 seconds. Slay. π
π AUTHOR π
Joern Seger <yorn at gmx dot net>
π SEE ALSO π
oggCat(1), oggJoin(1), oggSplit(1), oggTranscode(1), oggSlideshow(1), oggThumb(1), oggSilence(1)
and that's the whole page, bestie β this one lives in the Linux section, version/date stamped JAN 2010, and it signs off as OGGCUT(1). go forth and cut something cute β¨π
π¦ where this page comes from
- debian bookworm: oggvideotools 0.9.1-6 Β· GPL-2.0-or-later
- debian trixie: oggvideotools 0.9.1-7 Β· GPL-2.0-or-later
- fedora 43: oggvideotools 0.9.1-21.fc43 Β· GPL-2.0-or-later
- fedora 44: oggvideotools 0.9.1-22.fc44 Β· GPL-2.0-or-later
- nixos 26.05: oggvideotools 0.9.1
- nixpkgs unstable: oggvideotools 0.9.1
- ubuntu jammy: oggvideotools 0.9.1-6 Β· GPL-2.0-or-later
- ubuntu noble: oggvideotools 0.9.1-6 Β· GPL-2.0-or-later
- ubuntu questing: oggvideotools 0.9.1-7
- ubuntu resolute: oggvideotools 0.9.1-7.1 Β· GPL-2.0-or-later
- ubuntu stonking: oggvideotools 0.9.1-7.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms